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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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>
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)