Commit graph

3196 commits

Author SHA1 Message Date
Jo-Philipp Wich
712bc8e52d luci-app-statistics: stat-genconfig: don't emit bools for absent uci options
Do not emit native collectd.conf boolean false options if the corresponding
uci option is unset in order to honour collectd's implicit defaults.

This fixes certain options, such as the memory plugins `ValuesAbsolute`,
being without effect if declared as default-enabled in the related plugin
uci forms.

Fixes: #5777
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f16037cec5)
2022-04-25 21:00:48 +02:00
Hannu Nyman
786ebc9c01 treewide: Backport translations and sync
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-04-09 19:22:08 +03:00
Hannu Nyman
ab2c5eb8fe treewide: Backport translations from master - i18n
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-03-13 18:29:52 +02:00
Hannu Nyman
36e5c1c24b treewide: Backport translations from master
Backport translations.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-02-14 22:32:05 +02:00
Jo-Philipp Wich
f3debdcfd9 luci-app-openvpn: fix stray uci permission warning
The OpenVPN file view uses a dummy Map() instance to render the breadcrumb
template which triggers a uci permission error since the view is being
rendered by a form() action which does not set up the expected permission
flags. CBI Map() instances should only be used for cbi() dispatch targets.

Solve the issue by appending the breadcrumb template directly to the
SimpleForm() instance and by removing the redundant dummy Map() instance.

Fixes: #4370
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 18b1130711)
2022-01-25 22:45:15 +01:00
Hannu Nyman
88b4c07b7b treewide: Backport i18n translations from master and sync
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-01-23 12:37:35 +02:00
Hannu Nyman
e2a873196a treewide: Backport translations from master - i18n
Backport translations.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-12-18 10:08:02 +02:00
Hannu Nyman
792c94f038 treewide: Backport i18n translations
Backport translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-19 22:25:45 +03:00
Stan Grishin
3d193a9bbe luci-app-advanced-reboot: bugfix for Linksys E4200v2
* bugfix for Linksys E4200v2
* backport updates from master

Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-10-06 21:51:59 +00:00
Hannu Nyman
15249724cf tree: remove erroneous luci-app-dawn ACL file
Remove ACL file accidentally added by ecd49247eb.
There is no luci-app-dawn in 19.07, so no ACL is needed.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-24 19:26:55 +03:00
Hannu Nyman
309cd7d507 treewide: i18n - Sync and backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-23 18:23:31 +03:00
Hannu Nyman
fc2ff4dc62 treewide: i18n - Backport and sync translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-09 18:04:57 +03:00
Paul Spooren
53f59d35cc luci-app-attendedsysupgrade: use detail not message
The new API unifies all human readable responses in the `detail` field
to follow the newly used framework.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 2a29911121)
2021-08-25 21:52:00 -10:00
Paul Spooren
1e65672ab2 luci-app-attendedsysupgrade: use latest.json
The content is the same response as for `/api/latest.json` but
statically hosted by a webserver rather than Python generated.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a672875402)
2021-08-25 21:52:00 -10:00
Paul Spooren
f9bc5da365 luci-app-attendedsysupgrade: show position in queue
The server provides a queue_position argument, show it.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 53ff7ca676)
2021-08-25 21:52:00 -10:00
Paul Spooren
dc626d506d luci-app-attendedsysupgrade: add timeout and catch
If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit ff24b78c80)
2021-08-25 21:52:00 -10:00
Paul Spooren
505b671c21 luci-app-attendedsysupgrade: fix empty array condition
In JavaScript (other than in Python) an empty array is considered `true`
within if statements. Fix this by checking for the array length rather
than its existence.

This fixes the issue of an empty dropdown menu in case the user is
running the latest release.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-08-25 21:52:00 -10:00
Hannu Nyman
b41f37739e treewide: i18n - Sync and backport translations
Sync translations.
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-08-10 22:11:52 +03:00
Stan Grishin
78a070de59 luci-app-firewall: replace hh.mm.ss with hh:mm:ss
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-08-05 01:57:02 +00:00
Stan Grishin
e259f12211 luci-app-https-dns-proxy: update to 2021-07-29-1
* add HTTP/2-only supporting providers: Mullvad, Digitale-Gesellschaft, dns.sb and Rubyfish.cn
* switch default provider from Google to Cloudflare
* add IPv6 addresses for bootstrap resolvers for Google DNS
* add secondary bootstrap resolver (Cloudflare's) to all providers with a single bootstrap resolver
* modify model/cbi file to show HTTP/2-only providers (and help texts) on HTTP/2-supporting systems

Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-07-31 10:58:13 +00:00
Paul Spooren
9eb2efd141 luci-app-attendedsysupgrade: sync with master branch
Upgrade the app to stay compatible with the running upgrade server.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-07-04 18:11:06 -10:00
Hannu Nyman
91f3929500 treewide: i18n - Backport translations from master
Backport translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-06-08 20:03:35 +03:00
Hannu Nyman
ec81a49945 treewide: backport translations i18n
Backport translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-05-08 17:09:09 +03:00
Hannu Nyman
c19c7167e3 treewide: i18n - Backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-04-17 19:09:12 +03:00
Ptilopsis Leucotis
5b28343fbe [19.07] luci-app-fwknopd: add support for ENABLE_CMD_EXEC
Add support for execution commands on the fwknopd server.

Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com>
2021-04-14 10:17:39 +03:00
Stan Grishin
bf1b37b0c2 luci-app-simple-adblock: bugfix: crash when dnsmasq.ipset selected
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-04-10 18:45:11 +00:00
Hannu Nyman
7456e2aada treewide: Backport translations and sync
Backport from master and sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-27 11:05:01 +02:00
Jo-Philipp Wich
41ab871af0 luci-app-opkg: fix parsing empty package repository indexes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3bcbcbf088)
2021-03-20 17:16:20 +01:00
Hannu Nyman
731d2e37d4 treewide: i18n backport and sync
Backport translations from master and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-13 09:45:36 +02:00
Stan Grishin
55da49fe80
Merge pull request #4908 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: explicit package version
2021-03-12 19:06:27 -08:00
Stan Grishin
b1ddaa662c
Merge pull request #4905 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: explicit package version
2021-03-12 19:06:10 -08:00
Stan Grishin
67dcd1c2d0
Merge pull request #4902 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: explicit package version
2021-03-12 19:05:50 -08:00
Stan Grishin
bad5bf8f2c luci-app-vpn-policy-routing: explicit package version
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-10 15:21:35 +00:00
Stan Grishin
2aebe454e7 luci-app-simple-adblock: explicit package version
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-10 15:20:22 +00:00
Stan Grishin
e28381b0bb luci-app-https-dns-proxy: explicit package version
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-10 15:19:28 +00:00
Stan Grishin
57d4c965e2 luci-app-advanced-reboot: explicit package version
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-10 15:10:57 +00:00
Stan Grishin
310f532e26
Merge pull request #4884 from stangri/19.07-luci-app-https-dns-proxy
[19.07] luci-app-https-dns-proxy: bugfix: layout issues on theme-openwrt-2020
2021-03-09 20:35:34 -08:00
Stan Grishin
88e19b940d
Merge pull request #4887 from stangri/19.07-luci-app-simple-adblock
[19.07] luci-app-simple-adblock: bugfix: template layout on theme-openwrt-2020
2021-03-09 20:35:15 -08:00
Stan Grishin
c079f601e3 luci-app-vpn-policy-routing: bugfix: template layout on theme-openwrt-2020
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-08 10:49:09 +00:00
Stan Grishin
3b2180b500 luci-app-simple-adblock: bugfix: template layout on theme-openwrt-2020
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-08 10:46:43 +00:00
Stan Grishin
8d6189614d luci-app-https-dns-proxy: bugfix: layout issues on theme-openwrt-2020
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-08 10:42:18 +00:00
Stan Grishin
ce2452e6e5 luci-app-vpn-policy-routing: sync with principal app
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-03 21:17:01 +00:00
Jo-Philipp Wich
c3db6905c3 luci-app-firewall: allow negative prefix lengths
Fixes: #4812
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f64b3d5094)
2021-03-01 15:19:21 +01:00
Jo-Philipp Wich
0e5057cbbb luci-app-firewall: zones.js: fix HTML display in ct helper selection
Fixes: #4845
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 154117ff05)
2021-03-01 09:14:07 +01:00
Jo-Philipp Wich
8bba34de87 luci-app-firewall: fix creating multiple networks from zone network selector
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d528da29f)
2021-03-01 08:56:25 +01:00
Hannu Nyman
aadfafadd6 treewide: i18n backport and sync translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-02-25 17:18:37 +02:00
Stan Grishin
a52d6f2a83 luci-app-https-dns-proxy: add Force DNS, IDNet support, add missing class to buttons
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-02-23 00:54:04 +00:00
Jo-Philipp Wich
e67fe6d00a luci-app-firewall: properly handle custom multi IP/MAC input
Store multiple space separated custom address values as separate uci
list items in the configuration.

Fixes: #4822
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b60be8cfd8)
2021-02-19 11:31:10 +01:00
Jo-Philipp Wich
9df7ea4d66 luci-app-ddns: fix multiple authenticated RCEs
The ddns detail model passes unsanitized values directly to sys.call() in
various places, which allows injecting arbitrary commands through a number
of fields.

Prevent that issue by quoting the values used in command invocations.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-02-17 18:18:14 +01:00
Hannu Nyman
34e0d656a4 treewide: i18n backport and sync translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-02-13 10:33:55 +02:00