Commit graph

15910 commits

Author SHA1 Message Date
Jo-Philipp Wich
9118452313 luci-lib-base: ensure that luci.http can be required standalone
Various existing Lua software is requiring the `luci.http` library for
URL encoding/decoding tasks so ensure that it can be loaded in a stand
alone manner even if the emulated Lua runtime environment is not
available.

Fixes: cea2c3578e ("luci-lib-base: forward luci.http.context.request.message to ucode")
Ref: https://forum.openwrt.org/t/x/141817
Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1296220586
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-04 16:10:12 +01:00
Florian Eckert
a145e489fd treewide: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-11-04 14:04:17 +01:00
Florian Eckert
25b0e2f537
Merge pull request #6069 from weblate/weblate-openwrt-luci
Translations update from Hosted Weblate
2022-11-04 14:02:59 +01:00
Hosted Weblate
6758b01043
Translated using Weblate (Dutch)
Currently translated at 6.9% (13 of 186 strings)

Translation: OpenWrt/LuCI/applications/unbound
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/nl/

Translated using Weblate (Dutch)

Currently translated at 6.5% (11 of 168 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/nl/

Translated using Weblate (Dutch)

Currently translated at 2.3% (5 of 212 strings)

Translated using Weblate (Dutch)

Currently translated at 20.8% (10 of 48 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (3 of 3 strings)

Translated using Weblate (Dutch)

Currently translated at 12.8% (44 of 343 strings)

Translated using Weblate (Dutch)

Currently translated at 8.2% (171 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/nl/

Translated using Weblate (Greek)

Currently translated at 25.9% (55 of 212 strings)

Translated using Weblate (Greek)

Currently translated at 30.4% (631 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/

Translated using Weblate (German)

Currently translated at 97.2% (107 of 110 strings)

Translation: OpenWrt/LuCI/applications/smartdns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssmartdns/de/

Translated using Weblate (German)

Currently translated at 100.0% (66 of 66 strings)

Translation: OpenWrt/LuCI/applications/frps
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrps/de/

Translated using Weblate (German)

Currently translated at 100.0% (89 of 89 strings)

Translation: OpenWrt/LuCI/applications/frpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/de/

Translated using Weblate (German)

Currently translated at 100.0% (170 of 170 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/de/

Translated using Weblate (German)

Currently translated at 97.1% (2015 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: TakissX <pxatzidakis@gmail.com>
Co-authored-by: fodiator <weblate@fodiator.com>
Co-authored-by: tdt-hv <hvoit@tdt.de>
Signed-off-by: TakissX <pxatzidakis@gmail.com>
Signed-off-by: fodiator <weblate@fodiator.com>
Signed-off-by: tdt-hv <hvoit@tdt.de>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/el/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/nl/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/nl/
Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-battstatus/nl/
Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-dashboard/nl/
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/statistics
Translation: OpenWrt/LuCI/modules/luci-mod-battstatus
Translation: OpenWrt/LuCI/modules/luci-mod-dashboard
2022-11-04 13:54:43 +01:00
Florian Eckert
977c9ac6c6 luci-mod-dsl: add i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-11-04 13:53:46 +01:00
turboproc
cd48d766ad luci-mod-dsl: initial commit
Signed-off-by: Roland Barenbrug <roland@treslong.com>
[replace spcaes with tabs]
[remove not used dsl_cpe_pipe.sh from acl]
[cleanup file naming]
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-11-04 11:25:05 +01:00
Jo-Philipp Wich
0dd0114a9d luci-base: fix empty reply format in ubus gateway fallback code
The ubus gateway fallback code incorrectly formatted ubus replies
containing no payload data when forwarding them via HTTP, leading
to `TypeError: Unexpected reply data format` errors in at least
the `luci.fs` class when receiving replies without payload.

Fix this issue by ensuring that the result array never contains
a `null` value for the payload, send an one-element array containing
just the status code in this case instead.

Fixes: #6074
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-03 11:27:52 +01:00
Jo-Philipp Wich
4b1a074c95 luci-base: dispatcher.uc: only flush HTTP headers after rendering output
Ensure to first completely render the action function before flushing HTTP
headers since the invoked action logic might modify the HTTP headers itself.

Fixes: e7afd0d327 ("luci-base: fix luci.http.close()")
Ref: e7afd0d327 (commitcomment-88736854)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-03 11:17:55 +01:00
Florian Eckert
86523709ef
Merge pull request #6072 from TDT-AG/pr/20221103-ovpn-compress
luci-app-openvpn: add possibility to set param "compress" without algorithm
2022-11-03 10:52:25 +01:00
Martin Schiller
f8efd2c347 luci-app-openvpn: add possibility to set param "compress" without algorithm
In some situations you need to set the compress param without an
algorithm. Compression will be turned off, but the packet framing for
compression will still be enabled, allowing a different setting to be
pushed later.

As it is not possible to have options with optional values at the
moment, I've introduced a pseudo value "frames_only" which will be
removed in the init script.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2022-11-03 09:47:22 +01:00
Jo-Philipp Wich
e7afd0d327 luci-base: fix luci.http.close()
Ensure that `http.write()` or template rendering operations after a call
to `http.close()` do not produce additional output. This is required for
certain legacy Lua apps which invoke write and close operations in the
middle of a server side cbi rendering process.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-03 00:38:00 +01:00
Stan Grishin
f83e4a6c36
Merge pull request #6066 from autoexpect/add_doh
luci-app-https-dns-proxy: add cn.edu.tsinghua.tuna.dns.lua provider
2022-11-02 15:11:27 -07:00
Florian Eckert
9ea26a75ed
Merge pull request #6064 from weblate/weblate-openwrt-luci
Translations update from Hosted Weblate
2022-11-02 14:17:24 +01:00
Hosted Weblate
e66df28e77
Translated using Weblate (Persian)
Currently translated at 100.0% (37 of 37 strings)

Translated using Weblate (Persian)

Currently translated at 4.8% (4 of 82 strings)

Translated using Weblate (Persian)

Currently translated at 100.0% (28 of 28 strings)

Translation: OpenWrt/LuCI/applications/acl
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/fa/

Translated using Weblate (Persian)

Currently translated at 91.8% (45 of 49 strings)

Translation: OpenWrt/LuCI/applications/bmx7
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbmx7/fa/

Translated using Weblate (German)

Currently translated at 97.2% (107 of 110 strings)

Translation: OpenWrt/LuCI/applications/smartdns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssmartdns/de/

Translated using Weblate (Greek)

Currently translated at 14.7% (5 of 34 strings)

Translation: OpenWrt/LuCI/applications/wifischedule
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswifischedule/el/

Translated using Weblate (Greek)

Currently translated at 12.0% (3 of 25 strings)

Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/el/

Translated using Weblate (Greek)

Currently translated at 25.4% (54 of 212 strings)

Translated using Weblate (Greek)

Currently translated at 30.3% (630 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/

Translated using Weblate (German)

Currently translated at 58.1% (64 of 110 strings)

Translation: OpenWrt/LuCI/applications/smartdns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssmartdns/de/

Translated using Weblate (Portuguese)

Currently translated at 100.0% (89 of 89 strings)

Translation: OpenWrt/LuCI/applications/frpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/pt/

Translated using Weblate (German)

Currently translated at 93.6% (88 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/de/

Translated using Weblate (Portuguese)

Currently translated at 95.7% (112 of 117 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/pt/

Translated using Weblate (German)

Currently translated at 41.0% (48 of 117 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/de/

Translated using Weblate (Portuguese)

Currently translated at 100.0% (191 of 191 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/pt/

Translated using Weblate (Portuguese)

Currently translated at 99.4% (196 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pt/

Translated using Weblate (Portuguese)

Currently translated at 100.0% (36 of 36 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (82 of 82 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (39 of 39 strings)

Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (116 of 116 strings)

Translation: OpenWrt/LuCI/applications/radicale
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pl/

Translated using Weblate (Greek)

Currently translated at 30.3% (629 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/

Translated using Weblate (Slovak)

Currently translated at 14.8% (14 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/sk/

Translated using Weblate (Slovak)

Currently translated at 3.4% (4 of 117 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/sk/

Translated using Weblate (Slovak)

Currently translated at 8.1% (9 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/sk/

Translated using Weblate (Slovak)

Currently translated at 12.9% (22 of 170 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/sk/

Translated using Weblate (Slovak)

Currently translated at 83.3% (20 of 24 strings)

Translation: OpenWrt/LuCI/applications/lxc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/sk/

Translated using Weblate (Slovak)

Currently translated at 16.0% (4 of 25 strings)

Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/sk/

Translated using Weblate (Slovak)

Currently translated at 25.5% (43 of 168 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/sk/

Translated using Weblate (Slovak)

Currently translated at 62.7% (133 of 212 strings)

Translated using Weblate (Slovak)

Currently translated at 78.7% (26 of 33 strings)

Translated using Weblate (Slovak)

Currently translated at 45.4% (5 of 11 strings)

Translated using Weblate (Slovak)

Currently translated at 62.1% (23 of 37 strings)

Translated using Weblate (Slovak)

Currently translated at 36.3% (755 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/sk/

Translated using Weblate (Slovak)

Currently translated at 4.2% (9 of 211 strings)

Translation: OpenWrt/LuCI/applications/dockerman
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/sk/

Translated using Weblate (Slovak)

Currently translated at 13.6% (6 of 44 strings)

Translation: OpenWrt/LuCI/applications/ser2net
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/sk/

Translated using Weblate (Slovak)

Currently translated at 76.0% (19 of 25 strings)

Translation: OpenWrt/LuCI/applications/ksmbd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsksmbd/sk/

Translated using Weblate (Slovak)

Currently translated at 14.8% (14 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/sk/

Translated using Weblate (Slovak)

Currently translated at 19.2% (10 of 52 strings)

Translation: OpenWrt/LuCI/applications/ttyd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/sk/

Translated using Weblate (Portuguese)

Currently translated at 99.4% (190 of 191 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/pt/

Translated using Weblate (Slovak)

Currently translated at 8.1% (9 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/sk/

Translated using Weblate (German)

Currently translated at 100.0% (110 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/de/

Translated using Weblate (Slovak)

Currently translated at 10.3% (12 of 116 strings)

Translation: OpenWrt/LuCI/applications/radicale
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/sk/

Translated using Weblate (Slovak)

Currently translated at 4.8% (6 of 125 strings)

Translation: OpenWrt/LuCI/applications/privoxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsprivoxy/sk/

Translated using Weblate (Slovak)

Currently translated at 19.3% (12 of 62 strings)

Translation: OpenWrt/LuCI/applications/ocserv
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/sk/

Translated using Weblate (Slovak)

Currently translated at 11.7% (20 of 170 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/sk/

Translated using Weblate (Slovak)

Currently translated at 12.5% (6 of 48 strings)

Translation: OpenWrt/LuCI/applications/mjpg-streamer
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/sk/

Translated using Weblate (Slovak)

Currently translated at 70.8% (17 of 24 strings)

Translation: OpenWrt/LuCI/applications/lxc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationslxc/sk/

Translated using Weblate (Slovak)

Currently translated at 21.3% (42 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/sk/

Translated using Weblate (Slovak)

Currently translated at 24.4% (41 of 168 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/sk/

Translated using Weblate (Slovak)

Currently translated at 11.5% (13 of 113 strings)

Translated using Weblate (Slovak)

Currently translated at 6.7% (9 of 133 strings)

Translated using Weblate (Slovak)

Currently translated at 54.9% (56 of 102 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Portuguese)

Currently translated at 91.6% (33 of 36 strings)

Translated using Weblate (German)

Currently translated at 97.2% (35 of 36 strings)

Translated using Weblate (German)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (German)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Slovak)

Currently translated at 43.2% (16 of 37 strings)

Translated using Weblate (Slovak)

Currently translated at 36.3% (755 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/sk/

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: MaycoH <hudec.marian@hotmail.com>
Co-authored-by: Rose <darkrose@privatemail.com>
Co-authored-by: TakissX <pxatzidakis@gmail.com>
Co-authored-by: ssantos <ssantos@web.de>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: MaycoH <hudec.marian@hotmail.com>
Signed-off-by: Rose <darkrose@privatemail.com>
Signed-off-by: TakissX <pxatzidakis@gmail.com>
Signed-off-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/de/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/pt/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/el/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/de/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/pt/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/fa/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/pt/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/fa/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/sk/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/de/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/pt/
Translation: OpenWrt/LuCI/applications/commands
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/nut
Translation: OpenWrt/LuCI/applications/openvpn
Translation: OpenWrt/LuCI/applications/opkg
Translation: OpenWrt/LuCI/applications/p910nd
Translation: OpenWrt/LuCI/applications/radicale2
Translation: OpenWrt/LuCI/applications/samba4
Translation: OpenWrt/LuCI/applications/transmission
Translation: OpenWrt/LuCI/applications/watchcat
2022-11-02 10:21:45 +01:00
Jo-Philipp Wich
815028ef93 luci-base: runtime.uc: avoid Lua not installed exeption from trycompile()
Make sure to request loading the Lua bridge as optional when initializing
the Lua VM context from trycompile() in order to not raise a fatal exception
in case the Lua runtime support is not present.

Ref: https://forum.openwrt.org/t/x/141426
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-02 10:21:05 +01:00
Jo-Philipp Wich
c99602e4ac luci-base: dispatcher.uc: apply ACLs to menu tree JSON
Add menu tree annotations for node readonly and dependency satisfied state
in order to ensure that unreachable menu nodes are hidden from view.

Fixes: ded8ccf93e ("luci-base-ucode: add initial ucode based LuCI runtime")
Ref: https://forum.openwrt.org/t/x/141426/10
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-02 10:13:41 +01:00
Jo-Philipp Wich
d967bbaa92 luci-base: http.uc: fix invoking Lua file upload callbacks
In case a callback is installed from Lua code, the received callback
argument is not a callable function but a resource object with a call
method. Attempts to call it will leading to a `Type error: left-hand
side is not a function` error.

To solve this issue, invoke the internally set filehandler instead
which wraps the resource if needed.

Fixes: #6067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-02 09:08:16 +01:00
Zhang Rui
37a836c0c0 luci-app-https-dns-proxy: add cn.edu.tsinghua.tuna.dns.lua provider
Signed-off-by: Zhang Rui <rui.crater@gmail.com>
2022-11-02 15:24:31 +08:00
Hannu Nyman
da41c11971 timezone data: update to 2022f
Update timezone data to 2022f.
* http://mm.icann.org/pipermail/tz-announce/2022-October/000075.html

 -   Mexico will no longer observe DST after 2022, except for areas
     near the US border that continue to observe US DST rules.
     On 2022-10-30 at 02:00 the Mexican state of Chihuahua moves
     from -07 (-06 with DST) to year-round -06.
 -   Fiji will not observe DST in 2022/3.
     For now, assume DST is suspended indefinitely.
 -   Simplify four Ontario zones.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-10-31 20:04:10 +02:00
Hosted Weblate
53a541bbe8 Translated using Weblate (Danish)
Currently translated at 100.0% (110 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/da/

Translated using Weblate (Danish)

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/da/

Translated using Weblate (Danish)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Danish)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Korean)

Currently translated at 33.2% (689 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ko/

Translated using Weblate (Japanese)

Currently translated at 79.9% (1658 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ja/

Translated using Weblate (German)

Currently translated at 90.0% (172 of 191 strings)

Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/de/

Translated using Weblate (Polish)

Currently translated at 100.0% (110 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/pl/

Translated using Weblate (Turkish)

Currently translated at 100.0% (110 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/tr/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hans/

Translated using Weblate (Turkish)

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/tr/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pt_BR/

Translated using Weblate (Polish)

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pl/

Translated using Weblate (German)

Currently translated at 100.0% (197 of 197 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/de/

Translated using Weblate (Chinese (Simplified))

Currently translated at 99.0% (109 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/zh_Hans/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (110 of 110 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/pt_BR/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (192 of 192 strings)

Translated using Weblate (Spanish)

Currently translated at 99.4% (191 of 192 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (33 of 33 strings)

Translated using Weblate (Spanish)

Currently translated at 96.9% (32 of 33 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/tr/

Translated using Weblate (German)

Currently translated at 97.0% (2013 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/

Co-authored-by: Eric <hamburger1024@mailbox.org>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: drax red <drax@outlook.dk>
Co-authored-by: orangepizza <abnoeh@mail.com>
Co-authored-by: sergio <sergio+it@outerface.net>
Co-authored-by: ssantos <ssantos@web.de>
Co-authored-by: tdt-hv <hvoit@tdt.de>
Signed-off-by: Eric <hamburger1024@mailbox.org>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: Oğuz Ersen <oguz@ersen.moe>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Signed-off-by: drax red <drax@outlook.dk>
Signed-off-by: orangepizza <abnoeh@mail.com>
Signed-off-by: ssantos <ssantos@web.de>
Signed-off-by: tdt-hv <hvoit@tdt.de>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/da/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/es/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/pl/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/tr/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/da/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/es/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/pl/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/tr/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/zh_Hans/
Translation: OpenWrt/LuCI/applications/commands
Translation: OpenWrt/LuCI/applications/openvpn
2022-10-30 00:02:39 +03:00
Florian Eckert
a07129b191
Merge pull request #5965 from jempatel/luci-app-keepalived
luci-app-keepalived: Add LuCI for keepalived
2022-10-28 12:57:14 +02:00
Florian Eckert
1d157d3a50
Merge pull request #6047 from systemcrash/luci-mod-network-relay
luci-mod-network: 'relay' tab added
2022-10-28 11:02:47 +02:00
Paul Dee
a627744bb5 luci-mod-network: 'relay' tab added
Adds LuCI GUI for dnsmasq DHCP 'relays'.

The helper functions in dnsmasq/files/dnsmasq.init limit behaviour
whereby it is not possible to omit server_addr, where to omit
it (dnsmasq supported) would result in a broad- or multicast further on.

Tested on 22.03.2

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2022-10-28 01:38:07 +02:00
Jo-Philipp Wich
9af8486517 luci-mod-network: gracefully handle empty channel lists
Avoid undefined value access when the channel list is empty.

Fixes: #5937, #5951
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 16:10:47 +02:00
Florian Eckert
4d6a238098 luci-app-nextdns: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:06:38 +02:00
Florian Eckert
05f87f37e6 luci-app-xfrpc: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:06:23 +02:00
Florian Eckert
d6136da91f luci-app-https-dns-proxy: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:06:09 +02:00
Florian Eckert
ab4678dade luci-app-frps: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:05:51 +02:00
Florian Eckert
c01c90c20a luci-app-frpc: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:05:42 +02:00
Florian Eckert
02d38c1c33 luci-app-firewall: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:05:31 +02:00
Florian Eckert
123bc9b455 luci-app-openvpn: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:05:18 +02:00
Florian Eckert
3420e7f49b luci-app-simple-adblock: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:05:06 +02:00
Florian Eckert
820b1b086b luci-app-travelmate: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:04:51 +02:00
Florian Eckert
911bea1c20 luci-app-transmission: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:04:34 +02:00
Florian Eckert
55b19eed1a luci-base: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:04:13 +02:00
Florian Eckert
531147eb3c luci-app-ddns: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:03:52 +02:00
Florian Eckert
b20b69b2fd luci-app-commands: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:03:37 +02:00
Florian Eckert
4e9aecb24b luci-app-aria2: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:03:25 +02:00
Florian Eckert
37328b5897 luci-app-adblock: sync i18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 14:03:05 +02:00
Florian Eckert
af5b5fbf09
Merge pull request #5430 from jeje42/feature/luci-app-openvpn-add-tls_crypt_v2-option
Add tls_crypt_v2 openvpn option to LuCI.
2022-10-27 13:19:41 +02:00
Florian Eckert
60b910ae01
Merge pull request #6051 from weblate/weblate-openwrt-luci
Translations update from Hosted Weblate
2022-10-27 13:17:42 +02:00
Hosted Weblate
e7b5467f80
Translated using Weblate (Spanish)
Currently translated at 93.3% (14 of 15 strings)

Translation: OpenWrt/LuCI/applications/example
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsexample/es/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (62 of 62 strings)

Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/

Translated using Weblate (Russian)

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/

Translated using Weblate (Polish)

Currently translated at 100.0% (2075 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/

Translated using Weblate (Spanish)

Currently translated at 96.2% (1997 of 2075 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/

Translated using Weblate (Turkish)

Currently translated at 100.0% (117 of 117 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (177 of 177 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (196 of 196 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (2079 of 2079 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/tr/

Translated using Weblate (Greek)

Currently translated at 30.3% (631 of 2079 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/

Co-authored-by: Byacrya <byacrya@proton.me>
Co-authored-by: Eric <hamburger1024@mailbox.org>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: TakissX <pxatzidakis@gmail.com>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: semih <semiht@gmail.com>
Co-authored-by: sergio <sergio+it@outerface.net>
Signed-off-by: Byacrya <byacrya@proton.me>
Signed-off-by: Eric <hamburger1024@mailbox.org>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: TakissX <pxatzidakis@gmail.com>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Signed-off-by: semih <semiht@gmail.com>
Signed-off-by: sergio <sergio+it@outerface.net>
2022-10-27 12:40:16 +02:00
Jo-Philipp Wich
2a5efb31b7 luci-base: always link core.so with libcrypt to satisfy glibc builds
Fixes the following runtime error on glibc based builds:

    Runtime error: Unable to dlopen file ...: undefined symbol: crypt
    In module(), file /usr/share/ucode/luci/dispatcher.uc, line 1, byte 1:
      called from anonymous function (/www/cgi-bin/luci:7:21)

Ref: https://forum.openwrt.org/t/x/137250/18
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 12:36:33 +02:00
Jo-Philipp Wich
1eea6c0ce8 luci-base: add ui indicator when fallback theme is used
Add a ui indicator displaying error details when the configured theme
failed to load and the next available one is being used instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 11:14:52 +02:00
Jo-Philipp Wich
bd4bf6ac9b luci-theme-material: fix location of template files
Fixes: #6060
Fixes: e496014760 ("luci-theme-material: convert Lua templates to ucode")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 11:14:52 +02:00
Jo-Philipp Wich
767acf32d4 luci-base: dispatcher.uc: update uci session ID in Lua context
Make sure that the uci session ID of the `luci.model.uci` module within
the Lua context is updated once we acquire the login session information.

In case legacy themes are used, the probing of the theme header template
might indirectly load the Lua runtime and the Lua side `luci.dispatcher`
module which in turn will load the `luci.model.uci` and set the session
ID there which is not yet initialized at this point in time.

This results in broken uci change handling within legacy Lua applications
when a legacy theme is loaded.

Fixes: #6060
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27 11:14:52 +02:00
Florian Eckert
6f470e0d76 luci-mod-network: remove uppercase for interface name in modal view
Unify the network name display as shown in the overview by removing the
uppercase conversion.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27 10:46:54 +02:00
Jo-Philipp Wich
32603718e8 luci-ssl-nginx: drop libiwinfo-lua dependency
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26 23:41:33 +02:00
Jo-Philipp Wich
67e4e43090 luci-nginx: drop libiwinfo-lua dependency
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26 23:41:21 +02:00
Jo-Philipp Wich
9d8feace41 luci-app-commands: drop luci-compat dependency
This custom commands application does not utilize Lua code anymore.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26 23:16:51 +02:00