Commit graph

13556 commits

Author SHA1 Message Date
Jo-Philipp Wich
0705657747 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>
2020-04-14 18:42:59 +02:00
Jo-Philipp Wich
b9dda90716 Revert "build: luci.mk: gracefully handle missing or unversioned po subdirectories"
This reverts commit e6f77d5d72.
Commit contained unrelated changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 18:42:36 +02:00
Jo-Philipp Wich
e6f77d5d72 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>
2020-04-14 18:29:13 +02:00
Jo-Philipp Wich
6c82e2a678 luci-app-ksmbd: add uci permissions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 18:06:43 +02:00
Jo-Philipp Wich
f2731ceaa9 luci-app-frps: allow /etc/config/frps, /etc/group and /etc/passwd access
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:51:09 +02:00
Jo-Philipp Wich
1dad678379 luci-app-statistics: allow /etc/group and /etc/passwd access
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:50:41 +02:00
Jo-Philipp Wich
9d8e99f9be 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>
2020-04-14 17:43:08 +02:00
Jo-Philipp Wich
5c22340f43 luci-base: form.js: make map readonly on insufficient uci permissions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:13:19 +02:00
Jo-Philipp Wich
c89fd0a7f3 luci-base: tools/widgets.js: honour map readonly property too
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:12:47 +02:00
Jo-Philipp Wich
b6e93d54a0 luci-base: ui.js: use standard indicator framework to display uci changes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:10:06 +02:00
Jo-Philipp Wich
952b169167 luci-app-firewall: tools/firewall.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:09:12 +02:00
Jo-Philipp Wich
0f8e5b2536 luci-base: tools/widgets.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:09:12 +02:00
Jo-Philipp Wich
9279448148 luci-base: form.js: implement readonly property for forms and options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:08:36 +02:00
Jo-Philipp Wich
86c797041a luci-base: ui.js: add disabled property to widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:07:34 +02:00
Jo-Philipp Wich
eb8eeb45de luci-theme-openwrt-2020: add styles for disabled input elements
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:06:34 +02:00
Jo-Philipp Wich
d9bd5466a4 luci-theme-openwrt-2020: remove xhr_poll_status markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:06:34 +02:00
Jo-Philipp Wich
68b2ce84ec luci-base: luci.js: use standard indicator framework for poll status
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:06:34 +02:00
Jo-Philipp Wich
ca295b04e7 luci-mod-system: convert menu controller to declarative JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-14 17:05:29 +02:00
Jo-Philipp Wich
6ae1cd8fdb 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)
2020-04-14 17:03:43 +02:00
Hannu Nyman
d0daa2c47b
Merge pull request #3904 from weblate/weblate-openwrt-luci
Translations update from Weblate
2020-04-13 17:14:00 +03:00
Hosted Weblate
ba137d2a77
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>
2020-04-13 16:11:20 +02:00
Jo-Philipp Wich
55cb5a753b 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>
2020-04-13 12:22:13 +02:00
Jo-Philipp Wich
0d0ad80fd1 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>
2020-04-12 23:55:36 +02:00
Jo-Philipp Wich
fde144c9be 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>
2020-04-12 22:51:28 +02:00
Hannu Nyman
e523bfd879
Merge pull request #3901 from weblate/weblate-openwrt-luci
Translations update from Weblate
2020-04-12 16:02:02 +03:00
Hosted Weblate
e4d05d0efc 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>
2020-04-12 11:09:26 +02:00
Jo-Philipp Wich
ef1d5fb0a8 luci-app-wol: add read access to etherwake UCI config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12 11:09:15 +02:00
Jo-Philipp Wich
c35cb317fe 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>
2020-04-12 11:09:15 +02:00
Jo-Philipp Wich
8792a4c3f0 luci-app-upnp: fix uci read ACL
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12 10:59:55 +02:00
Dirk Brenken
94799995aa
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>
2020-04-12 10:00:34 +02:00
Hannu Nyman
2c812fbd58 luci-app-advanced-reboot: fix syntax
Add the missing ")" to lines 45 and 54.
Fixes 75a4a80c1d
Fixes #3903

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-04-12 08:57:38 +03:00
Jo-Philipp Wich
5a33e3d72d treewide: resync translation templates
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11 21:31:00 +02:00
Jo-Philipp Wich
0fa1bce8cf 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>
2020-04-11 21:26:16 +02:00
Jo-Philipp Wich
65d673f467 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>
2020-04-11 21:26:16 +02:00
Dirk Brenken
bfcd962ffd
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>
2020-04-11 20:35:06 +02:00
Jo-Philipp Wich
57f27cf7f8 luci-mod-network: dhcp.js: allow lease hostname to be empty
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11 18:34:54 +02:00
Jo-Philipp Wich
137db1c4d1 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>
2020-04-11 18:27:36 +02:00
Hannu Nyman
f2749c7314
Merge pull request #3896 from stangri/master-luci-app-vpn-policy-routing
luci-app-vpn-policy-routing: improve i18n
2020-04-11 15:40:15 +03:00
Hannu Nyman
feecf701e7
Merge pull request #3898 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: improve i18n
2020-04-11 15:39:21 +03:00
Stan Grishin
9f5dc2366f luci-app-vpn-policy-routing: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-04-11 11:42:11 +00:00
Hannu Nyman
5916ec1fb9
Merge pull request #3875 from ce-4/patch-2
use translatef instead of translate
2020-04-11 14:40:20 +03:00
Stan Grishin
5e32cc9684 luci-app-simple-adblock: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-04-11 11:39:11 +00:00
Christian Egger
be5da383a1
luci-app-simple-adblock: use translatef instead of translate
Signed-off-by: Christian Egger <chregger@gmail.com>
2020-04-11 11:11:20 +02:00
Hannu Nyman
c2f191b898
Merge pull request #3876 from weblate/weblate-openwrt-luci
Translations update from Weblate
2020-04-11 10:55:01 +03:00
Hosted Weblate
195604ce62 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>
2020-04-11 09:51:52 +02:00
Hannu Nyman
dcbc0cc8c0
Merge pull request #3877 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: improve localization by moving from translate to translatef
2020-04-11 10:50:45 +03:00
Hannu Nyman
fc05327211
Merge pull request #3889 from stangri/master-luci-app-https-dns-proxy
luci-app-https-dns-proxy: improve i18n
2020-04-11 10:49:27 +03:00
Stan Grishin
407b6e55d0 luci-app-https-dns-proxy: improve i18n
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-04-11 02:30:03 +00:00
Stan Grishin
75a4a80c1d luci-app-advanced-reboot: improve localization by moving from translate to translatef
Signed-off-by: Stan Grishin <stangri@melmac.net>
2020-04-11 01:11:26 +00:00
DENG Qingfang
b7ac596937 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>
2020-04-11 08:02:32 +08:00