summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
2020-04-16luci-mod-system: sshkeys.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: password.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: mounts.js: disable umount button in readonly mapJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: flash.js: make readonly on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-system: crontab.js: disable textarea on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-status: assoclist: hide wifi disconnect on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-network: wireless.js: disable action buttons on insufficient ACLsJo-Philipp Wich
Also implement disabled state in custom frequency select widget. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-network: interfaces.js: disable action buttons on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: ui.js: add LuCI.ui.menu.flushCache() functionJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: ui.js: apply disabled attribute to toplevel dynlist nodeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: get rid of global `L` references in internal classesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: ui.js: add LuCI.ui.menu helper classJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: implement JSON endpoint to fetch menu informationJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: ui.js: use session data api to persist tab selection stateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: disable page action buttons on readonly viewsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: add hasViewPermission() helperJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: expose currently dispatched node info to client side JSJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: dispatcher.lua: add support for handling menu ACL annotationsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: fix JSdoc markup issuesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: convert various probe* functions to session data apiJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: add LuCI.session classJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-base: luci.js: share environment object among LuCI base classesJo-Philipp Wich
This allows us to get rid of global `L` references in luci.js itself. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-15luci-compat: add wildcard ACL allowing access to all uci configurationsJo-Philipp Wich
Ref: https://github.com/openwrt/luci/issues/3917 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-15luci-base: network.js: don't fail loading network config on missing wirelessJo-Philipp Wich
Fixes: #3914 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14Translated using Weblate (German)Hosted Weblate
Currently translated at 90.2% (37 of 41 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/de/ Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Translated using Weblate (German) Currently translated at 90.2% (37 of 41 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/de/ Signed-off-by: ce4 <chregger@gmail.com> Translated using Weblate (Ukrainian) Currently translated at 100.0% (1349 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/uk/ Signed-off-by: Yurii Petrashko <yuripet@gmail.com>
2020-04-14Revert "build: luci.mk: gracefully handle missing or unversioned po ↵Jo-Philipp Wich
subdirectories" This reverts commit e6f77d5d72c0e13ed3eb370419abab52c4920a32. Commit contained unrelated changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14build: luci.mk: gracefully handle missing or unversioned po subdirectoriesJo-Philipp Wich
Fixes: #3911 Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: form.js: make map readonly on insufficient uci permissionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: tools/widgets.js: honour map readonly property tooJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: ui.js: use standard indicator framework to display uci changesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: tools/widgets.js: honour readonly propertyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: form.js: implement readonly property for forms and optionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: ui.js: add disabled property to widgetsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: luci.js: use standard indicator framework for poll statusJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-mod-system: convert menu controller to declarative JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-base: uci.js: do not issue malformed uci/delete requestsJo-Philipp Wich
Fixes: #3912 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit ec3a202b69b5bf5785c0785b2ac39efbe5cae2b7)
2020-04-13Translated using Weblate (Romanian)Hosted Weblate
Currently translated at 14.8% (4 of 27 strings) Translation: OpenWrt/LuCI/applications/vnstat2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/ro/ Signed-off-by: Danut Vornicu <ovisadang@yahoo.com> Translated using Weblate (Polish) Currently translated at 88.1% (89 of 101 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/pl/ Signed-off-by: Marcin Net <marcin.net@linux.pl> Translated using Weblate (Romanian) Currently translated at 68.1% (107 of 157 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ro/ Signed-off-by: Danut Vornicu <ovisadang@yahoo.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (157 of 157 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (157 of 157 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Romanian) Currently translated at 90.8% (1226 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ro/ Signed-off-by: Danut Vornicu <ovisadang@yahoo.com>
2020-04-13luci-base: uci.js: fix variable clashJo-Philipp Wich
Don't overwrite the `r` variable which is supposed to refer to the reordered uci sections with temporary data for collecting uci add parameters. Fixes stray uci/get permission errors caused by an attempt to load nonsensical uci package names. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12luci-base: luci.js: add ability to add "preload" classesJo-Philipp Wich
Extend the LuCI bootstrap procedure to scan for class files in /www/luci-static/preload/. Any JavaScript file found there will be required automatically before setting up the view, allowing to stage code that should run on every page load. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12luci-base: luci.js: add LuCI.fspath() helperJo-Philipp Wich
The LuCI.fspath() function allows constructing absolute filesystem paths from path segments relative to the document root. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12Translated using Weblate (Portuguese (Brazil))Hosted Weblate
Currently translated at 100.0% (95 of 95 strings) Translation: OpenWrt/LuCI/applications/vpn-policy-routing Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (41 of 41 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (41 of 41 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (95 of 95 strings) Translation: OpenWrt/LuCI/applications/vpn-policy-routing Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (41 of 41 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (27 of 27 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (27 of 27 strings) Translation: OpenWrt/LuCI/applications/vpnbypass Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (41 of 41 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (101 of 101 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (101 of 101 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (1349 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/ Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (1349 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Translated using Weblate (German) Currently translated at 100.0% (1349 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/ Signed-off-by: Jo <jo@mein.io> Translated using Weblate (German) Currently translated at 99.5% (1343 of 1349 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/ Signed-off-by: Jo <jo@mein.io>
2020-04-11treewide: resync translation templatesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11luci-base: network.js: gracefully handle missing wireless configJo-Philipp Wich
Ref: https://github.com/openwrt/luci/issues/3895 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11luci-mod-network: dhcp.js: allow lease hostname to be emptyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11luci-mod-network: dhcp.js: fix validation logicJo-Philipp Wich
The `server` option allows plain IPs besides the `/domain/addr` format. Fixes: #3870 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11Translated using Weblate (Chinese (Simplified))Hosted Weblate
Currently translated at 100.0% (36 of 36 strings) Translation: OpenWrt/LuCI/applications/sqm Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/zh_Hans/ Signed-off-by: 01230 <4585006@gmail.com> Translated using Weblate (Chinese (Simplified)) Currently translated at 99.4% (176 of 177 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hans/ Signed-off-by: 01230 <4585006@gmail.com> Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (1345 of 1345 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/ Signed-off-by: 01230 <4585006@gmail.com> Translated using Weblate (German) Currently translated at 86.9% (93 of 107 strings) Translation: OpenWrt/LuCI/applications/simple-adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/de/ Signed-off-by: ce4 <chregger@gmail.com> Translated using Weblate (Spanish) Currently translated at 100.0% (1345 of 1345 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2020-04-10luci-mod-system: fix dropbear write ACL ruleJo-Philipp Wich
Fixes: #3872 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10luci-base: uci.js: let internal RPC functions reject on errorsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10luci-base: rpc.js: add ability to reject nonzero ubus statusesJo-Philipp Wich
Add a new declare option `reject` which makes the generated RPC call function reject with an error in case the remote ubus call returned a non-zero status. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10luci-base: uhttpd.lua: expose all CGI variablesJo-Philipp Wich
Fixes: #3873 Signed-off-by: Jo-Philipp Wich <jo@mein.io>