Commit graph

14936 commits

Author SHA1 Message Date
Stan Grishin
3ce911235f luci-app-https-dns-proxy: massive providers update
* introduce 31 new providers
* uniform names (FQDNs) in provider files
* other minor fixes

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit fae45215aa)
2022-01-03 00:43:44 +00:00
Hannu Nyman
fc3aa657c4 treewide: Backport translations - i18n
Sync translations and backport from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-12-31 12:54:33 +02:00
Stan Grishin
0818d835ca
Merge pull request #5620 from stangri/openwrt-21.02
[21.02] luci-app-https-dns-proxy: add AhaDNS and minor fixes
2021-12-28 14:44:34 -08:00
Stan Grishin
af67bd9ace luci-app-https-dns-proxy: add AhaDNS and minor fixes
* Add AhaDNS: thanks to @Jefe777 (account now deleted) and their PR at
  https://github.com/openwrt/luci/pull/5612
* Update email addresses
* Add missing new line to ControlD files
* Add RPCD reload to uci-defaults file

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit da3bb1e80b)
2021-12-28 22:42:57 +00:00
Jo-Philipp Wich
b3cd473517 luci.js: remove unsafe fallback code from dom.parse()
Do not fallback to .innerHTML if DOMParser() failed for whatever reason.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63d9bcb682)
2021-12-23 17:10:18 +01:00
Jo-Philipp Wich
db88156dff luci-base: form.js: do not execute embedded script code in stripTags()
Instead of relying on .innerHTML which executes embedded script code to
parse a given HTML fragment, use dom.parse() which utilizies DOMParser()
internally in order to extract textContent in a safe manner.

Fixes: FS#4199
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=4199
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 993151504e)
2021-12-23 17:10:18 +01:00
Hannu Nyman
eaad9d920b treewide: i18n - backport translations
Backport translations from master. Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-12-18 09:59:57 +02:00
Claudio Mezzasalma
b5a40b3a98 luci-app-ddns: Fix Domain Tooltip in ddns form
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@gmail.com>
(cherry picked from commit 6d782d2bd2)
2021-12-15 10:15:42 +01:00
Hannu Nyman
06a2913d1d treewide: Backport translations from master - i18n
Backport and sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-12-10 19:15:18 +02:00
Florian Eckert
61cc3b1c99
Merge pull request #5576 from BKPepe/login-syslog
[21.02] luci-base: send failed/successfull login to syslog
2021-12-06 14:36:12 +01:00
Hannu Nyman
2e5b2abe97 luci-app-statistics: re-order CPU utilization graph classes
Reorder the CPU utilization classes to be in a more logical order
(from hardware toward user) instead of alphabetical order.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit f4dd8b6413)
2021-12-04 21:24:48 +02:00
Jo-Philipp Wich
285c5899ce luci-app-transmission: make menu node depend on corresponding ACL
Fixes: #5577
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2ef810062b)
2021-12-04 00:23:10 +01:00
Jan Pavlinec
ae0c92af2a
luci-base: send failed/successfull login to syslog
Note: This change is relevant for systems that don't
use uhttpd for LuCI.
This log can be later used for fail2ban etc.

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
(cherry picked from commit be8d749599)
2021-12-03 23:27:39 +01:00
Jo-Philipp Wich
5091496ea3 luci-mod-network: fix loading ra_mtu and ra_hoplimit options
Fixes: #5565
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d19d717de2)
2021-12-01 23:20:27 +01:00
Jo-Philipp Wich
ecc3c03e25 luci-mod-network: allow IPv6 dns, dns_service and domain for RA only mode
Fixes: #5564
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5f98f8cac4)
2021-12-01 23:20:27 +01:00
Hannu Nyman
d63d9c54f5 luci-app-statistics: increase default amount of data items in RRD
Increase the default number of data items in the RRD database
from 144 to 288. This leads to smaller summarising/averaging periods,
visible especially in the day & week graphs. The averaging intervals
will be: 30s, 5min, 35min, 2h35min, 1d6h30min

(Note: this change only applies in a live router if the RRD database is
empty. E.g after reboot or after emptying the RRD database dir.)

Reference to discussion at #4065

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit c21c6668ed)
2021-11-28 20:26:30 +02:00
Hannu Nyman
deeb842434 treewide: i18n backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-11-27 09:24:05 +02:00
Jo-Philipp Wich
7f37a5840b luci-base: cbi.js: properly handle falsy values in cbi_update_table()
Fixes: #5544
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e982c05671)
2021-11-23 19:12:41 +01:00
Stan Grishin
f3611f1973
Merge pull request #5534 from stangri/openwrt-21.02
[21.02] luci-app-https-dns-proxy: Add HE.net DNS
2021-11-20 12:26:31 -08:00
Paul Dee
21ac6be5ac luci-app-https-dns-proxy: Add HE.net DNS
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
(cherry picked from commit a25d56c28d)
2021-11-20 20:25:11 +00:00
Josef Schlehofer
b9a31683bd luci-app-rosy-file-server: drop
This package was marked as broken [1], so it's time to remove it.
As package rosy-file-server will be dropped soon [2].

Reasons:
1. it's broken (and package requires LuCI, which was marked as broken,
   thus it is useless)
2. maintainer is inactive
3. maintainer's company does not seem to work.

[1] 34b682afac
[2] https://github.com/openwrt/packages/pull/17031

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit ec5e336e55)
2021-11-20 16:43:34 +02:00
Hannu Nyman
ca98f879c8 treewide: backport Danish translations
Backport Danish translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-11-20 11:28:12 +02:00
Hannu Nyman
6d2dde4835 translation: add Danish to luci.mk
Define Dansk/Danish language in luci.mk.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 887d8a8fd0)
2021-11-20 10:22:39 +02:00
Hannu Nyman
f2d9c4039b treewide: Backport translations - i18n
Backport translations and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-11-20 10:19:36 +02:00
Jo-Philipp Wich
0cee46bc63 luci-theme-bootstrap: don't overwrite theme selection upon install
Revert to the previous uci-defaults behaviour of only setting the
selected theme to Bootstrap if the Bootstrap entry didn't exist yet
in the configuration.

Ref: https://forum.openwrt.org/t/luci-theme-behaviour-change/112047
Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0bc09cc749)
2021-11-16 13:20:46 +01:00
Hannu Nyman
1965682047 treewide: Backport i18n translations
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-11-11 21:42:14 +02:00
Jo-Philipp Wich
e1ccb6621c luci-base: network.js: ignore wireless ifname patterns on retrieving devices
Only treat the given identifier as Linux netdev name if we can find a
corresponding entry in the device info cache and do not consider strings
starting with "wlan", "ath" or "wl" to be existing devices.

This fixes incorrectly adding wireless sections as ifnames to network
interfaces when the wifi-iface section name begins with one of the
`iface_patterns_wireless` patterns.

Fixes: #5069
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d4092b15ce)
2021-11-10 11:57:59 +01:00
Jo-Philipp Wich
47026f54ca luci-base: tools.widgets: adjust zone selector dropdown markup
No functional changes but required for styling rules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7fba52de91afc60a49345a75b805ff73f18f6f26)
2021-11-08 20:45:34 +01:00
Jo-Philipp Wich
3eac573e21 luci-app-firewall: adjust zone badge markup
No functional changes but required for styling rules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 01eb86f4fc105514f67fbefbcd2ac180e02ab78b)
2021-11-08 20:38:47 +01:00
Jo-Philipp Wich
4745991a31 luci-app-opkg: fix filter reset link action
Fixes: #5497
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 02398a3383)
2021-11-08 20:24:08 +01:00
Jo-Philipp Wich
6df9ae0234 luci-theme-bootstrap: light/dark mode releated CSS fixes
- Fix progress bar shadow in light mode
 - Fix color schema preference in light and dark modes

Fixes: #5498
Fixes: #5499
Fixes: ed86f03a9f ("luci-theme-bootstrap: add explicit dark/light mode selection")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f16a2f3fba)
2021-11-08 09:58:57 +01:00
Jo-Philipp Wich
c14cac4eb9 luci-theme-bootstrap: add explicit dark/light mode selection
Register two further "virtual" themes called BootstrapDark and
BootstrapLight which force dark and light mode respectively.

The actual Bootstrap theme itself will continue to auto-select
dark mode preference based on OS/Browser preference settings.

Fixes: #5492
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ed86f03a9f)
2021-11-07 11:07:10 +01:00
Martin Schitter
433816e9bd luci-app-statistics: trivial fix of wrong varible name
Signed-off-by: Martin Schitter <ms+git@mur.at>
[Fixed the commit title]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit b0279f474e)
2021-11-05 20:31:48 +02:00
Jo-Philipp Wich
388dae96c7 luci-mod-system: add missing require to none led trigger class
Also convert ES6 to ES5 syntax while we're at it.

Fixes: #5476
Fixes: 5b42cd5b46 ("luci-mod-system: move default option from defaul-on trigger to none trigger")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fceabd7446)
2021-11-01 21:42:47 +01:00
Hannu Nyman
f28aaa35cd timezone data: update to 2021e
Update timezone data to 2021e.

http://mm.icann.org/pipermail/tz-announce/2021-September/000066.html
* Jordan now starts DST on February's last Thursday.
* Samoa no longer observes DST.
* Rename Pacific/Enderbury to Pacific/Kanton.

http://mm.icann.org/pipermail/tz-announce/2021-October/000068.html
* Fiji will suspend observance of DST for the 2021/2022 season.

http://mm.icann.org/pipermail/tz-announce/2021-October/000069.html
* Palestine will fall back 10-29 (not 10-30)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 0740023a3c)
2021-10-28 21:29:56 +03:00
Florian Eckert
7a677b1fde luci-mod-system: move default option from defaul-on trigger to none trigger
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 5b42cd5b46)
2021-10-28 15:49:39 +02:00
Jo-Philipp Wich
b4aeac7262 rpcd-mod-luci: parse prefix size from DHCPv6 leases
Remember the prefix size when parsing odhcpd lease entries and expose
it in the ip6addrs array.

Fixes: #4345
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4424424366)
2021-10-26 19:41:04 +02:00
Hannu Nyman
5624b5c2e4 treewide: i18n - Backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-26 18:09:56 +03:00
Jo-Philipp Wich
dba8eae1bc
Merge pull request #5460 from PolynomialDivision/21-02-dawn 2021-10-26 09:10:24 +02:00
Nick Hainke
ae446ce190 luci-app-dawn: remove page for steering options
The luci-app-dawn is blocking the PR to be merged:
https://github.com/openwrt/packages/pull/16299

Remove the configuration page and set appropriate standard values.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 4a78122246)
2021-10-26 08:39:06 +02:00
Jo-Philipp Wich
a706a9c867 luci-theme-bootstrap: work around csstidy bug
Ref: 26047fb967 (commitcomment-58638390)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 37e40e04ef)
2021-10-25 23:59:42 +02:00
Paul Dee
d24760e60a luci-theme-bootstrap: fix overlay display failures
Fixed overlay display failures for users on mobile, or users who booted
up in safe mode XD. Noticeable when vertical or horizontal real-estate
is too small for the displayed overlay.

This failure is most evident when you "edit" an interface, or display
your unsaved changes.

When content is wider than the screen view, the table hugs the (widest)
content maximally, and the overlay window becomes scrollable.

Disabled -webkit-overflow-scrolling, left, and right, because both FF
and Safari disable them as invalid anyway.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
[Merge duplicate modal declarations, remove not applicable modal
 flexbox properties]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d1035c1f69)
2021-10-25 20:59:22 +02:00
Jo-Philipp Wich
26047fb967 luci-theme-bootstrap: fix header width
Fixes: 588e24f9ca ("luci-theme-bootstrap: various tweaks and cleanups")
Ref: 588e24f9ca (r58625289)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8fc78a26da)
2021-10-25 19:40:06 +02:00
Jo-Philipp Wich
92e21ba606 luci-app-statistics: fix process graph tab captions
Plugins that provide both detail and non-detail instances led to a mismatch
between the instance list to render and the plugin instance list, causing
tab captions to be wrongly assigned.

Fixes: #5387
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e9039ae8f5)
2021-10-23 00:34:15 +02:00
Jo-Philipp Wich
13df80d429 luci-base: remove further related section types on deleting network
When removing a `config interface` section in `/etc/config/network`, drop
related `rule` and `rule6` sections too, as well as related `dhcp` sections
in `/etc/config/dhcp`.

Ref: https://forum.openwrt.org/t/grooming-etc-config/109764/7
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 63034c3607)
2021-10-22 20:37:34 +02:00
Jo-Philipp Wich
4d3de0e1bb luci-mod-network: remove related bridge-vlan sections on deleting device
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 216767f420)
2021-10-22 20:37:28 +02:00
Jo-Philipp Wich
4a6927fa67 luci-theme-bootstrap: various tweaks and cleanups
- introduce new variable --text-color-highest which results in #000/#fff
   for bright and dark modes respectively
 - drop unused navigation style rules and selectors
 - use sticky positioning for header bar and drop top margin hacks
 - use flex box layout for header bar contents
 - use uniform line-height for button elements instead of pixel paddings
 - fix too bright .cbi-value bottom border in mobile dark mode
 - avoid rendering duplicate .cbi-value bottom borders for nested sections
 - simplify header markup, get rid of unused container elements
 - use non-wrapping flex box layout for page actions, prioritize primary
   action button in automatic width calculation
 - fix border radius of ifacebox headers
 - use brightest color for log output textareas
 - fix dark mode colors for mode menu
 - use flex layout for footer

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 588e24f9ca)
2021-10-22 20:37:12 +02:00
Paul Dee
4c87f02cc0 luci-mod-network: spelling / grammar
"Setup" is a noun, the thing. "Set up" is a verbal idiom, the action.

One cannot setup a DHCP server, just as one cannot fuckup a test, or
ripup some paper. One can, however, set a DHCP server up, and one can
fuck a test up, and rip some paper up.

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit c0299e2c3d)
2021-10-22 20:36:55 +02:00
Jo-Philipp Wich
32fc8941b8 luci-base: cbi.js: use IEC 80000-13 units to format base 2 byte values
Fixes: #5354
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0a31efc858)
2021-10-22 20:36:47 +02:00
Jo-Philipp Wich
850fcaf0b9 luci-app-smartdns: explicitly require view class
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d10e3de38)
2021-10-22 20:36:31 +02:00