project/luci.git
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 agoluci-base: remove fake password field from tab order
Jo-Philipp Wich [Fri, 17 Aug 2018 04:58:53 +0000 (06:58 +0200)]
luci-base: remove fake password field from tab order

Set a negative tabindex on the dummy password field to not break the form
tab order flow.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 8c77975d1bfc9f79580b83f5b5e591b8b4cae67f)

5 years agoMerge pull request #2827 from stangri/openwrt-18.06-luci-app-simple-adblock
Hannu Nyman [Sat, 6 Jul 2019 06:26:55 +0000 (09:26 +0300)]
Merge pull request #2827 from stangri/openwrt-18.06-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
Stan Grishin [Fri, 5 Jul 2019 15:44:03 +0000 (08:44 -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-base: show niced processes on Status/Processes page
Hannu Nyman [Sun, 30 Jun 2019 16:57:31 +0000 (19:57 +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 agoMerge pull request #2776 from pmelange/18x-freifunk-profiles-dns-server-update
Jo-Philipp Wich [Wed, 19 Jun 2019 08:54:54 +0000 (10:54 +0200)]
Merge pull request #2776 from pmelange/18x-freifunk-profiles-dns-server-update

18.06.x freifunk community-profiles: update profiles to use the new digitalcourage nameservers

5 years agocommunity-profiles: update profiles to use the new digitalcourage nameservers
pmelange [Tue, 18 Jun 2019 10:35:18 +0000 (12:35 +0200)]
community-profiles: update profiles to use the new digitalcourage nameservers

The old digitalcourage nameservers 85.214.20.141 and 2a01:238:42f6:ac00:2a29:4f7f:b6d:ef46
will be retired in 2020.  The new nameservers are 46.182.19.48 and 2a02:2970:1002::18.

The change is announced https://digitalcourage.de/support/zensurfreier-dns-server

This fixes https://github.com/freifunk/openwrt-packages/issues/11

This is cherry-picked from https://github.com/freifunk/openwrt-packages/pull/16/commits/2c4a93e646607b0e2a2faa272c985beff52606e1

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agotreewide: fix datetype/datatype typo
Hannu Nyman [Sun, 16 Jun 2019 15:04:18 +0000 (18:04 +0300)]
treewide: fix datetype/datatype typo

Fix the "datetype" typo also in 18.06

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 years agolucihttp: fix library packaging after 0dd887883
Jo-Philipp Wich [Thu, 24 Jan 2019 11:18:33 +0000 (12:18 +0100)]
lucihttp: fix library packaging after 0dd887883

Adjust ABI_VERSION and install recipes accordingly.

Fixes: 0dd887883 ("lucihttp: update to latest Git HEAD")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c8e95785869ebb2862b524b96568f2ea20ce9b8c)

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

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>
(backported from commit 15608fd2e5283fd6dd3ee4e9bf783029d0cae8c3)

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>
(backported from commit 5fd071aadbcaa3b136a37fa2cbcb9799b0153e2a)

5 years agoluci-mod-admin-network: fix VLAN "add" button for empty switches
Jo-Philipp Wich [Tue, 7 May 2019 06:54:23 +0000 (08:54 +0200)]
luci-mod-admin-network: fix VLAN "add" button for empty switches

Fixes OpenWrt FS#2270.

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2270
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6b7afabcdd270a5215a225553dda08e0cd1c5e40)

5 years agoremove artifacts from de3be2388393ed28e44d2714c25eee9b9886e820
pmelange [Wed, 20 Mar 2019 14:38:42 +0000 (15:38 +0100)]
remove artifacts from de3be2388393ed28e44d2714c25eee9b9886e820

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agofreifunk profile_berlin: add default section for 802.11s
pmelange [Fri, 8 Feb 2019 00:49:25 +0000 (01:49 +0100)]
freifunk profile_berlin: add default section for 802.11s

mesh_id is set to "Mesh-Freifunk-Berlin"

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agofreifunk-common: add default configuration for 802.11s interfaces
pmelange [Fri, 8 Feb 2019 00:43:14 +0000 (01:43 +0100)]
freifunk-common: add default configuration for 802.11s interfaces

The defaults are

config 'defaults' 'wifi_iface_80211s'
       option 'mode' 'mesh'
       option 'encryption' 'none'
       option 'mesh_id' 'Mesh-Freifunk'
       option 'mesh_fwding' '0'

The decision for the name of the section can be found here:
https://github.com/freifunk/openwrt-packages/pull/3

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agoluci-app-attendedsysupgrade: refactor and format
Paul Spooren [Sun, 24 Feb 2019 21:24:24 +0000 (22:24 +0100)]
luci-app-attendedsysupgrade: refactor and format

* Reuse `request_dict` between requests.
* used vim Autoformat plugin to make the javascript code nice.
* add board_name as it eventually replaces board/model in requests

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years agoluci-app-attendedsysupgrade: update to new api
Paul Spooren [Tue, 19 Feb 2019 18:12:18 +0000 (19:12 +0100)]
luci-app-attendedsysupgrade: update to new api

there was a major rewrite of the database structure

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years agoluci-app-nlbwmon: Fixed incorrect period parameter/display
Jo-Philipp Wich [Fri, 1 Feb 2019 18:54:32 +0000 (13:54 -0500)]
luci-app-nlbwmon: Fixed incorrect period parameter/display

Switch from using the unreliable string data constructor syntax to
a more explicit year / month / day variant and pass through the
period value as-is in order to ensure that the proper start date
is requested from the backend.

This should fix issues with prevent the display of older data
periods in the nlbwmon gui.

Ref: https://github.com/jow-/nlbwmon/issues/25
Ref: https://github.com/openwrt/luci/pull/2496
Suggested-by: Aktanusa <chanam.geo@yahoo.com>
[squashed commits, add a more thorough commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit bd56c1aac650c9d60d9f66bb0c923b0346f3fa41)

5 years agotreewide: avoid double-escaping CBI section labels
Jo-Philipp Wich [Tue, 12 Feb 2019 07:32:02 +0000 (08:32 +0100)]
treewide: avoid double-escaping CBI section labels

Since the section labels are already HTML-escaped implicitely by the
striptags() function, we must not escape them again in attr() or
ifattr().

Fixes: #2524
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit eda8f02dac3caa4d0f52cd1e860d7a392c295df3)

5 years agoluci-base: dispatcher: support raw values in attr() and ifattr()
Jo-Philipp Wich [Tue, 12 Feb 2019 07:28:21 +0000 (08:28 +0100)]
luci-base: dispatcher: support raw values in attr() and ifattr()

Extend the attr() and ifattr() template functions to take an optional
further parameter indicating that the passed value should not be escaped.

This is needed for cases where the input already is escaped through
other means, e.g. when the value was previously filtered through the
striptags() template helper.

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

5 years agoMerge pull request #2504 from aparcar/openwrt-18.06
Hannu Nyman [Sun, 3 Feb 2019 09:46:02 +0000 (11:46 +0200)]
Merge pull request #2504 from aparcar/openwrt-18.06

luci-app-attendedsysupgrade: fixup error_box

5 years agoluci-app-attendedsysupgrade: fixup error_box
Paul Spooren [Sun, 3 Feb 2019 00:20:13 +0000 (01:20 +0100)]
luci-app-attendedsysupgrade: fixup error_box

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years agoMerge pull request #2494 from aparcar/18.06-unify
Hannu Nyman [Sat, 2 Feb 2019 14:09:05 +0000 (16:09 +0200)]
Merge pull request #2494 from aparcar/18.06-unify

18.06: luci-app-attendedsysupgrade: new api, unify status

5 years agoluci-app-attendedsysupgrade: new api, unify status
Paul Spooren [Fri, 25 Jan 2019 15:14:46 +0000 (16:14 +0100)]
luci-app-attendedsysupgrade: new api, unify status

to distinguish between installed packages and requested packages, the
API call is now "installed" instead of "packages".

The clients now decide on their own if they want http or https,
therefore the server doesn't reply with full links, only the path.

Add missing variable declarations in JavaScript code

Fix typos in UI strings

Also unify "info_box" and "error_box" to "status_box"

Signed-off-by: Paul Spooren <mail@aparcar.org>
5 years agoluci-mod-rpc: drop "secret" value from rpc session objects
Jo-Philipp Wich [Wed, 30 Jan 2019 15:48:51 +0000 (16:48 +0100)]
luci-mod-rpc: drop "secret" value from rpc session objects

Drop the "secret" value from RPC session objects in order to make them
compatible with ordinary web sessions used by the LuCI web interface.

That secret value was never used for anything and is the only difference
compared to normal LuCI login sessions.

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

5 years agoluci-app-lxc: add aarch64 to target map
Josef Schlehofer [Tue, 29 Jan 2019 22:04:04 +0000 (23:04 +0100)]
luci-app-lxc: add aarch64 to target map

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit f335624407e4c5c04be0d676010369aa55652798)

5 years agoluci-app-lxc: add i686 to target map
James Buren [Sun, 18 Nov 2018 20:57:37 +0000 (14:57 -0600)]
luci-app-lxc: add i686 to target map
Add i686 to target map so i386 container templates are usable.

Signed-off-by: James Buren <ryuo@ryuo.xyz>
(cherry picked from commit 9630e7e9948b9cce3cba213932aba1895ac15031)

5 years agoluci-base: fix UCI changelog markup mistake
Anton Kikin [Tue, 11 Dec 2018 23:05:59 +0000 (02:05 +0300)]
luci-base: fix UCI changelog markup mistake

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

5 years agotreewide: rework uci change display
Jo-Philipp Wich [Sat, 4 Aug 2018 20:09:49 +0000 (22:09 +0200)]
treewide: rework uci change display

 - Use native rpcd uci changes format instead of incompletely converting
   back and forth between the old and the new format
 - Rework uci changelog template to print the equivalent uci commands
   for the various changes
 - Rework theme headers to properly count the uncomitted changes
 - Rework theme CSS to properly style new changelog

Fixes: #2170
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 849d153851db2fc193c1c82648dbe719463d3a38)

5 years agoluci-base: fix cbi dropdown quirks with MS Edge
Jo-Philipp Wich [Wed, 17 Oct 2018 05:43:54 +0000 (07:43 +0200)]
luci-base: fix cbi dropdown quirks with MS Edge

On MS Edge, the behaviour of "value" attributes on "li" elements is
unreliable, so use the "data-" prefix to circumvent the problem.

Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/
Fixes: #2224
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9e6949849d7a34d17a7e43c79038f26a9b98d879)

5 years agoMerge pull request #2451 from pmelange/backport/PR2450-luci_mod-freifunk_basics
Jo-Philipp Wich [Fri, 11 Jan 2019 15:14:56 +0000 (16:14 +0100)]
Merge pull request #2451 from pmelange/backport/PR2450-luci_mod-freifunk_basics

Backport 18.06: luci-mod-freifunk: fix the list of community profiles

5 years agoMerge pull request #2449 from pmelange/backport/PR2448-luci_mod-freifunk_get_all
Jo-Philipp Wich [Fri, 11 Jan 2019 15:14:37 +0000 (16:14 +0100)]
Merge pull request #2449 from pmelange/backport/PR2448-luci_mod-freifunk_get_all

Backport 18.06: luci-mod-freifunk: replace calls to get_all() with separate get() calls

5 years agoluci-mod-freifunk: fix the list of community profiles
pmelange [Fri, 11 Jan 2019 12:29:48 +0000 (13:29 +0100)]
luci-mod-freifunk: fix the list of community profiles

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agoluci-mod-freifunk: replace calls to get_all() with separate get() calls
pmelange [Fri, 11 Jan 2019 11:54:55 +0000 (12:54 +0100)]
luci-mod-freifunk: replace calls to get_all() with separate get() calls

The get_all() function has changed and how it was used before no
longer works properly.  These changes not only change to individual
get() calls, but actually adds to the readability of the code and reduces
file size.

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
5 years agotimezone data: update to 2018i
Hannu Nyman [Wed, 2 Jan 2019 19:27:12 +0000 (21:27 +0200)]
timezone data: update to 2018i

Update timezone data to 2018i

http://mm.icann.org/pipermail/tz-announce/2018-December/000053.html
http://mm.icann.org/pipermail/tz-announce/2018-December/000054.html

2018h:
* Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.
* New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.
* Metlakatla, Alaska observes PST this winter only.
* Guess Morocco will continue to adjust clocks around Ramadan.
* Add predictions for Iran from 2038 through 2090.

2018i:
* São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

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

6 years agoMerge pull request #2355 from pmelange/freifunk_backport_18.06
Jo-Philipp Wich [Thu, 6 Dec 2018 23:09:43 +0000 (00:09 +0100)]
Merge pull request #2355 from pmelange/freifunk_backport_18.06

Freifunk-berlin backport 18.06 - OLSR changes and community profiles

6 years agoluci-app-olsr: reenable the "auto refresh" feature
pmelange [Sun, 18 Nov 2018 13:26:23 +0000 (14:26 +0100)]
luci-app-olsr: reenable the "auto refresh" feature

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr change ccs style to use class "left" instead of "style=text-align:...
pmelange [Sat, 17 Nov 2018 22:40:37 +0000 (23:40 +0100)]
luci-app-olsr change ccs style to use class "left" instead of "style=text-align: left"

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: make cosmetic changes.
pmelange [Thu, 15 Nov 2018 13:55:42 +0000 (14:55 +0100)]
luci-app-olsr: make cosmetic changes.

modify the status tables so that then headers and columns align, values
left justified.

Additionally, add the openwrt style interface name to the interfaces table,
change huge  ETX numbers to 'infinate', and add the german translation for
'Selected'.

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agocommunity-profiles: change subnet of mesh_network option for Berlin
Philipp Borgers [Mon, 24 Sep 2018 11:43:51 +0000 (13:43 +0200)]
community-profiles: change subnet of mesh_network option for Berlin

The mesh_network option is used to check the user input. The wizard
checks if the input ip address is part of the mesh_network. We use
multiple /16 networks. There is no support for multiple ranges so we the
10.0.0.0/8.

For reference the ip list:

https://wiki.freifunk.net/IP-Netze

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
6 years agoget rid of library version numbers in luci olsrd code
Philipp Borgers [Thu, 25 Oct 2018 19:54:42 +0000 (21:54 +0200)]
get rid of library version numbers in luci olsrd code

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
6 years agocommunity-profiles: create profile for Fürstenwalde
Martin Hübner [Tue, 23 Oct 2018 16:43:58 +0000 (18:43 +0200)]
community-profiles: create profile for Fürstenwalde

New profile for Fürstenwalde. At the moment we use parts of the Berlin-
infrastructure. Thus I have not changed the ip-address-related things.

Signed-off-by: Martin Hübner <martin.hubner@web.de>
[reword and rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoluci-app-olsr: convert olsr.lua and smartgw.htm to new json plugin
pmelange [Mon, 5 Nov 2018 15:27:40 +0000 (16:27 +0100)]
luci-app-olsr: convert olsr.lua and smartgw.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: convert mid.htm to new json plugin
pmelange [Mon, 5 Nov 2018 15:37:19 +0000 (16:37 +0100)]
luci-app-olsr: convert mid.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: convert interfaces.htm to new json plugin
pmelange [Mon, 5 Nov 2018 10:44:53 +0000 (11:44 +0100)]
luci-app-olsr: convert interfaces.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: convert olsr.lua and overview.htm to new json plugin
pmelange [Mon, 5 Nov 2018 16:20:16 +0000 (17:20 +0100)]
luci-app-olsr: convert olsr.lua and overview.htm to new json plugin

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address
pmelange [Mon, 5 Nov 2018 13:03:35 +0000 (14:03 +0100)]
luci-base: network.lua add ipv6-prefix-assignment support to get_status_by_address

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr: cbi remove library version numbers in library search results
pmelange [Mon, 5 Nov 2018 09:24:15 +0000 (10:24 +0100)]
luci-app-olsr: cbi remove library version numbers in library search results

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agofreifunk profiles: add nameserver 80.67.169.40 from www.fdn.fr/actions/dns
pmelange [Thu, 4 Oct 2018 10:10:58 +0000 (12:10 +0200)]
freifunk profiles: add nameserver 80.67.169.40 from fdn.fr/actions/dns

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
6 years agoluci-app-olsr-services: Don't use the nameservice with a specific version.
mmouselli [Sun, 21 Oct 2018 16:47:57 +0000 (18:47 +0200)]
luci-app-olsr-services: Don't use the nameservice with a specific version.

The "Services" menu option of olsr on the top of the web interface
is not there.

A specific version of the App name was in the controller service
Removing the limitation will fix the problem

https://github.com/freifunk-berlin/firmware/issues/594

Signed-off-by: mmouselli <m.mouselli@syseleven.de>
6 years agoluci-mod-network: adapt to current 802.11r defaults
Hannu Nyman [Sun, 25 Nov 2018 06:48:16 +0000 (08:48 +0200)]
luci-mod-network: adapt to current 802.11r defaults

The default for 802.11r option ft_psk_generate_local
was changed a few months ago by openwrt/openwrt@3cc56a5

That change was a bit awkward, as it made hostapd to
overlook the possibly existing r0kh values by default
unless the user explicitly disables the new default.

Adapt LuCI by changing the default for ft_psk_generate_local
into 'enabled'.

But ensure that LuCI does not delete the existing key values
by not making the r0kh and r1kh fields to depend on this.

Note that this is just a quick fix for the wrong default value
causing problems, but not yet a complete fix for all the options.
In the long run it might be better to make the detail options
to depend on local generation.

Reference also to LuCI PR #2102

Adapted from commit 26e903c74 in master

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoapplications: drop luci-app-asterisk
Jo-Philipp Wich [Fri, 16 Nov 2018 17:39:40 +0000 (19:39 +0200)]
applications: drop luci-app-asterisk

This application was never useful to begin with, drop it to avoid
further confusion.

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

6 years agoMerge pull request #2278 from sotux/openwrt-18.06
Hannu Nyman [Wed, 14 Nov 2018 14:33:03 +0000 (16:33 +0200)]
Merge pull request #2278 from sotux/openwrt-18.06

i18n: update Simplified Chinese translation for openwrt-18.06

6 years agoi18n: luci-app-uhttpd: add initial Simplified Chinese translation
Zheng Qian [Wed, 14 Nov 2018 01:25:55 +0000 (09:25 +0800)]
i18n: luci-app-uhttpd: add initial Simplified Chinese translation

Signed-off-by: Zheng Qian <sotux82@gmail.com>
6 years agoi18n: luci-base: update Simplified Chinese translation
Zheng Qian [Wed, 14 Nov 2018 00:51:57 +0000 (08:51 +0800)]
i18n: luci-base: update Simplified Chinese translation

Signed-off-by: Zheng Qian <sotux82@gmail.com>
6 years agoi18n: luci-app-firewall: update Simplified Chinese translation
Zheng Qian [Wed, 14 Nov 2018 00:42:04 +0000 (08:42 +0800)]
i18n: luci-app-firewall: update Simplified Chinese translation

Signed-off-by: Zheng Qian <sotux82@gmail.com>
6 years agoluci-app-adblock: sync translations
Hannu Nyman [Fri, 9 Nov 2018 22:23:24 +0000 (00:23 +0200)]
luci-app-adblock: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoluci-app-travelmate: sync translations
Hannu Nyman [Fri, 9 Nov 2018 21:51:03 +0000 (23:51 +0200)]
luci-app-travelmate: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoi18n: sync translations
Hannu Nyman [Fri, 9 Nov 2018 21:35:09 +0000 (23:35 +0200)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 years agoi18n: luci-app-firewall: cleanup multiple definitions in uk/firewall.po
Martin Schiller [Thu, 13 Sep 2018 06:29:32 +0000 (08:29 +0200)]
i18n: luci-app-firewall: cleanup multiple definitions in uk/firewall.po

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
6 years agoi18n: luci-app-addblock: cleanup multiple definitions in zh-cn/adblock.po
Martin Schiller [Thu, 13 Sep 2018 06:26:53 +0000 (08:26 +0200)]
i18n: luci-app-addblock: cleanup multiple definitions in zh-cn/adblock.po

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
6 years agoi18n: fix german base.po
Martin Schiller [Thu, 13 Sep 2018 06:21:22 +0000 (08:21 +0200)]
i18n: fix german base.po

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
6 years agotimezone data: update to 2018g
Hannu Nyman [Tue, 30 Oct 2018 17:45:50 +0000 (19:45 +0200)]
timezone data: update to 2018g

Update timezone data to 2018g

http://mm.icann.org/pipermail/tz-announce/2018-October/000052.html

 * Morocco switches to permanent +01 on 2018-10-27.

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

6 years ago timezone data: update to 2018f
Hannu Nyman [Thu, 25 Oct 2018 15:44:48 +0000 (18:44 +0300)]
 timezone data: update to 2018f

Update timezone data to 2018f

http://mm.icann.org/pipermail/tz-announce/2018-October/000051.html

   Volgograd moves from +03 to +04 on 2018-10-28.
   Fiji ends DST 2019-01-13, not 2019-01-20.
   Most of Chile changes DST dates, effective 2019-04-06.

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

6 years agoluci-app-openvpn: remove obsolete config options
Dirk Brenken [Sun, 16 Sep 2018 16:58:26 +0000 (18:58 +0200)]
luci-app-openvpn: remove obsolete config options

* remove obsolete config options according to
  openwrt/openwrt@89b8ba9, fix for #2135
* whitespace/intendation fixes
* replace fieldset leftover with div
* fix finally recipe options transfer to regular config with "Add"

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

6 years agoluci-app-openvpn: fix template based config creation
Dirk Brenken [Fri, 14 Sep 2018 06:57:06 +0000 (08:57 +0200)]
luci-app-openvpn: fix template based config creation

* minimal fix to bring back openvpn config creation based on
openvpn_recipes template, fix for #2146

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

6 years agotimezone data: update to 2018e
Hannu Nyman [Tue, 9 Oct 2018 15:19:52 +0000 (18:19 +0300)]
timezone data: update to 2018e

Update timezone data to 2018e

http://mm.icann.org/pipermail/tz-announce/2018-May/000050.html

  North Korea switches back to +09 on 2018-05-05.
  The main format uses negative DST again, for Ireland

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

6 years agoluci-app-adblock: sync with adblock 3.5.5
Dirk Brenken [Sat, 1 Sep 2018 06:42:00 +0000 (08:42 +0200)]
luci-app-adblock: sync with adblock 3.5.5

* fix cornercase issues in runtime information/json parsing

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

6 years agoMerge pull request #2109 from kagurazakakotori/openwrt-18.06
Jo-Philipp Wich [Thu, 23 Aug 2018 17:20:37 +0000 (19:20 +0200)]
Merge pull request #2109 from kagurazakakotori/openwrt-18.06

luci-app-adblock: fix chinese translation

6 years agoluci-app-adblock: fix chinese translation
Kagurazaka Kotori [Thu, 23 Aug 2018 17:16:43 +0000 (01:16 +0800)]
luci-app-adblock: fix chinese translation

simply add a </a> tag to stop the link filling the whole page

Signed-off-by: Kagurazaka Kotori <kagurazakakotori@gmail.com>
6 years agoluci-app-firewall: allow "open ports" when no wan zone exists
Jo-Philipp Wich [Mon, 13 Aug 2018 07:20:43 +0000 (09:20 +0200)]
luci-app-firewall: allow "open ports" when no wan zone exists

Arguably this makes little if no wan zone exists but prefer consistency
over heuristics and always render the "open port" shortcut.

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

6 years agoluci-mod-admin-full: applyreboot doesn't reload page
Ansuel Smith [Mon, 13 Aug 2018 08:57:21 +0000 (10:57 +0200)]
luci-mod-admin-full: applyreboot doesn't reload page

The applyreboot page doesn't reload the page onload of the loding gif. This adds the right function.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 442ece768d36e8233c9dd3343844abf3caafddcf)

6 years agoluci-mod-admin-full: fix broken applyreboot page
Ansuel Smith [Tue, 7 Aug 2018 15:37:48 +0000 (17:37 +0200)]
luci-mod-admin-full: fix broken applyreboot page

This improve applyreboot page and fix problem with luci-nginx that doesn't refresh the page when the router reboot.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 327e284b74bd272aa1afaa8b9728c36276440057)

6 years agoluci-theme-material: fix theme for applyreboot page changes
Ansuel Smith [Tue, 7 Aug 2018 15:46:00 +0000 (17:46 +0200)]
luci-theme-material: fix theme for applyreboot page changes

This rename style.css to casade.css (like the other themes) and fix the css to display the header even in the applyreboot page

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 35da63fa9a977ac579ee18ce2636d0db9d76353e)

6 years agoluci-base: mark password template dummy field as hidden
Jo-Philipp Wich [Thu, 16 Aug 2018 07:36:37 +0000 (09:36 +0200)]
luci-base: mark password template dummy field as hidden

Mark the dummy input field as aria-hidden, should fix #2063.

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

6 years agoCorrect grammar in apply_widget.htm
Gregory L. Dietsche [Tue, 7 Aug 2018 14:20:28 +0000 (09:20 -0500)]
Correct grammar in apply_widget.htm

This patch corrects "to get" to "to be" in apply_widget.htm
This shell command was used to find and make the change in
all impacted files:

find . -type f -exec sed -i 's/Waiting for configuration to get applied/Waiting for configuration to be applied/g' {} +

Signed-off-by: Gregory L. Dietsche <gregory.dietsche@cuw.edu>
(cherry picked from commit abfe45ff61e7796c67d0078fd5e4acd186d33033)

6 years agoluci-base: update Chinese translation
yangfl [Thu, 2 Aug 2018 05:57:46 +0000 (13:57 +0800)]
luci-base: update Chinese translation

Signed-off-by: David Yang <mmyangfl@gmail.com>
(cherry picked from commit c51f0d97141afbd1258c1163596af09e59136788)

6 years agoluci-base: update Polish translation
Krystian Kozak [Sun, 5 Aug 2018 12:17:52 +0000 (14:17 +0200)]
luci-base: update Polish translation

Updated Polish translations.

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
(cherry picked from commit 10f12d7f6a73d04a9b3303f735ddfd134c3ac156)

6 years agoluci-base: update Polish translation
Krystian Kozak [Fri, 27 Jul 2018 20:51:07 +0000 (22:51 +0200)]
luci-base: update Polish translation

Updated Polish translations.

Signed-off-by: Krystian Kozak <krystian.kozak20@gmail.com>
(cherry picked from commit 6dbdc2cae8cc5c2a62b094d6bbf77102fa6359c3)

6 years agoluci-mod-admin-full: Fix DSL Stats display of dB statistics
Alan Swanson [Tue, 31 Jul 2018 21:37:47 +0000 (22:37 +0100)]
luci-mod-admin-full: Fix DSL Stats display of dB statistics

Line attenuation, signal attenuation, noise margin and aggregate transmit
power really need to show decimal digits. Fixes commit 88713f6 from issue

(cherry picked from commit 4b3d20cda45331027034b9681e0939399ef968e8)
[rewrapped commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoMerge pull request #2018 from chris5560/18.06-ddns
Hannu Nyman [Wed, 1 Aug 2018 16:44:34 +0000 (19:44 +0300)]
Merge pull request #2018 from chris5560/18.06-ddns

luci-app-ddns[18.06]: remove myself as PKG_MAINTAINER

6 years agoMerge pull request #2016 from chris5560/openwrt-18.06
Hannu Nyman [Wed, 1 Aug 2018 16:44:11 +0000 (19:44 +0300)]
Merge pull request #2016 from chris5560/openwrt-18.06

luci-app-radicale[18.06]: remove myself as PKG_MAINTAINER

6 years agoluci-theme-bootstrap: fix CSS regression in kernel/system log pages
Jo-Philipp Wich [Tue, 31 Jul 2018 15:24:55 +0000 (17:24 +0200)]
luci-theme-bootstrap: fix CSS regression in kernel/system log pages

An unrelated removed some crucial fixes due to improper rebasing.

Fixes: 7ba4eb1a4 ("luci-theme-bootstrap: add styling for input-adjacent buttons")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 176e24699822bb50899f5828d0ace1c37d095ff8)

6 years agoluci-app-adblock: "final" fixes
Dirk Brenken [Tue, 31 Jul 2018 07:21:44 +0000 (09:21 +0200)]
luci-app-adblock: "final" fixes

during intense testing with different browsers (Chrome/Firefox/partly IE
in a VM) I found & fixed some more minor things:

* remove needless hook & include from overview page
* fix possible JS error in Runtime Information
* Align CSS color with "LuCI standard"

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

6 years agoluci-app-travelmate: "final" fixes
Dirk Brenken [Tue, 31 Jul 2018 07:36:27 +0000 (09:36 +0200)]
luci-app-travelmate: "final" fixes

during intense testing with different browsers (Chrome/Firefox/partly IE
in a VM) I found & fixed some more minor things:

* re-add accidently removed "apply_on_parse" attribute in overview cbi
* fixed a corner case where the "Restart" button not works correctly
* Removed leftovers from last commit

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

6 years agofix compilation failure when luasrcdiet is being copied to non existing directory
Jaymin Patel [Mon, 30 Jul 2018 09:36:14 +0000 (15:06 +0530)]
fix compilation failure when luasrcdiet is being copied to non existing directory

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
(cherry picked from commit bb336671fff613b812b308c7eeeeda38608bda9d)

6 years agoMerge pull request #2014 from dibdot/travelmate-18.06
Hannu Nyman [Mon, 30 Jul 2018 20:07:41 +0000 (23:07 +0300)]
Merge pull request #2014 from dibdot/travelmate-18.06

luci-app-travelmate: backport 1.2.1 to 18.06 branch

6 years agoMerge pull request #2013 from dibdot/adblock-18.06
Hannu Nyman [Mon, 30 Jul 2018 20:07:27 +0000 (23:07 +0300)]
Merge pull request #2013 from dibdot/adblock-18.06

luci-app-adblock: backport 3.5.4 to 18.06 branch

6 years agoluci-app-ddns[18.06]: remove myself as PKG_MAINTAINER
Christian Schoenebeck [Mon, 30 Jul 2018 19:58:32 +0000 (21:58 +0200)]
luci-app-ddns[18.06]: remove myself as PKG_MAINTAINER

remove myself as PKG_MAINTAINER

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
6 years agoluci-app-radicale[18.06]: remove myself as PKG_MAINTAINER
Christian Schoenebeck [Mon, 30 Jul 2018 19:51:08 +0000 (21:51 +0200)]
luci-app-radicale[18.06]: remove myself as PKG_MAINTAINER

remove myself as PKG_MAINTAINER

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
6 years agoluci-app-travelmate: backport 1.2.1 to 18.06 branch
Dirk Brenken [Mon, 30 Jul 2018 11:40:13 +0000 (13:40 +0200)]
luci-app-travelmate: backport 1.2.1 to 18.06 branch

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoluci-app-adblock: backport 3.5.4 to 18.06 branch
Dirk Brenken [Mon, 30 Jul 2018 11:27:38 +0000 (13:27 +0200)]
luci-app-adblock: backport 3.5.4 to 18.06 branch

Signed-off-by: Dirk Brenken <dev@brenken.org>
6 years agoluci-theme-openwrt: style tweaks for DSL status display
Jo-Philipp Wich [Sun, 29 Jul 2018 19:11:51 +0000 (21:11 +0200)]
luci-theme-openwrt: style tweaks for DSL status display

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

6 years agoluci-theme-bootstrap: style tweak for DSL status display
Jo-Philipp Wich [Sun, 29 Jul 2018 19:05:34 +0000 (21:05 +0200)]
luci-theme-bootstrap: style tweak for DSL status display

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

6 years agoluci-mod-admin-full: rework DSL Status display
Jo-Philipp Wich [Sun, 29 Jul 2018 18:59:43 +0000 (20:59 +0200)]
luci-mod-admin-full: rework DSL Status display

Fixes #2003.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 88713f64568fdc96920fd6eabaa5dde3ecfbfed3)

6 years agoluci-mod-admin-full: fix style glitch on packages page
Jo-Philipp Wich [Sat, 28 Jul 2018 12:41:34 +0000 (14:41 +0200)]
luci-mod-admin-full: fix style glitch on packages page

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

6 years agoluci-base: fix luasrcdiet
Jo-Philipp Wich [Sat, 28 Jul 2018 09:41:07 +0000 (11:41 +0200)]
luci-base: fix luasrcdiet

 - Stage required libraries as well
 - Remove not existing make target
 - Override library search path

Fixes: b5d5e5bf1 ("luci-base: update luasrcdiet")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63fbf5a805085f7ad99aebaaa116e3096fcf792d)