project/luci.git
2 years agoluci-app-https-dns-proxy: Add HE.net DNS 5534/head
Paul Dee [Tue, 2 Nov 2021 14:53:42 +0000 (15:53 +0100)]
luci-app-https-dns-proxy: Add HE.net DNS

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
(cherry picked from commit a25d56c28d7437f4755b465983678fca0b76c0cc)

2 years agoluci-app-rosy-file-server: drop
Josef Schlehofer [Sat, 20 Nov 2021 14:43:34 +0000 (16:43 +0200)]
luci-app-rosy-file-server: drop

This package was marked as broken [1], so it's time to remove it.
As package rosy-file-server will be dropped soon [2].

Reasons:
1. it's broken (and package requires LuCI, which was marked as broken,
   thus it is useless)
2. maintainer is inactive
3. maintainer's company does not seem to work.

[1] https://github.com/openwrt/luci/commit/34b682afac310859f0d4696110d8a1af60f16c04
[2] https://github.com/openwrt/packages/pull/17031

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

2 years agotreewide: backport Danish translations
Hannu Nyman [Sat, 20 Nov 2021 09:12:22 +0000 (11:12 +0200)]
treewide: backport Danish translations

Backport Danish translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agotranslation: add Danish to luci.mk
Hannu Nyman [Sat, 20 Nov 2021 08:22:39 +0000 (10:22 +0200)]
translation: add Danish to luci.mk

Define Dansk/Danish language in luci.mk.

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

2 years agotreewide: Backport translations - i18n
Hannu Nyman [Sat, 20 Nov 2021 08:19:36 +0000 (10:19 +0200)]
treewide: Backport translations - i18n

Backport translations and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-theme-bootstrap: don't overwrite theme selection upon install
Jo-Philipp Wich [Tue, 16 Nov 2021 12:11:45 +0000 (13:11 +0100)]
luci-theme-bootstrap: don't overwrite theme selection upon install

Revert to the previous uci-defaults behaviour of only setting the
selected theme to Bootstrap if the Bootstrap entry didn't exist yet
in the configuration.

Ref: https://forum.openwrt.org/t/luci-theme-behaviour-change/112047
Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0bc09cc749439e233afdf9cd71c14f67090a3a07)

2 years agotreewide: Backport i18n translations
Hannu Nyman [Thu, 11 Nov 2021 19:42:14 +0000 (21:42 +0200)]
treewide: Backport i18n translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-base: network.js: ignore wireless ifname patterns on retrieving devices
Jo-Philipp Wich [Wed, 10 Nov 2021 10:51:42 +0000 (11:51 +0100)]
luci-base: network.js: ignore wireless ifname patterns on retrieving devices

Only treat the given identifier as Linux netdev name if we can find a
corresponding entry in the device info cache and do not consider strings
starting with "wlan", "ath" or "wl" to be existing devices.

This fixes incorrectly adding wireless sections as ifnames to network
interfaces when the wifi-iface section name begins with one of the
`iface_patterns_wireless` patterns.

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

2 years agoluci-base: tools.widgets: adjust zone selector dropdown markup
Jo-Philipp Wich [Mon, 8 Nov 2021 19:44:59 +0000 (20:44 +0100)]
luci-base: tools.widgets: adjust zone selector dropdown markup

No functional changes but required for styling rules.

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

2 years agoluci-app-firewall: adjust zone badge markup
Jo-Philipp Wich [Mon, 8 Nov 2021 19:37:56 +0000 (20:37 +0100)]
luci-app-firewall: adjust zone badge markup

No functional changes but required for styling rules.

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

2 years agoluci-app-opkg: fix filter reset link action
Jo-Philipp Wich [Mon, 8 Nov 2021 19:23:34 +0000 (20:23 +0100)]
luci-app-opkg: fix filter reset link action

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

2 years agoluci-theme-bootstrap: light/dark mode releated CSS fixes
Jo-Philipp Wich [Mon, 8 Nov 2021 08:56:33 +0000 (09:56 +0100)]
luci-theme-bootstrap: light/dark mode releated CSS fixes

 - Fix progress bar shadow in light mode
 - Fix color schema preference in light and dark modes

Fixes: #5498
Fixes: #5499
Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f16a2f3fbae0c527af812388390cc1bebe8d7eb3)

2 years agoluci-theme-bootstrap: add explicit dark/light mode selection
Jo-Philipp Wich [Sun, 7 Nov 2021 10:04:52 +0000 (11:04 +0100)]
luci-theme-bootstrap: add explicit dark/light mode selection

Register two further "virtual" themes called BootstrapDark and
BootstrapLight which force dark and light mode respectively.

The actual Bootstrap theme itself will continue to auto-select
dark mode preference based on OS/Browser preference settings.

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

2 years agoluci-app-statistics: trivial fix of wrong varible name
Martin Schitter [Fri, 5 Nov 2021 18:05:56 +0000 (19:05 +0100)]
luci-app-statistics: trivial fix of wrong varible name

Signed-off-by: Martin Schitter <ms+git@mur.at>
[Fixed the commit title]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit b0279f474e983e6e46e5b58df1332bf697d32a87)

2 years agoluci-mod-system: add missing require to `none` led trigger class
Jo-Philipp Wich [Sun, 31 Oct 2021 21:26:42 +0000 (22:26 +0100)]
luci-mod-system: add missing require to `none` led trigger class

Also convert ES6 to ES5 syntax while we're at it.

Fixes: #5476
Fixes: 5b42cd5b46 ("luci-mod-system: move default option from defaul-on trigger to none trigger")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fceabd74465f2aafc40edc084429f30837deff2c)

2 years agotimezone data: update to 2021e
Hannu Nyman [Thu, 28 Oct 2021 18:24:18 +0000 (21:24 +0300)]
timezone data: update to 2021e

Update timezone data to 2021e.

http://mm.icann.org/pipermail/tz-announce/2021-September/000066.html
* Jordan now starts DST on February's last Thursday.
* Samoa no longer observes DST.
* Rename Pacific/Enderbury to Pacific/Kanton.

http://mm.icann.org/pipermail/tz-announce/2021-October/000068.html
* Fiji will suspend observance of DST for the 2021/2022 season.

http://mm.icann.org/pipermail/tz-announce/2021-October/000069.html
* Palestine will fall back 10-29 (not 10-30)

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

2 years agoluci-mod-system: move default option from defaul-on trigger to none trigger
Florian Eckert [Thu, 28 Oct 2021 13:43:50 +0000 (15:43 +0200)]
luci-mod-system: move default option from defaul-on trigger to none trigger

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 5b42cd5b46c32bf168b7156602bfa0ba841904a1)

2 years agorpcd-mod-luci: parse prefix size from DHCPv6 leases
Jo-Philipp Wich [Tue, 26 Oct 2021 17:27:36 +0000 (19:27 +0200)]
rpcd-mod-luci: parse prefix size from DHCPv6 leases

Remember the prefix size when parsing odhcpd lease entries and expose
it in the ip6addrs array.

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

2 years agotreewide: i18n - Backport translations
Hannu Nyman [Tue, 26 Oct 2021 15:09:56 +0000 (18:09 +0300)]
treewide: i18n - Backport translations

Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoMerge pull request #5460 from PolynomialDivision/21-02-dawn
Jo-Philipp Wich [Tue, 26 Oct 2021 07:10:24 +0000 (09:10 +0200)]
Merge pull request #5460 from PolynomialDivision/21-02-dawn

2 years agoluci-app-dawn: remove page for steering options 5460/head
Nick Hainke [Sat, 9 Oct 2021 07:57:49 +0000 (09:57 +0200)]
luci-app-dawn: remove page for steering options

The luci-app-dawn is blocking the PR to be merged:
https://github.com/openwrt/packages/pull/16299

Remove the configuration page and set appropriate standard values.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 4a78122246d0991e4a952315c21e4c4e98538f43)

2 years agoluci-theme-bootstrap: work around csstidy bug
Jo-Philipp Wich [Mon, 25 Oct 2021 21:59:02 +0000 (23:59 +0200)]
luci-theme-bootstrap: work around csstidy bug

Ref: https://github.com/openwrt/luci/commit/26047fb967f079000ab61c7377f8e26e11277569#commitcomment-58638390
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 37e40e04ef04307660c35eb089deb6cbde17d660)

2 years agoluci-theme-bootstrap: fix overlay display failures
Paul Dee [Thu, 7 Oct 2021 14:26:06 +0000 (16:26 +0200)]
luci-theme-bootstrap: fix overlay display failures

Fixed overlay display failures for users on mobile, or users who booted
up in safe mode XD. Noticeable when vertical or horizontal real-estate
is too small for the displayed overlay.

This failure is most evident when you "edit" an interface, or display
your unsaved changes.

When content is wider than the screen view, the table hugs the (widest)
content maximally, and the overlay window becomes scrollable.

Disabled -webkit-overflow-scrolling, left, and right, because both FF
and Safari disable them as invalid anyway.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
[Merge duplicate modal declarations, remove not applicable modal
 flexbox properties]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d1035c1f6907ecf3fba510551f1878f4c6cb3d72)

2 years agoluci-theme-bootstrap: fix header width
Jo-Philipp Wich [Mon, 25 Oct 2021 17:39:08 +0000 (19:39 +0200)]
luci-theme-bootstrap: fix header width

Fixes: 588e24f9ca ("luci-theme-bootstrap: various tweaks and cleanups")
Ref: https://github.com/openwrt/luci/commit/588e24f9ca68de074c4d085ec99fd8c96ad0a3ed#r58625289
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8fc78a26da9ee95b2479213083efa750173291d2)

2 years agoluci-app-statistics: fix process graph tab captions
Jo-Philipp Wich [Fri, 22 Oct 2021 22:29:52 +0000 (00:29 +0200)]
luci-app-statistics: fix process graph tab captions

Plugins that provide both detail and non-detail instances led to a mismatch
between the instance list to render and the plugin instance list, causing
tab captions to be wrongly assigned.

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

2 years agoluci-base: remove further related section types on deleting network
Jo-Philipp Wich [Fri, 22 Oct 2021 17:44:43 +0000 (19:44 +0200)]
luci-base: remove further related section types on deleting network

When removing a `config interface` section in `/etc/config/network`, drop
related `rule` and `rule6` sections too, as well as related `dhcp` sections
in `/etc/config/dhcp`.

Ref: https://forum.openwrt.org/t/grooming-etc-config/109764/7
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63034c36073bedf87db18d05d3fe8cca016c6490)

2 years agoluci-mod-network: remove related bridge-vlan sections on deleting device
Jo-Philipp Wich [Fri, 22 Oct 2021 17:17:42 +0000 (19:17 +0200)]
luci-mod-network: remove related bridge-vlan sections on deleting device

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

2 years agoluci-theme-bootstrap: various tweaks and cleanups
Jo-Philipp Wich [Fri, 8 Oct 2021 22:30:48 +0000 (00:30 +0200)]
luci-theme-bootstrap: various tweaks and cleanups

 - introduce new variable --text-color-highest which results in #000/#fff
   for bright and dark modes respectively
 - drop unused navigation style rules and selectors
 - use sticky positioning for header bar and drop top margin hacks
 - use flex box layout for header bar contents
 - use uniform line-height for button elements instead of pixel paddings
 - fix too bright .cbi-value bottom border in mobile dark mode
 - avoid rendering duplicate .cbi-value bottom borders for nested sections
 - simplify header markup, get rid of unused container elements
 - use non-wrapping flex box layout for page actions, prioritize primary
   action button in automatic width calculation
 - fix border radius of ifacebox headers
 - use brightest color for log output textareas
 - fix dark mode colors for mode menu
 - use flex layout for footer

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

2 years agoluci-mod-network: spelling / grammar
Paul Dee [Wed, 6 Oct 2021 23:00:24 +0000 (01:00 +0200)]
luci-mod-network: spelling / grammar

"Setup" is a noun, the thing. "Set up" is a verbal idiom, the action.

One cannot setup a DHCP server, just as one cannot fuckup a test, or
ripup some paper. One can, however, set a DHCP server up, and one can
fuck a test up, and rip some paper up.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit c0299e2c3d09c48b515447b2c6fefd00ffd2950b)

2 years agoluci-base: cbi.js: use IEC 80000-13 units to format base 2 byte values
Jo-Philipp Wich [Fri, 8 Oct 2021 18:52:52 +0000 (20:52 +0200)]
luci-base: cbi.js: use IEC 80000-13 units to format base 2 byte values

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

2 years agoluci-app-smartdns: explicitly require `view` class
Jo-Philipp Wich [Fri, 8 Oct 2021 17:55:39 +0000 (19:55 +0200)]
luci-app-smartdns: explicitly require `view` class

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

2 years agoluci-theme-bootstrap: rework uci changelog styling
Jo-Philipp Wich [Fri, 8 Oct 2021 17:20:34 +0000 (19:20 +0200)]
luci-theme-bootstrap: rework uci changelog styling

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

2 years agoluci-theme-bootstrap: add dark theme variant
Teoh Han Hui [Wed, 15 Sep 2021 20:34:11 +0000 (04:34 +0800)]
luci-theme-bootstrap: add dark theme variant

Add a dark theme variant which is enabled by default when
prefers-color-scheme is set to dark.

Signed-off-by: Teoh Han Hui <teohhanhui@gmail.com>
(cherry picked from commit 6dd71eaebeb44df321c8c39da916082a0cde3285)

2 years agoluci-theme-openwrt-2020: add styling of hyperlinks
Petr Štetiar [Tue, 15 Dec 2020 08:10:39 +0000 (09:10 +0100)]
luci-theme-openwrt-2020: add styling of hyperlinks

Currently it's not possible to distinguish between normal text and
hyperlink.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 60fbadfa36f9b99a536fe29482960b7f48838bd1)

2 years agoluci-theme-openwrt-2020: add styling of abbreviations and acronyms
Petr Štetiar [Mon, 14 Dec 2020 11:53:01 +0000 (12:53 +0100)]
luci-theme-openwrt-2020: add styling of abbreviations and acronyms

Style abbreviations and acronyms with dotted underline text-decoration
as without the style it's quite hard to find out which text is
abbreviation or acronym.

References: https://developer.mozilla.org/en-US/docs/Archive/Web_Standards/Styling_Abbreviations_and_Acronyms
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b5faba12442529d282668268aee0d54bd98f1419)

2 years agofix wrong ed25519 information
Rosen Penev [Sat, 11 Sep 2021 07:05:42 +0000 (00:05 -0700)]
fix wrong ed25519 information

ECDH is not used for the ed25519. The scheme is called EdDSA.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 738f36a1c31eda6d322e18c1b7fca4b6498e46a9)

2 years agoluci-theme-material: fix cut syslog
Ansuel Smith [Sat, 4 Sep 2021 16:56:36 +0000 (18:56 +0200)]
luci-theme-material: fix cut syslog

Remove line-height css for syslog textarea as it cause some
problem with displaying all the rows of the syslog.
(Row line are calculated with a line-height of 1)

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

2 years agoluci-theme-material: improve support for dashboard module
Ansuel Smith [Fri, 3 Sep 2021 19:05:53 +0000 (21:05 +0200)]
luci-theme-material: improve support for dashboard module

Fix sidebar styling to improve support for dashboard module.

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

2 years agoluci-theme-material: add support for modmenu
Ansuel Smith [Wed, 11 Aug 2021 15:15:08 +0000 (17:15 +0200)]
luci-theme-material: add support for modmenu

Improve support for modmenu.

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

2 years agoksmbd: fix the layout of textbox
Fritz D. Ansel [Thu, 12 Aug 2021 04:48:09 +0000 (06:48 +0200)]
ksmbd: fix the layout of textbox

without this, only 50% of screen where used
also show version only 1 time if Ksmbd/Kmod
versions match

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit a624647c2a5dec79b5e4869144ec91f31861225c)

2 years agosamba4: fix the layout of textbox
Fritz D. Ansel [Wed, 11 Aug 2021 22:23:07 +0000 (00:23 +0200)]
samba4: fix the layout of textbox

without this, only 50% of screen where used

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit f533f9d2258578a7536bcada54f7ca9a5cfe8a55)

2 years agoluci-theme-material: standardize menu and drop jquery
Ansuel Smith [Wed, 11 Aug 2021 15:13:02 +0000 (17:13 +0200)]
luci-theme-material: standardize menu and drop jquery

- Drop jquery lib
- Move to the new menu.js implementation
- Rework css to mimic old js transition
- Rework footer and header to new implementation

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

2 years agotheme openwrt-2020: set maximum menu width
Fritz D. Ansel [Mon, 2 Aug 2021 18:41:42 +0000 (20:41 +0200)]
theme openwrt-2020: set maximum menu width

more space for it does not have an advance

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit b2bea345863ed1592bd2b51f87ca0716e6fb2450)

2 years agotheme openwrt-2020: larger bridge-boxes
Fritz D. Ansel [Mon, 2 Aug 2021 18:40:26 +0000 (20:40 +0200)]
theme openwrt-2020: larger bridge-boxes

they are to small for devices like e8450
as it has 4x LAN + 2x WLAN + 1x Bridge

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit c592ef4f8401e16959086f0f6f04c71dfba6dffa)

2 years agonetwork: hide dnamsq (dhcp+dns) item
Fritz D. Ansel [Mon, 2 Aug 2021 18:22:43 +0000 (20:22 +0200)]
network: hide dnamsq (dhcp+dns) item

.. when no dnsmasq is installed, as it
tells only that there are no settings available

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 2393289367bb3c4e366ee36cc66af9149687139b)

2 years agostatus: make buffered conditional
Fritz D. Ansel [Mon, 2 Aug 2021 18:20:37 +0000 (20:20 +0200)]
status: make buffered conditional

when buffered could not be read, there is
just a questionmark (on e8450 non-ubi)

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 61425793a78ea60b564f9767b60b001da0e4cc96)

2 years agosystem: more text lines for crontab
Fritz D. Ansel [Mon, 2 Aug 2021 18:19:12 +0000 (20:19 +0200)]
system: more text lines for crontab

10 lines are very few and there is much unused space

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 8fb2d82f703743d3432fc26f5d2cb14895bf57f7)

2 years agofirewall: more text lines for custom script
Fritz D. Ansel [Mon, 2 Aug 2021 18:18:19 +0000 (20:18 +0200)]
firewall: more text lines for custom script

10 lines are very few and there is much unused space

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 406e6c81770add3b1fa0e53e9f8c1774c3b7f25f)

2 years agoluci-mod-network: allow sorting static leases
Jo-Philipp Wich [Tue, 19 Oct 2021 21:13:43 +0000 (23:13 +0200)]
luci-mod-network: allow sorting static leases

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

2 years agoluci-mod-system: fix time display logic
Jo-Philipp Wich [Tue, 19 Oct 2021 21:08:36 +0000 (23:08 +0200)]
luci-mod-system: fix time display logic

Use the system/info ubus call to obtain a TZ adjusted epoch value and
format the date time string manually instead of relying on the browsers
local representation.

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

2 years agotreewide: Backport and sync i18n translations
Hannu Nyman [Tue, 19 Oct 2021 19:22:39 +0000 (22:22 +0300)]
treewide: Backport and sync i18n translations

Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-theme-openwrt: add success style for alert messages
Jo-Philipp Wich [Tue, 12 Oct 2021 20:39:13 +0000 (22:39 +0200)]
luci-theme-openwrt: add success style for alert messages

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

2 years agoluci-base: sysauth.htm: switch https detection URL
Jo-Philipp Wich [Mon, 11 Oct 2021 18:36:44 +0000 (20:36 +0200)]
luci-base: sysauth.htm: switch https detection URL

The `up.gif` icon is not present by default anymore, it has been moved to
luci-compat. Probe loading.gif instead which is guaranteed to be available
by default.

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

2 years agoluci-base: dispatcher: fix null access on dispatching unknown urls
Jo-Philipp Wich [Mon, 11 Oct 2021 17:01:39 +0000 (19:01 +0200)]
luci-base: dispatcher: fix null access on dispatching unknown urls

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

2 years agoluci-base: form.js: add drag-drop sorting support for mobile
Jo-Philipp Wich [Fri, 8 Oct 2021 14:53:12 +0000 (16:53 +0200)]
luci-base: form.js: add drag-drop sorting support for mobile

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

2 years agoluci-mod-network: fix disabling 11w MFP for WPA3
Jo-Philipp Wich [Mon, 27 Sep 2021 08:03:59 +0000 (10:03 +0200)]
luci-mod-network: fix disabling 11w MFP for WPA3

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

2 years agoluci-app-radicale2: Fix library loading
Dennis Dast [Mon, 20 Sep 2021 13:56:04 +0000 (15:56 +0200)]
luci-app-radicale2: Fix library loading

This fixes the "Authentication / Users" and "Storage" tab of
luci-app-radicale2.

Signed-off-by: Dennis Dast <mail@ddast.de>
(cherry picked from commit 29f78ce73fd35978f34d1aa4d7a7697889298d3e)

2 years agorpcd-mod-luci: fix syntax error
Jo-Philipp Wich [Wed, 22 Sep 2021 10:42:54 +0000 (12:42 +0200)]
rpcd-mod-luci: fix syntax error

Fixes: 45a398e1ed ("rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit af4352c07ef33ebb06a0c7f684f3f753b9c23f4f)

2 years agorpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs
Jo-Philipp Wich [Wed, 22 Sep 2021 07:55:07 +0000 (09:55 +0200)]
rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs

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

2 years agorpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones
Jo-Philipp Wich [Wed, 22 Sep 2021 07:41:12 +0000 (09:41 +0200)]
rpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones

Do not overwrite IPv4-resolved hostnames with IPv6 ones in case both are
available or resolvable.

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

2 years agoluci-mod-status: fix wrong logic for maclist adding feature
Ansuel Smith [Sat, 18 Sep 2021 14:25:23 +0000 (16:25 +0200)]
luci-mod-status: fix wrong logic for maclist adding feature

Currently any new entry added to the black/whitelist deletes the
others. Fix this and improve the rule apply by firstly disconnect
the wifi client.

Fixes: #5343
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 085c4a08f5bf50919731304a962cfcd2b592d523)

2 years agoluci-mod-status: cosmetic fix for isWPSEnabled in wifi status
Ansuel Smith [Sat, 18 Sep 2021 14:17:27 +0000 (16:17 +0200)]
luci-mod-status: cosmetic fix for isWPSEnabled in wifi status

Drop isWPSEnabled table as it's really not needed and can directly
included in the network table.

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

2 years agoluci-mod-network: fix option ip6table in network/interfaces
Vladislav Grigoryev [Thu, 26 Aug 2021 01:42:36 +0000 (04:42 +0300)]
luci-mod-network: fix option ip6table in network/interfaces

Fix the incorrectly displayed value for the option "ip6table".

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 3ebdf51f9b2e713cd655c0f97f2542c96736cae5)

2 years agoluci-base: fix off-by-one in cbi_update_table()
Jo-Philipp Wich [Thu, 15 Jul 2021 06:13:31 +0000 (08:13 +0200)]
luci-base: fix off-by-one in cbi_update_table()

Fixes: #5189
Fixes: f919635310 ("luci-base: batch DOM updates to prevent slowdown")
Ref: https://github.com/openwrt/luci/commit/f919635310286b3b905aedb716d707da1ea2c811#commitcomment-53495580
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7d9ab8d4a741cbc97e9553982e9e352b21ddf5f3)

2 years agoluci-base: batch DOM updates to prevent slowdown
Olli Asikainen [Tue, 29 Jun 2021 23:03:00 +0000 (02:03 +0300)]
luci-base: batch DOM updates to prevent slowdown

Signed-off-by: Olli Asikainen <olli.asikainen@gmail.com>
(cherry picked from commit f919635310286b3b905aedb716d707da1ea2c811)

2 years agoluci-mod-network: fix 60GHz radio frequency configuration
Jo-Philipp Wich [Fri, 9 Jul 2021 19:39:45 +0000 (21:39 +0200)]
luci-mod-network: fix 60GHz radio frequency configuration

Fix incorrect minimum 60GHz frequency value and ensure that a 60GHz band
choice option is available once corresponding channels are found on the
system.

Ref: http://lists.openwrt.org/pipermail/openwrt-devel/2021-July/035810.html
Suggested-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e5626ece12236f6be9dbb6da6eb90fcbb469a1f0)

2 years agoluci-mod-network: dhcp.js: don't fail on not existing interface
Jo-Philipp Wich [Thu, 8 Jul 2021 16:55:47 +0000 (18:55 +0200)]
luci-mod-network: dhcp.js: don't fail on not existing interface

Fixes: #5177
Fixes: 7e56289538 ("luci-mod-network: improve static DHCP lease validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f57d20bffffda026ab203d328a859a3f38c0c8d0)

2 years agoluci-mod-network: fixes to DHCP lease validation
Jo-Philipp Wich [Sat, 3 Jul 2021 18:40:29 +0000 (20:40 +0200)]
luci-mod-network: fixes to DHCP lease validation

 - validate current form value IP instead of stored uci one
 - ensure to not pass non-string values to the validator
 - remove leftover debug code
 - simplify obtaining formvalues

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

2 years agoluci-mod-network: improve static DHCP lease validation
Jo-Philipp Wich [Sat, 3 Jul 2021 16:54:14 +0000 (18:54 +0200)]
luci-mod-network: improve static DHCP lease validation

 - Ensure that MAC addresses are unique within the same pool
 - Ensure that IP addresses are globally unique
 - Ensure that IP addresses are within any DHCP pool range

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

2 years agoluci-app-fwknopd: trivial typo fix
Dirk Brenken [Fri, 11 Jun 2021 20:48:13 +0000 (22:48 +0200)]
luci-app-fwknopd: trivial typo fix

* fix for #5073

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

2 years agorpcd-mod-luci: support parsing 11ax HW / HT modes
David Bauer [Sat, 5 Jun 2021 14:18:35 +0000 (16:18 +0200)]
rpcd-mod-luci: support parsing 11ax HW / HT modes

Add support for parsing 11ax modes returned from UBUS. This is required
so the frontend can display information about supported 11ax operation.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 7b11e848ac48325377712179fb9cf79fffff207d)

2 years agoluci-mod-network: do not remove enable_vlan from config
Michael Pratt [Wed, 21 Apr 2021 22:03:58 +0000 (18:03 -0400)]
luci-mod-network: do not remove enable_vlan from config

There are many switch drivers where VLAN functionality is enabled by default.
In this situation, LuCI cannot be used to disable VLAN functionality,
because removing the line from configuration results in VLAN remaining enabled
by the driver.

When enable_vlan is set to 0 by default
by using functions in board.d,
and an unrelated change is made on the Switch webpage,
then the enable_vlan option gets deleted when changes are saved.

Therefore, the option needs to be preserved, whether set to 0 or 1.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit 51ab737a4ba2b0f2a9d479cf114837c570f8d05c)

2 years agoMerge pull request #5413 from stangri/21.02-luci-app-advanced-reboot
Stan Grishin [Wed, 6 Oct 2021 21:50:18 +0000 (14:50 -0700)]
Merge pull request #5413 from stangri/21.02-luci-app-advanced-reboot

[21.02] luci-app-advanced-reboot: bugfix for Linksys E4200v2

2 years agoluci-app-advanced-reboot: bugfix for Linksys E4200v2 5413/head
Stan Grishin [Wed, 6 Oct 2021 21:43:46 +0000 (21:43 +0000)]
luci-app-advanced-reboot: bugfix for Linksys E4200v2

* bugfix for Linksys E4200v2
* backport updates from master

Signed-off-by: Stan Grishin <stangri@melmac.net>
2 years agotreewide: i18n - Backport translations
Hannu Nyman [Tue, 5 Oct 2021 18:53:09 +0000 (21:53 +0300)]
treewide: i18n - Backport translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-app-statistics: Remove erroneous include from default config
Hannu Nyman [Tue, 5 Oct 2021 18:42:30 +0000 (21:42 +0300)]
luci-app-statistics: Remove erroneous include from default config

Remove the unnecessary Include line from the default config.
It causes error at collectd start, as the directory is missing.
  daemon.err collectd[9722]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory

Leave the line as a comment/example.

Fixes #5373

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

2 years agoluci-app-statistics: standardise newline usage
Hannu Nyman [Tue, 28 Sep 2021 20:00:42 +0000 (23:00 +0300)]
luci-app-statistics: standardise newline usage

Fix newline usage in a few graph definitions.

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

2 years agoMerge pull request #5392 from ByteAndNibble/openwrt-21.02
Stan Grishin [Sun, 26 Sep 2021 18:41:01 +0000 (11:41 -0700)]
Merge pull request #5392 from ByteAndNibble/openwrt-21.02

[21.02] luci-app-https-dns-proxy: add ControlD as provider

2 years agoluci-app-https-dns-proxy: add ControlD as provider 5392/head
Aleem Hossain [Sat, 25 Sep 2021 19:44:45 +0000 (20:44 +0100)]
luci-app-https-dns-proxy: add ControlD as provider

Signed-off-by: Aleem Hossain <aleem@tectonic.it>
2 years agoluci-app-transmission: grant access to group and passwd files
Jo-Philipp Wich [Fri, 24 Sep 2021 18:08:59 +0000 (20:08 +0200)]
luci-app-transmission: grant access to group and passwd files

This is required for the user and group ID dropdowns in the
configuration.

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

2 years agoluci-app-dawn: add missing quotation mark
Schleifer, Werner [Fri, 24 Sep 2021 07:26:27 +0000 (09:26 +0200)]
luci-app-dawn: add missing quotation mark

Signed-off-by: Schleifer, Werner <werner.schleifer@gmx.de>
(cherry picked from commit d4ab37d9a03cce11620414b98137d11d889d8720)

2 years agoluci-mod-network: fix name of network.device.isolate uci option
Jo-Philipp Wich [Thu, 23 Sep 2021 15:33:43 +0000 (17:33 +0200)]
luci-mod-network: fix name of network.device.isolate uci option

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

2 years agotreewide: i18n - Sync, backport translations
Hannu Nyman [Thu, 23 Sep 2021 15:19:52 +0000 (18:19 +0300)]
treewide: i18n - Sync, backport translations

Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-app-attendedsysupgrade: use correct linter settings
Paul Spooren [Tue, 31 Aug 2021 19:22:13 +0000 (09:22 -1000)]
luci-app-attendedsysupgrade: use correct linter settings

The previous settings would use spaces which messed up things since LuCI
uses tabs everywhere.

Also removed a stray console.log

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 641bfe3967cef3a7f5a2a5c72f138438c395428b)

2 years agoluci-app-attendedsysupgrade: support revision checks
Paul Spooren [Sun, 29 Aug 2021 10:37:31 +0000 (00:37 -1000)]
luci-app-attendedsysupgrade: support revision checks

SNAPSHOTS are not real releases and therefore the app always offers an
upgrade, even if running the latest build. To prevent that all SNAPSHOTS
now check for the running revision and if a newer one is available.

Also do a bunch of refactoring based on JavaScript I learned over the
last week.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit f799d550b6389baee5b388eefe638ba9a690f4c5)

2 years agoluci-app-yggdrasil: Update to support v0.4.0 config
George Iv [Wed, 21 Jul 2021 16:23:49 +0000 (19:23 +0300)]
luci-app-yggdrasil: Update to support v0.4.0 config

Signed-off-by: George Iv <zhoreeq@users.noreply.github.com>
(cherry picked from commit 3953b1a5b249b09e566ca1ec4ce2fb4e23cdf69e)

2 years agotreewide: i18n - Backport translations
Hannu Nyman [Thu, 9 Sep 2021 15:01:47 +0000 (18:01 +0300)]
treewide: i18n - Backport translations

Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-app-travelmate: EAP-bugfixes
Dirk Brenken [Sun, 5 Sep 2021 20:05:47 +0000 (22:05 +0200)]
luci-app-travelmate: EAP-bugfixes

* fix numerous errors in EAP handling
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9f9247a08c79e2b94deeeb82af086ec5f5c2ebe9)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2 years agoluci-app-firewall: add ipv6 exclusive ICMP types
Paul Dee [Tue, 31 Aug 2021 21:10:44 +0000 (23:10 +0200)]
luci-app-firewall: add ipv6 exclusive ICMP types

fixes #5213

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit 19c66ef539da5136bcdb3978e5e8b87c87f8ae21)
Update commit description
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2 years agoluci-mod-network: fix route6 source autocomplete
Vladislav Grigoryev [Thu, 26 Aug 2021 10:33:44 +0000 (13:33 +0300)]
luci-mod-network: fix route6 source autocomplete

Fix the wrong value for the "source" option of the "route6" section.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 8b4015036d6f298cbfe0291ab8fdc23b4133cca7)

2 years agoluci-theme-openwrt-2020: add css success label
Florian Eckert [Mon, 9 Aug 2021 12:00:27 +0000 (14:00 +0200)]
luci-theme-openwrt-2020: add css success label

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a655389032b85b12ec56733c455abaac07693f56)

2 years agoluci-app-wireguard: set allowed_ips option as optional value
Keith Irwin [Sun, 29 Aug 2021 04:44:38 +0000 (22:44 -0600)]
luci-app-wireguard: set allowed_ips option as optional value

Signed-off-by: Keith Irwin <git@ki9.us>
(cherry picked from commit 092109c9056444a4ba691d15031f69403ab2b37c)
fixed commit title
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2 years agotreewide: i18n - Backport translations, sync.
Hannu Nyman [Wed, 25 Aug 2021 17:22:45 +0000 (20:22 +0300)]
treewide: i18n - Backport translations, sync.

Sync translations.
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2 years agoluci-app-attendedsysupgrade: use detail not message
Paul Spooren [Sun, 22 Aug 2021 10:07:20 +0000 (00:07 -1000)]
luci-app-attendedsysupgrade: use detail not message

The new API unifies all human readable responses in the `detail` field
to follow the newly used framework.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 2a29911121bf72d5d316b2eeae7f184b8ce14482)

2 years agoluci-app-attendedsysupgrade: use latest.json
Paul Spooren [Mon, 16 Aug 2021 04:52:18 +0000 (18:52 -1000)]
luci-app-attendedsysupgrade: use latest.json

The content is the same response as for `/api/latest.json` but
statically hosted by a webserver rather than Python generated.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a672875402a0802ddcd0e4c8c2d0ac7913dff671)

2 years agoluci-app-attendedsysupgrade: show position in queue
Paul Spooren [Mon, 16 Aug 2021 04:50:49 +0000 (18:50 -1000)]
luci-app-attendedsysupgrade: show position in queue

The server provides a queue_position argument, show it.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 53ff7ca676d10fa253d3ab472b9b5645996527ed)

2 years agoluci-app-attendedsysupgrade: add timeout and catch
Paul Spooren [Mon, 9 Aug 2021 18:45:58 +0000 (08:45 -1000)]
luci-app-attendedsysupgrade: add timeout and catch

If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit ff24b78c807a52a0f9afb62ba0aba1085d9ad045)

2 years agoluci-app-travelmate: sync with travelmate 2.0.6
Dirk Brenken [Sun, 22 Aug 2021 07:19:15 +0000 (09:19 +0200)]
luci-app-travelmate: sync with travelmate 2.0.6

* a few (visual) fixes reported in the forum
* emphasize normal uplinks in blue, vpn uplinks in green
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit f1d1e752b8b08b7803b6c027d9c44dded97d2a4c)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2 years agoluci-app-travelmate: sync with travelmate 2.0.5-3
Dirk Brenken [Sun, 22 Aug 2021 07:14:54 +0000 (09:14 +0200)]
luci-app-travelmate: sync with travelmate 2.0.5-3

* adapt the travelmate UI to support the changed 'trm_maxscan' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit fd7494ffb19d1c0197ddcb048c381b44cdb205e5)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2 years agoluci-base: support loopback by widgets.NetworkSelect
Vladislav Grigoryev [Sat, 14 Aug 2021 23:37:44 +0000 (02:37 +0300)]
luci-base: support loopback by widgets.NetworkSelect

Support the "loopback" interface by "widgets.NetworkSelect".
Enable the "loopback" option to include this interface.
Can be used to configure interface binding for services.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 376af36975579008e3176a860ae032759d27dcbb)