Commit Graph

4933 Commits

Author SHA1 Message Date
Paul Donald
2b783f23e8 luci-mod-system: minor code fixes for repokeys and sshkeys
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 850867b6e4)
2025-10-13 14:35:20 +02:00
Florian Eckert
b7e4a9c17f luci-base: replace css right class with button-row
These were forgotten when refactoring and should also get the css class
'button-row'

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 959fd44795)
2025-10-07 18:13:11 +02:00
TGSAN
323c8e4c92 luci-base: standards compliant dropdown fix for mobile keyboards
Signed-off-by: TGSAN <h@iloli.tv>
(cherry picked from commit 77e01d3d8c)
2025-10-07 18:13:11 +02:00
Ramon Van Gorkom
e818b8e3e8 luci-base: allow submitting new value in android chromium
Update ui.js to allow submitting from dropdown on android chromium.

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
(cherry picked from commit 5cb2eb619e)
2025-10-07 18:13:11 +02:00
Andrew Dodd
93f2df6f80 luci: Make password reveal work with passsword managers
Password managers (like LastPass etc) tend to add additional elements
into the DOM for their own context menus. If this happens between the
hide/reveal button and the password input, then the logic to reveal the
password breaks.

This change updates the onclick handler to look for the first `<input>`
element with the class `password-input` that is under the parent of the
toggle button, and then to toggle the password/text type on that
element.

This change deliberately only updates the main ui.js file, not any
application files.

Signed-off-by: Andrew Dodd <andrew.john.dodd@gmail.com>
(cherry picked from commit fc8ad20bbb)
2025-10-07 18:13:11 +02:00
Hannu Nyman
257ca434b8 treewide: Backport i18n translations
Backport translations. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-10-05 19:32:52 +03:00
Paul Donald
395e73daf9 luci-mod-network: add RFC details for NAT64 option
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 325286a3b9)
2025-09-30 21:03:44 +02:00
Paul Donald
e0287b0902 luci-mod-network: expose IPv6 RA reachability and retransmission timers
These timers are configurable for many years and allow control of node
timers.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 2c0730c966)
2025-09-30 21:03:44 +02:00
Anya Lin
e76972a720 luci-mod-network: Correctly encode/decode ech field in HTTPS record
Signed-off-by: Anya Lin <hukk1996@gmail.com>
(cherry picked from commit 39637490ae)
2025-09-29 18:27:20 +02:00
Paul Donald
0aae54fc7c luci-mod-status: give kernel log view filtering capability
Simple text-based search to filter in or out kernel log lines.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f62f31ca70)
2025-09-29 17:32:37 +02:00
Paul Donald
af8e625312 luci-mod-status: fix syslog warning (4) log level filter
Closes #7967

the warning syslog level is internally denoted as 'warn'.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f53e99d229)
2025-09-29 16:01:09 +02:00
Hannu Nyman
db1fd06bb8 treewide: Backport and sync translations
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-09-21 22:44:40 +03:00
Hannu Nyman
923f8d991a treewide: backport translations - i18n
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-09-07 19:57:19 +03:00
Joseph Mory
b8bc15bef6 luci-base: fix table option does not show in non-Bootstrap themes when it has depends
Signed-off-by: Joseph Mory <morytyann@outlook.com>
(cherry picked from commit 55c93e60b4)
2025-09-02 15:20:24 +02:00
Paul Donald
d968d20a7d luci-mod-network: Change cache placeholder to internal default 150
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit a2d0f5e2b3)
2025-09-02 15:15:12 +02:00
Hannu Nyman
4d26a4d804 treewide: backport translations - i18n
Backport from master. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-08-10 23:43:42 +03:00
Hannu Nyman
a4556eeec4 treewide: Backport translations
Backport from master. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-07-23 15:54:20 +03:00
Paul Donald
25d10facab luci-mod-network: Add HTTPS SVCB record en/decoding to DHCP
This was a bit of code golf. Just for fun. Users seem to rely on HTTPS
record creation. The HTTPS record handling en/decodes compliant records
when tested against the RFC defined vectors, although there may exist
edge cases that are not compliant.

Escaped character encoding is not implemented (strict mode).

Any other arbitrary DNS record creation will be possible via the
addition of helper functions in this tools file.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 9aeb34549f)
2025-07-04 14:45:33 +02:00
Paul Donald
e4c67020de luci-base: implement a range slider input/control
This control is used to set values within a predefined range, and uses
the HTML 'input' element of type 'range' supported in all browsers.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 3c16c59007)
2025-07-04 14:45:05 +02:00
Paul Donald
ee59bef677 luci-base: check for wifi system feature before Promise.all
Allows the hasSystemFeature call to complete before executing the
Promise bundle.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 9c0f071bbd)
2025-07-04 14:45:05 +02:00
Paul Donald
4ecbd2f464 luci-mod-network: implement Virtual Routing and Forwarding (VRF) options
VRF in netifd is now in main. See:
https://github.com/openwrt/netifd/pull/38/
15c2ca0a83

VRF netifd management was added to 24.10 in
https://github.com/openwrt/openwrt/pull/19125

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 1349056112)
2025-06-25 22:36:31 +02:00
Paul Donald
d94deb8ad8 luci-base: implement Virtual Routing and Forwarding (VRF) options
VRF in netifd is now in main. See:
https://github.com/openwrt/netifd/pull/38/
15c2ca0a83

VRF netifd management was added to 24.10 in
https://github.com/openwrt/openwrt/pull/19125

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f5da7a6016)
2025-06-25 22:36:31 +02:00
Hannu Nyman
ab4db9b512 treewide: Backport translations - i18n
Backport from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-06-25 22:08:38 +03:00
Paul Donald
65670be14f treewide: vectorise iconography
Clear, crisp, resolution independent vector graphics replace the trusty
microscopic PNG. Some minor CSS changes were needed to constrain images
in some locations to make sure they don't consume too much space.

Iconography taken from Mate desktop theme with minor adjustments:

https://github.com/mate-desktop/mate-icon-theme/

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

treewide: vectorise iconography

follow-up to ae5d91da90

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

treewide: vectorise iconography

follow-up to ae5d91da90

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

treewide: vectorise iconography

follow-up to ae5d91da90

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

treewide: vectorise iconography

follow-up to ae5d91da90

tweaks to more closely resemble the old png iconography

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

treewide: vectorise iconography

follow-up to ae5d91da90

tweaks to more closely resemble the old png iconography

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 750aa9e25b)
2025-06-19 02:50:49 +02:00
Paul Donald
d6b13f6483 luci-mod-status: remove unused uci in syslog view
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 6915742633)
2025-06-17 16:00:34 +02:00
Paul Donald
7aa39de9fe luci-mod-status: add log filtering to syslog tab
Facility and severity filtering are based on a simple includes() search.
As such, false positives are possible. Although for the majority of
cases, this is still useful. Filtering using logread -z/Z is possible,
but not if a static log-file is configured. logread does not yet handle
severity either. 'not' checkboxes for each invert the respective search
filter.

A raw-text filter is also included as a bonus, whose meaning can be
inverted via the 'not' checkbox.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 16beffda15)
2025-06-17 16:00:34 +02:00
Paul Donald
ec8edb4858 Revert "luci-base: override the load() function to return boolean for FlagValue"
This reverts commit bedefb1803.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-06-12 14:51:23 +02:00
Paul Donald
20ca3c1c91 luci-mod-system: Add repo key management
Simplifies adding third-party repos. Functions on both 24.10 (opkg) and
main (apk). Based loosely on sshkey management.

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

luci-mod-system: Add repo key management

follow-up fix to acdffc3d1d

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

luci-mod-system: repo key management

Reject PEM in OPKG; reject non-PEM in APK

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 65bdfc61db)
2025-06-10 16:34:10 +02:00
Hannu Nyman
7527ccebb4 treewide: Backport translations and sync
Backoprt translations.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-06-07 18:57:10 +03:00
Paul Donald
3b521efdca luci-mod-network: wireless.js fixes
follow-up to cdce600

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 8bab10f820)
2025-06-06 13:38:52 +02:00
Nicolò Veronese
691440af29 luci-mod-network: fix default policy for bondig device
This fixes the missing policy option in UCI when selecting 'active-backup'
 as the required policy.

This has been discussed on issue #7683.

Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
(cherry picked from commit c996de5a82)
2025-05-17 12:22:53 +02:00
Hannu Nyman
48b6321319 treewide: Backport translations from master
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-05-10 13:44:51 +03:00
Hannu Nyman
cca465436c luci-base: Hardcode 'openwrt-24.10' as the branch name
Hardcode 'openwrt-24.10' release branch as the branch name to avoid
'LuCI (HEAD detached at 2ac26e56) branch' being shown as the branch.

Feeds are since March 2025 cloned shallow if cloned from a specific
commit, like done with a release tag. Change in OpenWrt:
32d0a57dc1

As the only cloned commit of a release tag is without history, the branch
can't be identified.

So, hardcode the branch name to get the proper branch name
'LuCI openwrt-24.10 branch'.

Fixes #7737

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-04-26 13:00:15 +03:00
Paul Donald
bedefb1803 luci-base: override the load() function to return boolean for FlagValue
In the underlying uci system, all variables are effectively strings, so
for those configuration values which serve as 'boolean' flags, we need
to coerce the various forms into a real boolean. Only the following
string values result in true: 1|on|true|yes|enabled. Otherwise, false.

Checkboxes now fill correctly.

"Unchanged" configurations may write changed values as the Flag values
are coerced to '1' or '0' on write, but the configuration behaviour
remains synonymous.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 1355a6fa25)
2025-04-25 17:18:48 +02:00
Hannu Nyman
32551320cb treewide: Backport translations
Backport translations. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-04-24 18:44:54 +03:00
Paul Donald
9453d7db80 luci-mod-network: widgets shall show devices that are online as online
follow-up to 832680bb84

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit f17ae7fd96)
2025-04-24 00:13:46 +02:00
Paul Donald
310e4abf85 luci-mod-network: wireless.js fixes
follow-up to cdce600aae

Fixes a const reassignment error

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 1e3aa83b44)
2025-04-23 14:25:37 +02:00
Paul Donald
1369ee74a6 luci-base: prevent tools.widgets.ZoneSelect tracebacks
follow-up fix for 0be4ad51a0

It seems to have been this way for a while, for zone selections
involving the 'any' ('*') choice. firewall forwards.js has no
'this.allowany;' property on the widgets, so the any choice is absent,
leading to a traceback, caused by the 'src' widget, even though
this code block operates on the 'dst' value. Certain combinations of
'src' and 'dst' also triggered tracebacks.

This might not be the correct behaviour for this widget, but it does
prevent tracebacks caused by null values.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit aa6924cd4c)
2025-04-23 14:25:37 +02:00
Paul Donald
e72728491f luci-mod-network: widgets shall show devices that are online as online
Tunnel devices which are up, show as down, since the config being
enumerated does not have access to any device status. The 'device' being
enumerated is e.g. 'wireguard_wg0', a configuration for a tunnel
interface, whose parent is an 'ethernet' type.

That's a bug for another day. So they shall use parent device status.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit a288354e78)
2025-04-23 14:25:37 +02:00
Paul Donald
326b624790 luci-base: widgets shall show devices that are online as online
Tunnel devices which are up, show as down, since they don't have access
to any device status. The 'device' being enumerated is e.g.
'wireguard_wg0', a configuration for a tunnel interface, whose parent
is an 'ethernet' type.

That's a bug for another day. So they shall get parent device status.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 832680bb84)
2025-04-23 14:25:36 +02:00
Andrew Robbins
ca805cb159 luci-lua-runtime: specify c17 standard
build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with).

Signed-off-by: Andrew Robbins <andrew@robbinsa.me>
(cherry picked from commit 852fc23b12)
2025-04-18 15:04:37 +02:00
Andrew Robbins
f7b7478abb luci-base: specify c17 standard
build was failing b/c gcc15 defaults to c23, which lemon is not written for (and errors with).

Signed-off-by: Andrew Robbins <andrew@robbinsa.me>
(cherry picked from commit 7e6741fbae)
2025-04-18 15:04:36 +02:00
Oleg S
b8e61d86c0 luci-base: package update based cache-busting string
Problem:
After updating the JS-part of any package, the user is forced to clear
the browser cache.

Fix:
Each time a package is removed or installed, the contents of the
"/lib/apk/db/installed" file are changed.
This fix add the modification time of the "/lib/apk/db/installed" file
to the version of the main LuCI package (for each js-file).

Signed-off-by: Oleg S <remittor@gmail.com>
(cherry picked from commit f6f82b52eb)
2025-04-14 15:18:14 +02:00
Paul Donald
9507f6493a luci-base: CBIDeviceSelect includes each device IP when includeips=true
For use when daemons whose interface config paradigm accept IP also.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 5be4cd129c)
2025-04-09 00:51:06 +02:00
Paul Donald
daf09c2473 luci-mod-network: wireless: add LDPC capability flags (X-Box compat)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 65a80284cf)
2025-04-09 00:49:43 +02:00
Paul Donald
f5a61be854 luci-mod-network: fix handleAdd in wireless.js
handleAdd did not work correctly for a while: some state was not cleaned
up (try: wireless -> add -> no changes -> click dismiss -> press save).

The state is now properly removed when pressing dismiss, by stashing
addedSection correctly under the map m and not in this.

Also requires a null check in render_modal_status.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 6c061b644c)
2025-04-09 00:25:35 +02:00
Paul Donald
e88ad83902 luci-mod-network: give wireless.js ES2016 treatment and refactor
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit cdce600aae)

luci-mod-network: give wireless.js ES2016 treatment and refactor

Follow-up fix for cdce600aae when certain
elements are empty.

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

luci-mod-network: give wireless.js ES2016 treatment and refactor

typo

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
(cherry picked from commit 0d610e7466)
2025-04-09 00:24:56 +02:00
Tobias Waldvogel
5859453b41 luci: show wifi vlan in the associated wireless stations list
This patch adds a badge to the associated wireless stations with the vlan id
and name. It is displayed in the same color as the network, to which it is
bridged, so the color corresponds to the color in the network configuration
page.

Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
(cherry picked from commit 29fe3f5fda)
2025-04-09 00:23:40 +02:00
Stefan Kleeschulte
2670bbd3cf luci-mod-status: consider family when rendering chains and rules
There can be multiple tables with the same name but different family
attribute (inet, ip, ip6, ...). The same goes for chains. So the family
attribute needs to be considered when rendering chains and rules.

Signed-off-by: Stefan Kleeschulte <stefan.kleeschulte@smk.biz>
(cherry picked from commit e79e7022e5)
2025-04-08 20:45:17 +02:00
Hannu Nyman
a1b1f43d7c treewide: Backport translations from master
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-03-29 08:55:53 +02:00