oweals/luci.git
5 years agoluci-app-banip: sync with banIP 0.3.0 3142/head
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>
5 years agoMerge pull request #3064 from TDT-AG/pr/20190913-luci-app-commands
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

5 years agoMerge pull request #3131 from tano-systems/pr/luci-base-i18n-ru
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

5 years agoluci-base: update Russian translation 3131/head
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>
5 years agoluci-mod-network: display the mesh ID in wireless overview if applicable
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>
5 years agoluci-base: network.js: implement getMeshID() getter
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>
5 years agoluci-mod-system: allow IPv6 addresses for external syslog server
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>
5 years agotimezone data: update to 2019c
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>
5 years agoluci-mod-system: fix rerendering of ssh key list after add/remove
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>
5 years agoluci-mod-system: allow deleting all NTP servers
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>
5 years agoMerge pull request #3117 from YuriPet/patch-5
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

5 years agoluci-base: update Ukrainian translation 3117/head
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>
5 years agoluci-mod-system: flash.js: disable mtdblock downloads on mtd-less systems
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>
5 years agoluci-mod-system: flash.js: rename handleReset to handleFirstboot
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>
5 years agoMerge pull request #3116 from castillofrancodamian/luci
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

5 years agoluci-base: update Spanish translation 3116/head
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>
5 years agoluci-mod-system: flash.js: improve storage size detection heuristics
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>
5 years agoMerge pull request #2756 from Ansuel/wps
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

5 years agoluci-base: update translation with changed string 2756/head
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>
5 years agoluci-mod-network: permit WPS push-button on WPA3
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>
5 years agoMerge pull request #2357 from Ansuel/mastero
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

5 years agoluci-mod-system: system.js: use more concise label for use_dhcp
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>
5 years agoluci-base: adds italian translation for master description 2357/head
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>
5 years agoluci-base: sync translations
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>
5 years agoluci-mod-network: add master option
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>
5 years agoMerge pull request #3083 from onjen/captive-optional-args
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

5 years agoluci-mod-system: system.js: expose use_dhcp NTP option
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>
5 years agoMerge pull request #3112 from stangri/master-luci-app-simple-adblock
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

5 years agoluci-app-simple-adblock: dnsmasq.ipset option support 3112/head
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>
5 years agoluci-app-travelmate: add support for optional args in auto-login script 3083/head
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>
5 years agoluci-mod-system: reimplement flashops as client side view
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>
5 years agoluci-mod-system: startup.js: fix syntax error
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>
5 years agoMerge pull request #3107 from castillofrancodamian/udpxy
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

5 years agoluci-theme-openwrt: fix scrolling issue in syslog
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>
5 years agoluci-app-statistics: show decimal in iptables values
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>
5 years agoluci-mod-network: wireless.js: properly handle SAE in join confirmation
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>
5 years agoluci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
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>
5 years agoluci-base: network.js: fix deleteNetwork() implementation
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>
5 years agoluci-base: form.js: do not inherit map tabbing to nested sections
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>
5 years agoluci-base: form.js: allow overriding remove action in Table/GridSections
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>
5 years agoluci-mod-network: wireless.js: prompt for passphrase when joining SAE net
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>
5 years agoluci-mod-network: resort zonePromise order
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>
5 years agoluci-app-udpxy: add Spanish translation 3107/head
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>
5 years agoluci-mod-system: ensure that textarea contents are properly escaped
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>
5 years agoMerge pull request #1735 from sumpfralle/olsr-jsoninfo-parser-handle-empty-result
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

5 years agoluci-theme-material: mobile style fixes
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>
5 years agoluci-base: form.js: do not add title attributes for untitled options
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>
5 years agoluci-theme-material: fix some severe styling issues
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>
5 years agoMerge pull request #3099 from EricLuehrsen/unbound_info
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

5 years agoluci-app-unbound: inform if odhcpd is not configured 3099/head
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>
5 years agoMerge pull request #3096 from YuriPet/patch-4
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

5 years agoluci-app-firewall: update Ukrainian translation 3096/head
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>
5 years agoMerge pull request #3095 from YuriPet/patch-3
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

5 years agoluci-base: update Ukrainian translation 3095/head
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>
5 years agoMerge pull request #3042 from muink/patch-1
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

5 years agoMerge pull request #3094 from YuriPet/patch-2
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

5 years agoluci-base: update Ukrainian translation 3094/head
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>
5 years agoMerge pull request #3093 from castillofrancodamian/master
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

5 years agoluci-base: update Spanish translation 3093/head
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>
5 years agoluci-mod-system: remove unused controller actions
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>
5 years agoluci-mod-system: mounts.js: preload fstab uci
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>
5 years agoluci-mod-system: mounts.js: implicitely create globals section
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>
5 years agoluci-mod-system: remplement fstab settings as client side view
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>
5 years agoluci-base: add rpc methods for mount management
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>
5 years agoluci-base: tie cached system features to user session
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>
5 years agoluci-base: network.js: don't batch wireless scan requests
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>
5 years agoluci-base: rpc.js: increase default timeout to 20s, allow batch prevention
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>
5 years agoluci-base: luci.js: improve XHR issue diagnostics
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>
5 years agoMerge pull request #3091 from musashino205/l10n/base-upd-ja
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

5 years agoluci-base: update Japanese translation 3091/head
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>
5 years agoluci-base: use old translation for "Gateway Ports"
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>
5 years agoluci-base: sync translations
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>
5 years agoluci-mod-network: sort wifi encryption by strength and popularity
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>
5 years agoluci-mod-network: fix key option quirk when switching wep and wpa modes
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>
5 years agoluci-mod-network: default to ieee80211w=2 for OWE
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>
5 years agoluci-base: form.js: only update option default if cfgvalue is null
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>
5 years agoluci-mod-network: default to ieee80211w=1 for OWE
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>
5 years agoluci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
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>
5 years agoluci-mod-network: wireless.js: fix disabled state on disabled radio
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>
5 years agoluci-mod-network: wireless.js: select proper 11w default for WPA3 modes
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>
5 years agoluci-base: form.js: add support for dynamic default values
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>
5 years agoluci-base: ui.js: mark user-changed widgets
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>
5 years agoluci-app-commands: do not escape pipe on cmd line 3064/head
Florian Eckert [Mon, 16 Sep 2019 09:02:53 +0000 (11:02 +0200)]
luci-app-commands: do not escape pipe on cmd line

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-base: form.js: fix default click action of button options
Jo-Philipp Wich [Wed, 18 Sep 2019 13:08:19 +0000 (15:08 +0200)]
luci-base: form.js: fix default click action of button options

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: ensure that button labels are properly html escaped
Jo-Philipp Wich [Wed, 18 Sep 2019 11:51:16 +0000 (13:51 +0200)]
luci-base: ensure that button labels are properly html escaped

Fixes: #3067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: proto_dhcp.lua: Update chinese translations 3042/head
muink [Wed, 18 Sep 2019 11:35:09 +0000 (19:35 +0800)]
luci-base: proto_dhcp.lua: Update chinese translations

Signed-off-by: muink <hukk1996@gmail.com>
5 years agoluci-mod-system: system.js: simplify btn actions, use feature flags
Jo-Philipp Wich [Wed, 18 Sep 2019 06:16:41 +0000 (08:16 +0200)]
luci-mod-system: system.js: simplify btn actions, use feature flags

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #3080 from castillofrancodamian/master
Hannu Nyman [Wed, 18 Sep 2019 06:07:33 +0000 (09:07 +0300)]
Merge pull request #3080 from castillofrancodamian/master

luci-base and apps: update Spanish translation

5 years agoluci-base: network.js: filter invalid mac addresses
Jo-Philipp Wich [Wed, 18 Sep 2019 05:46:33 +0000 (07:46 +0200)]
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>
5 years agoluci-mod-network: interfaces.js: derive status from layer 3 device
Jo-Philipp Wich [Wed, 18 Sep 2019 05:33:25 +0000 (07:33 +0200)]
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>
5 years agoluci-base: network.js: get low level device details from getifaddr() info
Jo-Philipp Wich [Wed, 18 Sep 2019 05:19:18 +0000 (07:19 +0200)]
luci-base: network.js: get low level device details from getifaddr() info

Fixes: #3078
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: disable redundant page actions in crontab, startup views
Jo-Philipp Wich [Wed, 18 Sep 2019 05:23:01 +0000 (07:23 +0200)]
luci-mod-system: disable redundant page actions in crontab, startup views

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base and apps: update Spanish translation 3080/head
Franco Castillo [Wed, 18 Sep 2019 02:40:37 +0000 (23:40 -0300)]
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>
5 years agoMerge pull request #3074 from TDT-AG/pr/20190916-flashops-german-translation
Florian Eckert [Tue, 17 Sep 2019 18:59:51 +0000 (20:59 +0200)]
Merge pull request #3074 from TDT-AG/pr/20190916-flashops-german-translation

luci-base: fix german translation for factory reset hint

5 years agoMerge pull request #3063 from TDT-AG/pr/20190908-luci-app-statistics
Florian Eckert [Tue, 17 Sep 2019 08:09:23 +0000 (10:09 +0200)]
Merge pull request #3063 from TDT-AG/pr/20190908-luci-app-statistics

luci-app-statistics: Add new plugin options

5 years agoluci-proto-wireguard: fix preshared key validation
Jo-Philipp Wich [Tue, 17 Sep 2019 06:28:45 +0000 (08:28 +0200)]
luci-proto-wireguard: fix preshared key validation

Ensure that the preshared key option remains optional.

Fixes: #3075
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: remplement dropbear settings as client side view
Jo-Philipp Wich [Tue, 17 Sep 2019 05:43:48 +0000 (07:43 +0200)]
luci-mod-system: remplement dropbear settings as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: fix german translation for factory reset hint 3074/head
Martin Schiller [Mon, 16 Sep 2019 07:32:25 +0000 (09:32 +0200)]
luci-base: fix german translation for factory reset hint

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
5 years agoluci-mod-system: remplement password change as client side view
Jo-Philipp Wich [Mon, 16 Sep 2019 05:54:25 +0000 (07:54 +0200)]
luci-mod-system: remplement password change as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-system: reimplement SSH key mgmt as client side view
Jo-Philipp Wich [Sun, 15 Sep 2019 18:00:36 +0000 (20:00 +0200)]
luci-mod-system: reimplement SSH key mgmt as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>