Commit graph

14845 commits

Author SHA1 Message Date
Stan Grishin
2e0ff79865
Merge pull request #5413 from stangri/21.02-luci-app-advanced-reboot
[21.02] luci-app-advanced-reboot: bugfix for Linksys E4200v2
2021-10-06 14:50:18 -07:00
Stan Grishin
0cccc685d6 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:48:25 +00:00
Hannu Nyman
e10e960b4d treewide: i18n - Backport translations
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-05 21:53:09 +03:00
Hannu Nyman
cb0574fc67 luci-app-statistics: Remove erroneous include from default config
Remove the unnecessary Include line from the default config.
It causes error at collectd start, as the directory is missing.
  daemon.err collectd[9722]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory

Leave the line as a comment/example.

Fixes #5373

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2c27f5c941)
2021-10-05 21:49:41 +03:00
Hannu Nyman
b39d9bf4bb luci-app-statistics: standardise newline usage
Fix newline usage in a few graph definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 12b13fe89a)
2021-09-28 23:03:54 +03:00
Stan Grishin
26308981ca
Merge pull request #5392 from ByteAndNibble/openwrt-21.02
[21.02] luci-app-https-dns-proxy: add ControlD as provider
2021-09-26 11:41:01 -07:00
Aleem Hossain
bdd7f4ddcf luci-app-https-dns-proxy: add ControlD as provider
Signed-off-by: Aleem Hossain <aleem@tectonic.it>
2021-09-26 14:54:44 +01:00
Jo-Philipp Wich
dda30fe7f5 luci-app-transmission: grant access to group and passwd files
This is required for the user and group ID dropdowns in the
configuration.

Fixes: #4697
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1d9067b271)
2021-09-24 20:10:31 +02:00
Schleifer, Werner
24471ceb3e luci-app-dawn: add missing quotation mark
Signed-off-by: Schleifer, Werner <werner.schleifer@gmx.de>
(cherry picked from commit d4ab37d9a0)
2021-09-24 19:25:30 +03:00
Jo-Philipp Wich
b613f3a2ae luci-mod-network: fix name of network.device.isolate uci option
Fixes: #5383
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e0053fe79d)
2021-09-23 17:34:41 +02:00
Hannu Nyman
efb535e5c7 treewide: i18n - Sync, backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-23 18:19:52 +03:00
Paul Spooren
4c45444f39 luci-app-attendedsysupgrade: use correct linter settings
The previous settings would use spaces which messed up things since LuCI
uses tabs everywhere.

Also removed a stray console.log

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 641bfe3967)
2021-09-15 11:27:49 -10:00
Paul Spooren
f347db0698 luci-app-attendedsysupgrade: support revision checks
SNAPSHOTS are not real releases and therefore the app always offers an
upgrade, even if running the latest build. To prevent that all SNAPSHOTS
now check for the running revision and if a newer one is available.

Also do a bunch of refactoring based on JavaScript I learned over the
last week.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit f799d550b6)
2021-09-15 11:27:49 -10:00
George Iv
aae1d349ae
luci-app-yggdrasil: Update to support v0.4.0 config
Signed-off-by: George Iv <zhoreeq@users.noreply.github.com>
(cherry picked from commit 3953b1a5b2)
2021-09-12 07:59:52 +02:00
Hannu Nyman
f24d61dd49 treewide: i18n - Backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-09 18:01:47 +03:00
Dirk Brenken
23e3d938fa
luci-app-travelmate: EAP-bugfixes
* fix numerous errors in EAP handling
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9f9247a08c)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-09-05 22:05:47 +02:00
Paul Dee
3b3c2e5f9f luci-app-firewall: add ipv6 exclusive ICMP types
fixes #5213

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit 19c66ef539)
Update commit description
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-01 07:48:42 +02:00
Vladislav Grigoryev
d9a228ec4a luci-mod-network: fix route6 source autocomplete
Fix the wrong value for the "source" option of the "route6" section.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 8b4015036d)
2021-08-31 09:00:35 +02:00
Florian Eckert
678ee038c0 luci-theme-openwrt-2020: add css success label
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a655389032)
2021-08-31 08:52:10 +02:00
Keith Irwin
71fe35ce69 luci-app-wireguard: set allowed_ips option as optional value
Signed-off-by: Keith Irwin <git@ki9.us>
(cherry picked from commit 092109c905)
fixed commit title
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-08-31 08:05:28 +02:00
Hannu Nyman
3c115cddd4 treewide: i18n - Backport translations, sync.
Sync translations.
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-08-25 20:22:45 +03:00
Paul Spooren
0a6151148e 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-23 09:28:29 -10:00
Paul Spooren
9aa5afa780 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-23 09:28:29 -10:00
Paul Spooren
0ac075009e 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-23 09:28:29 -10:00
Paul Spooren
624578d309 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-23 09:28:29 -10:00
Dirk Brenken
ed43006d9c
luci-app-travelmate: sync with travelmate 2.0.6
* a few (visual) fixes reported in the forum
* emphasize normal uplinks in blue, vpn uplinks in green
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit f1d1e752b8)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-08-22 09:19:15 +02:00
Dirk Brenken
8eb2c94e48
luci-app-travelmate: sync with travelmate 2.0.5-3
* adapt the travelmate UI to support the changed 'trm_maxscan' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit fd7494ffb1)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-08-22 09:14:54 +02:00
Vladislav Grigoryev
422c1752a6 luci-base: support loopback by widgets.NetworkSelect
Support the "loopback" interface by "widgets.NetworkSelect".
Enable the "loopback" option to include this interface.
Can be used to configure interface binding for services.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 376af36975)
2021-08-19 09:17:21 +02:00
Ansuel Smith
c3580ee68f luci-mod-system: hide unsupported option on flash.js
Hide unsupported option when /rom is not used in flash.js

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

(cherry picked from commit 82035eec61)
2021-08-18 20:46:04 +03:00
Ansuel Smith
6389826039 luci-mod-system: improve sysupgrade page
- Add missing -k and -u option from sysupgrade page.
- Fix missing check for image verification exit code
- Provide the actual reason of the image verification

Fixes: #4160

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

(cherry picked from commit 0f4f6e89f1)
2021-08-18 20:45:18 +03:00
Florian Eckert
854399a329 luci-mod-battstatus: chmod battstatus.js to 644
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 7f5751c16f)
2021-08-17 12:11:14 +02:00
Florian Eckert
630a5755ed luci-mod-battstatus: fix quotation marks
Fixes output on i18n generation:
standard input:56: warning: RegExp literal terminated too early

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 7e1e83fcb8)
2021-08-17 12:11:03 +02:00
Dirk Brenken
83d631be9d
luci-app-travelmate: sync with travelmate 2.0.5
* support new features of travelmate 2.0.5
* made the station manager more comfortable
* a few minor bugfixes
* sync translations

Signed-off-by: Dirk Brenken dev@brenken.org
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-08-13 11:35:04 +02:00
Hannu Nyman
98e8ded2a9 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:08:54 +03:00
Helge Mader
085bb7ce65 luci-proto-bonding: bugfix xmit_hash_policy dependencies
Signed-off-by: Helge Mader <ma@dev.tdt.de>
(cherry picked from commit adaf3feb65)
2021-08-10 09:48:42 +02:00
Helge Mader
843d11234f luci-proto-bonding: fix member because of API change
Signed-off-by: Helge Mader <ma@dev.tdt.de>
(cherry picked from commit 64a066c339)
2021-08-10 09:48:29 +02:00
Jo-Philipp Wich
119701cce3 luci-mod-network: fix legacy_rates option dependency
The recently introduced band option support changed the internal frequency
selector choice values, breaking the legacy rates option dependency.

Fixes: #5234
Fixes: 0829d31290 ("luci-mod-network: support newer wireless.wifi-device.band option")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fd2e755b6f)
2021-08-09 19:44:22 +02:00
Stan Grishin
5b65405337
Merge pull request #5227 from stangri/21.02-firewall
[21.02] luci-app-firewall: replace hh.mm.ss with hh:mm:ss
2021-08-04 13:24:34 -07:00
Stan Grishin
deaa1799da luci-app-firewall: replace hh.mm.ss with hh:mm:ss
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-08-04 20:20:13 +00:00
Stan Grishin
68d75022f7
Merge pull request #5217 from stangri/21.02-luci-app-https-dns-proxy
[21.02] luci-app-https-dns-proxy: update to 2021-07-29-1
2021-08-01 22:58:55 -07:00
Stan Grishin
756063c9f8 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:06 +00:00
Paul Spooren
132c72c7b7 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>
(cherry picked from commit 7f5becc69e)
2021-07-26 14:02:22 +02:00
Huangbin Zhan
f543a84c5b luci-app-attendedsysupgrade: remove depends uhttpd-mod-ubus
Remove depenedency uhttpd-mod-ubus which is not required.
User may want to work with nginx rather uhttpd.

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
(cherry picked from commit 9866bfe13c)
2021-07-26 14:02:22 +02:00
Paul Spooren
2d8cde2c72 luci-app-attendedsysupgrade: fix ACL definition
Fix the ACL file which handles the permissions for the LuCI app.

Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 02de3e4a2b)
2021-07-26 14:02:22 +02:00
Hannu Nyman
1dd9ca363d treewide: i18n - Backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-07-22 00:30:08 +03:00
Jo-Philipp Wich
de8bc46aec luci-mod-system: reload crond upon saving crontab
Fixes: #5184
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8d4ac60f7a)
2021-07-15 11:59:56 +02:00
Jo-Philipp Wich
1d6053ecd9 luci-app-acl: remove support for plaintext login passwords
Upon reviewing the rpcd session support code, it turns out that account
definitions with plaintext password values are not supported, the password
value is treated as crypt() hash/salt in any case.

Ref: https://github.com/openwrt/luci/issues/5179
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f74b06cb92)
2021-07-13 20:47:18 +02:00
Dirk Brenken
07063ae51c
luci-app-adblock: expose dns instance option
* expose the 'adb_dnsinstance' option to LuCI under
  Advanced DNS Settings (only relevant for dnsmasq)
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-07-10 16:30:02 +02:00
Anton Kikin
19331bd029 luci-app-nlbwmon: Add translation context for Download/Upload terms
Added a translation context for the terms 'Download' and 'Upload'
used in this application. The reason is that these terms are
translated differently in Russian depending on the context.

If the terms are used in the sense of an action (download file
or upload file) then the translations should be as follows:
- Download = скачать
- Upload   = загрузить

But if they are used in the context of a traffic counter (like
in this application) the correct translations are:
- Download = скачано
- Upload   = загружено

A translation context has been added to all affected PO files
to avoid breaking existing translations. The Russian translation
in PO file is fixed to comply with the used context.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit fb52e86b54)
2021-07-07 17:20:22 +02:00
Jo-Philipp Wich
f161b40e4c luci-app-sqm: only reload view once sqm enable/start completed
Chain the exec calls to enable and start the SQM service and only reload
the view once these operations are complete and return the entire promise
chain from the handler function to ensure that the busy indicator remains
active throughout the entire duration of the operation.

Also replace exec_direct() with exec() as there is no need to bypass ubus
for the init script calls.

Fixes: e76d9cc767 ("luci-app-sqm: fix JS error if service is disabled")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 005c09a293)
2021-07-07 17:20:09 +02:00