Jo-Philipp Wich [Thu, 16 Apr 2020 13:38:56 +0000 (15:38 +0200)]
luci-mod-system: startup.js: disable action buttons on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:38:09 +0000 (15:38 +0200)]
luci-mod-system: sshkeys.js: make readonly on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:36:39 +0000 (15:36 +0200)]
luci-mod-system: password.js: make readonly on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:35:51 +0000 (15:35 +0200)]
luci-mod-system: mounts.js: disable umount button in readonly map
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:35:13 +0000 (15:35 +0200)]
luci-mod-system: flash.js: make readonly on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:33:02 +0000 (15:33 +0200)]
luci-mod-system: crontab.js: disable textarea on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:32:06 +0000 (15:32 +0200)]
luci-mod-status: assoclist: hide wifi disconnect on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:30:44 +0000 (15:30 +0200)]
luci-app-opkg: disable action buttons on insufficient ACLs
Also flush menu cache after opkg actions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:28:21 +0000 (15:28 +0200)]
luci-mod-network: wireless.js: disable action buttons on insufficient ACLs
Also implement disabled state in custom frequency select widget.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:21:03 +0000 (15:21 +0200)]
luci-mod-network: interfaces.js: disable action buttons on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 13:13:26 +0000 (15:13 +0200)]
luci-base: ui.js: add LuCI.ui.menu.flushCache() function
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 11:26:27 +0000 (13:26 +0200)]
docs: update js api docs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 11:19:56 +0000 (13:19 +0200)]
luci-theme-openwrt-2020: disabled widget style tweaks
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 11:19:35 +0000 (13:19 +0200)]
luci-base: ui.js: apply disabled attribute to toplevel dynlist node
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 11:17:57 +0000 (13:17 +0200)]
luci-base: luci.js: get rid of global `L` references in internal classes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:46:25 +0000 (22:46 +0200)]
luci-theme-bootstrap: rework menu rendering
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>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:43:05 +0000 (22:43 +0200)]
luci-theme-openwrt: rework menu rendering
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>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:35:38 +0000 (22:35 +0200)]
luci-theme-openwrt-2020: rework menu rendering
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>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:30:00 +0000 (22:30 +0200)]
luci-base: ui.js: add LuCI.ui.menu helper class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:25:48 +0000 (22:25 +0200)]
luci-base: implement JSON endpoint to fetch menu information
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:18:13 +0000 (22:18 +0200)]
luci-base: ui.js: use session data api to persist tab selection state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:15:28 +0000 (22:15 +0200)]
luci-base: luci.js: disable page action buttons on readonly views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:14:44 +0000 (22:14 +0200)]
luci-base: luci.js: add hasViewPermission() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:13:33 +0000 (22:13 +0200)]
luci-base: expose currently dispatched node info to client side JS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:12:39 +0000 (22:12 +0200)]
luci-base: dispatcher.lua: add support for handling menu ACL annotations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:03:20 +0000 (22:03 +0200)]
luci-base: luci.js: fix JSdoc markup issues
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 20:01:55 +0000 (22:01 +0200)]
luci-base: luci.js: convert various probe* functions to session data api
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 19:50:26 +0000 (21:50 +0200)]
luci-base: luci.js: add LuCI.session class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 08:46:45 +0000 (10:46 +0200)]
luci-base: luci.js: share environment object among LuCI base classes
This allows us to get rid of global `L` references in luci.js itself.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 16 Apr 2020 08:17:47 +0000 (10:17 +0200)]
luci-app-nextdns: add uci ACL rules
Ref: https://github.com/openwrt/luci/pull/3921
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 15:55:00 +0000 (17:55 +0200)]
luci-app-ddns: add uci write permission
Fixes: #3919
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 12:57:20 +0000 (14:57 +0200)]
luci-compat: add wildcard ACL allowing access to all uci configurations
Ref: https://github.com/openwrt/luci/issues/3917
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 10:24:15 +0000 (12:24 +0200)]
build: luci.mk: fix compatibility with older Git versions
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 09:48:11 +0000 (11:48 +0200)]
luci-app-samba4: add uci ACL rules
Fixes: #3918
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 15 Apr 2020 07:27:10 +0000 (09:27 +0200)]
luci-base: network.js: don't fail loading network config on missing wireless
Fixes: #3914
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Tue, 14 Apr 2020 19:47:09 +0000 (22:47 +0300)]
Merge pull request #3910 from weblate/weblate-openwrt-luci
Translations update from Weblate
Hosted Weblate [Tue, 14 Apr 2020 14:40:27 +0000 (16:40 +0200)]
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: 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>
Dirk Brenken [Tue, 14 Apr 2020 17:44:58 +0000 (19:44 +0200)]
luci-app-adblock: accept capital letters in DNS filter
Signed-off-by: Dirk Brenken <dev@brenken.org>
Jo-Philipp Wich [Tue, 14 Apr 2020 16:42:59 +0000 (18:42 +0200)]
build: luci.mk: gracefully handle missing or unversioned po subdirectories
Fixes: #3911
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 16:42:33 +0000 (18:42 +0200)]
Revert "build: luci.mk: gracefully handle missing or unversioned po subdirectories"
This reverts commit
e6f77d5d72c0e13ed3eb370419abab52c4920a32.
Commit contained unrelated changes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 16:27:45 +0000 (18:27 +0200)]
build: luci.mk: gracefully handle missing or unversioned po subdirectories
Fixes: #3911
Fixes: 9d8e99f9b build: gracefully handle non-Git source trees
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 16:06:43 +0000 (18:06 +0200)]
luci-app-ksmbd: add uci permissions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 15:51:09 +0000 (17:51 +0200)]
luci-app-frps: allow /etc/config/frps, /etc/group and /etc/passwd access
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 15:50:41 +0000 (17:50 +0200)]
luci-app-statistics: allow /etc/group and /etc/passwd access
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 15:43:08 +0000 (17:43 +0200)]
build: gracefully handle non-Git source trees
Fixes: #3911
Fixes: 59fe4086f ("build: luci.mk: drop support for non-Git SCMs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 15:48:06 +0000 (17:48 +0200)]
luci-base: form.js: make map readonly on insufficient uci permissions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 15:12:47 +0000 (17:12 +0200)]
luci-base: tools/widgets.js: honour map readonly property too
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 10:31:54 +0000 (12:31 +0200)]
luci-base: ui.js: use standard indicator framework to display uci changes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 15:36:16 +0000 (17:36 +0200)]
luci-app-firewall: tools/firewall.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 14:55:49 +0000 (16:55 +0200)]
luci-base: tools/widgets.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 14:53:10 +0000 (16:53 +0200)]
luci-base: form.js: implement readonly property for forms and options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 14:11:35 +0000 (16:11 +0200)]
luci-base: ui.js: add disabled property to widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 14:04:41 +0000 (16:04 +0200)]
luci-theme-openwrt-2020: add styles for disabled input elements
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 10:42:17 +0000 (12:42 +0200)]
luci-theme-openwrt-2020: remove xhr_poll_status markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 10:41:26 +0000 (12:41 +0200)]
luci-base: luci.js: use standard indicator framework for poll status
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 13 Apr 2020 16:42:32 +0000 (18:42 +0200)]
luci-mod-system: convert menu controller to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 14 Apr 2020 15:02:42 +0000 (17:02 +0200)]
luci-base: uci.js: do not issue malformed uci/delete requests
Fixes: #3912
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
ec3a202b69b5bf5785c0785b2ac39efbe5cae2b7)
Hannu Nyman [Mon, 13 Apr 2020 14:14:00 +0000 (17:14 +0300)]
Merge pull request #3904 from weblate/weblate-openwrt-luci
Translations update from Weblate
Hosted Weblate [Mon, 13 Apr 2020 14:11:20 +0000 (16:11 +0200)]
Translated using Weblate (Romanian)
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>
Jo-Philipp Wich [Mon, 13 Apr 2020 10:22:13 +0000 (12:22 +0200)]
luci-base: uci.js: fix variable clash
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>
Jo-Philipp Wich [Sun, 12 Apr 2020 20:54:02 +0000 (22:54 +0200)]
luci-base: luci.js: add ability to add "preload" classes
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>
Jo-Philipp Wich [Sun, 12 Apr 2020 20:27:16 +0000 (22:27 +0200)]
luci-base: luci.js: add LuCI.fspath() helper
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>
Hannu Nyman [Sun, 12 Apr 2020 13:02:02 +0000 (16:02 +0300)]
Merge pull request #3901 from weblate/weblate-openwrt-luci
Translations update from Weblate
Hosted Weblate [Sun, 12 Apr 2020 06:00:39 +0000 (08:00 +0200)]
Translated using Weblate (Portuguese (Brazil))
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>
Jo-Philipp Wich [Sun, 12 Apr 2020 09:07:38 +0000 (11:07 +0200)]
luci-app-wol: add read access to etherwake UCI config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 12 Apr 2020 09:05:18 +0000 (11:05 +0200)]
luci-app-ttyd: add ACL rules
Ref: https://github.com/openwrt/luci/issues/3902#issuecomment-
612551325
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 12 Apr 2020 08:59:41 +0000 (10:59 +0200)]
luci-app-upnp: fix uci read ACL
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Dirk Brenken [Sun, 12 Apr 2020 08:00:34 +0000 (10:00 +0200)]
luci-app-adblock: more DNS Report tweaks
* revert last page loading change,
this breaks the filter functionality on that page
* Add a short paragraph to explain the page functionality
* Fix search to accept ":" character as well
(e.g. for IPv6 address search)
Signed-off-by: Dirk Brenken <dev@brenken.org>
Hannu Nyman [Sun, 12 Apr 2020 05:57:38 +0000 (08:57 +0300)]
luci-app-advanced-reboot: fix syntax
Add the missing ")" to lines 45 and 54.
Fixes
75a4a80c1dd
Fixes #3903
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Jo-Philipp Wich [Sat, 11 Apr 2020 19:31:00 +0000 (21:31 +0200)]
treewide: resync translation templates
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 11 Apr 2020 19:25:19 +0000 (21:25 +0200)]
build: luci.mk: honour PKG_VERSION if set
Also pass correct variable to builds to ensure that version.lua and cache
buster strings are properly interpolated.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 11 Apr 2020 19:24:21 +0000 (21:24 +0200)]
luci-base: network.js: gracefully handle missing wireless config
Ref: https://github.com/openwrt/luci/issues/3895
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Dirk Brenken [Sat, 11 Apr 2020 18:35:06 +0000 (20:35 +0200)]
luci-app-adblock: refresh report data on page load
* refresh report data on page load (without hitting
the refresh button explicity)
Signed-off-by: Dirk Brenken <dev@brenken.org>
Jo-Philipp Wich [Sat, 11 Apr 2020 16:34:54 +0000 (18:34 +0200)]
luci-mod-network: dhcp.js: allow lease hostname to be empty
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 11 Apr 2020 16:19:59 +0000 (18:19 +0200)]
luci-mod-network: dhcp.js: fix validation logic
The `server` option allows plain IPs besides the `/domain/addr` format.
Fixes: #3870
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sat, 11 Apr 2020 12:40:15 +0000 (15:40 +0300)]
Merge pull request #3896 from stangri/master-luci-app-vpn-policy-routing
luci-app-vpn-policy-routing: improve i18n
Hannu Nyman [Sat, 11 Apr 2020 12:39:21 +0000 (15:39 +0300)]
Merge pull request #3898 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: improve i18n
Stan Grishin [Sat, 11 Apr 2020 11:42:11 +0000 (11:42 +0000)]
luci-app-vpn-policy-routing: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Hannu Nyman [Sat, 11 Apr 2020 11:40:20 +0000 (14:40 +0300)]
Merge pull request #3875 from ce-4/patch-2
use translatef instead of translate
Stan Grishin [Sat, 11 Apr 2020 11:39:11 +0000 (11:39 +0000)]
luci-app-simple-adblock: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Christian Egger [Fri, 10 Apr 2020 21:22:35 +0000 (23:22 +0200)]
luci-app-simple-adblock: use translatef instead of translate
Signed-off-by: Christian Egger <chregger@gmail.com>
Hannu Nyman [Sat, 11 Apr 2020 07:55:01 +0000 (10:55 +0300)]
Merge pull request #3876 from weblate/weblate-openwrt-luci
Translations update from Weblate
Hosted Weblate [Sat, 11 Apr 2020 07:51:46 +0000 (09:51 +0200)]
Translated using Weblate (Chinese (Simplified))
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>
Hannu Nyman [Sat, 11 Apr 2020 07:50:45 +0000 (10:50 +0300)]
Merge pull request #3877 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: improve localization by moving from translate to translatef
Hannu Nyman [Sat, 11 Apr 2020 07:49:27 +0000 (10:49 +0300)]
Merge pull request #3889 from stangri/master-luci-app-https-dns-proxy
luci-app-https-dns-proxy: improve i18n
Stan Grishin [Sat, 11 Apr 2020 02:30:03 +0000 (02:30 +0000)]
luci-app-https-dns-proxy: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
Stan Grishin [Sat, 11 Apr 2020 01:11:26 +0000 (01:11 +0000)]
luci-app-advanced-reboot: improve localization by moving from translate to translatef
Signed-off-by: Stan Grishin <stangri@melmac.net>
DENG Qingfang [Fri, 10 Apr 2020 09:48:31 +0000 (17:48 +0800)]
luci.mk: correct titles of zh_Hans and zh_Hant
zh_Hans: 简体中文 (Chinese Simplified)
zh_Hant: 繁體中文 (Chinese Traditional)
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Jo-Philipp Wich [Fri, 10 Apr 2020 21:21:35 +0000 (23:21 +0200)]
treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 10 Apr 2020 20:55:06 +0000 (22:55 +0200)]
luci-app-adblock: grant uci access in read ACL rule
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 10 Apr 2020 20:53:31 +0000 (22:53 +0200)]
luci-mod-system: fix dropbear write ACL rule
Fixes: #3872
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 10 Apr 2020 20:52:52 +0000 (22:52 +0200)]
luci-base: uci.js: let internal RPC functions reject on errors
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 10 Apr 2020 20:50:41 +0000 (22:50 +0200)]
luci-base: rpc.js: add ability to reject nonzero ubus statuses
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>
Jo-Philipp Wich [Fri, 10 Apr 2020 19:03:19 +0000 (21:03 +0200)]
luci-base: uhttpd.lua: expose all CGI variables
Fixes: #3873
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 10 Apr 2020 18:38:58 +0000 (20:38 +0200)]
luci-base: form.js: improve save error handling
Fixes: #3552
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Fri, 10 Apr 2020 09:59:05 +0000 (12:59 +0300)]
Merge pull request #3868 from PolynomialDivision/feature/luci-update
luci-app-dawn: fix typos and dependencies
Polynomialdivision [Fri, 10 Apr 2020 08:39:49 +0000 (10:39 +0200)]
luci-app-dawn: add dependencies
Missing:
- luci-compat
- luci-lib-json
Fixes #3836
Signed-off-by: Nick Hainke <vincent@systemli.org>
Polynomialdivision [Fri, 10 Apr 2020 08:38:27 +0000 (10:38 +0200)]
luci-app-dawn: fix typos
Signed-off-by: Nick Hainke <vincent@systemli.org>
Hannu Nyman [Fri, 10 Apr 2020 06:03:09 +0000 (09:03 +0300)]
Merge pull request #3865 from weblate/weblate-openwrt-luci
Translations update from Weblate
Hosted Weblate [Fri, 10 Apr 2020 06:01:55 +0000 (08:01 +0200)]
Translated using Weblate (Polish)
Currently translated at 13.8% (5 of 36 strings)
Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 5.5% (2 of 36 strings)
Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (98 of 98 strings)
Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 41.8% (41 of 98 strings)
Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (40 of 40 strings)
Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 100.0% (40 of 40 strings)
Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (23 of 23 strings)
Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (French)
Currently translated at 31.3% (37 of 118 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/fr/
Signed-off-by: Claude Villermain <cvi@villermain.net>
Translated using Weblate (Polish)
Currently translated at 100.0% (107 of 107 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 (German)
Currently translated at 87.8% (94 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 (Polish)
Currently translated at 100.0% (23 of 23 strings)
Translation: OpenWrt/LuCI/applications/lxc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 100.0% (23 of 23 strings)
Translation: OpenWrt/LuCI/applications/lxc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (156 of 156 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 100.0% (23 of 23 strings)
Translation: OpenWrt/LuCI/applications/vpnbypass
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpnbypass/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (German)
Currently translated at 100.0% (158 of 158 strings)
Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (German)
Currently translated at 99.4% (176 of 177 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/de/
Signed-off-by: ce4 <chregger@gmail.com>
Translated using Weblate (French)
Currently translated at 100.0% (58 of 58 strings)
Translation: OpenWrt/LuCI/applications/uhttpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/fr/
Translated using Weblate (French)
Currently translated at 46.4% (52 of 112 strings)
Translation: OpenWrt/LuCI/applications/radicale2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/fr/
Translated using Weblate (French)
Currently translated at 100.0% (304 of 304 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/fr/
Translated using Weblate (German)
Currently translated at 100.0% (81 of 81 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/de/
Translated using Weblate (Russian)
Currently translated at 100.0% (1345 of 1345 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Translated using Weblate (Polish)
Currently translated at 100.0% (1345 of 1345 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translated using Weblate (French)
Currently translated at 100.0% (1345 of 1345 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/fr/
Signed-off-by: Claude Villermain <cvi@villermain.net>
Translated using Weblate (German)
Currently translated at 99.3% (1336 of 1345 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/
Signed-off-by: ce4 <chregger@gmail.com>