summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status
AgeCommit message (Collapse)Author
2022-10-25luci-mod-status: transform status page Lua template into ucode templateJo-Philipp Wich
Transform the only Lua template of the status module into an equivalent ucode template and make it conditionally include the legacy Lua logic factored out in a previous commit. Only if the ucode Lua bridge is installed and loadable, the Lua template loading the legacy Lua status partials is included. After this commit, luci-mod-status is free of Lua dependencies. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-mod-status: remove uneeded libiwinfo-lua dependencyJo-Philipp Wich
Since the LuCI status module was rewritten into client side views, there is no server side Lua processing anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-22luci-mod-status: fix determining DSL modem typeJo-Philipp Wich
The `network.getDSLModemType()` function returns a promise, so handle it accordingly. Fixes: 45ab2cd6be ("luci-mod-status: use network.getDSLModemType()") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-21luci-mod-status: use network.getDSLModemType()Andre Heider
This matches what luci-mod-network does for the DSL modem configuration. Since this is based on a common uci config, it may also prevent issues as fixed with 111c551c "luci-base: fix DSL feature detection" in the future. Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-09-18luci-mod-status: nftables.js: correct icmp displayKevin Darbyshire-Bryant
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-07-05luci-mod-status: nftables.js: fix OOM on big nftables IP setsAlexander Georgievskiy
Signed-off-by: Alexander Georgievskiy <galeksandrp@gmail.com>
2022-04-27luci-mod-status: hide iptables firewall status when nft is presentJo-Philipp Wich
Do not expose the iptables status page as menu item when nftables is present on the system. Instead add a warning banner to the nftables status page directing the user to the hidden iptables status page when we encounter legacy rules on the system. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27luci-mod-status: nftables: add translations for further expression kindsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-03-28luci-mod-status,mod-network: Added fqdn-name to DHCPv4 lease tableMax S Kash
Added code to display fcdn-name in DHCPv4 lease table. (based on code in DHCPv6 lease table) Signed-off-by: Max S Kash <asukms@ya.ru> Indentation adjused and wrapped commit message Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-02-10luci-mod-status: nftables.js: align flow expr workaround with upstreamJo-Philipp Wich
Ref: https://git.netfilter.org/nftables/commit/?id=160d44c91113849b9c09f6bbad159e10ded1ca54 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-10luci-mod-status: correct nft meta.mark descriptionJo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/bf175fd51a9cfc33be0c19faddda714854065180#commitcomment-66390835 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-07luci-mod-status: add nftables status pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-01-07luci-mod-status: display full HE rate informationDaniel Golle
Associated Stations on the status page should also show full HE rate information which was added by commit f35e877dc6 ("luci-mod-network: add 802.11ax HE support") However, it was only added to the Wireless page and not to the summary on the Status page. Add it there as well. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-11-29luci-mod-status: change "Storage usage" heading to just "Storage"Jo-Philipp Wich
Also rename `25_diskfree.js` to `25_storage.js` to make naming anologeous with "Memory" / `20_memory.js`. Fixes: f09920f21a ("luci-mod-status: add diskfree info") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-11-25luci-mod-status: add diskfree infoFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-10-28luci-mod-status: disable DSL status if not presentJo-Philipp Wich
Fixes: #5465 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-09-22Merge pull request #5374 from Ansuel/fix-wifiJo-Philipp Wich
luci-mod-status: some improvement to wifi status
2021-09-20luci-mod-status: Add Target Platform (e.g. ath79/ipq806x/etc)Paul Dee
revealed under: ubus call system board board.release.target Useful reminder for what to download Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
2021-09-18luci-mod-status: fix wrong logic for maclist adding featureAnsuel Smith
Currently any new entry added to the black/whitelist deletes the others. Fix this and improve the rule apply by firstly disconnect the wifi client. Fixes: #5343 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-18luci-mod-status: cosmetic fix for isWPSEnabled in wifi statusAnsuel Smith
Drop isWPSEnabled table as it's really not needed and can directly included in the network table. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-09-03luci-mod-status: move index acl into own fileFlorian Eckert
The ACL file luci-mod-status.json is already quite long. It is also a separate menu item in LuCI, so in my view it makes sense to move it to a separate file. An additional positive effect is that the file then becomes clearer. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-03luci-mod-status: set default value if no route records foundFlorian Eckert
If no entries for the status tables are available. Then add the following default entry 'No entries available' This looks better, because not only the table header is displayed. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-01luci-mod-status: optimize view/formatting for status/routingVladislav Grigoryev
Optimize view and formatting for the status/routing page. Remove redundant style and header abbreviations. Consolidate terminology for IPv4 and IPv6 categories. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-26luci-mod-status: merge status/dmesg with status/syslogVladislav Grigoryev
Merge "Kernel Log" with "System Log" as an extra tab. Consolidate logging facilities for more intuitive navigation. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-11status: make buffered conditionalFritz D. Ansel
when buffered could not be read, there is just a questionmark (on e8450 non-ubi) Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-09Merge pull request #5235 from vgaetera/status-routingJo-Philipp Wich
luci-mod-status: status/routing support for pbr
2021-08-08luci-mod-status: fix description for luci-mod-status-channel_analysisVladislav Grigoryev
Update "modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json". Fix incorrect description for "luci-mod-status-channel_analysis". Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-07luci-mod-status: status/routing support for pbrVladislav Grigoryev
Provide comprehensive status information for routing. Rename the "Status > Routes" page to "Status > Routing". Unify sorting for the "Status" and "Network" menus. Add tabs for IPv4 and IPv6 and reorganize the contents. Display routing rules and their priorities for each protocol. Policy-based routing is an increasingly popular problem. Netifd natively supports policy-based routing: * The interface-specific options "ip4table" and "ip6table". * The routing rules using the "rule" and "rule6" sections. LuCI is missing the information about routing rules. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-07-07luci-mod-status: disable "Set static" lease action on readonly viewJo-Philipp Wich
Fixes: f6b6a12927 ("luci-mod-status: add support for one-click static lease") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-30luci-mod-status: don't set '-' hostname when creating static leaseJo-Philipp Wich
Fixes: #5153 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-21luci-mod-status: switch to html table for wlan channel analysisFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-09luci-mod-status: fix NaN errors in realtime graphsLukasz Baj
When I use Realtime Graphs I see following NaN errors: Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…". Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…". wireless.js?v=git-21.105.40538-2da37c2:19 Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…". eval @ wireless.js?v=git-21.105.40538-2da37c2:19 Promise.then (async) eval @ wireless.js?v=git-21.105.40538-2da37c2:8 step @ luci.js?v=git-21.105.40538-2da37c2:91 start @ luci.js?v=git-21.105.40538-2da37c2:87 add @ luci.js?v=git-21.105.40538-2da37c2:82 pollData @ wireless.js?v=git-21.105.40538-2da37c2:7 render @ wireless.js?v=git-21.105.40538-2da37c2:24 Promise.then (async) __init__ @ luci.js?v=git-21.105.40538-2da37c2:148 super @ luci.js?v=git-21.105.40538-2da37c2:22 Anonymous42Class @ luci.js?v=git-21.105.40538-2da37c2:12 (anonymous) @ luci.js?v=git-21.105.40538-2da37c2:181 Promise.then (async) compileClass @ luci.js?v=git-21.105.40538-2da37c2:177 Promise.then (async) require @ luci.js?v=git-21.105.40538-2da37c2:183 instantiateView @ ui.js?v=git-21.105.40538-2da37c2:311 (anonymous) @ wireless:47 Promise.then (async) (anonymous) @ wireless:46 Signed-off-by: Lukasz Baj <l.baj@celerway.com> [adjust subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07treewide: consolidate {IPv4,IPv6,MAC} {address,gateway} spellingsJo-Philipp Wich
- Turn IPv4-Address into IPv4 address - Turn IPv4-Gateway into IPv4 gateway - Turn IPv6-Address into IPv6 address - Turn IPv6-Gateway into IPv6 gateway - Turn MAC-Address into MAC address Also remove related duplicate translation entries. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-12luci-mod-status: fix potential XSS via specially crafted DNS namesJo-Philipp Wich
When an upstream NS returns PTR domain names containing HTML, it is added verbatim to the connection status table. Prevent this issue by HTML escaping any values in the source and destination columns. Fixes: CVE-2021-32019 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-07luci-mod-status: iptables: always make tab pane visibleJo-Philipp Wich
When ip6tables is not present, the tab group was not initialized, causing the iptables status display to be empty with certain themes. Manually mark the pane active in this case to avoid the problem. Fixes: #5040 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-05luci-mod-status: check if center_chan1 is definedWojciech Jowsa
Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
2021-03-17luci-mod-status: fix raw ipt counter buton styleJo-Philipp Wich
Fixes: #4928 Fixes: b39b7fc0d2 ("luci-mod-status: allow displaying raw iptables counter values") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01luci-mod-status: allow displaying raw iptables counter valuesJo-Philipp Wich
Fixes: #4852 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01Revert "luci-mod-status: allow displaying raw iptables counter values"Jo-Philipp Wich
This reverts commit 52caa1dc96ed6fde5c4b84f4f7f2a7429694f69c since it contained unrelated changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01luci-mod-status: allow displaying raw iptables counter valuesJo-Philipp Wich
Fixes: #4852 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-01-26luci-mod-status: use the new ubus dsl metricsAndre Heider
This is significantly faster. Signed-off-by: Andre Heider <a.heider@gmail.com> Tested-by: Martin Schiller <ms@dev.tdt.de>
2021-01-20treewide: removed trailing whitespaces and extra newlines in 'modules'Giovanni Giacobbi
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2021-01-19luci-mod-status,luci-app-statistics: Fix case for 'Bit/s' to 'bit/s'Giovanni Giacobbi
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net> [fix conflict, reword commit title] Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-11luci-mod-status: fix bugs in channel analysisAnsuel Smith
- Add check for missing ht_operation data - Add support for radio that both support 5 and 2.4 band - Hide wireless station that doesn't belong to the graph band Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-01-09luci-mod-status: realtime graph - find suffixed libiwinfo.soHannu Nyman
Change the libiwinfo filename handling to match the current version suffixed .so file. Copy solution from bc121a5a4 Fixes #4721 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-07Merge pull request #4598 from Ansuel/wifi_chanHannu Nyman
luci-mod-status: add new channel analysis page
2020-12-06luci-mod-status: add channel analysis supportAnsuel Smith
Add channel analysis support. This can be very useful as a user can directly use the webui to check wifi channel utilization without using external tool. This use data already provided by iwinfo. Fixes: #4572 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-12-05luci-mod-status: fix WPS button to wrong interfaceAnsuel Smith
Reset the WPS_button variable to correctly add the button to the enabled interface. Fixes: #4625 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-12-04luci-mod-status: use raw dsl values and format them ourselvesAndre Heider
Currently lantiq_dsl.sh performs these formats expensively in a shell script. Use the raw values so the preformatted onces can be removed to cut down the runtime or the script. Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-11-27treewide: transition div tables to actual table markupJo-Philipp Wich
Modern browsers allow decomposing table markup equally well as nested div constructs, therefor migrate our <div> table markup to actual <table> tags but keep the old table/tr/th/td CSS classes for now to allow for a smooth theme transition. Signed-off-by: Jo-Philipp Wich <jo@mein.io>