project/luci.git
2 years agoluci-app-mosquitto: add option 'allow anonymous'
Ptilopsis Leucotis [Sat, 14 May 2022 17:56:23 +0000 (20:56 +0300)]
luci-app-mosquitto: add option 'allow anonymous'

Add missed option 'allow anonymous' in mosquitto section.

Signed-off-by: Ptilopsis Leucotis <[email protected]>
(cherry picked from commit 4e3d6c15640aad5df6280a619a3fa808595b903d)

2 years agoluci-app-tinyproxy: fix description of ConnectPort option
Jo-Philipp Wich [Tue, 3 May 2022 12:51:13 +0000 (14:51 +0200)]
luci-app-tinyproxy: fix description of ConnectPort option

Fixes: #803
Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from commit eadf07b5299a450c43bc4162f891d5c95b629e8a)

2 years agoluci-app-https-dns-proxy: remove redundant cbi-value-field div
Jo-Philipp Wich [Sat, 23 Apr 2022 21:35:03 +0000 (18:35 -0300)]
luci-app-https-dns-proxy: remove redundant cbi-value-field div

The redundant "cbi-value-field" div introduces uneeded margin, remove this
element to fix the view layout.

Suggested-by: Santiago Kozak <[email protected]>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 6b3bba36d1381d0cd72e77f096b7f6892fd3314f)

2 years agoluci-lib-httpprotoutils: add airplay mime types
Sasha Andonov [Tue, 24 Jan 2023 15:00:51 +0000 (10:00 -0500)]
luci-lib-httpprotoutils: add airplay mime types

Airplay of a statically hosted video file from one Apple device to another
fails due to unrecognized content-type. Adding Airplay supported
mime types fixes the issue.

Signed-off-by: Sasha Andonov <[email protected]>
(cherry picked from commit e776759549fba3e69727a0402e39d7c8d13118fd)

2 years agoluci-mod-status: nftables add counter and comment for empty match
Ingo Heinrich [Sat, 4 Mar 2023 11:17:50 +0000 (12:17 +0100)]
luci-mod-status: nftables add counter and comment for empty match

Signed-off-by: Ingo Heinrich <[email protected]>
(cherry picked from commit 8c7c56f4e415a3b80bf91c98aa02a638111bef51)

2 years agoluci-proto-wireguard: use ddns lookup_host for peer hints
Jo-Philipp Wich [Tue, 14 Mar 2023 22:34:53 +0000 (23:34 +0100)]
luci-proto-wireguard: use ddns lookup_host for peer hints

The `domain` option of a DDNS service entry may contain non-hostname values,
use the `lookup_hostname` option instead.

Fixes: #6289
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 59a6f062d29ee7a400e9cb0477e0e55eb674208a)

2 years agolucihttp: update to latest Git HEAD
Jo-Philipp Wich [Wed, 15 Mar 2023 00:05:32 +0000 (01:05 +0100)]
lucihttp: update to latest Git HEAD

9b5b683 multipart-parser: properly handle parts with trailing CR

Fixes: #6282
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 0f6e1663ca0370ab3f8ca3927a9d0a37b015d0f4)

2 years agoluci-app-statistics: add watt-ups for nut and skip unsupported values
Jo-Philipp Wich [Mon, 3 Apr 2023 10:45:50 +0000 (12:45 +0200)]
luci-app-statistics: add watt-ups for nut and skip unsupported values

Only render NUT charts for actually available data and add a chart
definition for `watt-ups` values while we're at it.

Ref: https://forum.openwrt.org/t/x/156246
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit dd1111407d8f0b1f7f761c5ebbe6ae43a268a4a4)

2 years agotreewide: Backport translations and sync
Hannu Nyman [Fri, 31 Mar 2023 17:09:14 +0000 (20:09 +0300)]
treewide: Backport translations and sync

Backport from master and sync translations

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoluci-app-banip: sync with banIP 0.8.2-5
Dirk Brenken [Thu, 30 Mar 2023 17:01:17 +0000 (19:01 +0200)]
luci-app-banip: sync with banIP 0.8.2-5

* made some missing text pieces translatable
* change banip.feeds permission

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit 0c67d74fd39ca52e58432eeb1f58480fca381915)
Signed-off-by: Dirk Brenken <[email protected]>
2 years agoluci-theme-material: add again No password set hint
Florian Eckert [Wed, 29 Mar 2023 06:59:27 +0000 (08:59 +0200)]
luci-theme-material: add again No password set hint

This was accidentally deleted with commit:
bec2c7e2b50e062575f3649ccd76b81af41b9820

Signed-off-by: Florian Eckert <[email protected]>
2 years agoluci-app-banip: sync with banIP 0.8.2-4
Dirk Brenken [Sun, 26 Mar 2023 21:33:41 +0000 (23:33 +0200)]
luci-app-banip: sync with banIP 0.8.2-4

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit df9549e6bdf0c0d33e468765167c5e15338abcb1)
Signed-off-by: Dirk Brenken <[email protected]>
2 years agotreewide: Backport translations, sync
Hannu Nyman [Tue, 21 Mar 2023 21:43:04 +0000 (23:43 +0200)]
treewide: Backport translations, sync

Sync and backport translations from master.

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoMerge pull request #6299 from dibdot/banIP
Dirk Brenken [Sun, 19 Mar 2023 18:36:30 +0000 (19:36 +0100)]
Merge pull request #6299 from dibdot/banIP

luci-app-banip: backport to 22.03

2 years agoluci-app-banip: backport to 22.03
Dirk Brenken [Sun, 19 Mar 2023 15:05:32 +0000 (16:05 +0100)]
luci-app-banip: backport to 22.03

Signed-off-by: Dirk Brenken <[email protected]>
2 years agoMerge pull request #6294 from nemesisdesign/openwrt-22.03
Jo-Philipp Wich [Fri, 17 Mar 2023 08:34:50 +0000 (09:34 +0100)]
Merge pull request #6294 from nemesisdesign/openwrt-22.03

[22.03] luci-app-openwisp: improved schema for usability

2 years agoluci-app-openwisp: improved schema for usability
Federico Capoano [Wed, 1 Mar 2023 19:08:01 +0000 (16:08 -0300)]
luci-app-openwisp: improved schema for usability

Without these changes, saving the form of luci-app-openwisp without
doing any change generates a configuration which will not work in most cases.

In this patch I took care of providing the right settings to show the default values,
avoid saving default values and show the interface names properly.
With these changes it will be possible for a user to edit just 1 field without
introducing breaking changes.

Signed-off-by: Federico Capoano <[email protected]>
(cherry picked from commit 8727b1cbc8542e06b0b9db7e41366bbbe19d42f5)

2 years agoluci-base: dispatcher.lua: prevent XSS through 404 error template
Jo-Philipp Wich [Fri, 10 Mar 2023 14:09:04 +0000 (15:09 +0100)]
luci-base: dispatcher.lua: prevent XSS through 404 error template

Make sure to escape the user controlled URL passed as part of the error
message into the error404 template in order to avoid XSS.

Reported-by: 40826d <[email protected]>
Signed-off-by: Jo-Philipp Wich <[email protected]>
2 years agoMerge pull request #6227 from liudf0716/xfrpc
Hannu Nyman [Sun, 5 Mar 2023 08:03:55 +0000 (10:03 +0200)]
Merge pull request #6227 from liudf0716/xfrpc

[22.03] xfrpc : add xfrpc to 22.03 branch

2 years agotreewide: Backport translations
Hannu Nyman [Sat, 4 Mar 2023 08:08:42 +0000 (10:08 +0200)]
treewide: Backport translations

Backport translations.

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoluci-app-sqm: Move verbose descriptions into help text
Toke Høiland-Jørgensen [Sat, 4 Mar 2023 08:00:20 +0000 (10:00 +0200)]
luci-app-sqm: Move verbose descriptions into help text

The field labels contain verbose descriptions which looks terrible in the
UI. Replace them with short labels and move the verbose text into the help
text where it belongs.

Reported by Github user @saldry at https://github.com/openwrt/luci/issues/6161

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
(cherry picked from commit 127c9002e6e6898631928f66774575c25b05f536)

2 years agotreewide: Backport translations
Hannu Nyman [Tue, 28 Feb 2023 15:54:34 +0000 (17:54 +0200)]
treewide: Backport translations

Backport from master.
(fix bad translation in applications/luci-app-https-dns-proxy/po/es/https-dns-proxy.po)

Signed-off-by: Hannu Nyman <[email protected]>
2 years agotreewide: Backport and sync translations - i18n
Hannu Nyman [Mon, 27 Feb 2023 03:56:49 +0000 (05:56 +0200)]
treewide: Backport and sync translations - i18n

Backport translations from master.

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoMerge pull request #6261 from stangri/openwrt-22.03-luci-app-pbr
Stan Grishin [Fri, 24 Feb 2023 06:16:05 +0000 (23:16 -0700)]
Merge pull request #6261 from stangri/openwrt-22.03-luci-app-pbr

[22.03] luci-app-pbr: bugfixes

2 years agoluci-app-pbr: bugfixes
Stan Grishin [Thu, 23 Feb 2023 21:38:07 +0000 (21:38 +0000)]
luci-app-pbr: bugfixes

* do not remove non-empty custom user files fields
* add provides for vpnbypass and vpn-policy-routing luci apps
  addresses https://github.com/openwrt/luci/pull/6127#pullrequestreview-1311512052

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

2 years agoMerge pull request #6259 from BKPepe/remove-translations-vpn-policy-routing
Stan Grishin [Thu, 23 Feb 2023 21:42:55 +0000 (14:42 -0700)]
Merge pull request #6259 from BKPepe/remove-translations-vpn-policy-routing

[22.03] luci-app-vpn-routing: drop leftover translations

2 years agoluci-app-vpn-routing: drop leftover translations
Josef Schlehofer [Thu, 23 Feb 2023 14:59:02 +0000 (15:59 +0100)]
luci-app-vpn-routing: drop leftover translations

The package luci-app-vpn-policy-routing was replaced by luci-app-pbr,
but while doing it, it seems that Makefile of
luci-app-vpn-policy-routing is gone, but the translations are not. Let's
fix it.

Fixes 60ee510924a3818ddee7a19d651de9647fd41723 ("luci-app-pbr: initial
commit")

Signed-off-by: Josef Schlehofer <[email protected]>
2 years agoluci-app-adblock: sync with latest adblock
Dirk Brenken [Sat, 18 Feb 2023 19:34:44 +0000 (20:34 +0100)]
luci-app-adblock: sync with latest adblock

* removed energized soruce selection
* sync translations

Signed-off-by: Dirk Brenken <[email protected]>
(cherry picked from commit b762e772ce317153000a93b6ea4cba51256c8ca7)
Signed-off-by: Dirk Brenken <[email protected]>
2 years agoMerge pull request #6246 from stangri/openwrt-22.03-luci-app-https-dns-proxy
Stan Grishin [Tue, 14 Feb 2023 05:17:58 +0000 (22:17 -0700)]
Merge pull request #6246 from stangri/openwrt-22.03-luci-app-https-dns-proxy

[22.03] luci-app-https-dns-proxy: update to 2022-10-15-11

2 years agoluci-app-https-dns-proxy: update to 2022-10-15-11
Stan Grishin [Tue, 14 Feb 2023 01:57:53 +0000 (01:57 +0000)]
luci-app-https-dns-proxy: update to 2022-10-15-11

* Makefile: change dependency from luci-mod-admin-full to luci-base
* Providers: add AdGuard and AdGuard Family
* Bugfix: update field value in CBI, fixes https://github.com/openwrt/luci/issues/6244

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

2 years agoluci-proto-openconnect: fix server url validation
Jo-Philipp Wich [Tue, 7 Feb 2023 10:52:17 +0000 (11:52 +0100)]
luci-proto-openconnect: fix server url validation

The OpenConnect configuration form incorrectly assumed that the server
setting must be hostname while it actually may be a full URL.

Fixes: #6184
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit b200e0e90fdfb294cd31870eb32b6b362ded3733)

2 years agoRevert "luci-proto-openconnect: fix server url validation"
Jo-Philipp Wich [Wed, 8 Feb 2023 07:56:32 +0000 (08:56 +0100)]
Revert "luci-proto-openconnect: fix server url validation"

This reverts commit f1312cadc6675fb29d02425775dd8a2a533d7e7c.

The commit contained unrelated changes.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 41e9b8d1219a949a0a3105eabec3774dc97f65c2)

2 years agoluci-proto-openconnect: fix server url validation
Jo-Philipp Wich [Tue, 7 Feb 2023 10:52:17 +0000 (11:52 +0100)]
luci-proto-openconnect: fix server url validation

The OpenConnect configuration form incorrectly assumed that the server
setting must be hostname while it actually may be a full URL.

Fixes: #6184
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit f1312cadc6675fb29d02425775dd8a2a533d7e7c)

2 years agoluci-proto-openconnect: Add options proxy server and reconnect timeout support
David Bentham [Sat, 10 Sep 2022 13:30:37 +0000 (14:30 +0100)]
luci-proto-openconnect: Add options proxy server and reconnect timeout support

Signed-off-by: David Bentham <[email protected]>
(cherry picked from commit 1f25483953dc20e2d8521a1b8f9528420b5b817a)

2 years agoluci-theme-openwrt-2020: don't inherit background in alert message buttons
Jo-Philipp Wich [Tue, 7 Feb 2023 09:41:59 +0000 (10:41 +0100)]
luci-theme-openwrt-2020: don't inherit background in alert message buttons

Fixes: #6177
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 1597d8e555cfe7444bcbcb44d45caf6954b61b3e)

2 years agoluci-mod-status: nftables.js: remove unused fwtool require
Jo-Philipp Wich [Tue, 7 Feb 2023 09:13:26 +0000 (10:13 +0100)]
luci-mod-status: nftables.js: remove unused fwtool require

Fixes: #6203
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit b8f91d53b4b2d5e89928ceca73203e48292ca2b0)

2 years agorpcd-mod-luci: fix reporting network device flags
Jo-Philipp Wich [Mon, 6 Feb 2023 14:46:49 +0000 (15:46 +0100)]
rpcd-mod-luci: fix reporting network device flags

Fix reporting of ceertain flag values larger than 255, such as IFF_PROMISC
by explicitly casting the bit test expression to a boolean result since
the implicit integer truncation to uint8_t will turn the `0x100` result of
a set IFF_PROMISC bit into just `0x0`.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit a570e300061fae7250999c35e4e7215940bca82d)

2 years agoluci-app-xfrpc: add po template
Florian Eckert [Thu, 30 Jun 2022 08:08:28 +0000 (10:08 +0200)]
luci-app-xfrpc: add po template

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

2 years agoluci-app-xfrpc: add subdomain to http&https config
Dengfeng Liu [Fri, 14 Oct 2022 08:29:27 +0000 (08:29 +0000)]
luci-app-xfrpc: add subdomain to http&https config

Signed-off-by: Dengfeng Liu <[email protected]>
(cherry picked from commit ca9def41a47075209d460e5c599e1cd987242dd6)

2 years agoluci-app-xfrpc: add luci-app-xfrpc
Dengfeng Liu [Mon, 9 May 2022 09:21:30 +0000 (17:21 +0800)]
luci-app-xfrpc: add luci-app-xfrpc

Signed-off-by: Dengfeng Liu <[email protected]>
(cherry picked from commit 283ac0513f5c84005c5b3b87f243a5b597b0497e)

2 years agoluci-base: form.js: reuse JSONMap data provider in GridSection modals
Jo-Philipp Wich [Sat, 4 Feb 2023 21:15:42 +0000 (22:15 +0100)]
luci-base: form.js: reuse JSONMap data provider in GridSection modals

Reuse the same data provider as the parent JSONMap instance in order
to avoid inadvertently mangling the form data when saving the modal
edit dialog.

Fixes: bb9ede238a ("luci-base: form.js: reuse JSONMap data provider in GridSection modals")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit dd47f3f6742a6d80221b75aa7b6ea27eca2bb535)

2 years agoluci-base: form.js: fix GridSection modals in JSONMap instances
Jo-Philipp Wich [Sat, 4 Feb 2023 20:03:51 +0000 (21:03 +0100)]
luci-base: form.js: fix GridSection modals in JSONMap instances

Since grid section edit modals construct a new Map instance internally,
we must take care of using the correct map constructor type for the
internal copy in order to end up with the correct data provider.

Ensure that the extended option modal of GridSection instances uses a
JSONMap when the grid section's owner map is a JSONMap to avoid stray
uci related errors.

Ref: https://forum.openwrt.org/t/luci-save-apply/149658/5
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 6fe34990265a02dac20f7b352e4039a90fed45ca)

2 years agotreewide: Backport translations - sync
Hannu Nyman [Sat, 21 Jan 2023 09:59:46 +0000 (11:59 +0200)]
treewide: Backport translations - sync

Backport translations and sync.

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoluci-app-wireguard: trivial fix to separate a peer's multiple IPs
Paul Dee [Wed, 18 Jan 2023 20:11:52 +0000 (22:11 +0200)]
luci-app-wireguard: trivial fix to separate a peer's multiple IPs

Attempts to address issue #6003

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

2 years agoluci-app-dockerman: add minor version
Hannu Nyman [Sat, 14 Jan 2023 14:11:39 +0000 (16:11 +0200)]
luci-app-dockerman: add minor version

The package has static versioning, based on the original upstream
versioning. Add date as a minor version to signal later changes.

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

2 years agoluci-app-dockerman: Update to play nice with recent changes
Andrew Dodd [Sat, 14 Jan 2023 08:01:44 +0000 (10:01 +0200)]
luci-app-dockerman:  Update to play nice with recent changes

https://github.com/openwrt/luci/commit/180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab broke dockerman's appearance in the menus

Make a small change to dockerman's index entry to make it play nice with the new architecture, firstchild() was obtained using DAWN's controller/dawn.lua as an example

Signed-off-by: Andrew Dodd <[email protected]>
(cherry picked from commit 0c1fc7f64566bd5da643eadc6b817bb0f5f591e7)
Fixes #6168

2 years agoluci-app-nlbwmon: validate date input
Jo-Philipp Wich [Fri, 13 Jan 2023 20:26:52 +0000 (21:26 +0100)]
luci-app-nlbwmon: validate date input

Fixes: #6188
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 7c7ac8bf0d9d554d19f5d21226110743899b8802)

2 years agoluci-app-openvpn: fix potential XSS in pageswitch template
Jo-Philipp Wich [Fri, 13 Jan 2023 20:16:58 +0000 (21:16 +0100)]
luci-app-openvpn: fix potential XSS in pageswitch template

Ensure to escape URL instance parameter displayed in the heading.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 25983b9fa572a640a7ecd077378df2790266cd61)

2 years agoluci-mod-system: fix potential stored XSS
Jo-Philipp Wich [Fri, 13 Jan 2023 19:52:17 +0000 (20:52 +0100)]
luci-mod-system: fix potential stored XSS

Make sure to escape the key contents in the delete confirmation dialog.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 0186d7eae0e123a409e9919a83fdfecc7945c984)

2 years agoMerge pull request #6182 from stangri/openwrt-22.03-luci-app-pbr
Stan Grishin [Tue, 3 Jan 2023 20:21:18 +0000 (13:21 -0700)]
Merge pull request #6182 from stangri/openwrt-22.03-luci-app-pbr

[22.03] luci-app-pbr: additional error messages

2 years agoluci-app-pbr: additional error messages
Stan Grishin [Tue, 3 Jan 2023 19:56:08 +0000 (19:56 +0000)]
luci-app-pbr: additional error messages

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

2 years agoluci-app-statistics: provide defaul minimal scale for some graphs
Hannu Nyman [Mon, 2 Jan 2023 19:45:19 +0000 (21:45 +0200)]
luci-app-statistics: provide defaul minimal scale for some graphs

Avoid cryptic "200m" axis items for really small values by setting
a default minimal y-axis max value for some of the conntrack, cpu,
cpufreq, load and ping graphs (mainly percentages). The axis
automatically scales upward if necessary, so this just provides
a minimal "at least" scale for the y-axis.

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

2 years agoluci-app-statistics: Adjust also default_timespan to 2hour
Hannu Nyman [Thu, 29 Dec 2022 10:05:50 +0000 (12:05 +0200)]
luci-app-statistics: Adjust also default_timespan to 2hour

Adjust also default_timespan option to be 2hour, as that change was
forgotten in 4b49b456. (That seems to have no practical relevance, as
LuCI seems to offer the first item from the period list in any case.)

Fixes: 4b49b456 luci-app-statistics: set shortest period data/graph to 2 hours
Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 3aedb609cea9df548fe8a21a0b98e3f01a801200)

2 years agotreewide: Backport translations from master - i18n
Hannu Nyman [Wed, 28 Dec 2022 07:20:22 +0000 (09:20 +0200)]
treewide: Backport translations from master - i18n

Backport translations.
Sync.

Signed-off-by: Hannu Nyman <[email protected]>
2 years agoluci-base: ui.js: support div based table markup in UITable.update()
Jo-Philipp Wich [Tue, 27 Dec 2022 19:20:36 +0000 (20:20 +0100)]
luci-base: ui.js: support div based table markup in UITable.update()

Constructing UITable instances from existing, div based markup is
supported but the UITable.update() implementation did not account
for that, leading to defunct data updates on tables built from div
based markup.

Fix this issue by extending UITable.update() to consider a div based
table structure as well, like we do in UITable.initFromMarkup() already.

Fixes: #5713
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit deed6827b2eb0b58ee8c1d810a584a9589108eac)

2 years agoluci-app-natmap: add forward_port option and update stun_server description
Richard Yu [Wed, 21 Dec 2022 10:07:06 +0000 (18:07 +0800)]
luci-app-natmap: add forward_port option and update stun_server description

Signed-off-by: Richard Yu <[email protected]>
(cherry picked from commit 1a4ac922829aa8088608374a3bd7445fbf2a6f96)

2 years agoMerge pull request #6160 from stangri/openwrt-22.03-luci-app-pbr
Stan Grishin [Mon, 19 Dec 2022 21:09:43 +0000 (14:09 -0700)]
Merge pull request #6160 from stangri/openwrt-22.03-luci-app-pbr

[22.03] luci-app-pbr: update to 1.0.1-1

2 years agoluci-app-natmap: add new package
Richard Yu [Mon, 19 Dec 2022 21:04:30 +0000 (23:04 +0200)]
luci-app-natmap: add new package

Signed-off-by: Richard Yu <[email protected]>
(cherry picked from commit cc01c0bffa9030318c39cf493c42c48d22500ec3)

2 years agoluci-proto-autoip: fix protocol name
Jo-Philipp Wich [Mon, 19 Dec 2022 14:29:47 +0000 (15:29 +0100)]
luci-proto-autoip: fix protocol name

Fixes: 2965e527f5 ("luci-proto-autoip: add protocol support for avahi-autoipd")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit ae47caf383c6da53f2345bd225c49b875cb0d514)

2 years agoluci-proto-autoip: add protocol support for avahi-autoipd
Jo-Philipp Wich [Mon, 19 Dec 2022 14:28:06 +0000 (15:28 +0100)]
luci-proto-autoip: add protocol support for avahi-autoipd

Fixes: #6162
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 2965e527f578abda1dc58dd540343422455be3ac)

2 years agoluci-app-pbr: update to 1.0.1-1
Stan Grishin [Mon, 19 Dec 2022 03:58:01 +0000 (03:58 +0000)]
luci-app-pbr: update to 1.0.1-1

* add more error/warning messages
* better error/ubus error handling

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

2 years agoluci-base: fix button handling for named sections
Florian Eckert [Mon, 12 Dec 2022 13:58:38 +0000 (14:58 +0100)]
luci-base: fix button handling for named sections

If more than one named section is added to the page, it is currently the
case, that the first button is always switched on or off during input
validation of the uci section name. This is because the usage of the
'document.querySelector' function is to imprecise. Changing the search
start to the element to be created, fixes this.

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

2 years agoMerge pull request #6143 from stangri/openwrt-22.03-luci-app-pbr
Stan Grishin [Mon, 12 Dec 2022 03:37:07 +0000 (20:37 -0700)]
Merge pull request #6143 from stangri/openwrt-22.03-luci-app-pbr

[22.03] luci-app-pbr: Detect missing iptables & error-proofing WebUI

2 years agoluci-app-pbr: Detect missing iptables & error-proofing WebUI
Stan Grishin [Mon, 12 Dec 2022 03:00:37 +0000 (03:00 +0000)]
luci-app-pbr: Detect missing iptables & error-proofing WebUI

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

2 years agoluci-mod-network: (wireless) Expose 802.11v settings.
Paul Dee [Sun, 11 Dec 2022 13:30:02 +0000 (15:30 +0200)]
luci-mod-network: (wireless) Expose 802.11v settings.

Tested on: 21.02.1

Signed-off-by: Paul Dee <[email protected]>
(cherry picked from commit 82595509093ae1e538c23f131d468766c00092f2)

2 years agoluci-mod-network: (wireless) Expose 802.11k settings.
Paul Dee [Sun, 11 Dec 2022 13:29:47 +0000 (15:29 +0200)]
luci-mod-network: (wireless) Expose 802.11k settings.

Tested on: 21.02.1

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

2 years agoluci-mod-network: (wireless) Expose multicast_to_unicast setting.
Paul Dee [Sun, 11 Dec 2022 13:29:24 +0000 (15:29 +0200)]
luci-mod-network: (wireless) Expose multicast_to_unicast setting.

From https://w1.fi/cgit/hostap/commit/?id=34f7c699a6bcb5c45f82ceb6743354ad79296078
add support for multicast_to_unicast conversion in the wireless settings

Tested on: 21.02.1

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

2 years agoluci-app-statistics: set shortest period data/graph to 2 hours
Hannu Nyman [Tue, 6 Dec 2022 11:37:47 +0000 (13:37 +0200)]
luci-app-statistics: set shortest period data/graph to 2 hours

Change the shortest defined statistics period from 1 hour to 2 hours.

In practice, this only changes the graph for the shortest period
to show 2 hours of data instead of 1 hour.

The underlying database is not changed:
there are currently 288 data items for each period,
so with the 30 seconds default step, the shortest data series
contains 288 x 0.5 min = 144 min > 2 hours of data.

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

3 years agotreewide: resync and merge master translations
Jo-Philipp Wich [Mon, 5 Dec 2022 15:35:29 +0000 (16:35 +0100)]
treewide: resync and merge master translations

Signed-off-by: Jo-Philipp Wich <[email protected]>
3 years agoluci-base: ui.js: table enhancements
Jo-Philipp Wich [Tue, 22 Nov 2022 09:08:44 +0000 (10:08 +0100)]
luci-base: ui.js: table enhancements

 - Gracefully handle cells without innerText
 - Properly handle `DocumentFragment` call values on table update
 - Introduce ability to fetch actual cell value for sorting purposes from
   `data-value` attribute

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 90a2b1eaeb58b7169b31fdc097c5bfe6f557c778)

3 years agoluci-base: cbi.js: await L.ui load before updating tables
Jo-Philipp Wich [Wed, 9 Nov 2022 19:26:14 +0000 (20:26 +0100)]
luci-base: cbi.js: await L.ui load before updating tables

On legacy views, the `L.ui` JavaScript class is not automatically loaded,
so request it before updating tables.

Fixes: e0e6989a4a ("luci-base: introduce new LuCI.ui.Table class")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit bdfdd95a273f6fc73017795805dcfe6ee1ae8a8e)

3 years agoluci-base: revise array sorting
Jo-Philipp Wich [Wed, 27 Jul 2022 15:19:08 +0000 (17:19 +0200)]
luci-base: revise array sorting

Refactor various sort operations throughout luci-base to use the new
L.naturalCompare() comparator function.

This primarily ensures that embedded numbers are sorted numerically and
not in a lexicographical way.

It also simplifies some code as a side effect.

Ref: #5899
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 37422e891a47f15659356ce75b6f6cce831e0041)

3 years agoluci-base: luci.js: add array sort utilities
Jo-Philipp Wich [Wed, 27 Jul 2022 14:31:10 +0000 (16:31 +0200)]
luci-base: luci.js: add array sort utilities

Add two new utility functions L.naturalCompare() and L.sortedArray() to
simplify sorting arrays naturally.

Ref: #5899
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 8199b2ce9a7d36359aedea1ad9dab157134a46c2)

3 years agoluci-base: optimized icons filesizes
y04 [Fri, 24 Jun 2022 23:45:55 +0000 (01:45 +0200)]
luci-base: optimized icons filesizes

Optimized PNG filesize without any quality loss.

Signed-off-by: Alexander Semukhin <[email protected]>
(cherry picked from commit 37477ca6142c6e9e96f210c3a1973a44f814de09)

3 years agoluci-base: ui.js: add required CSS class to dynlist widget
Jo-Philipp Wich [Tue, 17 May 2022 19:47:33 +0000 (21:47 +0200)]
luci-base: ui.js: add required CSS class to dynlist widget

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit d6dbedd9e2c77f44be0f64ee8128401a293f77f4)

3 years agoluci-base: luci.js: remove wrong CSS class from page footer
Jo-Philipp Wich [Mon, 16 May 2022 14:04:56 +0000 (16:04 +0200)]
luci-base: luci.js: remove wrong CSS class from page footer

The `control-group` class is meant for gapless grouping of inputs with
buttons, while the page actions are just distinct buttons in a row.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 4e090e38d2cb606936768847ab0f5526f95be793)

3 years agoluci-theme-material: fix typo in recovery mode message
INAGAKI Hiroshi [Wed, 27 Jul 2022 01:57:50 +0000 (10:57 +0900)]
luci-theme-material: fix typo in recovery mode message

Fix the message from "Sytem" to "System" and merge with the existing
message on the other themes.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
(cherry picked from commit 2a558393636e1775f0c9b64ab9fe62a6a43b833e)

3 years agoluci-theme-material: optimized image filesize
y04 [Fri, 24 Jun 2022 23:43:23 +0000 (01:43 +0200)]
luci-theme-material: optimized image filesize

Optimized PNG filesize from 6280 to 3939 bytes. Visually looks the same, technically the image is 99.9% identical.

Signed-off-by: Alexander Semukhin <[email protected]>
(cherry picked from commit ec8bdab76c1c25f36d13f0053357417aec82dd14)

3 years agoluci-theme-material: CSS Fix for previous update
Quentin Baker [Fri, 17 Jun 2022 03:59:39 +0000 (23:59 -0400)]
luci-theme-material: CSS Fix for previous update

Commit b0f13ef Changed the color of a CSS element from a bright blue to
a dark blue. This resulted in a modal with difficult-to-read text (black
text on dark blue).

This commit sets the modal text-color to #000, in line with style
guidelines.

Signed-off-by: Quentin Baker <[email protected]>
(cherry picked from commit 4ee2bc644acc4bd112f870cf1e689f86f99c5736)

3 years agoluci-theme-material: Update brand logo/colors
Quentin Baker [Mon, 6 Jun 2022 01:35:25 +0000 (21:35 -0400)]
luci-theme-material: Update brand logo/colors

I have updated the brand.png logo to the 2020 version, and I have
made a small adjustment to the CSS to reflect its slightly larger
vertical height.

I also have made small tweaks to the system theme colors to use
the brand colors as recommended on page 5 of the logo usage
guidelines document avalible at
openwrt/branding/blob/master/openwrt-styleguide.pdf

Signed-off-by: Quentin Baker <[email protected]>
(cherry picked from commit b0f13efa9ce45e7b0ad096e0c1bd5e55bec23b8e)

3 years agoluci-material-theme: replace margin by gap in ifacebadge
Miguel Angel Mulero Martinez [Wed, 4 May 2022 08:53:35 +0000 (10:53 +0200)]
luci-material-theme: replace margin by gap in ifacebadge

Material is a "flex" theme. Better to use "gap" in place of "margin" to
add some space between elements inside "flex" elements.

This fixes the problem specially when there are text elements inside the
"flex" and don't hurt when there are images.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit 1cd615787a648e3a8fda5d8c20b38b42a62a6d16)

3 years agoluci-material-theme: fix localizated left menu
Miguel Angel Mulero Martinez [Mon, 2 May 2022 07:47:36 +0000 (09:47 +0200)]
luci-material-theme: fix localizated left menu

The latest fix to fix the logout worked, but it was not applied to all
the resolutions, and I have observed the same problem exists for the
dasboard optional component.
Looking at the code, it seems only the components without submenu, have the
data-title element, so this fix modifies the style for all of them, not
relying on the position or text content.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit 56aeaa8ac8b2a8a9864f3c8290fb10c39ed3173a)

3 years agoluci-material-theme: align text buttons center
Miguel Angel Mulero Martinez [Sun, 1 May 2022 07:23:04 +0000 (09:23 +0200)]
luci-material-theme: align text buttons center

The text inside the buttons is aligned to the top. This change mades
it aligned to the center.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit 9e73a04adbff4dcebd643400da689291b8320d74)

3 years agoluci-material-theme: make control-group flex
Miguel Angel Mulero Martinez [Sat, 30 Apr 2022 08:36:22 +0000 (10:36 +0200)]
luci-material-theme: make control-group flex

The control-group div does not flex. The buttons overflow the screen.

This change mades them flex.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit 17ddeb7b579160b5367047bbfaa079090090b888)

3 years agoluci-material-theme: align td text width 33%
Miguel Angel Mulero Martinez [Sat, 30 Apr 2022 07:57:02 +0000 (09:57 +0200)]
luci-material-theme: align td text width 33%

The CSS applies a different padding for td elements with 33% width. This
misaligns the text from this td to the others td.

This change modifies the CSS to apply the same padding to all of the
sibling td.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit 3333fd6695cbd2e7a6055f01542242a3b7c111ec)

3 years agoluci-material-theme: adjust data-title for logout
Miguel Angel Mulero Martinez [Fri, 29 Apr 2022 22:32:58 +0000 (00:32 +0200)]
luci-material-theme: adjust data-title for logout

The data-title attribute style depends on the content in the css rule.
When translated to other language, the css rule fails.
This change uses the position and not the content to apply the style.

Signed-off-by: Miguel Angel Mulero Martinez <[email protected]>
(cherry picked from commit f8e52aa85d305a73a276b45805d758ba20d759fe)

3 years agoluci-theme-material: fix size of progressbar text
Miguel Angel Mulero Martinez [Fri, 29 Apr 2022 14:32:58 +0000 (16:32 +0200)]
luci-theme-material: fix size of progressbar text

The text of the progressbar is bigger than the progressbar height. This removes the font-size element that produced that.

Signed-off-by: Miguel Angel Mulero <[email protected]>
(cherry picked from commit 35fb253adb482d1f485245b0f8858b6713a99151)

3 years agoluci-base: ui: resolve aliases and rewrites on obtaining menu node children
Jo-Philipp Wich [Thu, 28 Apr 2022 14:06:25 +0000 (16:06 +0200)]
luci-base: ui: resolve aliases and rewrites on obtaining menu node children

Extend LuCI.ui.menu.getChildren() to resolve aliases and rewrites prior to
returning the menu nodes. This allows aliasing entire menu trees instead of
just single pages.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab)

3 years agoluci-app-advanced-reboot: Add support for Linksys EA7500 v2
Russell Morris [Wed, 20 Apr 2022 23:35:05 +0000 (18:35 -0500)]
luci-app-advanced-reboot: Add support for Linksys EA7500 v2

Signed-off-by: Russell Morris <[email protected]>
(cherry picked from commit d56f6bb3af6ed02b587cc3c69eb94b9e0ed8d109)

3 years agoluci-app-rp-pppoe-server: use netlist template
Daniell Crossman [Wed, 20 Apr 2022 08:09:40 +0000 (16:09 +0800)]
luci-app-rp-pppoe-server: use netlist template

pppoe-server init script is expecting an interface name,
not a physical device name in the pppoe config.

Signed-off-by: Daniell Crossman <[email protected]>
(cherry picked from commit f2eb7275249d3e0c5cf5cc21ec77bab885ad19ff)

3 years agoluci-mod-system: mount sections are always mounted unless they are explicitly not...
Florian Eckert [Tue, 12 Apr 2022 11:01:14 +0000 (13:01 +0200)]
luci-mod-system: mount sections are always mounted unless they are explicitly not mounted

fixes #4862

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

3 years agoluci-base: ucitrack: fix broken affects logic
Jo-Philipp Wich [Wed, 30 Mar 2022 12:09:10 +0000 (14:09 +0200)]
luci-base: ucitrack: fix broken affects logic

Changes on a given configuration should trigger change events on affected
configurations, not the other way around.

Fixes: #5745
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 71106351344ea390e0f510e3f9ad34685bacc1ee)

3 years agoluci-app-openvpn: fix openvpn config corruption on upload
Anna Tikhomirova [Sat, 19 Mar 2022 23:24:42 +0000 (02:24 +0300)]
luci-app-openvpn: fix openvpn config corruption on upload

Signed-off-by: Anna Tikhomirova <[email protected]>
(cherry picked from commit 64b80b8f118753930357a236ce96ed5e4d720cda)

3 years agoluci-app-ddns: gracefully handle missing control file
Jo-Philipp Wich [Thu, 20 Oct 2022 08:13:38 +0000 (10:13 +0200)]
luci-app-ddns: gracefully handle missing control file

In case `pcall()` fails, `ctrl` will contain an error message.

Fixes: 3395656b9f ("luci-app-ddns: get rid of luci-lib-ipkg depdency")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 74283264a34083725a71a0f62de423a514efa402)

3 years agoluci-app-ddns: get rid of luci-lib-ipkg depdency
Jo-Philipp Wich [Thu, 20 Oct 2022 08:07:21 +0000 (10:07 +0200)]
luci-app-ddns: get rid of luci-lib-ipkg depdency

Invoking opkg to obtain the installed package version is very slow and
resource intensive, parse the related control file directly to avoid
the extraneous dependency and resource consumption.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 3395656b9f687fd5e071a7805e0ba4c83f62906d)

3 years agoluci-app-ddns: string fix
Paul Dee [Tue, 18 Oct 2022 22:48:51 +0000 (00:48 +0200)]
luci-app-ddns: string fix

Attempts to address issue #6028
Also made proximate strings more clear.

Signed-off-by: Paul Dee <[email protected]>
(backported from commit 3f81a06c0aeef198f6f5dc73d78ea24716ba3b5d)

3 years agoMerge pull request #6127 from stangri/openwrt-22.03-luci-app-pbr
Stan Grishin [Sun, 4 Dec 2022 17:55:44 +0000 (10:55 -0700)]
Merge pull request #6127 from stangri/openwrt-22.03-luci-app-pbr

[22.03] luci-app-pbr: initial commit

3 years agoluci-app-pbr: initial commit
Stan Grishin [Sat, 3 Dec 2022 02:32:45 +0000 (02:32 +0000)]
luci-app-pbr: initial commit

Depends on https://github.com/openwrt/packages/pull/20010

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

3 years agoMerge pull request #6122 from stangri/openwrt-22.03-luci-app-simple-adblock
Stan Grishin [Fri, 2 Dec 2022 19:19:41 +0000 (12:19 -0700)]
Merge pull request #6122 from stangri/openwrt-22.03-luci-app-simple-adblock

[22.03] luci-app-simple-adblock: localizable error/warning messages

3 years agotimezone data: update to 2022g
Hannu Nyman [Thu, 1 Dec 2022 19:52:22 +0000 (21:52 +0200)]
timezone data: update to 2022g

Update timezone data to 2022g.

* https://mm.icann.org/pipermail/tz-announce/2022-November/000076.html

- In the Mexican state of Chihuahua, the border strip near the US
  will change to agree with nearby US locations on 2022-11-30.
  The strip's western part, represented by Ciudad Juárez, switches
  from -06 all year to -07/-06 with US DST rules, like El Paso, TX.
  The eastern part, represented by Ojinaga, will observe US DST next
  year, like Presidio, TX.
- A new Zone America/Ciudad_Juarez splits from America/Ojinaga.

- Much of Greenland, represented by America/Nuuk, stops observing
  winter time after March 2023, so its daylight saving time becomes
  standard time.

Signed-off-by: Hannu Nyman <[email protected]>
[adapt the commit in master, lua instead of ucode]