project/luci.git
3 months agoluci-mod-status: log viewers - change focus() to scrollIntoView()
Paul Donald [Mon, 8 Jul 2024 14:34:31 +0000 (16:34 +0200)]
luci-mod-status: log viewers - change focus() to scrollIntoView()

scrollIntoView() is more universally supported and standards tracked.

Closes #7186

Updates 9370bdddaede2feeb581193158d83f5062d5a318

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 7893f2d08aaa1a0419ede1a695a25781f60e6ba6)

3 months agoluci-base: grammar fixes
Paul Donald [Fri, 26 Jul 2024 17:46:34 +0000 (19:46 +0200)]
luci-base: grammar fixes

Login (n) -> Log (v) in

Logout (n) -> Log (v) out

restored i18n for these strings

(backport: See commit 2c3018d426e7a8afe06b529075aa43df2f8096f8)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
3 months agoluci-mod-network: made expandAndFormatMAC return arrays
Paul Donald [Thu, 25 Jul 2024 14:22:25 +0000 (16:22 +0200)]
luci-mod-network: made expandAndFormatMAC return arrays

instead of returning a space separated string

follow-up to 5ab0cb1f15bcb31015ae8345d302c6d023ba51e2

Closes #7209

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 84ffb655b0764d949c7bd4fd5f9502c314b77c58)

4 months agoluci-mod-network: Correctly assign dnsmasq instance: name not number
Paul Donald [Tue, 23 Jul 2024 13:18:07 +0000 (15:18 +0200)]
luci-mod-network: Correctly assign dnsmasq instance: name not number

Closes #7199

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 5ab0cb1f15bcb31015ae8345d302c6d023ba51e2)

4 months agotreewide: Backport and sync translations
Hannu Nyman [Thu, 18 Jul 2024 09:13:13 +0000 (12:13 +0300)]
treewide: Backport and sync translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
4 months agotreewide: Backport translations
Hannu Nyman [Fri, 28 Jun 2024 20:07:10 +0000 (23:07 +0300)]
treewide: Backport translations

Backport translations.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
5 months agotreewide: Backport and sync i18n translations
Hannu Nyman [Sat, 15 Jun 2024 07:26:36 +0000 (10:26 +0300)]
treewide: Backport and sync i18n translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 months agotreewide: Backport i18n translations
Hannu Nyman [Thu, 16 May 2024 16:44:06 +0000 (19:44 +0300)]
treewide: Backport i18n translations

Backport translations. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
6 months agoluci-app-p910nd: Fix enable default
Paul Donald [Tue, 14 May 2024 12:14:29 +0000 (14:14 +0200)]
luci-app-p910nd: Fix enable default

Enabled setting shall always be present.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 05c6a0887f88dd65b8176686f3aee5bd05d8771a)

6 months agoRevert "luci-proto-ppp: pppoe.so has no MTU option; remove it"
Jo-Philipp Wich [Mon, 13 May 2024 10:34:15 +0000 (12:34 +0200)]
Revert "luci-proto-ppp: pppoe.so has no MTU option; remove it"

This reverts commit 995d3a1801cf3b850e8c7c35937fbdd0526ff53e.

The `mtu` option controls the pppd mru and mtu arguments, it is not
specific to pppoe.so.

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

7 months agotreewide: Backport i18n translations
Hannu Nyman [Sun, 21 Apr 2024 20:01:05 +0000 (23:01 +0300)]
treewide: Backport i18n translations

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 months agoluci-app-openvpn: change Value to DynamicList for ciphers
Paul Donald [Wed, 17 Apr 2024 00:49:49 +0000 (02:49 +0200)]
luci-app-openvpn: change Value to DynamicList for ciphers

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f6301561e709433b8602264fa00495c4aeb70ad3)

7 months agoluci-proto-ppp: pppoe.so has no MTU option; remove it
Paul Donald [Tue, 16 Apr 2024 15:41:30 +0000 (17:41 +0200)]
luci-proto-ppp: pppoe.so has no MTU option; remove it

Retain comment so nobody is tempted to resurrect it.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 995d3a1801cf3b850e8c7c35937fbdd0526ff53e)

7 months agoMerge pull request #7054 from stangri/openwrt-22.03-luci-app-https-dns-proxy
Stan Grishin [Fri, 12 Apr 2024 20:39:42 +0000 (13:39 -0700)]
Merge pull request #7054 from stangri/openwrt-22.03-luci-app-https-dns-proxy

[22.03] luci-app-https-dns-proxy: 3 cherry-picks to bring up to date with bugfixes.

7 months agoluci-app-https-dns-proxy: bugfix: status/overview page include 7054/head
Stan Grishin [Wed, 10 Apr 2024 21:37:58 +0000 (21:37 +0000)]
luci-app-https-dns-proxy: bugfix: status/overview page include

This fix prevents iteration over empty/null array of instances (and the type error)
if there are no instances found.

Fixes https://github.com/openwrt/packages/issues/23868

Signed-off-by: Stan Grishin <stangri@melmac.ca>
7 months agoluci-app-https-dns-proxy: bugfix: AdGuard servers URLs
Stan Grishin [Wed, 3 Apr 2024 20:02:55 +0000 (20:02 +0000)]
luci-app-https-dns-proxy: bugfix: AdGuard servers URLs

AdGuard seems to have drastically changed their DoH servers URLs, so this change updates
the root/usr/share/https-dns-proxy/providers/com.adguard.dns.json file.
Fixes https://github.com/openwrt/luci/issues/7038

Also include minor Makefile changes for better menuconfig presence.

Signed-off-by: Stan Grishin <stangri@melmac.ca>
7 months agoluci-app-https-dns-proxy: prepare migration to APK
Stan Grishin [Sat, 23 Mar 2024 01:14:38 +0000 (01:14 +0000)]
luci-app-https-dns-proxy: prepare migration to APK

Signed-off-by: Stan Grishin <stangri@melmac.ca>
7 months agoluci-theme-material: make luci-app-commands command box align with Bootstrap theme
Daniel Nilsson [Tue, 19 Mar 2024 19:01:09 +0000 (20:01 +0100)]
luci-theme-material: make luci-app-commands command box align with Bootstrap theme

The current implementation made the commands from the app luci-app-commands absolutely positioned which resulted in hiding elements which was underneath it, ie. the buttons. This implementation removes the absolutely positioned behavior making the buttons visible again and as an upside aligns it with how the Bootstrap theme handles commands.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit 4adc4a65688d7d411ccae019be673c47bd811e41)

7 months agoluci-mod-status: fix syslog / dmesg scroll for some themes
Miguel Angel Mulero Martinez [Wed, 27 Mar 2024 09:16:22 +0000 (10:16 +0100)]
luci-mod-status: fix syslog / dmesg scroll for some themes

The actual code moves the scroll in the window. This works for the bootstrap theme, because the scroll is at window level. But this does not work for other themes, like material.

This commit changes the move of the scroll by "focusing" the window in the opposite button element in the syslog / dmesg page. In this way the move is automatically done by the browser.

Another solution is to "search" in the parent until we find the scroll and move it, but seems less solid.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
(cherry picked from commit 1164d276081a30923197299cacede3c6f4dce16e)

7 months agoluci-app-ttyd: add option for UNIX socket and URL override
Richard Yu [Mon, 25 Mar 2024 17:08:06 +0000 (01:08 +0800)]
luci-app-ttyd: add option for UNIX socket and URL override

Signed-off-by: Richard Yu <yurichard3839@gmail.com>
(cherry picked from commit 9f3ae08703e23d7395ef9daa05ab1000dde09152)

8 months agotreewide: Backport translations and sync
Hannu Nyman [Wed, 20 Mar 2024 19:58:34 +0000 (21:58 +0200)]
treewide: Backport translations and sync

Backport translations and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 months agoluci-app-unbound: spell fix
Paul Donald [Fri, 15 Mar 2024 13:51:56 +0000 (14:51 +0100)]
luci-app-unbound: spell fix

Closes openwrt/luci#6993

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 977035837e00f0f8f17c0595bd0e698a82bddfd0)

8 months agoluci-mod-network: don't trigger uci save on removing bridge vlans
Jo-Philipp Wich [Fri, 15 Mar 2024 12:23:04 +0000 (13:23 +0100)]
luci-mod-network: don't trigger uci save on removing bridge vlans

Do not trigger a uci save operation on removing bridge VLANs as that might
invalidate the ephemeral section ID of a just added network device.

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

8 months agoluci-mod-network: drop trailing whitespace
Daniel Nilsson [Tue, 12 Mar 2024 20:16:47 +0000 (21:16 +0100)]
luci-mod-network: drop trailing whitespace

This resulted in the sysfs parameter to be invalid as it contained a space.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit 7d106acd53d754d2b34229e9869c538c045d932b)

8 months agoluci-theme-bootstrap: Realtime Graphs dark mode
james [Tue, 12 Mar 2024 16:12:12 +0000 (11:12 -0500)]
luci-theme-bootstrap: Realtime Graphs dark mode
This feature is to have the realtime graphs dark when using Bootstrap Dark Theme

Signed-off-by: james <jameslindstrom2@gmail.com>
(cherry picked from commit 056407754d00e05a432f38b51c6ad103a1a12a6d)

8 months agoluci-app-p910nd: convert to JS
Paul Donald [Mon, 12 Feb 2024 15:07:58 +0000 (16:07 +0100)]
luci-app-p910nd: convert to JS

Simple p910nd printer management, and some level of automation that
detects whether the typically necessary kmods are installed, and if not
provides quick links to install those.

Tested on: 22.03.6, 23.05.2

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 7053272b559e17415966e5b8e935b2630dee688b)

8 months agoluci-app-ntpc: remove app
Daniel Nilsson [Wed, 28 Feb 2024 17:42:58 +0000 (18:42 +0100)]
luci-app-ntpc: remove app

As ntpclient package is dead, we can delete the app.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit 6cd54b43eb36357c0e41d3f961e685752c32fdb2)
(cherry picked from commit 36defc7a3328fe06d5ee64bb1de4a93c6f400064)

8 months agoMerge pull request #6945 from dannil/ntpc-to-js
Hannu Nyman [Tue, 5 Mar 2024 16:47:46 +0000 (18:47 +0200)]
Merge pull request #6945 from dannil/ntpc-to-js

luci-app-ntpc: remove app
(cherry picked from commit 452e8137834ad085844f4b3c694545708f0adaa6)

8 months agoluci-mod-network: Add clarifying note to wireless join dialog
Hannu Nyman [Sun, 3 Mar 2024 18:24:19 +0000 (20:24 +0200)]
luci-mod-network: Add clarifying note to wireless join dialog

Add a clarifying note about two different meanings of "network"on
the wireless join page. In the dialog title the word "network" refers
to the wireless SSID, while in the config item the same "network"
refers to the name to be used in OpenWrt network configuration.

Reference to forum discussion at
https://forum.openwrt.org/t/cant-join-a-scanned-network/189859

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

8 months agobuild: comments for Darwin when building zoneinfo.
Paul Donald [Sat, 2 Mar 2024 16:13:03 +0000 (17:13 +0100)]
build: comments for Darwin when building zoneinfo.

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 66e758dcada7b6470cc0c33b291af39ea8d9fa72)

8 months agoluci-app-fwknopd: remove unused vars
Sergey Ponomarev [Sat, 2 Mar 2024 00:47:10 +0000 (02:47 +0200)]
luci-app-fwknopd: remove unused vars

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 07c41852dd570d3ffd2179d455e59bff1df5147c)

8 months agoluci-themes: add luci-base to depends
Fengyu Wu [Sat, 17 Feb 2024 13:45:15 +0000 (21:45 +0800)]
luci-themes: add luci-base to depends

Signed-off-by: Fengyu Wu <saldry@proton.me>
(cherry picked from commit 98a6ba28deb09e1ac524b960a0a207e2fe1a333a)

8 months agoluci-theme-material: improve theming system colors and contrasts
Daniel Nilsson [Thu, 22 Feb 2024 19:50:09 +0000 (20:50 +0100)]
luci-theme-material: improve theming system colors and contrasts

This changed spawned from trying to make certain text colors readable (such as white text on white background in many dialogs) introduced by commit 4ee2bc6 (ref: #5841) which made obvious the need to improve the color and contrast situation in the theme.

Alot of colors were duplicated in cascade.css and made for a hard time to align colors across different elements. This commit tries to rectify that by introducing variables for all commonly used colors.

* All base colors (white, blue, red, green, blue, yellow, etc) has been consolidated and moved to common variables
* Introduced more specific selectors for info levels to avoid colors bleeding over to other elements
* Removed duplicated properties which were overriden at the next row

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit 3acc8bc3733bbbb6c20b40bcb7b8f27d50b63779)

8 months agoluci-theme-material: add missing css for dsl_status_table
Florian Eckert [Wed, 28 Feb 2024 14:06:07 +0000 (15:06 +0100)]
luci-theme-material: add missing css for dsl_status_table

Insert a space between the name and the current value, as with other themes.

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

8 months agoluci-app-cloudflared: v1.2
Hilman Maulana [Tue, 27 Feb 2024 07:46:33 +0000 (14:46 +0700)]
luci-app-cloudflared: v1.2

Signed-off-by: Hilman Maulana <hilman0.0maulana@gmail.com>
(cherry picked from commit 6200371f7aa6fd12fc966e2bb8151f3f8cbc20e5)

8 months agoluci-app-cloudflared: Add template for tunnel table
Hilman Maulana [Tue, 27 Feb 2024 07:21:32 +0000 (14:21 +0700)]
luci-app-cloudflared: Add template for tunnel table

Signed-off-by: Hilman Maulana <hilman0.0maulana@gmail.com>
(cherry picked from commit 5f0f28326a3670a98a16489f00d5745251bb5b09)

8 months agoluci-app-cloudflared: Add table for Tunnels
Hilman Maulana [Tue, 27 Feb 2024 07:01:25 +0000 (14:01 +0700)]
luci-app-cloudflared: Add table for Tunnels

Signed-off-by: Hilman Maulana <hilman0.0maulana@gmail.com>
(cherry picked from commit e8156de2cfd204977c9d98b8aca082e224573624)

8 months agoluci-mod-system: remove bogus mount option
Jo-Philipp Wich [Wed, 21 Feb 2024 21:11:53 +0000 (22:11 +0100)]
luci-mod-system: remove bogus mount option

Drop the bogus `enabled_fsck` option which seems to be an automatic Lua->JS
conversion artifact.

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

8 months agoluci-base: static.js: fix validation of netmask option
Jo-Philipp Wich [Wed, 21 Feb 2024 14:38:37 +0000 (15:38 +0100)]
luci-base: static.js: fix validation of netmask option

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

8 months agoluci-base: ui.js: further keyboard navigation improvements for dropdowns
Jo-Philipp Wich [Wed, 21 Feb 2024 14:30:16 +0000 (15:30 +0100)]
luci-base: ui.js: further keyboard navigation improvements for dropdowns

 - Ensure that pressing escape within the custom choice input closes the
   dropdown list but not the parent modal dialog

 - Ensure that added custom choice elements are tabbable

 - Retain focus on dropdown when closing dropdown

 - Consistently focus input textarea when tabbing into custom choice item

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

8 months agoluci-app-firewall: add address range inputs for traffic rules
Jo-Philipp Wich [Wed, 21 Feb 2024 13:45:34 +0000 (14:45 +0100)]
luci-app-firewall: add address range inputs for traffic rules

Ref: https://forum.openwrt.org/t/question-about-firewall-rules/188656
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 42bd2af3fe2b3902cf0b48469e155c324ef5322d)

8 months agoluci-base: validation.js: add iprange, iprange4 and iprange6 validators
Jo-Philipp Wich [Wed, 21 Feb 2024 13:37:03 +0000 (14:37 +0100)]
luci-base: validation.js: add iprange, iprange4 and iprange6 validators

Add datatype validators for IP address ranges which are required for certain
firewall inputs.

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

8 months agoluci-mod-network: dhcp.js: relax CNAME domain validation
Jo-Philipp Wich [Sun, 18 Feb 2024 23:22:38 +0000 (00:22 +0100)]
luci-mod-network: dhcp.js: relax CNAME domain validation

Relax the CNAME domain validation to allow wildcard names.

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

8 months agoluci-base: ui.js: rework dropdown focus behavior
Jo-Philipp Wich [Sun, 18 Feb 2024 22:25:55 +0000 (23:25 +0100)]
luci-base: ui.js: rework dropdown focus behavior

Drop mouse following focus behavior as it interferes with custom value inputs,
rely on CSS based hover effects instead.

Also slightly improve keyboard navigation by auto-focussing the custom value
input when entering the last dropdown choice via arrow down or tab key, and
by allowing to leave the text input again with the arrow up key.

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

8 months agoluci-theme-material: add dropdown option hover styles
Jo-Philipp Wich [Sun, 18 Feb 2024 22:25:22 +0000 (23:25 +0100)]
luci-theme-material: add dropdown option hover styles

Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

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

8 months agoluci-theme-openwrt: add dropdown option hover styles
Jo-Philipp Wich [Sun, 18 Feb 2024 22:25:08 +0000 (23:25 +0100)]
luci-theme-openwrt: add dropdown option hover styles

Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

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

8 months agoluci-theme-openwrt-2020: add dropdown option hover styles
Jo-Philipp Wich [Sun, 18 Feb 2024 22:24:46 +0000 (23:24 +0100)]
luci-theme-openwrt-2020: add dropdown option hover styles

Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

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

8 months agoluci-theme-bootstrap: add dropdown option hover styles
Jo-Philipp Wich [Sun, 18 Feb 2024 22:22:58 +0000 (23:22 +0100)]
luci-theme-bootstrap: add dropdown option hover styles

Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

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

8 months agoluci-mod-status: fix sporadic logical interfaces resolve failures
Jo-Philipp Wich [Mon, 4 Mar 2024 22:54:24 +0000 (23:54 +0100)]
luci-mod-status: fix sporadic logical interfaces resolve failures

Correct the incorrect netmask calculation logic leading to incorrect
network range comparisons in some cases.

Fixes: #6956
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 months agotreewide: Backport i18n translations from master
Hannu Nyman [Fri, 1 Mar 2024 16:40:35 +0000 (18:40 +0200)]
treewide: Backport i18n translations from master

Backport translations and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 months agoluci-mod-status: BUGFIX: routes: help strings to clarify column titles
Thomas Schröder [Sun, 18 Feb 2024 13:24:35 +0000 (14:24 +0100)]
luci-mod-status: BUGFIX: routes: help strings to clarify column titles

Adds a missing closing bracket.

Signed-off-by: Thomas Schröder <tschroeder_github@outlook.com>
(cherry picked from commit 6b0953af64eba7fd70830178dd7f0f51a7c34fed)

9 months agoluci-base: extend Expires directive to prevent caching
Andre Heider [Tue, 12 Sep 2023 18:09:53 +0000 (20:09 +0200)]
luci-base: extend Expires directive to prevent caching

Some browsers apparently act on fixed dates only, so add that too.
Tested on firefox.

Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 12378d77cea16c268e980cca33e46df614ce5ecd)

9 months agoluci-base: i18n sync
Paul Donald [Sat, 17 Feb 2024 16:58:47 +0000 (17:58 +0100)]
luci-base: i18n sync

for 29f1e98c41a4e44aecf343069154513fac1c5573

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agoluci-mod-status: routes: help strings to clarify column titles
Paul Donald [Fri, 16 Feb 2024 00:07:28 +0000 (01:07 +0100)]
luci-mod-status: routes: help strings to clarify column titles

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 2abc93c6e8d9ad81881756014a151840c7c7de6e)

9 months agoluci-base: i18n sync
Paul Donald [Sat, 17 Feb 2024 16:47:57 +0000 (17:47 +0100)]
luci-base: i18n sync

for fc60bacaf8421c1da113707155bf45d529136682

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agoluci-mod-network: wireless: RADIUS Access/Accounting-Request attrs
Paul Donald [Fri, 16 Feb 2024 00:49:29 +0000 (01:49 +0100)]
luci-mod-network: wireless: RADIUS Access/Accounting-Request attrs

See following for more detail:

https://w1.fi/cgit/hostap/commit/?id=af35e7af7f8bb1ca9f0905b4074fb56a264aa12b

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit d9e7be1b435c9dc98829b10d153e5ff83ee4c213)

9 months agoMerge pull request #6923 from stangri/openwrt-22.03-luci-app-https-dns-proxy
Stan Grishin [Fri, 16 Feb 2024 23:24:22 +0000 (16:24 -0700)]
Merge pull request #6923 from stangri/openwrt-22.03-luci-app-https-dns-proxy

[22.03] luci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing

9 months agoluci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing 6923/head
Stan Grishin [Wed, 14 Feb 2024 20:38:53 +0000 (20:38 +0000)]
luci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit ffc0ffe6697bb315b96a75ab7807cecdd95f7314)

9 months agoluci-proto-wireguard: fix broken DNS option in peer config generator
Jo-Philipp Wich [Fri, 16 Feb 2024 15:17:26 +0000 (16:17 +0100)]
luci-proto-wireguard: fix broken DNS option in peer config generator

The config generation code was referencing a not existing `dns_servers`
input field.

Fixes: #6921
Fixes: 5b26887c52 ("Adding a DNS option to the wireguard peer config ...")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e28f9a0491f5f50a70bbefb1720ff8241f456f83)

9 months agoluci-mod-network: dhcp: separate actual value and display string
Paul Donald [Thu, 15 Feb 2024 22:07:31 +0000 (23:07 +0100)]
luci-mod-network: dhcp: separate actual value and display string

saved value will now be only an integer.

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 5b955f1ae922e37ec6bc07599d547aa9c3a5ebf1)

9 months agoluci-app-usteer: filter repeated SSIDs in config
Miguel Angel Mulero Martinez [Wed, 14 Feb 2024 07:03:43 +0000 (08:03 +0100)]
luci-app-usteer: filter repeated SSIDs in config

When the SSID name was the same in different radio, they appear repeated in the options. This commit filter them.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
(cherry picked from commit 2841d28396984431f3cf313cf0fbf381441ec40e)

9 months agobuild: invoke ./build/mkbasepot.sh without any parameters
Paul Donald [Thu, 15 Feb 2024 03:01:14 +0000 (04:01 +0100)]
build: invoke ./build/mkbasepot.sh without any parameters

e.g. to build everything

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 269df2426d8c207d6c89ad2950a65f187d9a922e)

9 months agoluci-mod-network: fix broken formatting
Paul Donald [Thu, 15 Feb 2024 01:58:42 +0000 (02:58 +0100)]
luci-mod-network: fix broken formatting

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit ca80c2acf7a1a5c3600d44bbaff1c51b7b170bc2)

9 months agoluci-app-usteer: Fix no wireless defined setup
Miguel Angel Mulero Martinez [Tue, 13 Feb 2024 11:25:48 +0000 (12:25 +0100)]
luci-app-usteer: Fix no wireless defined setup

Some users use the usteer app in a "non wireless" device. With the current code it crashes because there is no SSID defined. Making the ui element a DynamicList fixes the issue because it allows free text input.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
(cherry picked from commit ac8cf93a015a3eeb960ef216e59dde643bf059ed)

9 months agoluci-app-tor: i18n sync
Paul Donald [Tue, 13 Feb 2024 02:39:59 +0000 (03:39 +0100)]
luci-app-tor: i18n sync

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 9b978c522ecc0b71275606ea109d7233edbf86bb)

9 months agoluci-base: i18n sync
Paul Donald [Wed, 14 Feb 2024 23:39:26 +0000 (00:39 +0100)]
luci-base: i18n sync

after revert of commit 4d823900c5393f083754d388748dd09f2d2c5384.

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agobuild: invoke ./build/mkbasepot.sh with -b
Paul Donald [Thu, 15 Feb 2024 00:24:55 +0000 (01:24 +0100)]
build: invoke ./build/mkbasepot.sh with -b

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 50f470f6be08a989f1a92094769a1db671862cf3)

9 months agobuild: update build/i18n-* tools
Paul Donald [Wed, 14 Feb 2024 23:44:01 +0000 (00:44 +0100)]
build: update build/i18n-* tools

modify i18n-add-language.sh so it can:
- be run from any path
- bootstrap any (or all) po folder(s) with existing language(s)
- (partially) update luci.mk with new languages

deprecate build/i18n-init.sh

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit b98d8c526e05d658856a83c469f79957223fbfd6)

9 months agoluci-app-opkg: i18n sync
Paul Donald [Wed, 14 Feb 2024 22:09:51 +0000 (23:09 +0100)]
luci-app-opkg: i18n sync

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agoluci-app-https-dns-proxy: i18n sync
Paul Donald [Tue, 13 Feb 2024 02:38:19 +0000 (03:38 +0100)]
luci-app-https-dns-proxy: i18n sync

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 22467ec732cca0f4f259597535bd304bb5983075)

9 months agobuild: i18n-sync script refinements
Paul Donald [Tue, 13 Feb 2024 03:11:41 +0000 (04:11 +0100)]
build: i18n-sync script refinements

add -P x to xargs for x number of processes.

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit e88294d7acd5002b4867aedd2f2e238eb39efb63)

9 months agoMerge pull request #6897 from stangri/master-luci-app-opkg
Stan Grishin [Mon, 12 Feb 2024 17:42:15 +0000 (10:42 -0700)]
Merge pull request #6897 from stangri/master-luci-app-opkg

luci-app-opkg: show disk space consistent with overview
(cherry picked from commit eb40b0bd576e256a0251279c53490043a070dedf)

9 months agoluci-app-tor: add config for tor
Sergey Ponomarev [Fri, 9 Feb 2024 01:07:22 +0000 (03:07 +0200)]
luci-app-tor: add config for tor

Currently the UCI for the Tor allows to set only a list of configs to include.
The only way to configure it for a user is to upload its own config and add it to list of included.
We can simplify this with the app.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit c170dfab9197f714c5e4483caad924631779122a)

9 months agoluci-app-tor: fix ACL for tor-hs-rpc
Sergey Ponomarev [Thu, 8 Feb 2024 23:19:40 +0000 (01:19 +0200)]
luci-app-tor: fix ACL for tor-hs-rpc

The ACL has old tor_rpcd.sh which was changed in the tor-hs v0.0.1-3 to tor-hs-rpc.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit a4e586397e9d5695b2c435b03fb5b5da27ac6aa0)

9 months agoluci-mod-network: DNS forwardings -> DNS Forwards
Paul Donald [Mon, 12 Feb 2024 00:20:54 +0000 (01:20 +0100)]
luci-mod-network: DNS forwardings -> DNS Forwards

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 1b18cea61d99ca75581dc09010b118a86ac8dc28)

9 months agoluci-mod-status: i18n refresh eb6b2bdaae9c6f8d6d8969b47e21895d6508f396
Paul Donald [Sun, 11 Feb 2024 22:08:22 +0000 (23:08 +0100)]
luci-mod-status: i18n refresh eb6b2bdaae9c6f8d6d8969b47e21895d6508f396

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 76ed6774b3cd73bc1318f7c9b976a6c98c1ad3ad)

9 months agoluci-mod-status: Adding scroll buttons on syslog and kernellog status pages
Ramon Van Gorkom [Sun, 11 Feb 2024 10:51:45 +0000 (11:51 +0100)]
luci-mod-status: Adding scroll buttons on syslog and kernellog status pages

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
(cherry picked from commit eb6b2bdaae9c6f8d6d8969b47e21895d6508f396)

9 months agoRevert "luci-mod-network: add ppsk option (support for Private PSK)"
Paul Donald [Wed, 14 Feb 2024 19:38:14 +0000 (20:38 +0100)]
Revert "luci-mod-network: add ppsk option (support for Private PSK)"

This reverts commit 4d823900c5393f083754d388748dd09f2d2c5384.

9 months agoluci-base: update timezone data to 2024a
Hannu Nyman [Fri, 9 Feb 2024 19:39:13 +0000 (21:39 +0200)]
luci-base: update timezone data to 2024a

Update timezone data to 2024a.

https://mm.icann.org/pipermail/tz-announce/2024-February/000081.html

Briefly:
* Kazakhstan unifies on UTC+5 beginning 2024-03-01.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 months agoluci-mod-network: put each IPv6 address on a separate line
David Härdeman [Wed, 7 Feb 2024 14:41:48 +0000 (15:41 +0100)]
luci-mod-network: put each IPv6 address on a separate line

Right now, when there's active DHCPv6 leases and more than one address per host
(e.g. because ULA is used together with GUA prefixes), the two IPv6 addresses
will be printed on one line (which may or may not get broken up depending on
the length of the addresses, which also looks inconsistent).

Putting each address on a separate line makes it much easier to read the
addresses (IMHO).

Signed-off-by: David Härdeman <david@hardeman.nu>
(cherry picked from commit 9116a93d4311f541efa026f9eb3309a5f7554fd4)

9 months agoluci-app-openvpn: add OpenVPN option disable-dco
Martin Schiller [Wed, 31 Jan 2024 07:40:35 +0000 (08:40 +0100)]
luci-app-openvpn: add OpenVPN option disable-dco

You maybe want to disable the DCO support, so let's add this option.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
(cherry picked from commit 5b2bc99c30b80c3a706de3133a8c05f852dc08d1)

9 months agoluci-app-cloudflared: simplify translation
Sergey Ponomarev [Wed, 7 Feb 2024 14:26:53 +0000 (16:26 +0200)]
luci-app-cloudflared: simplify translation

Rename "Debug level" with "Logging level".
Reuse similar messages "Log" and "Logs".
Remove now unused "Collecting data...".
Use "Cloudflare Zero Trust Tunnel" instead of just "Cloudflared".

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit ee632a18886fe8ac5000d4cb9c86aa2b17288874)

9 months agoluci-app-cloudflared: v1.1
Sergey Ponomarev [Sun, 4 Feb 2024 08:01:59 +0000 (10:01 +0200)]
luci-app-cloudflared: v1.1

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 766224d9aedd1c156dc57ea837145b3b41da53a5)

9 months agoluci-app-cloudflared: fix ACL for uploading a file
Sergey Ponomarev [Sun, 4 Feb 2024 13:16:47 +0000 (15:16 +0200)]
luci-app-cloudflared: fix ACL for uploading a file

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 9551c03f6830e5543f2ea5fa96f02fa86f2378bb)

9 months agoluci-app-cloudflared: simplify service status render
Sergey Ponomarev [Thu, 1 Feb 2024 21:41:10 +0000 (23:41 +0200)]
luci-app-cloudflared: simplify service status render

Instead of using poll use the o.cfgvalue to render a status.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit a5dfb9604c1b9eb7ac220ae83dc0478b0e3a58f0)

9 months agoluci-app-cloudflared: add Tunnels status page
Sergey Ponomarev [Sat, 3 Feb 2024 20:06:36 +0000 (22:06 +0200)]
luci-app-cloudflared: add Tunnels status page

The page allows to see if the tunnel has connections.
This can be used for a basic troubleshooting without opening the Cloudflare dashboard.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit b8a4328fcfa77621258d210dffc091353fcb1989)

9 months agoluci-app-usteer: retrieve SSIDs to be used in the config
Miguel Angel Mulero Martinez [Mon, 5 Feb 2024 18:35:00 +0000 (19:35 +0100)]
luci-app-usteer: retrieve SSIDs to be used in the config

This commit retrieves the list of SSIDs availables to prepopulate the ssid_list UI element of the config.

Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
(cherry picked from commit 5b6a70575469affbff94229353a7f7e1c58a7a1b)

9 months agoRevert "luci-app-upup: Improve translation"
Paul Donald [Sat, 3 Feb 2024 15:39:38 +0000 (16:39 +0100)]
Revert "luci-app-upup: Improve translation"

This reverts commit ff8bb24a44505094396cea4509ecc690ef716c55.

9 months agoluci-app-smartdns: Fix The list has multiple headers.
Fanx [Fri, 2 Feb 2024 07:10:39 +0000 (15:10 +0800)]
luci-app-smartdns: Fix The list has multiple headers.
Signed-off-by: FanxJK <fanxjk@gmail.com>
(cherry picked from commit 16f4011644b8689fffb0866e2de4e821b2f52d9b)

9 months agoluci-app-cloudflared: configure Cloudflare Zero Trust Tunnel
Hilman Maulana [Sun, 14 Jan 2024 09:33:37 +0000 (16:33 +0700)]
luci-app-cloudflared: configure Cloudflare Zero Trust Tunnel

Configure a tunnel and see logs of the daemon.

Signed-off-by: Hilman Maulana <hilman0.0maulana@gmail.com>
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit faf6c4f0283f14f2fdc95f298d65f11566c1aefa)

9 months agoluci-base: Code quality fixes
Paul Donald [Wed, 31 Jan 2024 01:04:27 +0000 (02:04 +0100)]
luci-base: Code quality fixes

reduce backtracking in regex

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 2dc1fccbd1f46d3fa2689cc1eae3899e5a807a4f)

9 months agoluci-lib-nixio: Code quality fixes
Paul Donald [Sat, 3 Feb 2024 15:18:42 +0000 (16:18 +0100)]
luci-lib-nixio: Code quality fixes

future variants could use en/decodeURIComponent

ordering is important when handling "&"

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit d46da53bcd1f822d5b11772fc85b475b9d9174ff)

9 months agoluci-app-bmx7: Code quality fixes
Paul Donald [Tue, 30 Jan 2024 18:38:01 +0000 (19:38 +0100)]
luci-app-bmx7: Code quality fixes

Add integrity check for externally loaded d3 lib

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 74b89027d35a1d4024900451936747c45705f4fb)

9 months agoluci-base: Code quality fixes
Paul Donald [Tue, 30 Jan 2024 18:31:38 +0000 (19:31 +0100)]
luci-base: Code quality fixes

handle (possibly incorrect) comment variants
<!-- -->
<!-- --!>

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 4c2090afd865045e3693b84318de3b56f658e48a)

9 months agoluci-base: fix docs for TableSection
Paul Donald [Thu, 25 Jan 2024 02:18:12 +0000 (03:18 +0100)]
luci-base: fix docs for TableSection

There are repeated values (TableSection inherits identically named
values from TypedSection which do not make sense to recreate).

There seemed to be other errors. E.g. TypedSection for FlagValue
properties, which mean that TypedSection got tooltip + tooltipicon,
and by virtue of the above error, GridSection inherited this too.

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 0617d301d9e9bb876621e61600673daef200b182)

9 months agoluci-app-upup: Improve translation
He Ping [Tue, 23 Jan 2024 14:58:37 +0000 (22:58 +0800)]
luci-app-upup: Improve translation

Signed-off-by: He Ping <pinghejk@gmail.com>
(cherry picked from commit 2bdf7c83e3c71f9ad4dfaec259c7fcce87e7d807)
(cherry picked from commit 4adc6a4285a763cac0f4a35c95f6ba42857f3d86)

9 months agotreewide: Backport translations from master and sync
Hannu Nyman [Sat, 3 Feb 2024 09:07:53 +0000 (11:07 +0200)]
treewide: Backport translations from master and sync

Backport from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 months agoluci-app-usteer: added nslookup/hosthint lookup of AP IP address
Ramon Van Gorkom [Tue, 16 Jan 2024 17:40:31 +0000 (18:40 +0100)]
luci-app-usteer: added nslookup/hosthint lookup of AP IP address

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
(cherry picked from commit 7a9ae6811fece6512a432af352b4e774fe4a05ed)

9 months agoluci-mod-network: add ppsk option (support for Private PSK)
Manuel Giganto [Mon, 12 Oct 2020 15:35:08 +0000 (15:35 +0000)]
luci-mod-network: add ppsk option (support for Private PSK)

Include support in luci to enable the Private PSK.
When Private PSK is enabled, clients can use a default password (common),
or have their own private password that is associated with the client MAC.

The password is retrieved from RADIUS server, asking for the client MAC,
and when such client MAC is not defined, RADIUS should return a default
password.

RADIUS can also return other parameters like VLANs, which can be used to
put clients dynamically in different VLANs based on their MAC, or the
default configuration.

Private PSK is not compatible yet with SAE encryption, therefore cannot
be used yet with WPA3 or WPA3-mixed.

It implements the UI for the PPSK already in master: https://github.com/openwrt/openwrt/pull/3509

Signed-off-by: Manuel Giganto <mgigantoregistros@gmail.com>
(cherry picked from commit 75a2fd233baabf6fa5bafcb13ccc6d7000a4604d)

9 months agoluci-app-v2raya: add zh-hans translation
Tianling Shen [Wed, 24 Jan 2024 17:08:13 +0000 (01:08 +0800)]
luci-app-v2raya: add zh-hans translation

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 21a518cb1adcaa8d8d23af38c86cb19527c54c5c)