14623 Commits

Author SHA1 Message Date
Florian Eckert
7d913b9976 luci-app-dockerman: update I18n
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-04-19 16:27:34 +02:00
Florian Eckert
0e664b6c56 luci-app-dockerman: revised the information for the individual page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit ad05a0187bb9b03ba5ac9df27159f54521e15e18)
2021-04-19 16:26:45 +02:00
Florian Eckert
cef2ac7942 luci-app-dockerman: move docker uci configuration to own page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a9b196edafe4c751dbdb45937c76ad7a3a7abe38)
2021-04-19 16:26:35 +02:00
Florian Eckert
f6ec2b545b luci-app-dockerman: if remote_endpoint is selected a port must be set
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 483f1005b1f635fd6ccf92b6fc0c1df5755280de)
2021-04-19 16:26:29 +02:00
Florian Eckert
fa69377ad3 luci-app-dockerman: if remote_endpoint is selected a host must be set
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 2ffdf1988ee972933bd59ef975a374ec22f481bd)
2021-04-19 16:26:23 +02:00
Florian Eckert
4b4850ead6 luci-app-dockerman: add datatype and detail info for remote_host option
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit f406004c9c6c547918a099241d2f4e56f8180e8e)
2021-04-19 16:26:16 +02:00
Florian Eckert
48d8a1a732 luci-app-dockerman: add log_level i18n translation
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 0e29a0ecc686c0c19e9a1964e60b687844fd517b)
2021-04-19 16:26:10 +02:00
Florian Eckert
31abfc71ee luci-app-dockerman: do not set log_level for dockerd default setting
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 36869ffd2b9cf98066ce57e3cc98608b9e2ec9a0)
2021-04-19 16:26:04 +02:00
Florian Eckert
b03a826846 luci-app-dockerman: do not preset value selection
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 9fd127869896ccf8e8e587c0eb43222fe71c9cfa)
2021-04-19 16:25:58 +02:00
Florian Eckert
e88a046c1e luci-app-dockerman: set examle registry url as placeholder
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit ec564ddf6b0858a04699716eb68a8f91dba27f67)
2021-04-19 16:25:52 +02:00
Florian Eckert
a0d1d9f0fb luci-app-dockerman: remove setting default bip option
If no bip option is set, then the default configuration of dockerd should
be used. The option does not need to be set explicitly.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a9fe74d8fb7d599a00cf5dd64c736721f0698bf7)
2021-04-19 16:25:46 +02:00
Florian Eckert
e23eec581b luci-app-dockerman: removal of the option socket_path
This option is for debug purposes only. It makes no sense to offer this
option to the user. Especially as it is not used for a remote
connection.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 63c5cb56142d09c650dfabc873db55b598f09caa)
2021-04-19 16:25:37 +02:00
Dirk Brenken
0cdf59d845
luci-app-adblock: sync with adblock 4.1.1
* support new RPZ-Trigger 'RPZ-CLIENT-IP' (currently bind only)
* Reporting tweaks/mailing
* cosmetics
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-04-18 21:07:37 +02:00
Hannu Nyman
30ca1dbae5 treewide: Backport translations - i18n
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-04-17 19:21:32 +03:00
Dirk Brenken
a307abc9d6 luci-mod-network: fix xhtml markup
* fix markup in interfaces.js (#4980)

Signed-off-by: Dirk Brenken <dev@brenken.org>

(Adapted from commit 2617fcdc631d0b504abdb27bb17d44f26c230cda
 by taking only the .js part.)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-04-17 19:15:57 +03:00
Paul Dee
3a9ebc537f luci-mod-network: Introduce new RA and NDP params with help-text.
New: Router Advertisement parameters and accompanying help-text.
New: 3 additional NDP options and accompanying help-text.

Until now, some of the IPv6 settings are mysterious. They are now
clarified. The information is accessible to IPv6 beginners.

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
(cherry picked from commit 504bdb23fbaff28cc31cc1dd2408a9f1cd5eddde)
2021-04-17 19:13:52 +03:00
Paul Dee
c649db4f23 luci-mod-network: Add help text for many existing odhcpd IPv6 parameters
and Global network options ULA.

Relocated the "DHCPv6 Mode" to below RA-Service: DHCPv6-Mode is actually
ra_management in disguise. Better grouping.

Until now, some of the IPv6 settings are mysterious. They are now
clarified. The information is accessible to IPv6 beginners.

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
(cherry picked from commit 988c98bdc6b30a1d9fb17e1ba4444d0beb236b8a)
2021-04-17 19:13:40 +03:00
Jo-Philipp Wich
06dd6b521d luci-base: form.js: fix AbstractValue.textvalue() for uci list options
Serialize the uci list value into a space separated string before passing
it to String.format() for HTML escaping. Without that change, empty strings
were returned whenever the underlying uci get operation yieled an array.

Fixes: #4993
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5c792aefc744d1417fc9e24cfb92cd61cf8a651f)
2021-04-16 17:32:47 +02:00
Ptilopsis Leucotis
93c869efe1 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>
(cherry picked from commit 57839f183b9e019c792c7e185174e4be73890c7b)
2021-04-13 19:12:59 +03:00
Eneas U de Queiroz
49d2a94ebd luci-app-xlc: don't build package for arc
lxc does not build on arc.  Since luci-app-xlc selects lxc, it needs to
check @!arc first.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit c6d196cc82d75fe47fd48bb107b9cf9f3df6d6a6)
2021-04-13 19:12:42 +03:00
Alexander Egorenkov
a953870b3b luci-app-transmission: fix '&nbsp' exception in OpenWrt theme
Convert '&nbsp;' to '&#160;' which is both syntactically correct (semicolon present) and XHTML compliant.

Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
(cherry picked from commit afd096edfcd5669510702b47c964ba75d698d5af)
2021-04-13 19:12:34 +03:00
Stan Grishin
9a135ae4b3
Merge pull request #4975 from stangri/21.02-luci-app-simple-adblock
[21.02] luci-app-simple-adblock: bugfix: crash when dnsmasq.ipset selected
2021-04-11 09:38:48 -07:00
Stan Grishin
4f7ccf0d85 luci-app-simple-adblock: bugfix: crash when dnsmasq.ipset selected
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-04-10 18:45:01 +00:00
Jo-Philipp Wich
3fff72a3f5 luci-app-commands: prevent page reload on invoking command actions
Fixes: f117b7f ("luci-app-commands: use <button> elements")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 36959dc0d10bd012f35c51bf8a6b88ce6c5853a2)
2021-04-09 14:37:03 +02:00
Jo-Philipp Wich
99a089f81b luci-app-commands: use <button> elements
Use <button> instead of <input type=button> elements to fix compatibility
with OpenWrt 2020 theme.

Ref: https://github.com/openwrt/luci/issues/4972
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f117b7f1ec3b582aeed524093afc06dd5eb15127)
2021-04-09 14:31:06 +02:00
Jo-Philipp Wich
6137c9ff33 luci-theme-openwrt-2020: honor CSS definitions passed by views
Legacy Lua views might declare a global `css` variable to inject custom
styles into the template header. Support this mechanism in the OpenWrt 2020
theme as well.

Ref: https://github.com/openwrt/luci/issues/4972
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c5ff3244e92f267e3b7410b3196615f5fec75051)
2021-04-09 14:31:06 +02:00
Jo-Philipp Wich
7bb2fc4913 luci-compat: update markup for CBI TableSections
Update legacy CBI markup to use actual table, tr, th and td elements
instead of using div element corresponding table classes.

Fixes compatibility with OpenWrt 2020 theme.

Ref: https://github.com/openwrt/luci/issues/4972
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2155868175fdf1de273cafc0b37b1b9fd5900b04)
2021-04-09 14:31:06 +02:00
Hannu Nyman
8cdf93e876 treewide: i18n - backport translations from master
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-04-09 11:40:47 +03:00
Henrique de Moraes Holschuh
a8c960c5b6 luci-mod-system: implement system.description, system.notes
Implement two new text "options" for UCI system config, intended to
help humans describe the device.

"system.description" is a short, single-line description suitable for
selector UIs in remote administration applications, or remote UCI (over
ubus RPC), etc.  It would also be suitable as a default for LLDP/SNMP
"system description".

"system.notes" is a multi-line, free-form text field that can be used in
any way the user wishes, e.g. to hold installation notes, or unit serial
number and inventory number, location, etc.

Signed-off-by: Henrique de Moraes Holschuh <henrique@nic.br>
2021-04-06 23:20:57 +03:00
Jo-Philipp Wich
d627abeff2 luci-app-dawn: fix custom markup
- Properly indent HTML markup
 - Replace div-based table markup with actual tables
 - Escape SSID, hostname and interface values to prevent potential XSS

Fixes: #4942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 32f0ff25a2ef28b58eae62688ecdb9d23dc91df0)
2021-03-29 11:52:21 +02:00
Jo-Philipp Wich
adcc2ef446 luci-base: ui.js: fix UICheckbox widget operation when tooltips are set
When a tooltip is rendered for a checkbox widget, an additional node is
placed after the checkbox label element, breaking DOM selectors in
bind(), isChecked(), setValue().

Apparently the functionality was never actually tested.

Fixes: #4938
Fixes: e951236e3 ("luci-base: add tooltip handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 95b5c6cd6464d11d6baa22bcf2c9469847353813)
2021-03-29 11:28:15 +02:00
Philip L. McMahon
b60b838027 luci-app-statistics: remove rrd path triple escape
Fixes rendering errors when RRD file names contain IPv6 addresses and the
colon (":") characters are triple escaped.

Adapts the Lua-specific fix in #4340 to Javascript.

Signed-off-by: Philip L. McMahon <philip.l.mcmahon@gmail.com>
(cherry picked from commit d44302b3ac7a5f687c4a2bb6707cc3d922651f82 of PR #4358)
2021-03-27 11:06:42 +02:00
Hannu Nyman
0907151172 treewide: Backport translations and sync
Backport translations from master

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-27 11:00:11 +02:00
Stan Grishin
9cf8f15fae
Merge pull request #4943 from stangri/21.02-luci-app-vpnbypass
[21.02] luci-app-vpnbypass: client-side rendering
2021-03-24 22:27:28 -07:00
Stan Grishin
5db241b2b5 luci-app-vpnbypass: client-side rendering
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-03-25 05:26:22 +00:00
Florian Eckert
73b420b09c luci-app-watchcat: sync i18n because of javascript porting
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-03-22 08:56:05 +01:00
Florian Eckert
e3686d5e9b luci-app-eoip: fix i18n for en
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-03-22 08:53:14 +01:00
Florian Eckert
8619c8b97f
Merge pull request #4932 from TDT-AG/pr/20210318-openwrt-21.02-luci-app-watchcat
luci-app-watchcat: add support for new features and convert to JavaScript
2021-03-22 08:48:23 +01:00
Florian Eckert
7bc377f67c luci-app-watchcat: change interface selection to device
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 3d48d7932136defa459766940ebe3cd153a8cf98)
2021-03-22 08:46:57 +01:00
Florian Eckert
1e99df56df luci-app-watchcat: fix render fails with XHTML themes
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 0e19741553e672188a7b21f295243d0dbf6e7c64)
2021-03-22 08:46:43 +01:00
Jo-Philipp Wich
6639e31a06 luci-app-opkg: fix parsing empty package repository indexes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3bcbcbf0889142ca19b893f41318963b69de90ab)
2021-03-20 17:16:38 +01:00
Paul Spooren
d7568b43ff luci-app-attendedsysupgrade: sync with master branch
Use new LuCI JavaScript code instead of a mix of Lua and JS.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-03-18 10:31:02 -10:00
Nicholas Smith
43d644db35 luci-app-watchcat: add support for new features and convert to JavaScript
Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
(cherry picked from commit d5c763ee1dc3f90ae3f493400895440f4082c4b4)

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Remove po file changes. Does not apply clean. To many changes.
2021-03-18 12:55:26 +01:00
Rui Salvaterra
556353f2d5 luci-mod-system/zram: remove zram_comp_streams
Zram uses per-CPU compression streams [1]. This is a no-op.

[1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=116191eddf9d8ddba61de788824dea442b265936

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
(cherry picked from commit 4bf84e29eaab32f97f54facd754c1969d9dde9a5)
2021-03-14 14:38:28 +02:00
Rui Salvaterra
8d90ebaba9 luci-mod-system/zram: replace deflate with zstd
Deflate is just too slow for zram. Replace it with zstd, which is much faster at
similar compression ratios.

As a side note, this is an ugly hack. We're hard-coding compression algorithms
which might not be available in the system. The availability should be parsed
from /sys/block/zram0/comp_algorithm.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
(cherry picked from commit 02cadf67b23806b37ea71c0a16459876817b337b)
2021-03-14 14:37:13 +02:00
Dirk Brenken
c3b95818fe
luci-app-banip: sync with 0.7.5
* change the wording for black- and whitelist (domain names now
  supported as well as input for IPsets
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-03-14 06:57:31 +01:00
Hannu Nyman
4f905e16cc treewide: i18n translation backport and sync
Backport translations from master and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-13 09:42:16 +02:00
Stan Grishin
a73ea05dbe
Merge pull request #4907 from stangri/21.02-luci-app-vpn-policy-routing
[21.02] luci-app-vpn-policy-routing: explicit package version
2021-03-12 19:06:21 -08:00
Stan Grishin
61cae0342c
Merge pull request #4904 from stangri/21.02-luci-app-simple-adblock
[21.02] luci-app-simple-adblock: explicit package version
2021-03-12 19:06:02 -08:00
Stan Grishin
1ce58d4583
Merge pull request #4901 from stangri/21.02-luci-app-https-dns-proxy
[21.02] luci-app-https-dns-proxy: explicit package version
2021-03-12 19:05:44 -08:00