Jo-Philipp Wich [Mon, 7 Oct 2019 08:07:49 +0000 (10:07 +0200)]
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>
Jo-Philipp Wich [Wed, 2 Oct 2019 18:01:27 +0000 (20:01 +0200)]
luci-mod-system: sshkeys.js: use common fs.js class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:58:09 +0000 (19:58 +0200)]
luci-mod-system: startup.js: use common fs.js class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:53:17 +0000 (19:53 +0200)]
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>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:45:36 +0000 (19:45 +0200)]
luci-mod-system: crontab.js: use common fs.js class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:42:48 +0000 (19:42 +0200)]
luci-base: ui.js: use common fs.js class for filebrowser operations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:41:29 +0000 (19:41 +0200)]
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>
Jo-Philipp Wich [Wed, 2 Oct 2019 17:39:23 +0000 (19:39 +0200)]
luci-base: luci.js: add resolveDefault() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sat, 5 Oct 2019 15:59:08 +0000 (18:59 +0300)]
luci-app-statistics: fix memory plugin config
Fix
d064cbcf9 by actually enabling ValuesAbsolute in the
config file and also prevent removing that option by LuCI.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Dirk Brenken [Fri, 4 Oct 2019 16:22:02 +0000 (18:22 +0200)]
Merge pull request #3142 from dibdot/banIP
luci-app-banip: sync with banIP 0.3.0
Dirk Brenken [Fri, 4 Oct 2019 07:21:11 +0000 (09:21 +0200)]
luci-app-banip: sync with banIP 0.3.0
* see package PR for details
Signed-off-by: Dirk Brenken <dev@brenken.org>
Zheng Qian [Sun, 29 Sep 2019 07:33:35 +0000 (15:33 +0800)]
luci-base: zh_CN: update Simplified Chinese translation
Signed-off-by: Zheng Qian <sotux82@gmail.com>
Jo-Philipp Wich [Wed, 2 Oct 2019 10:59:23 +0000 (12:59 +0200)]
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>
Rafał Miłecki [Wed, 25 Sep 2019 15:55:43 +0000 (17:55 +0200)]
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>
Rafał Miłecki [Wed, 25 Sep 2019 14:51:38 +0000 (16:51 +0200)]
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>
Rafał Miłecki [Wed, 25 Sep 2019 14:51:37 +0000 (16:51 +0200)]
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>
Jo-Philipp Wich [Wed, 2 Oct 2019 06:59:00 +0000 (08:59 +0200)]
luci-base: luci.js, rpc.js, uci.js, network.js: add JSDoc annotations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Wed, 2 Oct 2019 06:24:17 +0000 (08:24 +0200)]
Merge pull request #3137 from stangri/master-luci-app-vpnbypass
luci-app-vpnbypass: fix dispatcher bug when VPN node is present
Stan Grishin [Wed, 2 Oct 2019 01:22:35 +0000 (18:22 -0700)]
luci-app-vpnbypass: fix dispatcher bug when VPN node is present
Signed-off-by: Stan Grishin <stangri@melmac.net>
Florian Eckert [Tue, 1 Oct 2019 08:05:49 +0000 (10:05 +0200)]
Merge pull request #3064 from TDT-AG/pr/
20190913-luci-app-commands
luci-app-commands: fix escaping of additional shell chars
Florian Eckert [Mon, 30 Sep 2019 11:05:07 +0000 (13:05 +0200)]
Merge pull request #3131 from tano-systems/pr/luci-base-i18n-ru
luci-base: update Russian translation
Anton Kikin [Mon, 30 Sep 2019 10:49:39 +0000 (13:49 +0300)]
luci-base: update Russian translation
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Jo-Philipp Wich [Mon, 30 Sep 2019 10:40:12 +0000 (12:40 +0200)]
luci-mod-network: display the mesh ID in wireless overview if applicable
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 30 Sep 2019 10:39:33 +0000 (12:39 +0200)]
luci-base: network.js: implement getMeshID() getter
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Mon, 30 Sep 2019 08:27:35 +0000 (10:27 +0200)]
luci-mod-system: allow IPv6 addresses for external syslog server
Fixes: #3126
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sat, 28 Sep 2019 18:45:21 +0000 (18:45 +0000)]
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>
Jo-Philipp Wich [Fri, 27 Sep 2019 10:53:47 +0000 (12:53 +0200)]
luci-mod-system: fix rerendering of ssh key list after add/remove
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 27 Sep 2019 10:01:41 +0000 (12:01 +0200)]
luci-mod-system: allow deleting all NTP servers
Fixes: #3121
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Thu, 26 Sep 2019 05:52:28 +0000 (07:52 +0200)]
Merge pull request #3117 from YuriPet/patch-5
luci-base: update Ukrainian translation
Yurii [Wed, 25 Sep 2019 19:46:59 +0000 (22:46 +0300)]
luci-base: update Ukrainian translation
Updating Ukrainian translation according the latest sync translation. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Jo-Philipp Wich [Wed, 25 Sep 2019 17:42:06 +0000 (19:42 +0200)]
luci-mod-system: flash.js: disable mtdblock downloads on mtd-less systems
Ref: https://github.com/openwrt/luci/commit/
3c40a7450a9b7d340cdc9e233818c63a8092fec2#commitcomment-
35233073
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Wed, 25 Sep 2019 17:37:27 +0000 (19:37 +0200)]
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: https://github.com/openwrt/luci/commit/
3c40a7450a9b7d340cdc9e233818c63a8092fec2#commitcomment-
35233207
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Wed, 25 Sep 2019 16:39:03 +0000 (19:39 +0300)]
Merge pull request #3116 from castillofrancodamian/luci
luci-base: update Spanish translation
Franco Castillo [Wed, 25 Sep 2019 16:35:44 +0000 (13:35 -0300)]
luci-base: update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Wed, 25 Sep 2019 14:23:02 +0000 (16:23 +0200)]
luci-mod-system: flash.js: improve storage size detection heuristics
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 17:56:44 +0000 (19:56 +0200)]
Merge pull request #2756 from Ansuel/wps
luci-mod-network: permit WPS push-button on WPA3
Ansuel Smith [Tue, 24 Sep 2019 17:38:01 +0000 (19:38 +0200)]
luci-base: update translation with changed string
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Ansuel Smith [Tue, 24 Sep 2019 17:16:14 +0000 (19:16 +0200)]
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>
Jo-Philipp Wich [Tue, 24 Sep 2019 17:27:18 +0000 (19:27 +0200)]
Merge pull request #2357 from Ansuel/mastero
luci-mod-network: add master option
Jo-Philipp Wich [Tue, 24 Sep 2019 17:26:24 +0000 (19:26 +0200)]
luci-mod-system: system.js: use more concise label for use_dhcp
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Ansuel Smith [Tue, 24 Sep 2019 15:59:20 +0000 (17:59 +0200)]
luci-base: adds italian translation for master description
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Ansuel Smith [Tue, 24 Sep 2019 15:57:22 +0000 (17:57 +0200)]
luci-base: sync translations
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Ansuel Smith [Tue, 24 Sep 2019 15:56:41 +0000 (17:56 +0200)]
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>
Dirk Brenken [Tue, 24 Sep 2019 16:52:49 +0000 (18:52 +0200)]
Merge pull request #3083 from onjen/captive-optional-args
luci-app-travelmate: add support for optional args in auto-login script
Jo-Philipp Wich [Tue, 24 Sep 2019 16:41:22 +0000 (18:41 +0200)]
luci-mod-system: system.js: expose use_dhcp NTP option
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Tue, 24 Sep 2019 16:30:05 +0000 (19:30 +0300)]
Merge pull request #3112 from stangri/master-luci-app-simple-adblock
luci-app-simple-adblock: dnsmasq.ipset option support
Stan Grishin [Tue, 24 Sep 2019 16:16:52 +0000 (09:16 -0700)]
luci-app-simple-adblock: dnsmasq.ipset option support
Signed-off-by: Stan Grishin <stangri@melmac.net>
Johannes Rothe [Thu, 19 Sep 2019 21:28:39 +0000 (23:28 +0200)]
luci-app-travelmate: add support for optional args in auto-login script
This can be helpful for example in hotels where you need to
enter a new user/password combination every week.
Signed-off-by: Johannes Rothe <mail@johannes-rothe.de>
Jo-Philipp Wich [Tue, 24 Sep 2019 09:33:21 +0000 (11:33 +0200)]
luci-mod-system: reimplement flashops as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 10:17:26 +0000 (12:17 +0200)]
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>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:16:27 +0000 (08:16 +0200)]
Merge pull request #3107 from castillofrancodamian/udpxy
luci-app-udpxy: add Spanish translation
mpratt14 [Sat, 21 Sep 2019 22:38:30 +0000 (18:38 -0400)]
luci-theme-openwrt: fix scrolling issue in syslog
Depending on the browser, it is sometimes difficult to scroll if moused
over or after clicking or highlighting text. I often have to click outside
the text to be able to scroll again. The browser perceives that there is
scrolling space/content within the <textarea> element because it is
almost, but not exactly, the same size as its parent <div> element,
when in reality, there is no more text content. This causes scrolling
within the element with a range of just a few pixels, and the rest of
the page remains static.
This is easily solved by adding the "overflow-y" property with value
"hidden". Tested by myself on Chrome 64-bit Windows 10
Signed-off-by: Michael Pratt <mpratt51@gmail.com>
[rewrap commit message, fix Sob syntax]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:10:16 +0000 (08:10 +0200)]
luci-app-statistics: show decimal in iptables values
Fixes: #3109
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:09:02 +0000 (08:09 +0200)]
luci-mod-network: wireless.js: properly handle SAE in join confirmation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:05:11 +0000 (08:05 +0200)]
luci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:02:57 +0000 (08:02 +0200)]
luci-base: network.js: fix deleteNetwork() implementation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 06:01:04 +0000 (08:01 +0200)]
luci-base: form.js: do not inherit map tabbing to nested sections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 05:59:04 +0000 (07:59 +0200)]
luci-base: form.js: allow overriding remove action in Table/GridSections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Tue, 24 Sep 2019 05:24:11 +0000 (07:24 +0200)]
luci-mod-network: wireless.js: prompt for passphrase when joining SAE net
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Chen Minqiang [Mon, 23 Sep 2019 17:11:16 +0000 (01:11 +0800)]
luci-mod-network: resort zonePromise order
This fix #3103
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Franco Castillo [Mon, 23 Sep 2019 19:48:11 +0000 (16:48 -0300)]
luci-app-udpxy: add Spanish translation
Add Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Mon, 23 Sep 2019 09:44:18 +0000 (11:44 +0200)]
luci-mod-system: ensure that textarea contents are properly escaped
Fixes: #3090
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Florian Eckert [Mon, 23 Sep 2019 07:04:17 +0000 (09:04 +0200)]
Merge pull request #1735 from sumpfralle/olsr-jsoninfo-parser-handle-empty-result
luci-app-olsr: handle empty result for non-status tables
Jo-Philipp Wich [Sun, 22 Sep 2019 20:27:12 +0000 (22:27 +0200)]
luci-theme-material: mobile style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 22 Sep 2019 20:26:36 +0000 (22:26 +0200)]
luci-base: form.js: do not add title attributes for untitled options
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sun, 22 Sep 2019 17:32:25 +0000 (19:32 +0200)]
luci-theme-material: fix some severe styling issues
Add some CSS band aids to fix styling and positioning of hidden tab panes,
cbi maps in modal dialogs and nested cbi sections.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Hannu Nyman [Sun, 22 Sep 2019 06:21:08 +0000 (09:21 +0300)]
Merge pull request #3099 from EricLuehrsen/unbound_info
luci-app-unbound: inform if odhcpd is not configured
Eric Luehrsen [Sun, 22 Sep 2019 00:36:04 +0000 (20:36 -0400)]
luci-app-unbound: inform if odhcpd is not configured
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Florian Eckert [Sat, 21 Sep 2019 19:56:39 +0000 (21:56 +0200)]
Merge pull request #3096 from YuriPet/patch-4
luci-app-firewall: update Ukrainian translation
Yurii [Sat, 21 Sep 2019 19:14:38 +0000 (22:14 +0300)]
luci-app-firewall: update Ukrainian translation
Update Ukrainian translation according the latest sync translation.
Signed-off-by: Yurii <yuripet@gmail.com>
Hannu Nyman [Sat, 21 Sep 2019 18:59:05 +0000 (21:59 +0300)]
Merge pull request #3095 from YuriPet/patch-3
luci-base: update Ukrainian translation
Yurii [Sat, 21 Sep 2019 18:58:26 +0000 (21:58 +0300)]
luci-base: update Ukrainian translation
Corrected my typo.
Signed-off-by: Yurii <yuripet@gmail.com>
Florian Eckert [Sat, 21 Sep 2019 18:53:08 +0000 (20:53 +0200)]
Merge pull request #3042 from muink/patch-1
luci-base: hosts.js: Update chinese translations
Florian Eckert [Sat, 21 Sep 2019 18:50:38 +0000 (20:50 +0200)]
Merge pull request #3094 from YuriPet/patch-2
luci-base: update Ukrainian translation
Yurii [Sat, 21 Sep 2019 18:49:11 +0000 (21:49 +0300)]
luci-base: update Ukrainian translation
Update Ukrainian translation according the latest translation resync. Сorrections and additions.
Signed-off-by: Yurii <yuripet@gmail.com>
Hannu Nyman [Sat, 21 Sep 2019 17:47:32 +0000 (20:47 +0300)]
Merge pull request #3093 from castillofrancodamian/master
luci-base: update Spanish translation
Franco Castillo [Sat, 21 Sep 2019 17:29:54 +0000 (14:29 -0300)]
luci-base: update Spanish translation
Update Spanish translation.
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Jo-Philipp Wich [Sat, 21 Sep 2019 17:06:30 +0000 (19:06 +0200)]
luci-mod-system: remove unused controller actions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:46:17 +0000 (18:46 +0200)]
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>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:43:42 +0000 (18:43 +0200)]
luci-mod-system: mounts.js: implicitely create globals section
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:36:31 +0000 (18:36 +0200)]
luci-mod-system: remplement fstab settings as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 16:30:34 +0000 (18:30 +0200)]
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>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:55:54 +0000 (10:55 +0200)]
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>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:23:15 +0000 (10:23 +0200)]
luci-base: network.js: don't batch wireless scan requests
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:21:15 +0000 (10:21 +0200)]
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>
Jo-Philipp Wich [Sat, 21 Sep 2019 08:19:22 +0000 (10:19 +0200)]
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>
Hannu Nyman [Sat, 21 Sep 2019 08:21:01 +0000 (11:21 +0300)]
Merge pull request #3091 from musashino205/l10n/base-upd-ja
luci-base: update Japanese translation
INAGAKI Hiroshi [Sat, 21 Sep 2019 08:09:25 +0000 (17:09 +0900)]
luci-base: update Japanese translation
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 21 Sep 2019 07:59:44 +0000 (16:59 +0900)]
luci-base: use old translation for "Gateway Ports"
This text is replaced from "Gateway ports" in
f878b21c8c4ef9444a9de6bc02b58ed4f91b0b2d.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
INAGAKI Hiroshi [Sat, 21 Sep 2019 05:26:49 +0000 (14:26 +0900)]
luci-base: sync translations
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Jo-Philipp Wich [Fri, 20 Sep 2019 15:11:38 +0000 (17:11 +0200)]
luci-mod-network: sort wifi encryption by strength and popularity
Fixes: #3082
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 11:39:22 +0000 (13:39 +0200)]
luci-mod-network: fix key option quirk when switching wep and wpa modes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 09:30:09 +0000 (11:30 +0200)]
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>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:58:31 +0000 (09:58 +0200)]
luci-base: form.js: only update option default if cfgvalue is null
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:55:51 +0000 (09:55 +0200)]
luci-mod-network: default to ieee80211w=1 for OWE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Fri, 20 Sep 2019 07:36:23 +0000 (09:36 +0200)]
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:48:27 +0000 (15:48 +0200)]
luci-mod-network: wireless.js: fix disabled state on disabled radio
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:46:39 +0000 (15:46 +0200)]
luci-mod-network: wireless.js: select proper 11w default for WPA3 modes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:40:57 +0000 (15:40 +0200)]
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>
Jo-Philipp Wich [Thu, 19 Sep 2019 13:39:46 +0000 (15:39 +0200)]
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>