summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-04-16luci-theme-openwrt: rework menu renderingJo-Philipp Wich
Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree in the local session store. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-theme-openwrt-2020: rework menu renderingJo-Philipp Wich
Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree in the local session store. 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-16luci-app-nextdns: add uci ACL rulesJo-Philipp Wich
Ref: https://github.com/openwrt/luci/pull/3921 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-15luci-app-ddns: add uci write permissionJo-Philipp Wich
Fixes: #3919 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-15build: luci.mk: fix compatibility with older Git versionsJo-Philipp Wich
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-15luci-app-samba4: add uci ACL rulesJo-Philipp Wich
Fixes: #3918 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-14Merge pull request #3910 from weblate/weblate-openwrt-luciHannu Nyman
Translations update from Weblate
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-14luci-app-adblock: accept capital letters in DNS filterDirk Brenken
Signed-off-by: Dirk Brenken <dev@brenken.org>
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-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-app-ksmbd: add uci permissionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-app-frps: allow /etc/config/frps, /etc/group and /etc/passwd accessJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-app-statistics: allow /etc/group and /etc/passwd accessJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14build: gracefully handle non-Git source treesJo-Philipp Wich
Fixes: #3911 Fixes: 59fe4086f ("build: luci.mk: drop support for non-Git SCMs") 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-app-firewall: tools/firewall.js: honour readonly propertyJo-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-theme-openwrt-2020: add styles for disabled input elementsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14luci-theme-openwrt-2020: remove xhr_poll_status markupJo-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-13Merge pull request #3904 from weblate/weblate-openwrt-luciHannu Nyman
Translations update from Weblate
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-12Merge pull request #3901 from weblate/weblate-openwrt-luciHannu Nyman
Translations update from Weblate
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-12luci-app-wol: add read access to etherwake UCI configJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12luci-app-ttyd: add ACL rulesJo-Philipp Wich
Ref: https://github.com/openwrt/luci/issues/3902#issuecomment-612551325 Signed-off-by: Jo-Philipp Wich <jo@mein.io>