project/luci.git
6 months agoluci-mod-network: wireless.js fixes
Paul Donald [Fri, 6 Jun 2025 11:38:35 +0000 (13:38 +0200)]
luci-mod-network: wireless.js fixes
follow-up to cdce600

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 8bab10f820d062c934f0b9d496d2e75984fadfec)

6 months agoluci-app-adblock: optimizations & fixes
Dirk Brenken [Fri, 6 Jun 2025 05:03:36 +0000 (07:03 +0200)]
luci-app-adblock: optimizations & fixes

* optimized the button handling on the front page
* fixed a minor JS error on the DNS statistics page

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit b39bfe7522a7dbe6dbcc0b2fdb1de5aca04d3558)

6 months agoluci-app-antiblock: Disable routes without deleting
Khachatryan Karen [Tue, 27 May 2025 18:53:04 +0000 (21:53 +0300)]
luci-app-antiblock: Disable routes without deleting

1) Added the ability to disable routes without deleting them.

Signed-off-by: Khachatryan Karen <[email protected]>
(cherry picked from commit 0a09ae1805f3e1184ad67ebb9a47b00c020c8b27)

6 months agoluci-app-adblock: sync with update 4.4.2-2
Dirk Brenken [Sat, 31 May 2025 21:10:04 +0000 (23:10 +0200)]
luci-app-adblock: sync with update 4.4.2-2

* map improvements

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 740452bf1a0eae4d46c12a412debe8f2d2de67f2)

6 months agoluci-app-banip: sync with update 1.5.6-3
Dirk Brenken [Sat, 31 May 2025 20:14:41 +0000 (22:14 +0200)]
luci-app-banip: sync with update 1.5.6-3

* fixed #7772
* map improvements
* add a json reporting cache

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 242768d42c3f444383ca1734a79a41013ff30b03)

6 months agoluci-app-attendedsysupgrade: maintain value of owut.rootfs_size in LuCI app
Eric Fahlgren [Wed, 28 May 2025 16:09:33 +0000 (09:09 -0700)]
luci-app-attendedsysupgrade: maintain value of owut.rootfs_size in LuCI app

If someone has used owut to install an image with a modified rootfs
partition size, then using LuCI Attended Sysupgrade would change
it back, causing either a build failure or loss of configuration.

We fix this by simply adding the value from the owut config to the
build request (or 'null' if it doesn't exist).  The ASU server
then builds the image with the correct rootfs size, avoiding
these issues.

This value is not and should not be exposed in the LuCI app's
options, as it is quite advanced, very fragile and should only be
used by those who have researched the issues involved, typically
by reading the owut documentation and testing with owut first.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 42d32dff7f718d27ae7ccc65ebc83d001ebf14e3)

6 months agoluci-app-adblock: fix the report initialization
Dirk Brenken [Fri, 30 May 2025 20:28:31 +0000 (22:28 +0200)]
luci-app-adblock: fix the report initialization

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 04d22e68a1f6b059f99ec8093c5a34ba2c7cd2fd)

6 months agoluci-app-adblock: sync with update 4.4.2-1
Dirk Brenken [Fri, 30 May 2025 16:42:18 +0000 (18:42 +0200)]
luci-app-adblock: sync with update 4.4.2-1

Various fixes, a new modal reporting GeoIP map of blocked domains.

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit d971e88a0f7ab653d1bcf73dd4481e205c841c0b)

6 months agoluci-mod-network: fix default policy for bondig device
Nicolò Veronese [Sun, 4 May 2025 16:13:50 +0000 (18:13 +0200)]
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 <[email protected]>
(cherry picked from commit c996de5a82c3a13b57a593411f445a1d76cf90c4)

6 months agoMerge pull request #7775 from stangri/openwrt-24.10-luci-app-https-dns-proxy
Stan Grishin [Tue, 13 May 2025 23:52:43 +0000 (16:52 -0700)]
Merge pull request #7775 from stangri/openwrt-24.10-luci-app-https-dns-proxy

[24.10] luci-app-https-dns-proxy: update to 2025.05.11

6 months agoluci-app-https-dns-proxy: update to 2025.05.11
Stan Grishin [Mon, 12 May 2025 02:08:33 +0000 (02:08 +0000)]
luci-app-https-dns-proxy: update to 2025.05.11

* fixes https://github.com/openwrt/luci/issues/7763
* fixes https://github.com/stangri/luci-app-https-dns-proxy/issues/9
* fix README link

Signed-off-by: Stan Grishin <[email protected]>
(cherry picked from commit bd5cb1dd66c5a79e36e7fd2960bfc70e73fad686)

6 months agotreewide: Backport translations from master
Hannu Nyman [Sat, 10 May 2025 10:44:51 +0000 (13:44 +0300)]
treewide: Backport translations from master

Backport translations from master.

Signed-off-by: Hannu Nyman <[email protected]>
7 months agoluci-app-adblock: sync with update 4.4.1-2
Dirk Brenken [Sat, 3 May 2025 12:43:28 +0000 (14:43 +0200)]
luci-app-adblock: sync with update 4.4.1-2

Small fixes, a uci-defaults script and wording improvements.

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 98f7f2a2cfa6e28bdc5e73de1bc5affac83c72b6)

7 months agoluci-app-banip: sync with update 1.5.6-2
Dirk Brenken [Tue, 29 Apr 2025 19:47:21 +0000 (21:47 +0200)]
luci-app-banip: sync with update 1.5.6-2

Small fixes, a uci-defaults script and wording improvements.

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 5f9ff73b60bb97f85b9edf9e41a6942e72b47ed6)

7 months agoluci-app-banip: Trim() error fix.
PeterK [Wed, 23 Apr 2025 10:14:38 +0000 (12:14 +0200)]
luci-app-banip: Trim() error fix.

Unable to open a banip Overview tab.
Update overview.js for the Trim() error fix.

Signed-off-by: PeterK <[email protected]>
(cherry picked from commit 05b8d9b1ee98c1bd73100f7b4f038dd6e94ff88b)

7 months agoluci-base: Hardcode 'openwrt-24.10' as the branch name
Hannu Nyman [Wed, 23 Apr 2025 20:43:29 +0000 (23:43 +0300)]
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:
https://github.com/openwrt/openwrt/commit/32d0a57dc10811a24816e51f10e55963f40fe462

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 <[email protected]>
7 months agoluci-base: override the load() function to return boolean for FlagValue
Paul Donald [Fri, 25 Apr 2025 15:17:51 +0000 (17:17 +0200)]
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 <[email protected]>
(cherry picked from commit 1355a6fa253d765140f5571354939d2e93e6d967)

7 months agotreewide: Backport translations
Hannu Nyman [Thu, 24 Apr 2025 15:44:54 +0000 (18:44 +0300)]
treewide: Backport translations

Backport translations. Sync.

Signed-off-by: Hannu Nyman <[email protected]>
7 months agoluci-mod-network: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 22:13:26 +0000 (00:13 +0200)]
luci-mod-network: widgets shall show devices that are online as online

follow-up to 832680bb84d18132d04f424b7d70ce18d62e1150

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit f17ae7fd96f285aa564579f597f51e2679b27fd4)

7 months agoluci-app-attendedsysupgrade: change error reporting url
Eric Fahlgren [Sun, 20 Apr 2025 23:12:00 +0000 (16:12 -0700)]
luci-app-attendedsysupgrade: change error reporting url

Direct error reports to a LuCI-ASU-app-specific thread on the forum, where
they'll get more attention and reduce clutter on the ASU server's github issues.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 9fd692ab4402260bbbe5512cfeff6427c18d39b4)

7 months agoluci-mod-network: wireless.js fixes
Paul Donald [Wed, 23 Apr 2025 12:04:19 +0000 (14:04 +0200)]
luci-mod-network: wireless.js fixes

follow-up to cdce600aaec66f762f18d608c74cbf3abcafe1c7

Fixes a const reassignment error

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 1e3aa83b449b17fb3a09441d1a6c837752718c59)

7 months agoluci-base: prevent tools.widgets.ZoneSelect tracebacks
Paul Donald [Wed, 23 Apr 2025 12:04:12 +0000 (14:04 +0200)]
luci-base: prevent tools.widgets.ZoneSelect tracebacks

follow-up fix for 0be4ad51a0bea3e1e3e6cd7d646e11ec6c722540

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 <[email protected]>
(cherry picked from commit aa6924cd4ce64cc6e4ced50b0603f9f34b3e619c)

7 months agoluci-theme-*: ES6 refactor
Paul Donald [Wed, 23 Apr 2025 12:21:40 +0000 (14:21 +0200)]
luci-theme-*: ES6 refactor

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 9180f2a76219d44ea11bc37574627144d3ced167)

7 months agoluci-theme: fix some dynamic layout issues
Paul Donald [Wed, 23 Apr 2025 12:03:57 +0000 (14:03 +0200)]
luci-theme: fix some dynamic layout issues

Implement a dynamic menu item width to allow item unwrapped and visible:
'min-width: max-content;' or 'max-width: max-content;'

Remove IE hacks and fix a console error for -webkit-scrollbar-thumb

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 91572540595dae9ea88ae5e38ce01847cb4c08e0)

7 months agoluci-app-ddns: Fix multiple IP display bug
Paul Donald [Wed, 23 Apr 2025 12:03:50 +0000 (14:03 +0200)]
luci-app-ddns: Fix multiple IP display bug

Occasionally, a DNS lookup returns multiple IPs, so the best thing to
do isn't to join them together as a unified string, but to separate
them with an HTML <br/>.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 54192d3b3659e0ef94c976c84f71f85efdb4528d)

7 months agoluci-mod-network: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 12:03:39 +0000 (14:03 +0200)]
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 <[email protected]>
(cherry picked from commit a288354e78d4dd5872dea52bcebf7d1f91fad3b1)

7 months agoluci-base: widgets shall show devices that are online as online
Paul Donald [Wed, 23 Apr 2025 12:03:28 +0000 (14:03 +0200)]
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 <[email protected]>
(cherry picked from commit 832680bb84d18132d04f424b7d70ce18d62e1150)

7 months agoluci-app-lldpd: fix 'redeclaration of s' error
Paul Donald [Mon, 21 Apr 2025 21:31:51 +0000 (23:31 +0200)]
luci-app-lldpd: fix 'redeclaration of s' error

follow-up to 279720fef7a540d52fa2b138aeef14ba3a4d5dee

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit e05852d9cfe454eb57cac57880dd5749c152a5a8)

7 months agoluci-app-adblock: sync with release 4.4.0-1
Dirk Brenken [Thu, 10 Apr 2025 21:43:46 +0000 (23:43 +0200)]
luci-app-adblock: sync with release 4.4.0-1

* major LuCI frontend improvements, incl. Custom Feed Editor
* synchronized with the banIP front-end level

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 2967f2ccd8fd1582415a366462a2a1a224d203d8)

7 months agoluci-lua-runtime: specify c17 standard
Andrew Robbins [Tue, 15 Apr 2025 06:13:06 +0000 (02:13 -0400)]
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 <[email protected]>
(cherry picked from commit 852fc23b12d4a701ba724a40b6afd4d40a4ad68d)

7 months agoluci-base: specify c17 standard
Andrew Robbins [Tue, 15 Apr 2025 05:38:35 +0000 (01:38 -0400)]
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 <[email protected]>
(cherry picked from commit 7e6741fbae9b122545e80aad8b9e3a5529c442ce)

7 months agoluci-theme-openwrt: zone-forwards wrap
Jyn [Mon, 14 Apr 2025 07:43:51 +0000 (14:43 +0700)]
luci-theme-openwrt: zone-forwards wrap

Signed-off-by: Jyn <[email protected]>
(cherry picked from commit 97d6b5c5ee65a3e9ee7c9841b67dfdec0a3a296a)

7 months agoluci-theme-openwrt-2020: zone-forwards wrap
Jyn [Mon, 14 Apr 2025 07:43:13 +0000 (14:43 +0700)]
luci-theme-openwrt-2020: zone-forwards wrap

Signed-off-by: Jyn <[email protected]>
(cherry picked from commit d23bbd896b1d4207c928b98a8facc90b9d2d508a)

7 months agoluci-theme-material: zone-forwards wrap
Jyn [Mon, 14 Apr 2025 07:41:59 +0000 (14:41 +0700)]
luci-theme-material: zone-forwards wrap

Signed-off-by: Jyn <[email protected]>
(cherry picked from commit 50677f9de558f0587166d22836dbf4a36a860050)

7 months agoluci-theme-bootstrap: zone-forwards wrap
Jyn [Mon, 14 Apr 2025 07:40:40 +0000 (14:40 +0700)]
luci-theme-bootstrap: zone-forwards wrap

Signed-off-by: Jyn <[email protected]>
(cherry picked from commit 8f61f1616a4d34f2e17728c229f922f2d60d614c)

7 months agoluci-base: package update based cache-busting string
Oleg S [Mon, 14 Apr 2025 13:08:45 +0000 (16:08 +0300)]
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 <[email protected]>
(cherry picked from commit f6f82b52eb72726abc7732d21e54aa43dd8b5058)

7 months agoluci-proto-wireguard: fixed incorrect peer name detection
this-username-has-been-taken [Sun, 13 Apr 2025 13:38:46 +0000 (16:38 +0300)]
luci-proto-wireguard: fixed incorrect peer name detection

Added the legacy peer name detection algorithm. If the new algorithm
fails to find a peer's name (e.g. when the IP address has been changed)
then the legacy value will be used.

Signed-off-by: Tom Haley <[email protected]>
(cherry picked from commit 8bff54dc47057e36c0ceb263efe4c82580003924)

7 months agoluci-app-banip: sync with release 1.5.6-1
Dirk Brenken [Fri, 11 Apr 2025 20:06:20 +0000 (22:06 +0200)]
luci-app-banip: sync with release 1.5.6-1

* small fixes & improvements

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 5ca9b36a3871e8e64fed4842b3342ee74f57b76a)

8 months agoluci-app-ttyd: enable includeips for interface selection
Paul Donald [Mon, 7 Apr 2025 18:16:04 +0000 (20:16 +0200)]
luci-app-ttyd: enable includeips for interface selection

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 9acbd00155245f2a5d00f1e0560c32d226ea69a7)

8 months agoluci-base: CBIDeviceSelect includes each device IP when includeips=true
Paul Donald [Mon, 7 Apr 2025 18:15:28 +0000 (20:15 +0200)]
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 <[email protected]>
(cherry picked from commit 5be4cd129ca1da95118cf5069b6d7a83f26fc28e)

8 months agoluci-mod-network: wireless: add LDPC capability flags (X-Box compat)
Paul Donald [Sat, 5 Apr 2025 14:04:37 +0000 (16:04 +0200)]
luci-mod-network: wireless: add LDPC capability flags (X-Box compat)

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 65a80284cfc4cbef4d6d2dbc85423fef561ac0ea)

8 months agoluci-mod-network: fix handleAdd in wireless.js
Paul Donald [Tue, 1 Apr 2025 12:28:03 +0000 (14:28 +0200)]
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 <[email protected]>
(cherry picked from commit 6c061b644c1380b841542f44179195756cc5a645)

8 months agoluci-mod-network: give wireless.js ES2016 treatment and refactor
Paul Donald [Tue, 1 Apr 2025 14:43:05 +0000 (16:43 +0200)]
luci-mod-network: give wireless.js ES2016 treatment and refactor

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit cdce600aaec66f762f18d608c74cbf3abcafe1c7)

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

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

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 27ebe8b6620070585d6f752c62d1ad577ba8e0ff)

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

typo

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 0d610e7466b0d886bd9fd7b9495b8b2b65d7b15b)

8 months agoluci: show wifi vlan in the associated wireless stations list
Tobias Waldvogel [Sun, 5 Jan 2025 17:14:06 +0000 (18:14 +0100)]
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 <[email protected]>
(cherry picked from commit 29fe3f5fdad6bc7c72799adff22847a6e257f7c0)

8 months agoluci-mod-status: consider family when rendering chains and rules
Stefan Kleeschulte [Fri, 17 Jan 2025 12:42:34 +0000 (13:42 +0100)]
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 <[email protected]>
(cherry picked from commit e79e7022e50bd1782a528f8c8ddd16f340fbce35)

8 months agoluci-app-lldpd: custom TLV handling
Paul Donald [Tue, 1 Apr 2025 16:12:39 +0000 (18:12 +0200)]
luci-app-lldpd: custom TLV handling

Depends on https://github.com/openwrt/openwrt/pull/14872

Custom TLV have been possible in lldpd; now the machinery is in openwrt
to use them. Extend GUI to enable their handling.

TLV apply either globally or to specific interfaces. The parsing of TLV
strings mirrors that of lldpd. For details see lldpd man page.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 279720fef7a540d52fa2b138aeef14ba3a4d5dee)

8 months agoluci-app-antiblock: Gateway selection bug fixed
Khachatryan Karen [Fri, 4 Apr 2025 15:10:10 +0000 (18:10 +0300)]
luci-app-antiblock: Gateway selection bug fixed
1) Changed from "widgets.NetworkSelect" to "widgets.DeviceSelect"

Signed-off-by: Khachatryan Karen <[email protected]>
(cherry picked from commit e6556e97fb7aa3dded50269a1f11e165cedf302b)

8 months agoluci-app-antiblock: Update luci-app-antiblock package
Khachatryan Karen [Fri, 21 Mar 2025 11:29:32 +0000 (14:29 +0300)]
luci-app-antiblock: Update luci-app-antiblock package

1) Added the ability to route different domains through different gateways, up to 32 routes.
2) The program has been switched from proxying mode to sniffer mode.
3) Blacklist has been added so that the specified subnets are not added to the routing table.
4) Added the logs and statistics tabs
5) The "output" option has been removed, it is now /tmp/antiblock
6) Bash backend removed, now only JS.

Signed-off-by: Khachatryan Karen <[email protected]>
(cherry picked from commit 601a69f2fef450db779b0c74667939202ff39362)

8 months agoluci-app-firewall: repair handleAdd for rules.js
Paul Donald [Mon, 31 Mar 2025 19:41:11 +0000 (21:41 +0200)]
luci-app-firewall: repair handleAdd for rules.js

handleAdd did not work correctly for a while: the defaults were not
propagated, and some state was not cleaned up (try:
firewall rules -> 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.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit d356e30ac13cc1648045d8a0bcb5dd92630778f4)

8 months agotreewide: Backport translations from master
Hannu Nyman [Sat, 29 Mar 2025 06:55:53 +0000 (08:55 +0200)]
treewide: Backport translations from master

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
8 months agoluci-app-banIP: sync with release 1.5.5-1
Dirk Brenken [Fri, 28 Mar 2025 07:00:58 +0000 (08:00 +0100)]
luci-app-banIP: sync with release 1.5.5-1

* added a geoIP Map to show home IPs and potential attacker IPs on a leafletjs based map, see readme for details

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 328282d3eefaa10131b083822e22918718efab90)

8 months agoluci-base: update timezone data to 2025b
Hannu Nyman [Thu, 27 Mar 2025 19:02:14 +0000 (21:02 +0200)]
luci-base: update timezone data to 2025b

Update timezone data to 2025b.

https://lists.iana.org/hyperkitty/list/[email protected]/thread/6JVHNHLB6I2WAYTQ75L6KEPEQHFXAJK3/

* New zone for Aysén Region in Chile which moves from -04/-03 to -03.

Also:
* Europe/Dublin corrected syntax
* Morocco string format change

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 05c7844389e36385aa64549a3cc449b9d1a552e7)

8 months agoluci-proto-wireguard: add extra checks for hostname when building qr
Paul Donald [Wed, 26 Mar 2025 21:40:01 +0000 (22:40 +0100)]
luci-proto-wireguard: add extra checks for hostname when building qr

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 4207c2c5d51470fd273441f92b0a2c104441454c)

8 months agoluci-app-attendedsysupgrade: add more robust handling of downloads
Eric Fahlgren [Wed, 19 Mar 2025 21:15:04 +0000 (14:15 -0700)]
luci-app-attendedsysupgrade: add more robust handling of downloads

Check various aspects of the overview and revision downloads from
the sysupgrade site, giving the user better error messages when
things go wrong.

Partially addresses issue #7687 with respect to diagnosis, but not
root cause.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 51a8f8cd229cb95deb607422a43d570d2d90980e)

8 months agoluci-base: ui: fix path handling in UIFileUpload
Paul Donald [Thu, 20 Mar 2025 16:20:08 +0000 (17:20 +0100)]
luci-base: ui: fix path handling in UIFileUpload

Browsing the root path was problematic and the breadcrumb links behaved
inconsistently, requiring a page reload to recover.

canonicalizePath(), splitPath() and renderListing() now handle any path
location properly, including root: '/', and clicks at any breadcrumb
correctly navigate.

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 5e39cf04c41e5a656e612aa36f75ce47211defee)

8 months agoluci-app-keepalived: do not restart keepalived on user notification change
Florian Eckert [Wed, 19 Mar 2025 09:20:25 +0000 (10:20 +0100)]
luci-app-keepalived: do not restart keepalived on user notification change

The content of the file is executed at the next event, so it is not necessary
to reload keepalived if the user notification has changed.

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit af1064e927ed5b3b1bacea008495f814b9bd064c)

8 months agoluci-app-xinetd: do not show description on table overview
Florian Eckert [Wed, 19 Mar 2025 12:00:24 +0000 (13:00 +0100)]
luci-app-xinetd: do not show description on table overview

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit da878da40916cf5455525ffd52b0979623f247a0)

8 months agoluci-app-xinetd: make the server configuration option mandatory
Florian Eckert [Wed, 19 Mar 2025 11:50:29 +0000 (12:50 +0100)]
luci-app-xinetd: make the server configuration option mandatory

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 790302ce856c1bf77d9e4e2d782a147fb48e1c7a)

8 months agoMerge pull request #7669 from stangri/openwrt-24.10-luci-app-advanced-reboot
Stan Grishin [Thu, 20 Mar 2025 01:42:39 +0000 (18:42 -0700)]
Merge pull request #7669 from stangri/openwrt-24.10-luci-app-advanced-reboot

[24.10] luci-app-advanced-reboot: update to 1.0.1-21

8 months agoMerge pull request #7684 from stangri/openwrt-24.10-luci-app-https-dns-proxy
Stan Grishin [Mon, 17 Mar 2025 21:10:43 +0000 (14:10 -0700)]
Merge pull request #7684 from stangri/openwrt-24.10-luci-app-https-dns-proxy

[24.10] luci-app-https-dns-proxy: Update: ffmuc bootstrap_dns servers

8 months agoluci-app-https-dns-proxy: Update: ffmuc bootstrap_dns servers
Tobias [Mon, 10 Mar 2025 12:24:09 +0000 (13:24 +0100)]
luci-app-https-dns-proxy: Update: ffmuc bootstrap_dns servers

this updates the ffmuc bootstrap_dns to ffmuc dns servers instead of google or cloudflare dns

Signed-off-by: Tobias <[email protected]>
(cherry picked from commit 29187d4e2b3e184c9b0bd6baf343ec3d2a3b384d)

8 months agoluci-mod-status: channel_analysis: fix 6 GHz support
Aleksander Jan Bajkowski [Sat, 15 Mar 2025 16:29:02 +0000 (17:29 +0100)]
luci-mod-status: channel_analysis: fix 6 GHz support

This commit fixes  wrong channel width in the 6 GHz band. Now all APs
don't show a 20 MHz channel width.

Tested on ZyXEL EX5601 with MT7921 USB adapter.

Signed-off-by: Aleksander Jan Bajkowski <[email protected]>
(cherry picked from commit 62c401ca24fe53d85fdbb7148f7ba14cc4ab4ca1)

8 months agoluci-app-filemanager: amend pop() and add popTimeout()
Paul Donald [Thu, 13 Mar 2025 22:05:45 +0000 (23:05 +0100)]
luci-app-filemanager: amend pop() and add popTimeout()

popTimeout() utilizes addTimeLimitedNotification()

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit b0dc1e3913c5aeb6c78ae224a039819a1cd8c07f)

8 months agoluci-base: ui: implement addTimeLimitedNotification
Paul Donald [Thu, 13 Mar 2025 21:50:11 +0000 (22:50 +0100)]
luci-base: ui: implement addTimeLimitedNotification

Introduce addTimeLimitedNotification which extends addNotification,
with the addition of the 'timeout' parameter.

timeout: a millisecond value after which the notification will disappear
automatically. If omitted, the notification will remain until it
receives the click event.

Improved implementation of 53e36e3293bee2ea2ce0fbc1250074c44cfe8335

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 0329854049facca13736e193b9e5fd4909d8e90e)

8 months agoluci-base: add uci.get_bool to allow cleanup of app code
Eric Fahlgren [Sat, 8 Feb 2025 16:41:56 +0000 (08:41 -0800)]
luci-base: add uci.get_bool to allow cleanup of app code

Any number of apps read boolean values from configuration files, then use
various inconsistent means for checking truth values.  The get_bool function
allows app authors to fetch the value without regard for how it is represented
in the config file.

For example, this

    let enabled = uci.get('system', 'ntp', 'enable_server');
    if (enabled == '1') ...

could become the more natural

    let enabled = uci.get_bool('system', 'ntp', 'enable_server');
    if (enabled) ...

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit dea8d79888f862c82953b775e55f4d0c672cc897)

8 months agoluci-app-attendedsysupgrade: show upcoming versions when available
Eric Fahlgren [Sun, 9 Mar 2025 16:24:08 +0000 (09:24 -0700)]
luci-app-attendedsysupgrade: show upcoming versions when available

Do not hide upcoming versions behind the 'advanced_mode' setting,
always show them.

Fixes: https://github.com/openwrt/asu/issues/1202
Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 8b00d023b0335783dc459a738a1b1e9c2be9cacc)

8 months agotreewide: Backport i18n translations from master
Hannu Nyman [Sun, 9 Mar 2025 16:45:05 +0000 (18:45 +0200)]
treewide: Backport i18n translations from master

Backport from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
9 months agoluci-base: revert timeout function argument for addNotification
Florian Eckert [Fri, 7 Mar 2025 12:49:04 +0000 (13:49 +0100)]
luci-base: revert timeout function argument for addNotification

The function signature changed and all function call to addNotification
that add a CSS class does not work anymore. A direct revert is not
possible.

If this feature is needed than a new function musst be added, that does
not break the function signature.

Fixes: 53e36e3293bee2ea2ce0fbc1250074c44cfe8335
Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 3f832f25120184a5794f593bafa762747d6cc693)

9 months agoluci-app-banIP: sync with release 1.5.3-3
Dirk Brenken [Fri, 7 Mar 2025 12:28:54 +0000 (13:28 +0100)]
luci-app-banIP: sync with release 1.5.3-3

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 1c4b8dc494c26420a5e3b1473c1711ea7a8562d0)

9 months agoluci-app-advanced-reboot: update to 1.0.1-21
Stan Grishin [Thu, 6 Mar 2025 19:04:27 +0000 (19:04 +0000)]
luci-app-advanced-reboot: update to 1.0.1-21

* add support for Linksys MR7500 (thanks @PIPIPIG233666)
* add support for Linksys MX8500 (thanks @PIPIPIG233666)

Signed-off-by: Stan Grishin <[email protected]>
(cherry picked from commit 476b64626d3d9bda66826cd164b3083c7fc65f66)

9 months agoluci-mod-network: correct dnsrr field name to rrname
Paul Donald [Thu, 6 Mar 2025 05:21:33 +0000 (23:21 -0600)]
luci-mod-network: correct dnsrr field name to rrname

follow-up fix for f88f9034f20a97a50179881cde89676f5b5dd948

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit 0a3b60d050526e324c786d98dc53f5a81d45fa6f)

9 months agoluci-app-banIP: sync with update 1.5.3-2
Dirk Brenken [Mon, 3 Mar 2025 18:48:40 +0000 (19:48 +0100)]
luci-app-banIP: sync with update 1.5.3-2

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 96cecf83bac06bc6a9092b6d7122754b75c83007)

9 months agoluci-app-banIP: sync with release 1.5.3-1
Dirk Brenken [Fri, 28 Feb 2025 15:59:02 +0000 (16:59 +0100)]
luci-app-banIP: sync with release 1.5.3-1

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 5bc1d40ba0540b4805ca1d8022847990a3532af1)

9 months agoluci-app-package-manager: Update package-manager-call
kiddin9 [Wed, 26 Feb 2025 15:16:25 +0000 (17:16 +0200)]
luci-app-package-manager: Update package-manager-call

Signed-off-by: kiddin9 <[email protected]>
Explanation: correct the handling of opkg parameters in the non-apk
else branch.
Edit commit title to match formal requirements.

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit eb422f57333c4b9bbba3cbcfb0619ad3bd8c4ee9)

9 months agoluci-app-shadowsocks-libev: delete translations
Sergey Ponomarev [Mon, 24 Feb 2025 19:06:21 +0000 (21:06 +0200)]
luci-app-shadowsocks-libev: delete translations

The app was removed in #7190

Signed-off-by: Sergey Ponomarev <[email protected]>
(cherry picked from commit cda84c77e3c5a402b7a4fb2696a0671b120aa38a)

9 months agotreewide: Backport translations from master
Hannu Nyman [Sat, 22 Feb 2025 07:55:18 +0000 (09:55 +0200)]
treewide: Backport translations from master

Backport & sync.

Signed-off-by: Hannu Nyman <[email protected]>
9 months agoluci-app-adblock: sync with release 4.2.6-1
Dirk Brenken [Sat, 22 Feb 2025 06:10:14 +0000 (07:10 +0100)]
luci-app-adblock: sync with release 4.2.6-1

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 4ee8da2eb19917a7436b8ea437b44ef055a565d8)
Signed-off-by: Dirk Brenken <[email protected]>
9 months agoluci-app-banIP: sync with release 1.5.2-1
Dirk Brenken [Fri, 21 Feb 2025 21:15:19 +0000 (22:15 +0100)]
luci-app-banIP: sync with release 1.5.2-1

* put all custom page actions/buttons back to the standard LuCI footer
* minor UI tweaks
* sync translations

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit dbf2c4272a503e9db5ae23b193cb1d62a54b56bc)
Signed-off-by: Dirk Brenken <[email protected]>
9 months agoMerge pull request #7633 from stangri/24.10-luci-app-advanced-reboot
Stan Grishin [Tue, 18 Feb 2025 18:25:44 +0000 (10:25 -0800)]
Merge pull request #7633 from stangri/24.10-luci-app-advanced-reboot

[24.10] luci-app-advanced-reboot: add MR5500 and SPNMX56

9 months agoluci-app-adblock: sync with release 4.2.5-1
Dirk Brenken [Mon, 17 Feb 2025 21:05:23 +0000 (22:05 +0100)]
luci-app-adblock: sync with release 4.2.5-1

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 6b33775ff0b61a22bfcdd4baf4deae0474ca513e)

9 months agoluci-app-advanced-reboot: add MR5500 and SPNMX56
Stan Grishin [Sat, 15 Feb 2025 17:57:04 +0000 (17:57 +0000)]
luci-app-advanced-reboot: add MR5500 and SPNMX56

- Linksys MX5500 (thanks @georgemoussalem)
- Linksys SPNMX56 (thanks @georgemoussalem)

Signed-off-by: Stan Grishin <[email protected]>
9 months agoMerge pull request #7623 from stangri/24.10-luci-app-pbr
Stan Grishin [Thu, 13 Feb 2025 00:22:37 +0000 (16:22 -0800)]
Merge pull request #7623 from stangri/24.10-luci-app-pbr

[24.10] luci-app-pbr: update to 1.1.8-10

9 months agoMerge pull request #7618 from stangri/24.10-luci-app-https-dns-proxy
Stan Grishin [Thu, 13 Feb 2025 00:21:50 +0000 (16:21 -0800)]
Merge pull request #7618 from stangri/24.10-luci-app-https-dns-proxy

[24.10] luci-app-https-dns-proxy: bugfix and version bump

9 months agoMerge pull request #7615 from stangri/24.10-luci-app-advanced-reboot
Stan Grishin [Thu, 13 Feb 2025 00:21:08 +0000 (16:21 -0800)]
Merge pull request #7615 from stangri/24.10-luci-app-advanced-reboot

[24.10] luci-app-advanced-reboot: add support for more Linksys devices

9 months agoluci-app-pbr: update to 1.1.8-10
Stan Grishin [Wed, 12 Feb 2025 04:07:04 +0000 (04:07 +0000)]
luci-app-pbr: update to 1.1.8-10

* fix documentation URL in README
* improve supported_interface description
* improve ignored_interface description

Signed-off-by: Stan Grishin <[email protected]>
9 months agoluci-app-attendedsysupgrade: supply proper version to package changes
Eric Fahlgren [Sat, 8 Feb 2025 14:10:05 +0000 (06:10 -0800)]
luci-app-attendedsysupgrade: supply proper version to package changes

Fix bug in applyPackageChanges, it was using the installed version as the
target, resulting in no changes being applied.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 2e9ffc6628d91065326cc1e16ea15f9f8f4f00a0)

9 months agoluci-app-https-dns-proxy: bugfix and version bump
Stan Grishin [Mon, 10 Feb 2025 21:11:19 +0000 (21:11 +0000)]
luci-app-https-dns-proxy: bugfix and version bump

* bugfix: restna.lu URL (thanks @giantplaceholder)
* version bump to sync with principal package

Signed-off-by: Stan Grishin <[email protected]>
9 months agoluci-app-advanced-reboot: add support for more Linksys devices
Stan Grishin [Sun, 9 Feb 2025 19:26:40 +0000 (19:26 +0000)]
luci-app-advanced-reboot: add support for more Linksys devices

* Linksys E7350 (thanks forum/OothecaPickle)
* Linksys MX2000 (thanks @georgemoussalem)
* Linksys MX550 (thanks @georgemoussalem)

Signed-off-by: Stan Grishin <[email protected]>
10 months agoluci-base: update timezone data to 2025a
Hannu Nyman [Thu, 6 Feb 2025 18:58:51 +0000 (20:58 +0200)]
luci-base: update timezone data to 2025a

Update timezone data to 2025a.

https://lists.iana.org/hyperkitty/list/[email protected]/thread/MWII7R3HMCEDNUCIYQKSSTYYR7UWK4OQ/

* Paraguay adopts permanent -03 starting spring 2024.
* Asia/Choibalsan is removed from selection list. It is now
  an alias for Asia/Ulaanbaatar rather than being a separate
  Zone (changed in 2024b).

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit edc352e11040c2d878ad1b697a70f6d8d22c54d3)

10 months agotreewide: Backport i18n translations from master
Hannu Nyman [Tue, 4 Feb 2025 17:26:33 +0000 (19:26 +0200)]
treewide: Backport i18n translations from master

Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
10 months agoluci-app-antiblock: Add luci-app-antiblock package
Khachatryan Karen [Wed, 29 Jan 2025 21:17:14 +0000 (00:17 +0300)]
luci-app-antiblock: Add luci-app-antiblock package

Adding LuCI web interface for antiblock package

Signed-off-by: Khachatryan Karen <[email protected]>
(cherry picked from commit 0f743ad0f29a56704be8d13fb6d52c3617a7918a)

10 months agoluci-app-adblock: sync with adblock-4.2.4-1
Dirk Brenken [Mon, 27 Jan 2025 22:49:18 +0000 (23:49 +0100)]
luci-app-adblock: sync with adblock-4.2.4-1

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 48a351432c3cc59d35f02731c9f32674f07faaf1)

10 months agobuild: enable packaging of Yucatec Maya translations
Hannu Nyman [Sat, 25 Jan 2025 15:59:22 +0000 (17:59 +0200)]
build: enable packaging of Yucatec Maya translations

Yucateco has been almost completely translated for luci-base,
so enable it for building.

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit a86c3ad6f1ba43a247c4958c96a173a31b5f3136)

10 months agobuild: enable packaging of Filipino and Persian translations
Hannu Nyman [Sat, 25 Jan 2025 15:48:47 +0000 (17:48 +0200)]
build: enable packaging of Filipino and Persian translations

As the luci-base translations of Filipino and Farsi (Persian)
have progressed somewhat, make the languages availabel for build.

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit ea4e57877bd33b7f59fa0687f805b14c2dec464e)

10 months agotreewide: Backport translations from master
Hannu Nyman [Fri, 24 Jan 2025 05:51:53 +0000 (07:51 +0200)]
treewide: Backport translations from master

Sync translations.
Backport from master via merge-master script.
(At this first backport, also the backup strings get removed.)

Signed-off-by: Hannu Nyman <[email protected]>
10 months agoluci-app-attendedsysupgrade: sort latest version array
Eric Fahlgren [Thu, 23 Jan 2025 23:15:23 +0000 (15:15 -0800)]
luci-app-attendedsysupgrade: sort latest version array

The Attended Sysupgrade app requires that the array of latest
versions be in order from newest release to oldest.  Ensure that
this is true even when upstream presents them in arbitrary order.

Signed-off-by: Eric Fahlgren <[email protected]>
(cherry picked from commit 2c7b18b0f6fc04eb4005a7b8cc9d5051b27b7100)

10 months agoluci-app-banip: sync with banIP 1.5
Dirk Brenken [Thu, 16 Jan 2025 19:17:38 +0000 (20:17 +0100)]
luci-app-banip: sync with banIP 1.5

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit abb3d9e86230738d15a5bcc430a3639c43c0fcb5)

10 months agoluci-mod-network: fix disabling packet steering
Felix Fietkau [Tue, 21 Jan 2025 08:30:32 +0000 (09:30 +0100)]
luci-mod-network: fix disabling packet steering

The default value of an empty option is enabled, not disabled.

Signed-off-by: Felix Fietkau <[email protected]>
(cherry picked from commit d889c27b4bc77c18b83548a60412b1b418d77439)

10 months agoluci-base: widgets; remove maximal firewall zone name length datatype
Paul Donald [Tue, 14 Jan 2025 15:16:56 +0000 (16:16 +0100)]
luci-base: widgets; remove maximal firewall zone name length datatype

removes a075566dbb5147a4311cd24f46a173222c9172cf (and subsequent fixes)

enforcing a datatype on this widget generates the following error when
multiple zones are selected:

 Expecting: valid UCI identifier

(the error triggered for uciname). At its simplest: multiple selections
are no longer just a uciname, but multiple thereof.

Signed-off-by: Paul Donald <[email protected]>
10 months agoluci-mod-network: i18n fix
Paul Donald [Tue, 14 Jan 2025 02:10:15 +0000 (03:10 +0100)]
luci-mod-network: i18n fix

Follow-up fix to fb4cf432d2232a0ba2ccd3a8ff81a3679c8d054d

Resolves sync errors:

standard input:682: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.
standard input:733: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.
standard input:761: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.
standard input:818: warning: Empty msgid.  It is reserved by GNU gettext:
                             gettext("") returns the header entry with
                             meta information, not the empty string.

Signed-off-by: Paul Donald <[email protected]>