project/luci.git
5 years agoluci-app-vpnbypass: better service control buttons 3224/head
Stan Grishin [Sun, 20 Oct 2019 22:42:59 +0000 (15:42 -0700)]
luci-app-vpnbypass: better service control buttons

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-travelmate: sync with update 1.5.0
Dirk Brenken [Fri, 18 Oct 2019 10:44:54 +0000 (12:44 +0200)]
luci-app-travelmate: sync with update 1.5.0

* mainly adds WPA3 support

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 1cb904323ccedf5d4606e62ed358cc587ff5ed29)

5 years agoMerge pull request #3212 from stangri/19.07-luci-app-vpnbypass
Florian Eckert [Fri, 18 Oct 2019 14:57:29 +0000 (16:57 +0200)]
Merge pull request #3212 from stangri/19.07-luci-app-vpnbypass

[19.07] luci-app-vpnbypass: bugfix: properly restart dnsmasq

5 years agoluci-app-vpnbypass: bugfix: properly restart dnsmasq 3212/head
Stan Grishin [Fri, 18 Oct 2019 14:15:02 +0000 (07:15 -0700)]
luci-app-vpnbypass: bugfix: properly restart dnsmasq

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoMerge pull request #3170 from stangri/19.07-luci-app-simple-adblock
Florian Eckert [Thu, 10 Oct 2019 21:04:37 +0000 (23:04 +0200)]
Merge pull request #3170 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: bugfix: fix invalid <br> entries

5 years agoluci-app-simple-adblock: bugfix: fix invalid <br> entries 3170/head
Stan Grishin [Thu, 10 Oct 2019 12:12:49 +0000 (05:12 -0700)]
luci-app-simple-adblock: bugfix: fix invalid <br> entries

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoMerge pull request #3153 from stangri/19.07-luci-app-https_dns_proxy
Florian Eckert [Thu, 10 Oct 2019 05:37:32 +0000 (07:37 +0200)]
Merge pull request #3153 from stangri/19.07-luci-app-https_dns_proxy

[19.07] luci-app-https_dns_proxy: bugfix: subnet address datatype, add DNS.SB provider

5 years agoluci-app-banip: sync with update 0.3.1
Dirk Brenken [Wed, 9 Oct 2019 12:06:33 +0000 (14:06 +0200)]
luci-app-banip: sync with update 0.3.1

* no longer filter out possible lan devices

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 385db73f466e858aa9b149f34404a916b85b2722)

5 years agoluci-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>
(cherry picked from commit 8343e58d7fb94bddb3fa5fb5308b1344021710c0)

5 years agoluci-app-mosquitto: drop tls1.0, add tls1.3
Karl Palsson [Wed, 9 Oct 2019 13:47:01 +0000 (13:47 +0000)]
luci-app-mosquitto: drop tls1.0, add tls1.3

This was dropped in mosquitto 1.6.0.

Signed-off-by: Karl Palsson <karlp@etactica.com>
(cherry picked from commit a7b1d63eb910dc1d4c54c7b2ea4f8ff2b901842e)

5 years agoluci-base: fix CSRF prevention for arcombine targets
Jo-Philipp Wich [Wed, 9 Oct 2019 07:55:44 +0000 (09:55 +0200)]
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>
(cherry picked from commit f8c6eb67cd9da09ee20248fec6ab742069635e47)

5 years agoluci-app-https_dns_proxy: bugfix: subnet address datatype, add DNS.SB provider 3153/head
Stan Grishin [Tue, 8 Oct 2019 16:37:20 +0000 (09:37 -0700)]
luci-app-https_dns_proxy: bugfix: subnet address datatype, add DNS.SB provider

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoMerge pull request #3133 from stangri/19.07-luci-app-https_dns_proxy
Florian Eckert [Tue, 8 Oct 2019 06:35:40 +0000 (08:35 +0200)]
Merge pull request #3133 from stangri/19.07-luci-app-https_dns_proxy

[19.07] luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries

5 years agoMerge pull request #3139 from stangri/19.07-luci-app-vpnbypass
Florian Eckert [Wed, 2 Oct 2019 06:25:01 +0000 (08:25 +0200)]
Merge pull request #3139 from stangri/19.07-luci-app-vpnbypass

luci-app-vpnbypass: fix dispatcher bug when VPN node is present

5 years agoluci-app-vpnbypass: fix dispatcher bug when VPN node is present 3139/head
Stan Grishin [Wed, 2 Oct 2019 01:23:00 +0000 (18:23 -0700)]
luci-app-vpnbypass: fix dispatcher bug when VPN node is present

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries 3133/head
Stan Grishin [Mon, 30 Sep 2019 17:49:11 +0000 (10:49 -0700)]
luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-travelmate: add support for optional args in auto-login script
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>
(cherry picked from commit 3d646bee41df28526dc59fb1646fb7fa0072a264)

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>
(cherry picked from commit cf887ba62f4a2aec06ec169eba3f3829967ee344)

5 years agoMerge pull request #3114 from stangri/19.07-luci-app-simple-adblock
Hannu Nyman [Tue, 24 Sep 2019 16:30:28 +0000 (19:30 +0300)]
Merge pull request #3114 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: dnsmasq.ipset option support

5 years agoluci-app-simple-adblock: dnsmasq.ipset option support 3114/head
Stan Grishin [Tue, 24 Sep 2019 16:17:20 +0000 (09:17 -0700)]
luci-app-simple-adblock: dnsmasq.ipset option support

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoMerge pull request #3046 from stangri/19.07-luci-app-vpnbypass
Hannu Nyman [Fri, 20 Sep 2019 18:01:32 +0000 (21:01 +0300)]
Merge pull request #3046 from stangri/19.07-luci-app-vpnbypass

[19.07] luci-app-vpnbypass: better start/stop controls, create entry in the VPN menu if it exists

5 years agoluci-base: cbi.js: save filled out but not added dynlist items on apply
Jo-Philipp Wich [Fri, 13 Sep 2019 12:31:00 +0000 (14:31 +0200)]
luci-base: cbi.js: save filled out but not added dynlist items on apply

Fixes: #2938
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: cbi.js: also initialize comboxes embedded in dynlists
Jo-Philipp Wich [Fri, 13 Sep 2019 11:57:24 +0000 (13:57 +0200)]
luci-base: cbi.js: also initialize comboxes embedded in dynlists

Fixes: #3062
Fixes: 010102c2c ("luci-base: cbi.js: find dropdown and browser instances early")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-firewall: fix stored XSS in rule- and forward detail pages
Jo-Philipp Wich [Fri, 13 Sep 2019 11:23:23 +0000 (13:23 +0200)]
luci-app-firewall: fix stored XSS in rule- and forward detail pages

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-banip: sync with banIP 0.2.0
Dirk Brenken [Mon, 9 Sep 2019 14:51:42 +0000 (16:51 +0200)]
luci-app-banip: sync with banIP 0.2.0

* see details in package PR

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit f21f4bd7e5cf74bb37c2acc35d0bb8aea489cf3f)

5 years agoluci-app-banip: sync with 0.1.5
Dirk Brenken [Tue, 6 Aug 2019 13:51:23 +0000 (15:51 +0200)]
luci-app-banip: sync with 0.1.5

* add new extra options to control auto-addons to
  blacklist & whitelist ('ban_autoblacklist' & 'ban_autowhitelist')

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit ee28798aff859e725ab74ae7cb7b3d6c15407263)

5 years agoluci-base: cbi.js: fix dropdown and browser initialization
Jo-Philipp Wich [Tue, 10 Sep 2019 15:37:42 +0000 (17:37 +0200)]
luci-base: cbi.js: fix dropdown and browser initialization

We need to query the dropdowns before initializing dynamic lists but
after initializing combo boxes.

Also fix a copy-paste error from a previous commit.

Fixes: 010102c2c ("luci-base: cbi.js: find dropdown and browser instances early")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: html escape values in uci changes display
Jo-Philipp Wich [Tue, 10 Sep 2019 15:16:01 +0000 (17:16 +0200)]
luci-base: html escape values in uci changes display

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base, luci-mod-network: fix bridge state change quirks
Jo-Philipp Wich [Tue, 10 Sep 2019 15:05:15 +0000 (17:05 +0200)]
luci-base, luci-mod-network: fix bridge state change quirks

Fixes: #2997
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-base: cbi.js: find dropdown and browser instances early
Jo-Philipp Wich [Tue, 10 Sep 2019 15:07:36 +0000 (17:07 +0200)]
luci-base: cbi.js: find dropdown and browser instances early

Gather dropdown and file browser widget nodes early, before initializing
dynamic list widgets as dynlists invoke a dependency update which in turn
might remove widget nodes from dom before they have been initialized.

Ref: https://github.com/openwrt/luci/issues/2997#issuecomment-524251601
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-mod-network: wifi_join.js: Add WPA3 support
Antoine Deschênes [Sat, 24 Aug 2019 19:48:07 +0000 (15:48 -0400)]
luci-mod-network: wifi_join.js: Add WPA3 support

Signed-off-by: Antoine Deschênes <antoine@antoinedeschenes.com>
[squashed commits, cherry-picked into openwrt-19.07 branch]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-adblock: sync with adblock 3.8.5
Dirk Brenken [Fri, 6 Sep 2019 09:10:48 +0000 (11:10 +0200)]
luci-app-adblock: sync with adblock 3.8.5

* support the new extra options 'TLD Compression Threshold',
 'Local FW/DNS Ports' and 'DNS Inotify', see packages PR for details.

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 62c6f21de34e011da491f98f645294f6d13f87c2)

5 years agoluci-app-vpnbypass: better start/stop controls, create entry in the VPN menu if it... 3046/head
Stan Grishin [Sat, 7 Sep 2019 17:36:58 +0000 (10:36 -0700)]
luci-app-vpnbypass: better start/stop controls, create entry in the VPN menu if it exists

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-travelmate: sync with 1.4.12
Dirk Brenken [Thu, 29 Aug 2019 10:02:04 +0000 (12:02 +0200)]
luci-app-travelmate: sync with 1.4.12

* option to add open uplinks to your wireless config,
  e.g. hotel captive portals (disabled by default)

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 916939933e6d934bfc277593d29f40ef3e2f63e7)

5 years agoluci-app-adblock: sync with adblock 3.8.3
Dirk Brenken [Mon, 26 Aug 2019 09:46:33 +0000 (11:46 +0200)]
luci-app-adblock: sync with adblock 3.8.3

* fix a suspend/resume issue
* format overall domains with a thousands separator

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit bd405bfed02851780d74f93f8286497e7f2af4d8)

5 years agoMerge pull request #3028 from stangri/19.07-luci-app-simple-adblock
Dirk Brenken [Thu, 29 Aug 2019 13:25:35 +0000 (15:25 +0200)]
Merge pull request #3028 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: dns resolver value bugfix (#3000)

5 years agoluci-app-simple-adblock: dns resolver value bugfix (#3000) 3028/head
Stan Grishin [Thu, 29 Aug 2019 13:21:48 +0000 (06:21 -0700)]
luci-app-simple-adblock: dns resolver value bugfix (#3000)

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoMerge pull request #3016 from stangri/19.07-luci-app-advanced-reboot
Hannu Nyman [Tue, 27 Aug 2019 13:56:05 +0000 (16:56 +0300)]
Merge pull request #3016 from stangri/19.07-luci-app-advanced-reboot

[19.07] luci-app-advanced-reboot/: bugfix for when network.lan.ipaddr is a table

5 years agoMerge pull request #3019 from stangri/19.07-luci-app-simple-adblock
Hannu Nyman [Tue, 27 Aug 2019 13:55:09 +0000 (16:55 +0300)]
Merge pull request #3019 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: delete extra file

5 years agoluci-app-simple-adblock: delete extra file 3019/head
Stan Grishin [Tue, 27 Aug 2019 06:19:11 +0000 (23:19 -0700)]
luci-app-simple-adblock: delete extra file

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-advanced-reboot/: bugfix for when network.lan.ipaddr is a table 3016/head
Stan Grishin [Tue, 27 Aug 2019 06:04:18 +0000 (23:04 -0700)]
luci-app-advanced-reboot/: bugfix for when network.lan.ipaddr is a table

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-adblock: sync with adblock 3.8.0
Dirk Brenken [Thu, 15 Aug 2019 08:32:59 +0000 (10:32 +0200)]
luci-app-adblock: sync with adblock 3.8.0

* add support for the 'null' blocking variant in dnsmasq
  (via addn-hosts), see new select box 'DNS Variant'
* add support for 'DNS File Reset', where the final DNS blockfile
  will be purged after DNS backend loading (save storage space)
* Provide additional Runtime information:
  'DNS Variant' and 'Backup Directory'
* add E-Mail notification options to LuCI

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9400fc7536399d38fb81a43a49911f0248a15e7b)

5 years agoMerge pull request #2992 from stangri/19.07-luci-app-simple-adblock
Hannu Nyman [Sun, 18 Aug 2019 17:14:20 +0000 (20:14 +0300)]
Merge pull request #2992 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: support for varios DNS resolvers/options

5 years agoMerge pull request #2987 from stangri/19.07-luci-app-advanced-reboot
Hannu Nyman [Sun, 18 Aug 2019 17:13:09 +0000 (20:13 +0300)]
Merge pull request #2987 from stangri/19.07-luci-app-advanced-reboot

[19.07] luci-app-advanced-reboot: support for Linksys EA8300

5 years ago[19.07] luci-app-simple-adblock: support for varios DNS resolvers/options 2992/head
Stan Grishin [Sat, 17 Aug 2019 13:15:28 +0000 (06:15 -0700)]
[19.07] luci-app-simple-adblock: support for varios DNS resolvers/options

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years ago[19.07] luci-app-advanced-reboot: [18.06] luci-app-advanced-reboot: luci-app-advanced... 2987/head
Stan Grishin [Sat, 17 Aug 2019 11:29:31 +0000 (04:29 -0700)]
[19.07] luci-app-advanced-reboot: [18.06] luci-app-advanced-reboot: luci-app-advanced-reboot: support for Linksys EA8300

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoluci-app-travelmate: sync with 1.4.10
Dirk Brenken [Tue, 6 Aug 2019 09:42:04 +0000 (11:42 +0200)]
luci-app-travelmate: sync with 1.4.10

* wifi add/edit: add a select box to reference an external script
  for automated captive portal logins
* fix a visual issue with material theme

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 4e75e3710c6bf5595e9852dd99cadf3332cf484b)

5 years agoluci-base: cbi.js: do not forcibly sort synamic list items
Jo-Philipp Wich [Wed, 14 Aug 2019 20:34:02 +0000 (22:34 +0200)]
luci-base: cbi.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>
(backported from commit dbf83e35bb6e4d203eca917d4dfef2b270dd34ff)

5 years agoluci-base: cbi.js: save filled out but not added dynlist items on submit
Jo-Philipp Wich [Wed, 14 Aug 2019 20:28:36 +0000 (22:28 +0200)]
luci-base: cbi.js: save filled out but not added dynlist items on submit

Fixes: #2938
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoluci-app-statistics: cpufreq: tweak graphs
Hannu Nyman [Wed, 14 Aug 2019 15:53:03 +0000 (18:53 +0300)]
luci-app-statistics: cpufreq: tweak graphs

* Frequency usage percentage stats are by kHz instead of Hz.
  Correct the labels. (Linux natively uses kHz for CPU frequency stats,
  but collectd scales the current frequency stats item to Hz.)

* Show frequency usage percentage graph before the transition counts,
  as it is more descriptive.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 24c0e7ca4c9d9fbffc94133e710facdb039fedab)

5 years agoprotocols: fix contains_interface() implementation in several backends
Jo-Philipp Wich [Tue, 6 Aug 2019 13:19:15 +0000 (15:19 +0200)]
protocols: fix contains_interface() implementation in several backends

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fc8d021edc6d60b49b607c917d23b0655a69d47)

5 years agoluci-lib-ip: support specifying source address in route()
Jo-Philipp Wich [Tue, 6 Aug 2019 11:37:51 +0000 (13:37 +0200)]
luci-lib-ip: support specifying source address in route()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d73553e5303587ccecf05a91ead258054c9a70eb)

5 years agoluci-app-statistics: cpufreq: enhance additional data
Hannu Nyman [Thu, 1 Aug 2019 15:15:59 +0000 (18:15 +0300)]
luci-app-statistics: cpufreq: enhance additional data

* Use the new data series sorting and coloring options to
  display the frequencies in order and with matching coloring in
  different cores.

* Fix the y-axis text and legend in the frequency usage graph

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 05cad423ce2582a2828f35291c825f8ce7eb38a1)

5 years agoluci-app-statistics: add options for graph series sorting and color
Hannu Nyman [Thu, 1 Aug 2019 15:15:16 +0000 (18:15 +0300)]
luci-app-statistics: add options for graph series sorting and color

Add two data series-level options "negweight" and "posweight" that
will use the numerical value of the data instance name
as the sorting factor. This enables e.g. sorting by CPU frequency
in the cpufreq module.

Add new graph-level option "ordercolor" to use colorsfrom a
pre-defined color table for the data series. This enables keeping
similar colors for similar data series in different plugin instances.
E.g. CPU frequencies in several cores that are handled and displayed
separately.
 (note: the table has 8 items and if there are more series, it uses
  the same colors again. The table can be easily extended/modified)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 4ca5727785ddeec33e26c6f8e5f5390ac2c75ed7)

5 years agoluci-base: index.html: add extend cache-control directive
Jo-Philipp Wich [Thu, 1 Aug 2019 13:43:08 +0000 (15:43 +0200)]
luci-base: index.html: add extend cache-control directive

Fixes: #2942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fe45a934445378115bfd09a48136c23b0df3a63)

5 years agoluci-app-statistics: cpufreq: changes in data structure
Hannu Nyman [Tue, 30 Jul 2019 17:47:02 +0000 (20:47 +0300)]
luci-app-statistics: cpufreq: changes in data structure

Collectd 5.9.0 changed the data structure of the cpufreq plugin:
CPU cores are now handled as separate plugin instances.

There are also new data items per core:
 * time spent at each frequency
 * amount of frequency transitions

Enable these new data items, but initially hide them behind
a new config option "ExtraItems" (default: disabled), as
the amount of graphs in multi-core systems could be rather large.

Note that the frequencies are not (yet) sorted, so the
information value of the time-spent graph is semi-random.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit e6f30bb7f39c67e1b2eaf312aa8d1f06e7b0a0ab)

5 years agoluci-app-https_dns_proxy: better handling of ports, update of dhcp config
Stan Grishin [Sat, 20 Jul 2019 11:24:33 +0000 (04:24 -0700)]
luci-app-https_dns_proxy: better handling of ports, update of dhcp config

Signed-off-by: Stan Grishin <stangri@melmac.net>
(cherry picked from commit 85989079f61598c826c8bfb45c1bdacaf468fa59)

5 years agoMerge pull request #2913 from rosysong/openwrt-19.07
Jo-Philipp Wich [Fri, 26 Jul 2019 10:36:51 +0000 (12:36 +0200)]
Merge pull request #2913 from rosysong/openwrt-19.07

luci-theme-rosy: fix #2887

5 years agoluci-theme-rosy: fix #2887 2913/head
Rosy Song [Wed, 24 Jul 2019 12:26:42 +0000 (20:26 +0800)]
luci-theme-rosy: fix #2887

Signed-off-by: Rosy Song <rosysong@rosinson.com>
5 years agoMerge pull request #2840 from stangri/19.07-luci-app-advanced-reboot
Hannu Nyman [Tue, 9 Jul 2019 15:26:24 +0000 (18:26 +0300)]
Merge pull request #2840 from stangri/19.07-luci-app-advanced-reboot

[19.07] luci-app-advanced-reboot: fix README url in Makefile

5 years ago[19.07] luci-app-advanced-reboot: fix README url in Makefile 2840/head
Stan Grishin [Mon, 8 Jul 2019 19:44:23 +0000 (12:44 -0700)]
[19.07] luci-app-advanced-reboot: fix README url in Makefile

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agoFix a overview page style issue for various themes
Anton Kikin [Fri, 28 Jun 2019 15:37:30 +0000 (18:37 +0300)]
Fix a overview page style issue for various themes

Fixed a overview page style issue with interface boxes for
bootstrap, material and rosy themes.

The issue only appears in the Chrome browser and lies in the
fact that the block with the device name and MAC address gets
out of the  interface block.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit 5d26fec0bf3701f5a0b875bacd0b2f3898449e96)

5 years agoRevert "luci-base: luasrcdiet: switch to scm clone and fix tarball name"
Jo-Philipp Wich [Sun, 7 Jul 2019 20:03:21 +0000 (22:03 +0200)]
Revert "luci-base: luasrcdiet: switch to scm clone and fix tarball name"

This reverts commit faa5f0eacd2b2c90c33a75ee1e7fd3ec776601af.

Fixes: #2834
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8055ed4c469516932a7abceed41b13cc7a11de35)

5 years agoluci-base: hide autocomplete-preventing password input with bigger offset
Yousong Zhou [Fri, 28 Jun 2019 16:03:37 +0000 (16:03 +0000)]
luci-base: hide autocomplete-preventing password input with bigger offset

Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3a24c2dbaa9b781504bb2847153e2514bcbe717e)

5 years agoluci-base: nowrap for password input and reveal button
Yousong Zhou [Fri, 28 Jun 2019 15:53:05 +0000 (15:53 +0000)]
luci-base: nowrap for password input and reveal button

Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry-picked from commit 609f5290c8d582def0a6334519f5e31aad19abde)

5 years agoMerge pull request #2829 from stangri/openwrt-19.07-luci-app-simple-adblock
Hannu Nyman [Sat, 6 Jul 2019 06:27:04 +0000 (09:27 +0300)]
Merge pull request #2829 from stangri/openwrt-19.07-luci-app-simple-adblock

luci-app-simple-adblock: sync with the latest version of simple-adblock

5 years agoluci-app-simple-adblock: sync with the latest version of simple-adblock 2829/head
Stan Grishin [Fri, 5 Jul 2019 15:56:12 +0000 (08:56 -0700)]
luci-app-simple-adblock: sync with the latest version of simple-adblock

Signed-off-by: Stan Grishin <stangri@melmac.net>
5 years agotimezone data: update to 2019b
Hannu Nyman [Fri, 5 Jul 2019 14:56:04 +0000 (17:56 +0300)]
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>
(cherry picked from commit 2f769ee0872aab8dd31bd793739b7a527e8789f6)

5 years agolucihttp: update to latest Git HEAD
Jo-Philipp Wich [Fri, 5 Jul 2019 06:26:26 +0000 (08:26 +0200)]
lucihttp: update to latest Git HEAD

a34a17d src: allow overriding buffer size from cli in multipart tester
730a46f lib: fix potentially lost bytes in boundary parsing across buffer limits
8734af2 lib: add buffer tracing to multipart parser
913051b src: add file dump option to multipart test utility
c419539 src: allow specifying custom buffer sizes in multipart testcases
f6e0564 lib: fix handling of empty multipart fields

Fixes: #2816
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 66c8ebfeffcffdcfcdf64888b7685dca26f82ff5)

5 years agoluci-app-travelmate: sync with update 1.4.8 2814/head
Dirk Brenken [Sat, 29 Jun 2019 12:46:28 +0000 (14:46 +0200)]
luci-app-travelmate: sync with update 1.4.8

* add optional 'trm_scanbuffer' parm
* fix wrong lua escape character in wifi edit
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit ee80de6a7b2b24b56eb8280d7e21f6cd745d58c9)

5 years agoluci-base: show niced processes on Status/Processes page
Hannu Nyman [Sun, 30 Jun 2019 16:54:11 +0000 (19:54 +0300)]
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>
(cherry picked from commit 1c80eb196282c7119fd26bc03451f4d6ca3710ac)

5 years agoluci-mod-network: os-release variables have been renamed to OPENWRT_
Bjørn Mork [Wed, 26 Jun 2019 09:24:19 +0000 (11:24 +0200)]
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>
(cherry picked from commit 689934196ffb76e12bbda3f06f1d9bf86b60311d)

5 years agoluci-app-opkg: honor installed flag to skip half-installed packages
Jo-Philipp Wich [Wed, 19 Jun 2019 09:21:18 +0000 (11:21 +0200)]
luci-app-opkg: honor installed flag to skip half-installed packages

Do not consider half-installed packages (which happens after an
installation failure) to be installed.

Ref: https://github.com/openwrt/luci/pull/2775
Signed-off-by: Dirk Brenken <dev@brenken.org>
[split into multiple commits, refactored code, use local variables]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 88282c14cf521f195536370c004d953e289ea3e4)

5 years agotreewide: fix datetype/datatype typo
Hannu Nyman [Sun, 16 Jun 2019 14:54:04 +0000 (17:54 +0300)]
treewide: fix datetype/datatype typo

Fix 'datetype' typo.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2772 from jjm2473/patch-2
Hannu Nyman [Sun, 16 Jun 2019 14:47:04 +0000 (17:47 +0300)]
Merge pull request #2772 from jjm2473/patch-2

luci-app-aria2: fix: datatype

5 years agoluci-app-aria2: fix: datatype 2772/head
练亮斌 [Sun, 16 Jun 2019 14:26:11 +0000 (22:26 +0800)]
luci-app-aria2: fix: datatype

just a spelling mistake.

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
5 years agoluci-mod-system: prevent clearing rc.local on unrelated submit actions
Jo-Philipp Wich [Wed, 12 Jun 2019 15:47:30 +0000 (17:47 +0200)]
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>
5 years agoluci-base: update Traditional Chinese translation
Perry Thompson [Tue, 11 Jun 2019 22:43:21 +0000 (17:43 -0500)]
luci-base: update Traditional Chinese translation

Signed-off-by: Perry Thompson <contact@ryper.org>
5 years agoluci-base: update Traditional Chinese translation
a962702 [Tue, 11 Jun 2019 12:20:06 +0000 (20:20 +0800)]
luci-base: update Traditional Chinese translation

update Traditional Chinese translations.

Signed-off-by: Andy Yun <a962702@yahoo.com>
5 years agoluci-base: update Traditional Chinese translation
Andy [Mon, 10 Jun 2019 12:50:30 +0000 (20:50 +0800)]
luci-base: update Traditional Chinese translation
update Traditional Chinese translation.
Signed-off-by: Andy Yun <a962702@yahoo.com>
5 years agoMerge pull request #2762 from musashino205/l10n/mwan3-upd-ja
Florian Eckert [Mon, 10 Jun 2019 11:55:07 +0000 (13:55 +0200)]
Merge pull request #2762 from musashino205/l10n/mwan3-upd-ja

luci-app-mwan3: update Japanese translation

5 years agoluci-app-mwan3: update Japanese translation 2762/head
INAGAKI Hiroshi [Mon, 10 Jun 2019 07:02:36 +0000 (16:02 +0900)]
luci-app-mwan3: update Japanese translation

Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
5 years agoi18n: sync translations
Hannu Nyman [Sun, 9 Jun 2019 16:24:00 +0000 (19:24 +0300)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agoMerge pull request #2755 from dibdot/lxc
Dirk Brenken [Fri, 7 Jun 2019 04:55:36 +0000 (06:55 +0200)]
Merge pull request #2755 from dibdot/lxc

luci-app-lxc: add conffiles define

5 years agoluci-app-lxc: add conffiles define 2755/head
Dirk Brenken [Thu, 6 Jun 2019 11:03:40 +0000 (13:03 +0200)]
luci-app-lxc: add conffiles define

- fix #2754

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2753 from tano-systems/pr-luci-base-update-ru-translation
Hannu Nyman [Wed, 5 Jun 2019 18:50:34 +0000 (21:50 +0300)]
Merge pull request #2753 from tano-systems/pr-luci-base-update-ru-translation

luci-base: update Russian translation

5 years agoluci-base: update Russian translation 2753/head
Anton Kikin [Wed, 5 Jun 2019 18:39:48 +0000 (21:39 +0300)]
luci-base: update Russian translation

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
5 years agoluci-mod-system: fix SimpleForm usage on file editing pages
Jo-Philipp Wich [Wed, 5 Jun 2019 14:01:16 +0000 (16:01 +0200)]
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>
5 years agolucihttp: update to latest Git HEAD
Jo-Philipp Wich [Wed, 5 Jun 2019 11:22:15 +0000 (13:22 +0200)]
lucihttp: update to latest Git HEAD

f6e0564 lib: fix handling of empty multipart fields
91c01c3 lib: fix multipart state transition in boundary parsing

Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2744 from TDT-AG/pr/20190603-luci-app-mwan3
Florian Eckert [Tue, 4 Jun 2019 20:07:24 +0000 (22:07 +0200)]
Merge pull request #2744 from TDT-AG/pr/20190603-luci-app-mwan3

luci-app-mwan3: change flush_conntrack option to list option

5 years agoMerge pull request #2748 from dibdot/duid-fix
Jo-Philipp Wich [Tue, 4 Jun 2019 15:14:37 +0000 (17:14 +0200)]
Merge pull request #2748 from dibdot/duid-fix

luci-base: fix duid_to_mac reference in status.lua

5 years agoluci-base: fix duid_to_mac reference in status.lua 2748/head
Dirk Brenken [Tue, 4 Jun 2019 14:54:24 +0000 (16:54 +0200)]
luci-base: fix duid_to_mac reference in status.lua

* fix for openwrt/packages#9148

Signed-off-by: Dirk Brenken <dev@brenken.org>
5 years agoMerge pull request #2746 from TDT-AG/pr/20190603-luci-theme-material
Florian Eckert [Tue, 4 Jun 2019 13:17:50 +0000 (15:17 +0200)]
Merge pull request #2746 from TDT-AG/pr/20190603-luci-theme-material

luci-theme-material: fix checkbox css StaticList view

5 years agoluci-theme-material: fix checkbox css StaticList view 2746/head
Florian Eckert [Thu, 23 May 2019 07:45:00 +0000 (09:45 +0200)]
luci-theme-material: fix checkbox css StaticList view

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agothemes: don't reset theme on package upgrades
Jo-Philipp Wich [Mon, 3 Jun 2019 14:49:10 +0000 (16:49 +0200)]
themes: don't reset theme on package upgrades

Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoMerge pull request #2742 from Ansuel/odhcp-lease
Jo-Philipp Wich [Mon, 3 Jun 2019 14:34:06 +0000 (16:34 +0200)]
Merge pull request #2742 from Ansuel/odhcp-lease

luci-base: handle dhcp lease from odhcpd

5 years agoluci-app-mwan3: change flush_conntrack option to list option 2744/head
Florian Eckert [Wed, 22 May 2019 08:56:31 +0000 (10:56 +0200)]
luci-app-mwan3: change flush_conntrack option to list option

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
5 years agoluci-base: handle dhcp lease from odhcpd 2742/head
Ansuel Smith [Sun, 2 Jun 2019 20:37:31 +0000 (22:37 +0200)]
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>
5 years agoluci-base: adds duid_to_mac to sys.lua
Ansuel Smith [Sun, 2 Jun 2019 20:33:02 +0000 (22:33 +0200)]
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>
5 years agobuild: i18n-scan.pl: properly handle bracket-quoted strings
Jo-Philipp Wich [Fri, 31 May 2019 18:09:41 +0000 (20:09 +0200)]
build: i18n-scan.pl: properly handle bracket-quoted strings

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