Paul Spooren
ff650f141a
Translated using Weblate (German)
...
Currently translated at 72.5% (124 of 171 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/
Translated using Weblate (German)
Currently translated at 100.0% (31 of 31 strings)
Translation: OpenWrt/LuCI/applications/commands
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/de/
Translated using Weblate (German)
Currently translated at 100.0% (31 of 31 strings)
Translation: OpenWrt/LuCI/applications/commands
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/de/
Translated using Weblate (German)
Currently translated at 72.5% (124 of 171 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/
Translated using Weblate (German)
Currently translated at 9.1% (2 of 22 strings)
Translation: OpenWrt/LuCI/applications/rp-pppoe-server
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsrp-pppoe-server/de/
Translated using Weblate (German)
Currently translated at 9.8% (11 of 112 strings)
Translation: OpenWrt/LuCI/applications/radicale2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/de/
Translated using Weblate (German)
Currently translated at 5.3% (7 of 133 strings)
Translation: OpenWrt/LuCI/applications/nut
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/de/
Translated using Weblate (German)
Currently translated at 100.0% (1310 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-16 21:03:56 -10:00
Josef Schlehofer
e0675e8e55
Translated using Weblate (Czech)
...
Currently translated at 81.7% (76 of 93 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/cs/
Translated using Weblate (Czech)
Currently translated at 71.1% (167 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/cs/
Translated using Weblate (Czech)
Currently translated at 50.5% (662 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Signed-off-by: Josef Schlehofer <pepe@bloodkings.eu>
Translated using Weblate (Czech)
Currently translated at 38.1% (74 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/cs/
Translated using Weblate (Czech)
Currently translated at 90.9% (20 of 22 strings)
Translation: OpenWrt/LuCI/applications/samba
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/cs/
Translated using Weblate (Czech)
Currently translated at 93.8% (30 of 32 strings)
Translation: OpenWrt/LuCI/applications/ahcp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (13 of 13 strings)
Translation: OpenWrt/LuCI/applications/ntpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsntpc/cs/
Translated using Weblate (Czech)
Currently translated at 60.0% (48 of 80 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/cs/
Translated using Weblate (Czech)
Currently translated at 71.1% (167 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/cs/
Translated using Weblate (Czech)
Currently translated at 58.1% (18 of 31 strings)
Translation: OpenWrt/LuCI/applications/samba4
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/cs/
Translated using Weblate (Czech)
Currently translated at 48.7% (638 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Signed-off-by: Josef Schlehofer <pepe@bloodkings.eu>
2019-10-16 11:55:05 -10:00
Scott Anecito
c4d78eed70
Translated using Weblate (Japanese)
...
Currently translated at 91.1% (1193 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ja/
Signed-off-by: Scott Anecito <scott.anecito@protonmail.com>
Translated using Weblate (Japanese)
Currently translated at 91.0% (1192 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ja/
Signed-off-by: Scott Anecito <scott.anecito@protonmail.com>
2019-10-16 11:55:05 -10:00
Krystian Kozak
d0ca3633d8
Translated using Weblate (Polish)
...
Currently translated at 87.7% (57 of 65 strings)
Translation: OpenWrt/LuCI/applications/opkg
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/pl/
Translated using Weblate (Polish)
Currently translated at 70.2% (920 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
2019-10-16 22:23:17 +02:00
Josef Schlehofer
2d6a21252a
Translated using Weblate (Czech)
...
Currently translated at 38.1% (74 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/cs/
Translated using Weblate (Czech)
Currently translated at 90.9% (20 of 22 strings)
Translation: OpenWrt/LuCI/applications/samba
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/cs/
Translated using Weblate (Czech)
Currently translated at 93.8% (30 of 32 strings)
Translation: OpenWrt/LuCI/applications/ahcp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (13 of 13 strings)
Translation: OpenWrt/LuCI/applications/ntpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsntpc/cs/
Translated using Weblate (Czech)
Currently translated at 60.0% (48 of 80 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/cs/
Translated using Weblate (Czech)
Currently translated at 71.1% (167 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/cs/
Translated using Weblate (Czech)
Currently translated at 58.1% (18 of 31 strings)
Translation: OpenWrt/LuCI/applications/samba4
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/cs/
Translated using Weblate (Czech)
Currently translated at 48.7% (638 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Signed-off-by: Josef Schlehofer <pepe@bloodkings.eu>
2019-10-16 22:23:16 +02:00
Scott Anecito
32d24b67c4
Translated using Weblate (Japanese)
...
Currently translated at 91.0% (1192 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ja/
Signed-off-by: Scott Anecito <scott.anecito@protonmail.com>
2019-10-16 22:23:16 +02:00
Jo-Philipp Wich
e1d7c43d20
Merge pull request #3190 from weblate/weblate-openwrt-luci
...
Update from Weblate
2019-10-16 21:34:40 +02:00
Jo-Philipp Wich
3d11af11a7
Merge pull request #3145 from ptpt52/refine-flash-reset
...
luci-mod-system: refine flash reset
2019-10-16 21:31:26 +02:00
Adolfo Jayme Barrientos
2f7181a5d5
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (19 of 19 strings)
Translation: OpenWrt/LuCI/applications/fwknopd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfwknopd/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (46 of 46 strings)
Translation: OpenWrt/LuCI/applications/minidlna
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (46 of 46 strings)
Translation: OpenWrt/LuCI/applications/upnp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (4 of 4 strings)
Translation: OpenWrt/LuCI/applications/coovachilli
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscoovachilli/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (194 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (22 of 22 strings)
Translation: OpenWrt/LuCI/applications/samba
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (32 of 32 strings)
Translation: OpenWrt/LuCI/applications/ahcp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (58 of 58 strings)
Translation: OpenWrt/LuCI/applications/uhttpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (31 of 31 strings)
Translation: OpenWrt/LuCI/applications/commands
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (13 of 13 strings)
Translation: OpenWrt/LuCI/applications/ntpc
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsntpc/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (65 of 65 strings)
Translation: OpenWrt/LuCI/applications/opkg
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (171 of 171 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (24 of 24 strings)
Translation: OpenWrt/LuCI/applications/qos
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsqos/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (80 of 80 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (133 of 133 strings)
Translation: OpenWrt/LuCI/applications/nut
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (235 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/es/
Translated using Weblate (Catalan)
Currently translated at 70.2% (165 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/ca/
Translated using Weblate (Spanish)
Currently translated at 100.0% (31 of 31 strings)
Translation: OpenWrt/LuCI/applications/samba4
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (1310 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2019-10-16 09:51:06 +02:00
Roger Pueyo Centelles
af521e34c1
Translated using Weblate (Catalan)
...
Currently translated at 43.9% (575 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ca/
Signed-off-by: Roger Pueyo Centelles <weblate@rogerpueyo.com>
2019-10-16 09:51:05 +02:00
Paul Spooren
dfba9c9659
Translated using Weblate (German)
...
Currently translated at 70.2% (120 of 171 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/
Translated using Weblate (German)
Currently translated at 100.0% (1310 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
Translated using Weblate (German)
Currently translated at 100.0% (58 of 58 strings)
Translation: OpenWrt/LuCI/applications/uhttpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/de/
Translated using Weblate (German)
Currently translated at 98.9% (92 of 93 strings)
Translation: OpenWrt/LuCI/applications/transmission
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/de/
Translated using Weblate (German)
Currently translated at 95.7% (44 of 46 strings)
Translation: OpenWrt/LuCI/applications/upnp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/de/
Translated using Weblate (German)
Currently translated at 82.0% (159 of 194 strings)
Translation: OpenWrt/LuCI/applications/olsr
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/de/
Translated using Weblate (German)
Currently translated at 100.0% (73 of 73 strings)
Translation: OpenWrt/LuCI/applications/tinyproxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/de/
Translated using Weblate (German)
Currently translated at 100.0% (194 of 194 strings)
Translation: OpenWrt/LuCI/applications/openvpn
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/de/
Translated using Weblate (German)
Currently translated at 80.6% (25 of 31 strings)
Translation: OpenWrt/LuCI/applications/commands
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/de/
Translated using Weblate (German)
Currently translated at 90.0% (9 of 10 strings)
Translation: OpenWrt/LuCI/applications/p910nd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/de/
Translated using Weblate (German)
Currently translated at 69.0% (118 of 171 strings)
Translation: OpenWrt/LuCI/applications/firewall
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/de/
Translated using Weblate (German)
Currently translated at 100.0% (24 of 24 strings)
Translation: OpenWrt/LuCI/applications/qos
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsqos/de/
Translated using Weblate (German)
Currently translated at 100.0% (80 of 80 strings)
Translation: OpenWrt/LuCI/applications/splash
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssplash/de/
Translated using Weblate (German)
Currently translated at 75.3% (177 of 235 strings)
Translation: OpenWrt/LuCI/applications/statistics
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/de/
Translated using Weblate (German)
Currently translated at 100.0% (1310 of 1310 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/de/
Signed-off-by: Paul Spooren <mail@aparcar.org>
2019-10-16 09:51:05 +02:00
Hosted Weblate
1998c623c2
Update translation files
...
Updated by "Squash Git commits" hook in Weblate.
Translation: OpenWrt/LuCI/applications/wol
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/
Translated using Weblate (German)
Currently translated at 100.0% (12 of 12 strings)
Translation: OpenWrt/LuCI/applications/wol
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/de/
2019-10-16 09:51:05 +02:00
Jo-Philipp Wich
9d80dbe635
luci-mod-network: wireless.js: fix null access on failing iwinfo calls
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-15 18:42:04 +02:00
Jo-Philipp Wich
f61d6ee148
luci-mod-network: wireless.js: fix null access on unavailable country list
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-15 10:03:48 +02:00
Jo-Philipp Wich
120ece921d
luci-base: static.js: make IPv6 assignment hint optional
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-15 09:14:56 +02:00
Zheng Qian
576b2eee50
luci-base: zh_CN: update Simplified Chinese translation
...
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2019-10-11 15:02:05 +08:00
Richard Yu
02a0291d14
luci-base: widgets.js: add user and group select
...
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-10-11 01:05:08 +08:00
Yurii
8c0e11d968
luci-base: update Ukrainian translation
...
Corrected typo.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-10-09 21:08:01 +03:00
Yurii
cccd17c998
luci-base: update Ukrainian translation
...
Updating Ukrainian translation according the latest sync translation. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-10-09 19:36:05 +03:00
Jo-Philipp Wich
f8c6eb67cd
luci-base: fix CSRF prevention for arcombine targets
...
The dispatcher failed to propagate the child target post security
requirements to the arcombine() dispatch target so far - fix this
by recursively testing the post security requirements.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-09 09:55:44 +02:00
Martin Schiller
61cce42299
luci-base: fix typo in german translation
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-10-09 09:00:29 +02:00
Franco Castillo
5eb8334953
luci-base: update Spanish translation
...
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-10-08 16:47:19 -03:00
INAGAKI Hiroshi
96f37f475c
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-10-09 00:31:03 +09:00
INAGAKI Hiroshi
3d23e6d04f
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-10-08 23:47:58 +09:00
Jo-Philipp Wich
5ccbda54e8
luci-mod-system: flash.js: fix passing sysupgrade opts
...
Instead of binding the checked state to the button handler function,
bind the underlying checkboxes instead to observe the actual user
choice instead of the initial value.
This fixes forcing sysupgrade or deselecting keep settings.
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 19:55:31 +02:00
Jo-Philipp Wich
e7ca163d7c
luci-base: form.js: fix anonymous section table titles
...
When no section title is defined, the table renderer is supposed to use
the uci section id as fallback when the table section is not declared
to be anonymous.
Fixes : #3147
Fixes: a90bf384b
("luci-base: form.js: harmonize title property handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 19:49:58 +02:00
Jo-Philipp Wich
5cfad8d65b
luci-base: form.js: treat inactive options as optional
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 19:44:22 +02:00
Chen Minqiang
29aad47121
luci-mod-system: refine flash reset
...
We determine flash reset capability by checking overlayfs in /proc/mounts
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2019-10-07 23:37:35 +08:00
Jo-Philipp Wich
90c52a1782
luci-app-advanced-reboot: import applyreboot template from luci-mod-system
...
Since the advanced-reboot app is the sole remaining user of the applyreboot
template, import it into this package to avoid the need for shipping it
with the default installation.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
b637cf6750
luci-mod-system: port reboot view to client side js
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
1d68853cce
luci-base: add reboot rpc call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
29ccea14f1
luci-mod-system: use awaitReconnect() from ui.js
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
f3ef2ca2eb
luci-base: ui.js: add pingDevice() and awaitReconnect() functions
...
Import these functions from the flash.js for use with other views that
might trigger a device reboot.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
55fb53e995
luci-mod-system: sshkeys.js: use common fs.js class
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
811012cab5
luci-mod-system: startup.js: use common fs.js class
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
807dd50640
luci-mod-system: flash.js: use common fs.js class
...
Also move the keep settings checkbox above the error messages in the
sysupgrade confirmation dialog.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
641c82cb21
luci-mod-system: crontab.js: use common fs.js class
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
df8078d542
luci-base: ui.js: use common fs.js class for filebrowser operations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:39 +02:00
Jo-Philipp Wich
8776e423d9
luci-base: introduce common fs.js helper class
...
Introduce a new fs.js helper class to gather filesystem related RPC
operations in a single file.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:53:35 +02:00
Jo-Philipp Wich
1154e755f1
luci-base: luci.js: add resolveDefault() helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07 11:48:33 +02:00
Zheng Qian
aed5e932e3
luci-base: zh_CN: update Simplified Chinese translation
...
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2019-10-03 12:46:29 +08:00
Jo-Philipp Wich
020ac1e08d
luci-mod-system: flash.js: fix "rootfs_data" partition detection
...
The `/sys/devices/virtual/mtd/` information is not available on all
devices so rely on the contents of `/proc/mtd` instead to check for
the existence of the `rootfs_data` partition.
Fixes : #3136
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-02 13:02:04 +02:00
Rafał Miłecki
fb740f2c79
luci-mod-system: check for sysupgrade with backup possibility
...
Some firmware images may not support preserving backup. In such cases
display a warning and disable relevant checkbox.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2019-10-02 11:13:19 +02:00
Rafał Miłecki
5f2a17938f
luci-mod-system: check if it's possible to force sysupgrade
...
Some validation errors may be critical enough to prevent sysupgrade.
Check the "forceable" property and disallow forcing sysupgrade if
applicable. It would fail anyway at the "sysupgrade" call.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2019-10-02 09:47:20 +02:00
Rafał Miłecki
7c108683c6
luci-mod-system: use "system" new "validate_firmware_image" ubus method
...
This new ubus method provides more properly-formatted details about
firmware file. Use it to check if uploaded image is valid.
The old "sysupgrade --test" method is left for now to provide stderr
output.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
[Added missing ACL, add default value for the ubus failure case]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-02 09:46:18 +02:00
Jo-Philipp Wich
b2809cebd8
luci-base: luci.js, rpc.js, uci.js, network.js: add JSDoc annotations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-02 08:59:41 +02:00
Florian Eckert
b7ee57adaf
Merge pull request #3131 from tano-systems/pr/luci-base-i18n-ru
...
luci-base: update Russian translation
2019-09-30 13:05:07 +02:00
Anton Kikin
2b1b8e7e04
luci-base: update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-09-30 13:49:39 +03:00
Jo-Philipp Wich
17800040f2
luci-mod-network: display the mesh ID in wireless overview if applicable
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-30 12:40:12 +02:00
Jo-Philipp Wich
948ca3712f
luci-base: network.js: implement getMeshID() getter
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-30 12:39:33 +02:00
Jo-Philipp Wich
f1db82399a
luci-mod-system: allow IPv6 addresses for external syslog server
...
Fixes : #3126
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-30 10:28:11 +02:00
Hannu Nyman
cf887ba62f
timezone data: update to 2019c
...
Update timezone data to 2019c
http://mm.icann.org/pipermail/tz-announce/2019-September/000057.html
2019c:
* Fiji observes DST from 2019-11-10 to 2020-01-12.
* Norfolk Island starts observing Australian-style DST.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-09-28 21:51:35 +03:00
Jo-Philipp Wich
355223ecdd
luci-mod-system: fix rerendering of ssh key list after add/remove
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-27 12:53:47 +02:00
Jo-Philipp Wich
ad05b61dce
luci-mod-system: allow deleting all NTP servers
...
Fixes : #3121
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-27 12:02:08 +02:00
Yurii
a56e58f32e
luci-base: update Ukrainian translation
...
Updating Ukrainian translation according the latest sync translation. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-09-25 22:46:59 +03:00
Jo-Philipp Wich
855208c59d
luci-mod-system: flash.js: disable mtdblock downloads on mtd-less systems
...
Ref: 3c40a7450a (commitcomment-35233073)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-25 19:42:06 +02:00
Jo-Philipp Wich
e17cd94be7
luci-mod-system: flash.js: rename handleReset to handleFirstboot
...
Rename the procedure to prevent a name clash with the standard view action
which we intentionally disable.
Ref: 3c40a7450a (commitcomment-35233207)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-25 19:37:27 +02:00
Franco Castillo
cb1189a2fe
luci-base: update Spanish translation
...
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-09-25 13:35:44 -03:00
Jo-Philipp Wich
3c40a7450a
luci-mod-system: flash.js: improve storage size detection heuristics
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-25 16:23:02 +02:00
Jo-Philipp Wich
66749b4fe3
Merge pull request #2756 from Ansuel/wps
...
luci-mod-network: permit WPS push-button on WPA3
2019-09-24 19:56:44 +02:00
Ansuel Smith
9f0f6cbd31
luci-base: update translation with changed string
...
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:40:26 +02:00
Ansuel Smith
3571af9488
luci-mod-network: permit WPS push-button on WPA3
...
Currently WPS push-button is dropped when SAE or SAE-Mixed is selected. WPS is still supported in WPA3.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:39:12 +02:00
Jo-Philipp Wich
aac046271b
Merge pull request #2357 from Ansuel/mastero
...
luci-mod-network: add master option
2019-09-24 19:27:18 +02:00
Jo-Philipp Wich
e091859116
luci-mod-system: system.js: use more concise label for use_dhcp
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 19:26:33 +02:00
Ansuel Smith
6bd7295a46
luci-base: adds italian translation for master description
...
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:10:20 +02:00
Ansuel Smith
3444aae69a
luci-base: sync translations
...
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:10:19 +02:00
Ansuel Smith
d3541e9269
luci-mod-network: add master option
...
Adds option to set interface as master in dhcpv6 relay mode.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:10:11 +02:00
Jo-Philipp Wich
1bad6f3e61
luci-mod-system: system.js: expose use_dhcp NTP option
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 18:41:54 +02:00
Jo-Philipp Wich
2a5c5f47f9
luci-mod-system: reimplement flashops as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 14:21:08 +02:00
Jo-Philipp Wich
cc786f9833
luci-mod-system: startup.js: fix syntax error
...
Fixes: f3ff641d8
("luci-mod-system: ensure that textarea contents are properly escaped")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 12:17:26 +02:00
Jo-Philipp Wich
4a564736ea
luci-mod-network: wireless.js: properly handle SAE in join confirmation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:09:02 +02:00
Jo-Philipp Wich
e630b32498
luci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:07:50 +02:00
Jo-Philipp Wich
809f16d4ce
luci-base: network.js: fix deleteNetwork() implementation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:02:57 +02:00
Jo-Philipp Wich
186ddfa044
luci-base: form.js: do not inherit map tabbing to nested sections
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:01:04 +02:00
Jo-Philipp Wich
0068c3bd49
luci-base: form.js: allow overriding remove action in Table/GridSections
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 07:59:04 +02:00
Jo-Philipp Wich
4d3d23b5e9
luci-mod-network: wireless.js: prompt for passphrase when joining SAE net
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 07:24:11 +02:00
Chen Minqiang
2f92a29628
luci-mod-network: resort zonePromise order
...
This fix #3103
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2019-09-24 07:08:49 +02:00
Jo-Philipp Wich
f3ff641d8e
luci-mod-system: ensure that textarea contents are properly escaped
...
Fixes : #3090
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-23 11:44:18 +02:00
Jo-Philipp Wich
158515d5bd
luci-base: form.js: do not add title attributes for untitled options
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-22 22:26:36 +02:00
Yurii
b958d2298a
luci-base: update Ukrainian translation
...
Corrected my typo.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-09-21 21:58:26 +03:00
Florian Eckert
8a2119727b
Merge pull request #3042 from muink/patch-1
...
luci-base: hosts.js: Update chinese translations
2019-09-21 20:53:08 +02:00
Yurii
e5a15928c7
luci-base: update Ukrainian translation
...
Update Ukrainian translation according the latest translation resync. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-09-21 21:49:11 +03:00
Hannu Nyman
be43a42486
Merge pull request #3093 from castillofrancodamian/master
...
luci-base: update Spanish translation
2019-09-21 20:47:32 +03:00
Franco Castillo
61cfa9cb85
luci-base: update Spanish translation
...
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-09-21 14:29:54 -03:00
Jo-Philipp Wich
2dd6c009be
luci-mod-system: remove unused controller actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 19:06:30 +02:00
Jo-Philipp Wich
4518f8f342
luci-mod-system: mounts.js: preload fstab uci
...
Preload the uci configuration on page load to avoid accidential double
rendering of the globals section and mount overview table.
Fixes: e39ab8725
("luci-mod-system: mounts.js: implicitely create globals section")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 18:46:17 +02:00
Jo-Philipp Wich
e39ab87255
luci-mod-system: mounts.js: implicitely create globals section
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 18:43:42 +02:00
Jo-Philipp Wich
71e265a7f0
luci-mod-system: remplement fstab settings as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 18:36:31 +02:00
Jo-Philipp Wich
54cab2f26b
luci-base: add rpc methods for mount management
...
This commit introduces the new methods luci/getBlockDevices,
luci/setBlockDetect, luci/getMountPoints, luci/setUmount in
preparation for the reworked mount point management.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 18:30:34 +02:00
Jo-Philipp Wich
6dba41cadc
luci-base: tie cached system features to user session
...
Store the cached system feature flags keyed by the current session id,
this ensures that the features are refreshed on login.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 10:55:54 +02:00
Jo-Philipp Wich
119c6319cb
luci-base: network.js: don't batch wireless scan requests
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 10:23:37 +02:00
Jo-Philipp Wich
21d1266c53
luci-base: rpc.js: increase default timeout to 20s, allow batch prevention
...
Support a new option "nobatch: true" in rpc.declare() which prevents the
underlying RPC call from being batched with other calls.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 10:23:37 +02:00
Jo-Philipp Wich
afeacdc7df
luci-base: luci.js: improve XHR issue diagnostics
...
Differentiate between request timeouts and other error reasons.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21 10:23:37 +02:00
INAGAKI Hiroshi
2a1e77e8cb
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-21 17:13:11 +09:00
INAGAKI Hiroshi
51b46c3299
luci-base: use old translation for "Gateway Ports"
...
This text is replaced from "Gateway ports" in
f878b21c8c
.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-21 16:59:44 +09:00
INAGAKI Hiroshi
f894c2601e
luci-base: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-21 14:26:49 +09:00
Jo-Philipp Wich
720df98642
luci-mod-network: sort wifi encryption by strength and popularity
...
Fixes : #3082
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 17:11:38 +02:00
Jo-Philipp Wich
f3a94051ec
luci-mod-network: fix key option quirk when switching wep and wpa modes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 13:39:22 +02:00
Jo-Philipp Wich
ccd1523610
luci-mod-network: default to ieee80211w=2 for OWE
...
Ref: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/files/hostapd.sh;h=46acbefeeeb771de879dd9926ad170042dff2473;hb=HEAD#l327
Fixes: 63f28fd06
luci-mod-network: default to ieee80211w=1 for OWE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 11:30:09 +02:00
Jo-Philipp Wich
d10575dfee
luci-base: form.js: only update option default if cfgvalue is null
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 09:58:31 +02:00
Jo-Philipp Wich
63f28fd065
luci-mod-network: default to ieee80211w=1 for OWE
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 09:55:51 +02:00
Jo-Philipp Wich
5986124c13
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 09:36:23 +02:00
Jo-Philipp Wich
0113171c64
luci-mod-network: wireless.js: fix disabled state on disabled radio
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:48:27 +02:00
Jo-Philipp Wich
0d9a77d806
luci-mod-network: wireless.js: select proper 11w default for WPA3 modes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:47:55 +02:00
Jo-Philipp Wich
25e0b966c7
luci-base: form.js: add support for dynamic default values
...
Many uci options have different implicit defaults, depending on the
values of other related options. A prominent example is the wireless
ieee80211w option which defaults to 2, 1 or 0 depending on whether
the encryption is set to wpa3-sae, wpa2/wpa2 mixed or any other mode
respectively.
Add the ability to specify a dictionary of default values and their
corresponding dependencies in order to be able to express such
configurations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:40:57 +02:00
Jo-Philipp Wich
4dfa657f77
luci-base: ui.js: mark user-changed widgets
...
Set a `data-changed=true` attribute on the widget element when the user
did any change to the default value.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:39:46 +02:00
Jo-Philipp Wich
53ac685092
luci-base: form.js: fix default click action of button options
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 15:08:19 +02:00
Jo-Philipp Wich
934fa275b2
luci-base: ensure that button labels are properly html escaped
...
Fixes : #3067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 13:51:16 +02:00
muink
d07a55931d
luci-base: proto_dhcp.lua: Update chinese translations
...
Signed-off-by: muink <hukk1996@gmail.com>
2019-09-18 19:35:51 +08:00
Jo-Philipp Wich
982b08f45d
luci-mod-system: system.js: simplify btn actions, use feature flags
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 08:17:58 +02:00
Hannu Nyman
7dd6fde57e
Merge pull request #3080 from castillofrancodamian/master
...
luci-base and apps: update Spanish translation
2019-09-18 09:07:33 +03:00
Jo-Philipp Wich
fd9182b21a
luci-base: network.js: filter invalid mac addresses
...
Only consider valid ethernet mac addresses when building the device state
from raw getifaddrs() information.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 07:46:33 +02:00
Jo-Philipp Wich
15cc74c6b4
luci-mod-network: interfaces.js: derive status from layer 3 device
...
Align the status column device selection logic with the approach used for
rendering the interface status boxes; first try to obtain the active
layer3 device as reported by ubus, only then fall back to the protocol
specific device hint which might or might not point to an existing device.
Fixes : #3076
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 07:33:25 +02:00
Jo-Philipp Wich
10880b565f
luci-base: network.js: get low level device details from getifaddr() info
...
Fixes : #3078
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 07:19:18 +02:00
Jo-Philipp Wich
a67175cab1
luci-mod-system: disable redundant page actions in crontab, startup views
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 07:23:01 +02:00
Franco Castillo
0183eed288
luci-base and apps: update Spanish translation
...
Update of the Spanish translation of luci-base and some LuCI applications.
* luci-base
* adblock
* advanced-reboot
* aria2
* banip
* ddns
* firewall
* mjpg-streamer
* mwan3
* ntpc
* simple-adblock
* travelmate
* vpnbypass
* wifischedule
* wireguard
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-09-17 23:40:37 -03:00
Jo-Philipp Wich
f878b21c8c
luci-mod-system: remplement dropbear settings as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-17 07:43:48 +02:00
Martin Schiller
2cdcec29ff
luci-base: fix german translation for factory reset hint
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-09-16 09:32:25 +02:00
Jo-Philipp Wich
9ae9657a85
luci-mod-system: remplement password change as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16 07:54:25 +02:00
Jo-Philipp Wich
a31d1d10e0
luci-mod-system: reimplement SSH key mgmt as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-15 20:00:36 +02:00
Jo-Philipp Wich
3e1cf14ad1
luci-base: add luci/setPassword rpc method, dropbear feature flag
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16 07:49:05 +02:00
Jo-Philipp Wich
9ecfe33edd
luci-base: luci.js: render view buttons depending on available functions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-17 07:03:27 +02:00
Jo-Philipp Wich
96fbca76c8
luci-base: form.js: implement JSONMap
...
Implement a new map type JSONMap which uses a JSON data structure instead
of uci as configuration data backend.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16 07:55:45 +02:00
INAGAKI Hiroshi
f206c01844
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-15 20:08:14 +09:00
INAGAKI Hiroshi
ec631c4960
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-15 19:15:17 +09:00
Jo-Philipp Wich
2e206861ae
luci-base: luci.js: append version when dynamically loading classes
...
This allows for some naive cache busting when the LuCI version changes,
to avoid loading outdated classes from cache.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-14 17:44:32 +02:00
Jo-Philipp Wich
208bf47a33
luci-base: cbi.js: update dependencies after widgets have been rendered
...
Fixes : #3066
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-14 17:20:41 +02:00
Jo-Philipp Wich
7c9d1a259c
luci-base: network.js: register "none" protocol
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-14 17:04:02 +02:00
Jo-Philipp Wich
88c16e17d9
luci-mod-network: wireless.js: restore mac hints in mac list widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-13 14:19:33 +02:00
Jo-Philipp Wich
2dd17fad6c
luci-base: network.js: implement Hosts.getMACHints()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-13 14:18:43 +02:00
Jo-Philipp Wich
3734f88c35
luci-base: fix ip6hint option dependencies and validation
...
Ref: https://forum.openwrt.org/t/odhcpd-make-lease-file-persistent/44118/8
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-13 12:57:08 +02:00
Jo-Philipp Wich
b384683d14
Merge pull request #3060 from tano-systems/pr/update-ru-i18n
...
luci-base: Update Russian translation
2019-09-13 11:06:30 +02:00
Anton Kikin
8e171a9f3d
luci-base: Update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-09-13 00:13:04 +03:00
Franco Castillo
da2ec04075
luci-base: update Spanish translation
...
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-09-12 16:34:11 -03:00
Franco Castillo
37efc4f918
luci-base: update Spanish translation
...
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-09-12 16:06:32 -03:00
Jo-Philipp Wich
af19ebb706
luci-mod-system: improve LED configuration page
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 19:22:59 +02:00
Jo-Philipp Wich
fad01ae1a4
luci-base: sys.lua: fix init script enable action
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 18:56:24 +02:00
Jo-Philipp Wich
53516cc302
luci-mod-system: add heading to startup page, improve error reporting
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 18:55:50 +02:00
Jo-Philipp Wich
0e5be0d68a
luci-mod-system: reimplent system/crontab as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 18:48:58 +02:00
Jo-Philipp Wich
8178ac15b6
luci-base: whitelist file/write actions on /etc/rc.local
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 14:42:12 +02:00
Jo-Philipp Wich
0eb5661e8c
luci-mod-system: restore rc.local editing functionality
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 14:41:30 +02:00
Jo-Philipp Wich
113e2c0217
luci-mod-system: reimplent system/startup as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 14:16:06 +02:00
Jo-Philipp Wich
473bd2741b
luci-base: rpc.js: fix list requests, handle aborted http requests
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 14:02:06 +02:00
Jo-Philipp Wich
cc81d5a0d4
luci-base: fix list method handling in ubus-rpc protocol proxy
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 14:00:47 +02:00
Jo-Philipp Wich
2cc6ff7f6b
luci-base: drop unused tools.status.switch_status() call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 11:09:57 +02:00
Jo-Philipp Wich
82743b3bd4
luci-mod-network: reimplement switch configuration as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 11:09:57 +02:00
Jo-Philipp Wich
5fd21bc9ef
luci-base: add luci/getSwconfigFeatures and luci/getSwconfigPortState
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 11:09:57 +02:00
Jo-Philipp Wich
9be42e29e7
luci-base: form.js: handle non-string values in stripTags()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 11:09:57 +02:00
Jo-Philipp Wich
441bd24d07
Merge pull request #3056 from musashino205/l10n/base-upd-ja
...
luci-base: update Japanese translation
2019-09-12 10:12:33 +02:00
INAGAKI Hiroshi
3b4c4bf415
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-09-12 16:55:38 +09:00
Yurii
2faa39cee3
luci-base: update Ukrainian translation
...
Update Ukrainian translation according the latest translation resync. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-09-12 02:46:17 +03:00
Jo-Philipp Wich
5e7e9b58cf
luci-base: restore some lost translations and update german
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 14:03:11 +02:00
Jo-Philipp Wich
16bcd1a364
luci-base: resync translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:58:18 +02:00
Jo-Philipp Wich
34e73fd983
luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:44:34 +02:00
Jo-Philipp Wich
c96de72043
luci-base: validation.js: implement length() datatype validator
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:28:58 +02:00
Jo-Philipp Wich
f32f42bc25
luci-mod-network: add missing dependency on rpcd-mod-iwinfo
...
Fixes: 963b7636b
("luci-mod-network: switch to client side wifi configuration pages")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:27:02 +02:00
Jo-Philipp Wich
34f2c0acdb
luci-base: view.htm: catch and render exceptions on view instantiation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:21:51 +02:00
Jo-Philipp Wich
a0d1294566
luci-base: luci.js: register rpc interceptor to catch expired sessions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:21:24 +02:00
Jo-Philipp Wich
c3ddcbb542
luci-base: luci.js: rework error handling
...
- Capture stack trace in L.raise() if passed type is not an Error instance
- Use L.ui.addNotification in L.error() to render the error message
- Prevent duplicate error reporting in the ui
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 12:21:05 +02:00
Jo-Philipp Wich
f141433f5e
luci-base: rpc.js: revamp error handling, add interceptor support
...
Add two new functions L.rpc.addInterceptor() and L.rpc.removeInterceptor()
which allow to register and remove interceptor functions which are invoked
before the rpc reply result promise is fulfilled.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 09:25:11 +02:00
Jo-Philipp Wich
94a9f600d3
luci-base: ui.js: implement addNotification() helper
...
The L.ui.addNotification() function pushes a dismissable banner message to
the top of the view.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 09:22:13 +02:00
Jo-Philipp Wich
5dc61be746
luci-base: replace luci/getHostname with generic file/read rpc operation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:29:15 +02:00
Jo-Philipp Wich
9cae3b9e67
protocols: replace luci/getTTYDevices calls with generic file/list ones
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:29:04 +02:00
Jo-Philipp Wich
5697ebbef5
luci-base: add hostapd/wpa_supplicant cli feature flags
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
963b7636b4
luci-mod-network: switch to client side wifi configuration pages
...
Rewrite the wireless network management views in client side JS using ubus
rpc calls for the router communication.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
dab0a11b73
luci-base: form.js: store pointer to parent map in modal overlay map
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
03f9528847
luci-base: form.js: pass-through promise in handleAdd
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
18e6b17911
luci-base: network.js: add getHostHints() api
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
3f93650901
luci-base: use cgi-io and rpcd-mod-file to handle file upload and browsing
...
Remove the old server side support for file browsing and file uploading
and switch to a client side widget instead which uses XMLHTTPRequests to
upload files via cgi-io and RPC calls for file listing and status queries.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
1fcf34510a
luci-base: cbi.js: handle ui elements which return a promise in render()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6d9a23af60
luci-base: cbi.js: fix unintended number sign overflow in format
...
Fixes : #3003
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
642b8277df
luci-base: form.js: use createHandlerFn() for click actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
eac8316e0d
luci-base: luci.js: use createHandlerFn() for page actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
e14b884771
luci-base: form.js: do not consider inactive fields for dependency checks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
aef4bc3a23
luci-base: rpc.js: add getStatusText() call
...
The new function allows translating an ubus return code into a human
readable error message.
Also report the called object and method on ubus rpc errors.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
93af8a3af8
luci-base: network.js: fix, rework and improve wireless state handling
...
- Use new getWirelessDevices rpc method to optimize data fetching
- Implement further getters to access iwinfo information
- Implement assoc- and scan list functions
- Simplify internal data model
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
8cd40eb1e6
luci-base: add getWirelessDevices() rpc method
...
The getWirelessDevices() method merges the results of the
network.wireless/status call with corresponding per-radio and
per-network iwinfo data.
This allows to simplify the client side network state model
implementation and saves extraneous rpc roundtrips to fetch
iwinfo data after discovering the wireless devices.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
8481330e42
luci-base: luci.js: support passing FormData as request payload
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
d5e6688072
luci-base: luci.js: support registering request progress handlers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
88969529f1
luci-base: luci.js: fix L.Poll.remove()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
14b6ea6ea7
luci-mod-network: slightly improve static lease config
...
- Autoselect the matching IPv4 address when initially picking a MAC
- Add hostname hints in the MAC/IP dropdowns
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
ac56dc057d
luci-base: form.js: use createHandlerFn() for modal button actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
c352fbf5e9
luci-base: form.js: disable write/remove actions for DummyValue widgets
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
06f4feca1d
protocols: drop server side cbi implementations of protocol handlers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
e4bc192012
luci-mod-network: switch to client side interface configuration pages
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6a2a53a829
protocols: add client side protocol handler implementations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
0674fc2041
luci-base: rpcd: add getHostname and getTTYDevices calls
...
Also add IPv6 feature indication.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
55b1ae6c9b
luci-base: network.js: add hacks to enable relay protocol support
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
d905dacf97
luci-base: ui.js: update tabs after initial render
...
This ensures that the error badges are properly set.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
745878d6cd
luci-base: form.js: rework section add/remove event handling
...
- Redraw map even when it could not be saved due to validation errors
- Use createHandlerFn() for attaching event handlers
- Convert buttons to <button> element to allow use of spinning class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
b0dde567ca
luci-base: ui.js: also handle failed promises in createHandlerFn()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
3500562d5e
luci-base: ui.js: ignore description when checking for empty tab panes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6b1003cd50
luci-base: luci.js: support custom filter function in dom.isEmpty()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
muink
6221b1bdaa
luci-base: hosts.js: Update chinese translations
...
Signed-off-by: muink <hukk1996@gmail.com>
2019-09-06 21:33:30 +08:00
Jo-Philipp Wich
f9074ad68b
Merge pull request #3010 from TDT-AG/pr/20190826-dsl-status-FECS
...
luci-mod-status: xDSL Status: use new var names dsl.errors_fecs_*
2019-09-03 19:28:53 +02:00
Yurii
5f056678a2
luci-base: fix some Ukrainian translations
...
Signed-off-by: Yurii <yuripet@gmail.com>
2019-08-26 13:26:36 +03:00
Martin Schiller
5c4a5525c5
luci-mod-status: xDSL Status: use new var names dsl.errors_fecs_*
...
This is part of the FECS counter fix.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-08-26 12:03:07 +02:00
Martin Schiller
38d2b31b94
luci-base: fix some german translations
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-08-26 09:05:07 +02:00
INAGAKI Hiroshi
a4c95f6647
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-21 23:44:48 +09:00
INAGAKI Hiroshi
4b40b0d6fc
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-21 23:07:14 +09:00
Jo-Philipp Wich
2aab85814d
luci-base: form.js: implement Textfield widget
...
Port the CBI Textfield (textarea) widget type to client side form.js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-19 15:06:31 +02:00
Jo-Philipp Wich
afd361e368
luci-base: ui.js: implement Textarea widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-19 15:04:16 +02:00
Jo-Philipp Wich
f3bcb918bf
luci-base: network.js: fix inverted logic in registerErrorCode()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16 12:01:09 +02:00
Jo-Philipp Wich
24aa675a46
luci-base: widgets.js: CBINetworkSelect: honour exclude option
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-16 09:49:11 +02:00
Jo-Philipp Wich
acc2c8d277
luci-base: use native ubus-rpc authorization protocol
...
Instead of granting complete ubus access under the active sysauth session,
implement the ubus-rpc authorization mechanism and make the ubus proxy
endpoint unauthenticated.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15 16:10:42 +02:00
Jo-Philipp Wich
438d4b95c3
luci-base: add rpc feature tests for sysntpd and zram
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-15 16:10:42 +02:00
Jo-Philipp Wich
d19e97bcb0
luci-base: widgets.js: support alias interfaces in CBIDeviceSelect
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 23:02:25 +02:00
Jo-Philipp Wich
7179d2e6dd
luci-base: ui.js: add createHandlerFn() helper
...
The createHandlerFn() helper function is useful to construct onclick
or similar event handling functions. It will add a "spinning" CSS
class on the event target element and disable the element, wrap the
given function with Promise.resolv() and re-enable the target element
once the promise is settled.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
0d0882aea0
luci-base: network.js: overhaul code
...
- Rework internal state management
- Implement new utility functions such as getL3Device() or getModemType()
- Fix bugs in various functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
ed8f1c4c1c
luci-app-firewall: honour global default policies in per-zone settings
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
7610f1d9cf
luci-base: firewall.js: fix addZone()
...
When checking for an existing zone with the same name internally,
addZone() must use the nonblocking lookupZone() instead of the
promise returning public getZone() call.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
167ad7bb12
luci-base: rpc: drop offload_support call
...
It is superseded by the more generic getFeatures method.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a4621c9520
luci-base: luci.js: introduce hasSystemFeature() api
...
The new function allows querying the presence of certain system features
such as dnsmasq or firewall availability or the compile time features
of hostapd and wpa_supplicant.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3b335f2764
luci-base: form.js: support passing a callback to Map.save()
...
The given callback function will be executed after the map is parsed,
but before the uci is saved. This is useful to add further uci changes
before the map is re-rendered.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
082fd9ff10
luci-base: form.js: implement support for tabbed maps
...
When .tabbed is set to true on a map, all enclosed sections will be
put into separate tabs.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
b391387ce7
luci-base: form.js: improve ui tab interaction
...
- Delay initialization of tab groups
- Tag section nodes with IDs to store per-section tab state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
c2eba00a10
luci-base: ui.js: rework tab state handling
...
Properly preserve the selection state of nested tabs.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
fb18c278a4
luci-base: form.js: CBISectionValue: properly forward dependency checks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
43a8c12f04
luci-base: ui.js: UISelect: fix check for empty choices
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
5628329434
luci-base: form.js: allow overriding empty section placeholder rendering
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a90bf384b2
luci-base: form.js: harmonize title property handling
...
Some title properties were expected to be functions, some strings.
Refactor the code to support both string or function values for all
title properties.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
a36e1e976b
luci-base: form.js: inherit uci config overrides from parent sections
...
When the parent section of an option object specifes an alternative
uci configuration name, enclosed option elements should honour it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
46861a527e
luci-base: form.js: fix rendering of button widgets
...
Also introduce an `onclick` property to allow registering custom button
action handler.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3789148fc9
luci-base: form.js: add further caption properties
...
Introduce properties `addbtntitle`, `removebtntitle` and `modaltitle` to
allow overriding the captions of section add buttons, remove buttons and
modal dialog titles respectively.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
f7a3546989
luci-base: network.js: add getL2Device(), getMTU() helpers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
d528a96947
luci-base: network.js: support dynamically loaded protocol classes
...
Port the existing server side protocol support framework to the client
side network.js.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
00ec399fa1
luci-base: network.js: expose prefixToMask() and maskToPrefix()
...
Expose the prefixToMask() and maskToPrefix() helper functions for use by
other modules, e.g. the datatype validator.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
e64b0c3c0d
luci-base: network.js: return mac addresses in upper case
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
227fae8a37
luci-base: network.js: extend ifnameOf() and expose as getIfnameOf()
...
Extend the ifnameOf() helper function to cover all object types used by
network.js and expose it as public getIfnameOf() api function for use by
other modules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
3e5ef065df
luci-base: network.js: add ability to flush the internal cache
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
Jo-Philipp Wich
d1e9841e86
luci-base: ui.js: do not forcibly sort synamic list items
...
Ref: https://forum.openwrt.org/t/cannot-save-certain-fields/42738/2
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:46:19 +02:00
Florian Eckert
15e9526089
Merge pull request #2969 from TDT-AG/pr/20190806-luci-base
...
luci-base: add new VPN toplevel menu entry
2019-08-09 14:46:29 +02:00
Florian Eckert
d3e060ae6c
luci-base: add vpn menu section
...
There is always more vpn services. To make the LuCI menu look cleaner, a
new top level menu "VPN" will be added with this commit. All luci-app-*
that have something to do with VPN should move to this new menu entry.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-06 16:20:17 +02:00
INAGAKI Hiroshi
6b8532c8e8
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-08-06 02:52:54 +09:00
Jo-Philipp Wich
eb9051c307
luci-base: form.js: add modal dialog hook
...
Add a new `addModalOptions()` hook which allows to supply additional
cbi options the modal map before the dialog is rendered.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 16:48:50 +02:00
Jo-Philipp Wich
5e67b8b72b
luci-base: form.js: update tab state on dependency checks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 16:47:33 +02:00
Jo-Philipp Wich
89bcae20d0
luci-base: ui.js: tabs: fix empty pane checking, allow alternative query root
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 16:47:19 +02:00
Jo-Philipp Wich
27e4146461
luci-base: luci.js: add L.dom.isEmpty() helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 16:47:19 +02:00
Jo-Philipp Wich
360e9769d6
luci-base: ui.js: mark widget optional if empty choice is present
...
Fixes : #2943
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 16:45:54 +02:00
Jo-Philipp Wich
1fe45a9344
luci-base: index.html: add extend cache-control directive
...
Fixes : #2942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-01 15:43:35 +02:00
Hannu Nyman
15088a31b8
Merge pull request #2935 from YuriPet/patch-1
...
luci-base: update Ukrainian translation
2019-07-30 18:51:13 +03:00
Hannu Nyman
9217742d0a
Merge pull request #2934 from antoinedeschenes/patch-1
...
luci-mod-network: 802.11w config in station mode
2019-07-30 18:50:08 +03:00
Antoine Deschênes
011d9d0176
luci-mod-network: 802.11w config in station mode
...
802.11w has to be enabled in station mode to be effective. If the AP is using WPA3-SAE or requires 11w, station will not connect unless 11w is enabled via this option.
Signed-off-by: Antoine Deschênes <adeschenes@kronostechnologies.com>
2019-07-30 08:50:13 -04:00
Jo-Philipp Wich
8a947ea550
luci-base: ui.js: do not save invalid dynlist values
...
Fixes: 3880c3f22
("luci-base: ui.js: save filled out but not added dynlist items on submit")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-30 13:33:46 +02:00
Jo-Philipp Wich
3880c3f22f
luci-base: ui.js: save filled out but not added dynlist items on submit
...
Fixes : #2938
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-30 13:29:11 +02:00
Yurii
66cdd4363a
luci-base: update Ukrainian translation
...
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-30 02:26:21 +03:00
Florian Eckert
78b4ccb5b1
Merge pull request #2929 from tano-systems/pr/luci-base-i18n-ru
...
luci-base: update Russian translation
2019-07-29 09:53:16 +02:00
Franco Castillo
e699eb9759
luci-base: update Spanish translation
...
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-07-27 20:50:18 -03:00
Jo-Philipp Wich
2d3470b700
luci-base: don't treat .rmempty flag as optional for ListValue widgets
...
Restore the old CBI behaviour of not automatically rendering empty
selection choices in ListValue select dropdowns when .rmempty is
specified.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-27 22:33:36 +02:00
Anton Kikin
7bf0e71e60
luci-base: update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-27 23:19:45 +03:00
Jo-Philipp Wich
b949c02624
Merge pull request #2923 from tano-systems/pr/multi-fix
...
luci-base: fix multiple parameter in cbi templates
2019-07-27 20:21:08 +02:00
INAGAKI Hiroshi
be275fd42a
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-27 02:30:20 +09:00
Anton Kikin
aeba90032f
luci-base: fix multiple parameter in cbi templates
...
In the dc0211803e
commit, the parameter "multi" in ui.js is
replaced with "multiple" everywhere. Thus, it must also be changed
in the cbi templates.
Fixes: dc0211803e
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-26 18:18:42 +03:00
Jo-Philipp Wich
b4129640b4
luci-base: keep polling confirmation endpoint on XHR failures
...
Fixes : #2912
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 12:25:46 +02:00
Jo-Philipp Wich
28aafc0dd4
luci-base: form.js: pass-through placeholder option of CBIListValue
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 10:22:05 +02:00
Jo-Philipp Wich
c67f052d91
luci-base: ui.js: HTML escape uci changelog values
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 10:22:05 +02:00
Jo-Philipp Wich
a6c538a776
luci-base: ui.js: HTML escape custom dropdown values
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 10:22:05 +02:00
Jo-Philipp Wich
86fcf91633
luci-base: ui.js: fix event binding for UISelect
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-26 10:22:05 +02:00
Jo-Philipp Wich
fd35e9a226
luci-mod-system: leds.js: fix crash when no usb devices or ports are present
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-25 08:49:18 +02:00
Jo-Philipp Wich
f5919a990f
luci-base: remove accidentally committed code
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:48:35 +02:00
Jo-Philipp Wich
b2aada6c82
luci-base: add conntrack_helpers ubus procedure
...
Also move firewall specific ACLs into separate group.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:35:58 +02:00
Jo-Philipp Wich
ac96b8be43
luci-base: widgets.js: implement CBIDeviceSelect netdev picker
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:31:25 +02:00
Jo-Philipp Wich
3c332c6075
luci-base: widgets.js: handle devices or subnets in CBIZoneForwards
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:30:33 +02:00
Jo-Philipp Wich
b63576bbe7
luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 16:29:42 +02:00
Jo-Philipp Wich
e6ff0f39bb
luci-base: widgets.js: CBIZoneSelect: improve initial rendering
...
Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 08:58:59 +02:00
Jo-Philipp Wich
d1841af2f0
luci-base: widgets.js: CBIZoneSelect: fix availability of "device" choice
...
Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-22 08:40:38 +02:00
Jo-Philipp Wich
0be4ad51a0
luci-app-firewall: fix cbi form for rules
...
- Set src/dest defaults only in initial section create state, otherwise it
is impossible to specify output rules
- Get rid of dest_remote/dest_local widget switching and implement change
logic directly in tools.widgets.CBIZoneSelect
- Remove leftover debug code
Ref: https://github.com/openwrt/luci/issues/2889
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-21 22:35:24 +02:00
Yurii
6a1db0171f
luci-base: correct spelling mistake in Ukrainian translation
...
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-21 13:27:19 +03:00
Jo-Philipp Wich
140456f07a
luci-mod-network: fix typo in wifi scan JS code
...
Fixes: 8dd2df29c
("luci-mod-network: improve wifi scan status reporting")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-21 09:42:48 +02:00
Yurii
2cf70faf8d
luci-base: Update Ukrainian translation
...
Update Ukrainian translation according the latest translation resync.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-20 23:51:31 +03:00
Anton Kikin
780af6b9e6
luci-base: update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-20 15:32:10 +03:00
Franco Castillo
b3461cd4dd
luci-base: Update Spanish translation
...
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-07-19 17:25:25 -03:00
Jo-Philipp Wich
e50edeeb03
luci-mod-status: luci-bwc: use 64bit traffic counters
...
Fixes : #2659
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 21:56:53 +02:00
Jo-Philipp Wich
8aad613f1a
luci-base: update german translation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 18:18:25 +02:00
Jo-Philipp Wich
9070fbc146
luci-base: resync base translations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 18:07:04 +02:00
Jo-Philipp Wich
8dd2df29c4
luci-mod-network: improve wifi scan status reporting
...
Attempt to properly report the scan status by treating 404 replies as
not yet completed scans and empty array replies as successful scans
that did not yield any results.
Fixes : #2874
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 17:59:05 +02:00
Jo-Philipp Wich
5510bdae39
luci-base: render default values for all server side cbi map widgets
...
Fixes: 9c7eb1dec
("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 17:28:36 +02:00
Jo-Philipp Wich
dc0211803e
luci-base: ui.js: fix multi vs. multiple keyword confusion
...
The "luci.form" and "luci.tools.widgets" classes use the "multiple"
keyword while ui.js uses "multi" internally, leading to single-value
dropdowns widget values getting stored as uci lists.
Fix the issue by using "multiple" everywhere.
Fixes : #2871
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 10:39:54 +02:00
Yurii
3635a32c56
luci-base: update Ukrainian translation
...
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-16 21:16:53 +03:00
Anton Kikin
82e20d437c
luci-base: fix Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-15 15:50:45 +03:00
Florian Eckert
97c8ed26b5
Merge pull request #2859 from castillofrancodamian/base
...
luci-base: Update Spanish translation
2019-07-14 13:51:44 +02:00
Franco Castillo
8a73115ca3
luci-base: Update Spanish translation
...
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-07-13 22:55:39 -03:00
Anton Kikin
be28d9c9bf
luci-base: update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-13 23:03:09 +03:00
INAGAKI Hiroshi
7b1aabc29c
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-13 19:23:18 +08:00
INAGAKI Hiroshi
19c4b71af4
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-13 19:23:18 +08:00
INAGAKI Hiroshi
48b61ca2c4
luci-base: fix translatable text in ui.js
...
Removed unnecessary symbols ("%>") at the end of the text.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-07-13 19:23:18 +08:00
Jo-Philipp Wich
7c9d845d9b
luci-base: luci.js: add Promise.finally polyfill
...
Fixes : #2854
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-12 10:42:41 +02:00
Yurii
91194f42c4
luci-base: update Ukrainian translation
...
Updates, fixes and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
2019-07-12 09:22:08 +02:00
Jo-Philipp Wich
3dcb061dcc
luci-base: ui.js: fix UISelect.setValue()
...
Fixes : #2852
Fixes: ce04d7f
("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-12 09:17:14 +02:00
Jo-Philipp Wich
4b941bce40
luci-base: luci.js: only use overrideMimeType when supported
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-11 15:06:13 +02:00
Jo-Philipp Wich
a7bfaf9b0b
luci-base: validation.js: fix nested function declarations
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-11 15:04:54 +02:00
Jo-Philipp Wich
43043a46a3
luci-base: ui.js: fix UISelect.getValue()
...
Fixes : #2852
Fixes: ce04d7f04
("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-11 14:40:51 +02:00
Jo-Philipp Wich
69e5488c13
luci-base: luci.js: fix undefined "this" when /ubus/ is unavailable
...
Fixes : #2850
Fixes: 66dfe64ca
("luci-base: luci.js: cache determined RPC base url in session storage")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-10 13:30:52 +02:00
Jo-Philipp Wich
b5895e7c63
luci-mod-status: show all interface addresses on index page
...
Insteado f displaying only the primary/delegated address, display all
configured IP addresses in the upstream interface boxes, similar to
the interface overview page.
Fixes : #2757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-10 07:15:02 +02:00
Jo-Philipp Wich
66dfe64ca1
luci-base: luci.js: cache determined RPC base url in session storage
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-10 07:15:02 +02:00
Jo-Philipp Wich
ffdafd4800
luci-base: properly handle getWifiNetidBySid() return value
...
The getWifiNetidBySid() helper returns an array containing the network id
and the corresponding radio name, not just the id.
Fixes : #2846 .
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-09 17:50:21 +02:00
Jo-Philipp Wich
ce04d7f040
luci-base: fix label-to-input association in js cbi maps
...
Fixes : #2845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-09 14:09:22 +02:00
Jo-Philipp Wich
006f7c7932
luci-base: use native ubus HTTP gateway if available
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-08 17:39:24 +02:00
Jo-Philipp Wich
acbc031a6d
luci-base,luci-mod-system: split ubus localtime into get and set call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-08 17:07:11 +02:00
Jo-Philipp Wich
abee9138de
luci-base: add rpcd ACL rules
...
Add required ACL rules to allow access to the native ubus HTTP
interface directly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-08 16:25:30 +02:00
Jo-Philipp Wich
8055ed4c46
Revert "luci-base: luasrcdiet: switch to scm clone and fix tarball name"
...
This reverts commit faa5f0eacd
.
Fixes : #2834
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 22:03:28 +02:00
Jo-Philipp Wich
f4c87f4dc4
luci-base: mvalue.htm: fix reading back multi value options
...
Fixes: 2a229e50c
("luci-base: fix cbi mvalue templates")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 21:27:00 +02:00
Jo-Philipp Wich
2a229e50cf
luci-base: fix cbi mvalue templates
...
Fixes: 9c7eb1dec
("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 21:13:02 +02:00
Jo-Philipp Wich
875a96f653
luci-mod-network: switch hostname configuration to client side js
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:14:18 +02:00
Jo-Philipp Wich
91afb6fae2
luci-base: network.js: dynamically calculate IPv4 netmasks
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:12:42 +02:00
Jo-Philipp Wich
f970c485cf
treewide: switch to shared isObject(), toArray() and sortedKeys() helpers
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:11:35 +02:00
Jo-Philipp Wich
37ca6fe6d6
luci-base: luci.js: add isObject(), toArray() and sortedKeys() helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 20:10:13 +02:00
Jo-Philipp Wich
d6aa68ae0d
luci-mod-network: switch route configuration page to client side view
...
Also implement extended route attributes via modal dialog.
Fixes : #2695
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 19:12:59 +02:00
Jo-Philipp Wich
bce291e6c9
luci-base: form.js: reload map data when saving modal forms
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 19:12:59 +02:00
Jo-Philipp Wich
f8e6caf552
luci-base: widgets.js: add textvalude representation for network select
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 19:12:59 +02:00
Jo-Philipp Wich
1fad6c0eed
Merge pull request #2806 from dibdot/magic
...
system-wide: fix escaping of magic chars
2019-07-07 15:39:56 +02:00
Jo-Philipp Wich
e13822e709
luci-base: uci.js: track packages affected by reorder operations
...
This is required to properly reload the configurations after applying uci
changes that solely consist of uci section ordering operations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
00a3da1fb3
luci-base: fix regular expression in network.Protocol.getDevices()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
a13dba8071
luci-base: add tools.widgets JS library
...
Add a tools.widgets library which bundles a number of useful, higher
level CBI widgets like firewall zone list or network interface dropdowns
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
1bd9ee91af
luci-base: validation.js: rework translation labels
...
Rework validation error translations for compount operators such
as list() or neg() to not rely that much on specific native language
grammar.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
0560858380
luci-base: uci.js: add extended section syntax support, improve loading
...
Add support for extended section syntax notation in @type[#] format and
refactor the package loading function to not load configurations twice
when a package load operation is already pending and another load request
is made for the same package.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
dc2b38cb6f
luci-base: {ui,form}.js: allow passing additional CSS classes to modals
...
Add the ability to pass additional CSS classes to modal dialogs and
make use of this facility in form.js to annotate CBI map modals.
This can be used later by themes to apply additional CSS rules.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
1605f29b6f
luci-base: luci.js: don't abort finished xhr objects
...
Calling abort() on a finished xhr object will clear properties such
as status which can confuse code relying on legacy LuCI request
helper functions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
0bcb9f9f1d
luci-base: cbi.js: fix number rounding in string.format()
...
Ensure that patterns like %d, %x, %o or %b properly truncate their
operands to whole integers.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:26 +02:00
Jo-Philipp Wich
0539e7f6b9
luci-base: form.js: support placeholders for DynamicList widgets
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
1482554de6
luci-base: form.js: fix rendering flag values in modals
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
ff775a69f7
luci-base: form.js: trigger validation before saving cbi map
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
bf3bf6a8a9
luci-base: form.js: prevent section creation on modal cbi save failure
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
4a0f8b5541
luci-base: ui.js: fix rendering of rich dropdown placeholders
...
Placeholders may be HTML elements instead of plain strings, so do
not use innerHTML to assign them but rely on L.dom.content() instead.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
2f79aa1c35
luci-base: implement further ubus calls
...
Implement new ubus rpcd backend calls for later use in the frontend:
- netdevs: dump information about Linux network devices present
- boardjson: dump /etc/board.json if present
- offload_support: query whether netfilter offloading is supported
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
c5b6f42943
luci-base: fix handling of large ubus HTTP requests
...
Properly handle ubus POST requests exceeding the default chunk size
and fix a possible nil dereference when rejecting incoming requests
due to bad JSON message framing.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
79be2d57cd
luci-base: add client-side implementation of luci.model.firewall
...
Introduce firewall.js, a client side reimplementation of the
luci.model.firewall class.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
eecf859b29
luci-base: add client-side implementation of luci.model.network
...
Introduce network.js, a client side reimplementation of the
luci.model.network class.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
928adb6484
luci-base: add client-side prng library
...
Introduce a new tools.prng JS library which implements the musl libc
srand() and rand() calls to produce identical pseudo random number
sequences in the browser which is needed for the string to color
conversion later on.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
5950b87dac
luci-base: luci.js: make require() failures catcheable
...
Refactor L.require() to use L.raise() instead of L.error() to signal
class loading failures. This allows callers to handle class loading
errors in a graceful manner.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
6edc057451
luci-base: split off CBI validations into separate class
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
8a6b89c671
luci-base: luci.js: rework L.error()
...
Factor out an L.raise() function out of L.error() which constructs and
throws an exception object.
Rework the remaining L.error() function to internally use L.raise() to
construct exceptionts to render.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
f302eabd72
luci-base: form.js: default to unlimited dropdown size
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
c2f8bc90ff
luci-base: ui.js: improve dropdown behaviour
...
- Do not artificially cutoff dropdown items, use all available space
- Close open dropdown when clicking into the preview area
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
a96bec68a0
luci-mod-network: replace DHCP & DNS view with client side implementation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
bfae09e574
luci-base: implement lease status ubus call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
a31dc6f3c1
luci-base: rpc.js: drop batch api
...
Now that LuCI.Request is transparently coalescing requests, there
is no need for the rather cumbersome batch()/flush() api in rpc.js.
Also refactor the code to get rid of the rpcRequestRegistry indirection
and remove superfluous promises which simplifies the code a lot.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
5264a943b9
luci-mod-system: rework leds.js and system.js views
...
- Drop manual RPC batch usage
- Use LuCI.Poll for status updates
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:25 +02:00
Jo-Philipp Wich
b21a2813b4
luci-base: luci.js: auto-coalesce ubus requests
...
Extend LuCI.Request to automatically coalesce subsequent requests
to ubus resources into single batch requests.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
90288b2e2c
luci-base: rpc.js: make base URL configurable
...
Implement setters and getters for the base URL prefix used and also
implement a session ID getter while we're at it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
eee323cb66
luci-base: luci.js: introduce generic LuCI.Poll
...
Introduce a new LuCI.Poll class which is able to repeat any
promise based function and not strictly tied to HTTP request
semantics.
Also rework LuCI.Request.Poll and XHR.Poll as well as
LuCI.start(), LuCI.stop(), LuCI.halt() etc. to redirect to
the new api.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
8a8e8e0aac
luci-base: luci.js: enable strict mode
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
74ccea6fa2
luci-base: luci.js: handle postprocessed sources
...
- Fix discovering base url if cache buster is appended to luci.js href
- Fix extracting require tokens in minified sources
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
675824e377
luci-mod-system: use client side cbi forms for system and led config
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
c7a9900c87
luci-base: add sys.init.reload() and sys.init.restart() actions
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
6665a1d78c
luci-base: add rpcd backend plugin
...
Add an rpcd executable plugin containing procedures required by client
side views.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
3bc73a7d05
luci-base: luci.js: catch base class loading errors
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
b839ee87f2
luci-base: introduce form.js
...
Add a new client side form.js library which is a more or less direct
reimplementation of the Lua side cbi.lua in JavaScript.
Due to its client side nature, it supports a number of features which
would be hard to realize on the server side, such as drag&drop sorting,
modal sub-map dialogs, reload-free editing etc.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
9c7eb1decd
luci-base: switch from server side to client side widget markup
...
Do not render standard widgets like checkboxes, select boxes,
text input fields etc. on the server side anymore but utilize
the ui.js primitives instead.
This avoids logic duplication between server side cbi templates
and JS widgets in the future.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:24 +02:00
Jo-Philipp Wich
808b9f36eb
luci-base: cbi.js, ui.js: add custom validation callbacks, new ui widgets
...
Implement further widget primitives like text inputs or checkboxes and
support custom validation callback functions when instantiating CBI
validators.
Also add support initializing ui.js widgets from the "data-ui-widget"
HTML attribute.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:36:23 +02:00
Jo-Philipp Wich
2beb9fa16f
luci-base: add client based view actions
...
Introduce a new view() target for CBI dispatch nodes, as long with the
required template and plumbing work in luci.js to allow requiring view
classes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
5b7924c808
luci-base: luci.js: tweak error handling
...
If the ui class is loaded, use its modalDialog facility to display runtime
errors, alternatively render them into the maincontent area.
Also prevent duplication of stack trace information and throw a low level
error on session expiration to allow higher layers to properly handle it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
fda4ba598c
luci-base: replace uci change pages with client side modal dialog
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
1dd910148e
luci-base: add uci.js and rpc.js classes
...
Add a new rpc.js class which provides low level facilities to exchanges
messages with the ubus rpc endpoint.
Also introduce a new uci.js class which provides client side uci
manipulation routines.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
c89bbd50fd
luci-base: add ubus-http gateway
...
Add an admin/ubus route mimicking the native uhttpd-mod-ubus protocol.
The main difference to the native protocol is that this gateway requires
no additional per-object/procedure ACL setup on the router side and that
it is located under the same prefix as LuCI itself, allowing the reuse
of the session login cookie.
This route is meant to be a transitional mechanism until client side
RPC calls are eventually migrated to uhttpd-mod-ubus completely.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
558f8c3b2a
luci-base: move dropdown, combox and dynlist widget code to L.ui
...
Move the widget code to the ui class and replace it with compatibility
shims in cbi.js
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
e4c29c6db4
luci-base: luci.js: add L.dom.data()
...
Add a new data() function which allows to attach arbitrary JS data
to DOM elements.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
4a9f784a2a
luci-base: cbi.js: support field validation for formless inputs
...
JS CBI fields have no parent form element anymore.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
6b8701c7bf
luci-base: cbi.js: untangle dropdown and dynlists from dependency update
...
In order to prepare the move of the dynlist and dropdown widgets into
the LuCI ui class, remove the direct calls to cbi_d_update() and replace
them with custom events instead.
Extend cbi_init() to handle these custom events and to invoke
cbi_d_update() when receiving them.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
1b931e0262
luci-base: luci.js: add L.bind() helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
ef187d5238
luci-base: luci.js: consolidate error handling
...
Add a new function L.error() which creates and throws a custom
error object with stack information and given type.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
26e54bb01f
luci-base: luci.js: convert LuCI.dom to Class instance
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
344c4c5119
luci-base: luci.js: split ui helper functions into external ui.js
...
Use the new class loader infrastructure to move gui specific
functionality out of the luci.js core and dispatch a new event
'luci-loaded' which is fired once all external classes have
been fetched.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
ec6d4094b9
luci-base: luci.js: add dynamic class loader
...
Introduce L.require() to fetch additional JavaScript classes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
992638947d
luci-base: luci.js: convert LuCI to Class instance
...
Also hijack cbi_init() and call it after the LuCI DOM setup.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
843031f819
luci-base: luci.js: add HTTP request functions
...
Add a fetch() inspired HTTP request utility class to luci.js and
replace the old xhr.js class with a stub using the new request api.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
fee8c1fc9c
luci-base: luci.js: add class construction helper
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
9be6bb0577
luci-base: add ES6 Promise polyfill for IE < Edge
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Jo-Philipp Wich
53e20c4925
luci-base: luci.js: add Object.assign polyfill
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Yousong Zhou
3a24c2dbaa
luci-base: hide autocomplete-preventing password input with bigger offset
...
Fixes openwrt/luci#2624
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06 22:48:10 +08:00
Yousong Zhou
609f5290c8
luci-base: nowrap for password input and reveal button
...
Fixes openwrt/luci#2624
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-07-06 22:48:10 +08:00
Hannu Nyman
2f769ee087
timezone data: update to 2019b
...
Update timezone data to 2019b
http://mm.icann.org/pipermail/tz-announce/2018-December/000055.html
http://mm.icann.org/pipermail/tz/2019-July/028249.html
2019a:
* Palestine "springs forward" on 2019-03-30 instead of 2019-03-23.
* Brazil no longer observes DST.
2019b:
* Palestine's 2019 spring-forward transition was on 03-29, not 03-30.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-07-05 17:56:04 +03:00
Martin Schiller
cc360b94f8
luci-base: fix typo in german translation
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-02 09:13:15 +02:00
Martin Schiller
001dc0664e
luci-base: add german translations for led trigger
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01 08:51:17 +02:00
Martin Schiller
19289107dd
luci-mod-system: fix flash activity trigger name
...
The former name "Flashmemory write access" is wrong. The triggers also
indicate read/erase access to the flash memories.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-01 07:02:42 +02:00
Dirk Brenken
f73da9ca82
system-wide: fix escaping of magic chars
...
* fix escaping of magic lua chars (#2800 )
* fix redundant second gsub line in shellstartsqescape function
* fix return value of shellstartsqescape function
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-06-29 19:26:07 +02:00
Hannu Nyman
1c80eb1962
luci-base: show niced processes on Status/Processes page
...
Modify the process status filter to allow also the processes
with a nice value to be visible on the Status/Processes page.
Filter out the top process itself.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-28 18:56:53 +03:00
Martin Schiller
a8f79f12d6
luci-mod-system: fix some led trigger name translations
...
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-28 15:44:26 +02:00
Florian Eckert
977f657791
Merge pull request #2061 from Ansuel/improveconn
...
luci-mod-admin-full: improve connection page lookup loop
2019-06-28 07:49:37 +02:00
Bjørn Mork
689934196f
luci-mod-network: os-release variables have been renamed to OPENWRT_
...
commit 8a34a54b6aa6 ("base-files: use OPENWRT prefix for os-release
variables") changes the prefix of the os-release variables from LEDE_
to OPENWRT_. Use the new name.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2019-06-26 14:54:27 +02:00
Franco Castillo
d3bb50dcd8
luci-base: Update Spanish translation
...
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-06-22 17:41:17 -03:00
Jo-Philipp Wich
1aa13ed51e
luci-mod-system: prevent clearing rc.local on unrelated submit actions
...
Fixes : #2760
Fixes: 1c09ee5e4
("luci-mod-system: fix SimpleForm usage on file editing pages")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-06-12 17:47:30 +02:00
Perry Thompson
1818499243
luci-base: update Traditional Chinese translation
...
Signed-off-by: Perry Thompson <contact@ryper.org>
2019-06-12 20:55:47 +08:00
a962702
b93d66d806
luci-base: update Traditional Chinese translation
...
update Traditional Chinese translations.
Signed-off-by: Andy Yun <a962702@yahoo.com>
2019-06-11 20:43:33 +08:00
Andy
7e27e3f930
luci-base: update Traditional Chinese translation
...
update Traditional Chinese translation.
Signed-off-by: Andy Yun <a962702@yahoo.com>
2019-06-11 20:43:33 +08:00
Hannu Nyman
0a5579a631
i18n: sync translations
...
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-06-09 19:24:00 +03:00
Anton Kikin
886e0b3eff
luci-base: update Russian translation
...
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-06-05 21:43:17 +03:00
Jo-Philipp Wich
1c09ee5e42
luci-mod-system: fix SimpleForm usage on file editing pages
...
When a value identical to the stored one is submitted, the CBI framework
will not emit an option write event and therfore not store the value in
the form data dictionary passed to SimpleForm.handle().
This usage pattern usally works be accident for file editor views such
as admin_system/crontab because \r\n windows style line endings are
substituted with unix \n ones before writing the data, defeating the
equality check in CBI.
When a single line without trailing newline is submitted however, the
CBI will not see a difference to the data stored in the file and clear
out the value on subsequent saves.
This commit alignes the logic used by various SimpleForm views to
behave identically and predictable:
- File data is handled in the SimpleForm.handle() callback
- The forcewrite property is used to disable equality checks
- Submission of an empty string empties the backing file
Fixes : #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-06-05 16:15:40 +02:00
Dirk Brenken
64fb538568
luci-base: fix duid_to_mac reference in status.lua
...
* fix for openwrt/packages#9148
Signed-off-by: Dirk Brenken <dev@brenken.org>
2019-06-04 16:54:24 +02:00
Ansuel Smith
bb34a31e81
luci-base: handle dhcp lease from odhcpd
...
Currently only the dnsmasq lease file is read for hostname hint. If someone use only odhcpd as dhcp daemon the hostname resolution on wifi_assoc list is broken.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-06-03 12:51:33 +02:00
Ansuel Smith
525d62ff33
luci-base: adds duid_to_mac to sys.lua
...
Move duid_to_mac function from status.lua to sys.lua.
Implement translation from DUID-LL without header to MAC
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-06-03 12:48:48 +02:00
Florian Eckert
889e8eec4f
Merge pull request #2670 from TDT-AG/pr/20190410-luci-mod-network
...
luci-mod-network: move auto option to general tab
2019-05-29 11:10:19 +02:00
Florian Eckert
d1d5471137
Merge pull request #2174 from rosysong/lease-status
...
luci-base: drop ipv6 lease status when IPV6 is not support
2019-05-25 21:43:50 +02:00
Lars Kruse
ed6a660261
luci-base: Update German translation
...
The following changes are included:
* properly handle "Präfix" as neuter
* add missing hyphens to many appearances of "Präfix"
* fix spelling
* add few missing translations
Signed-off-by: Lars Kruse <devel@sumpfralle.de>
2019-05-18 00:26:44 +02:00
Hannu Nyman
a7d35ede73
Merge pull request #2716 from castillofrancodamian/base
...
luci-base: Update Spanish translation
2019-05-17 16:56:26 +03:00
Zheng Qian
3435c5272d
luci-base: zh_CN: update Simplified Chinese translation
...
Signed-off-by: Zheng Qian <sotux82@gmail.com>
2019-05-17 09:21:46 +08:00
Franco Castillo
7681967fcb
luci-base: Update Spanish translation
...
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-05-16 20:14:14 -03:00
Franco Castillo
1df3fe306d
luci-base: Update Spanish translation
...
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2019-05-15 00:25:07 -03:00
INAGAKI Hiroshi
fef11c2ac1
luci-base: update Japanese translation
...
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-05-13 18:58:37 +09:00
INAGAKI Hiroshi
b21a425a2c
i18n: sync translations
...
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2019-05-13 18:18:52 +09:00