Commit graph

14849 commits

Author SHA1 Message Date
Jo-Philipp Wich
e3bf521edb luci-base: ui.js: determine dropdown position relative to overflow parent
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09 21:55:43 +02:00
Jo-Philipp Wich
fb82e03635
Merge pull request #5110 from jow-/wireless-band-option
luci-mod-network: support newer wireless.wifi-device.band option
2021-06-09 19:26:04 +02:00
Lukasz Baj
c6a5c809ed luci-mod-status: fix NaN errors in realtime graphs
When I use Realtime Graphs I see following NaN errors:

    Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…".
    Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…".
    wireless.js?v=git-21.105.40538-2da37c2:19 Error: <polyline> attribute points: Expected number, "0,298 0,NaN 5,NaN 10,NaN…".
    eval @ wireless.js?v=git-21.105.40538-2da37c2:19
    Promise.then (async)
    eval @ wireless.js?v=git-21.105.40538-2da37c2:8
    step @ luci.js?v=git-21.105.40538-2da37c2:91
    start @ luci.js?v=git-21.105.40538-2da37c2:87
    add @ luci.js?v=git-21.105.40538-2da37c2:82
    pollData @ wireless.js?v=git-21.105.40538-2da37c2:7
    render @ wireless.js?v=git-21.105.40538-2da37c2:24
    Promise.then (async)
    __init__ @ luci.js?v=git-21.105.40538-2da37c2:148
    super @ luci.js?v=git-21.105.40538-2da37c2:22
    Anonymous42Class @ luci.js?v=git-21.105.40538-2da37c2:12
    (anonymous) @ luci.js?v=git-21.105.40538-2da37c2:181
    Promise.then (async)
    compileClass @ luci.js?v=git-21.105.40538-2da37c2:177
    Promise.then (async)
    require @ luci.js?v=git-21.105.40538-2da37c2:183
    instantiateView @ ui.js?v=git-21.105.40538-2da37c2:311
    (anonymous) @ wireless:47
    Promise.then (async)
    (anonymous) @ wireless:46

Signed-off-by: Lukasz Baj <l.baj@celerway.com>
[adjust subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09 11:08:36 +02:00
Jo-Philipp Wich
e13d82a202 luci-mod-network: interfaces.js: fix ifname migration in device sections
The migration code attempted to add new device sections instead of moving
the ifname option to a ports list within the existing ones.

Fixes: #5108
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09 11:01:36 +02:00
Jo-Philipp Wich
608f89429b luci-mod-network: interfaces: show bridge port device icons again
Restore the display of bridge port device icons in the interface overviews.
This feature has been lost after migrating the network config from legacy
bridge declarations to device bridge declarations.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09 10:22:38 +02:00
Jo-Philipp Wich
0829d31290 luci-mod-network: support newer wireless.wifi-device.band option
OpenWrt switched from "option hwmode" to "option band" in order to select
the frequency band to use for the radio phy.

Extend the channel selector to recognize and use an existing "option band"
to select the appropriate channel list. When operating upon a wireless
configuration still using "option hwmode", then translate it to a band
value internally and translate it back to "option hwmode" on save.

This should provide forward- and backwards compatibility with both current
OpenWrt master and older versions still using hwmode.

Fixes: #5106
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-09 10:03:54 +02:00
Jo-Philipp Wich
b35316298b
Merge pull request #5109 from hauke/striptags-from-hostname
themes: Call striptags() on hostname to prevent XSS
2021-06-09 08:48:04 +02:00
Hauke Mehrtens
5cbd79d7e3 themes: Call striptags() on hostname to prevent XSS
This calls striptags() on the hostname to prevent any XSS over the
hostname. This should fix CVE-2021-33425 as far as I understood it.

If someone adds some Javascript into system.@system[0].hostname it would
have been directly added to the page, this prevents the problem.

This can only be exploited by someone being able to modify the uci
configuration, normally a user with such privileges could also just
modify the webpage.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-06-09 01:33:44 +02:00
Hosted Weblate
da97288015 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (37 of 37 strings)

Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (25 of 25 strings)

Translation: OpenWrt/LuCI/applications/cshark
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscshark/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (108 of 108 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/zh_Hans/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (1739 of 1739 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.0% (1722 of 1739 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/

Translated using Weblate (Spanish)

Currently translated at 98.9% (1720 of 1739 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (37 of 37 strings)

Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/zh_Hans/

Translated using Weblate (Russian)

Currently translated at 39.3% (83 of 211 strings)

Translation: OpenWrt/LuCI/applications/dockerman
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/ru/

Translated using Weblate (Korean)

Currently translated at 2.7% (1 of 37 strings)

Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/ko/

Translated using Weblate (Korean)

Currently translated at 1.5% (1 of 63 strings)

Translation: OpenWrt/LuCI/applications/frps
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrps/ko/

Translated using Weblate (Korean)

Currently translated at 9.5% (9 of 94 strings)

Translation: OpenWrt/LuCI/applications/vpn-policy-routing
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvpn-policy-routing/ko/

Translated using Weblate (Korean)

Currently translated at 6.0% (4 of 66 strings)

Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/ko/

Translated using Weblate (Korean)

Currently translated at 5.7% (3 of 52 strings)

Translation: OpenWrt/LuCI/applications/ttyd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsttyd/ko/

Translated using Weblate (Korean)

Currently translated at 17.6% (3 of 17 strings)

Translation: OpenWrt/LuCI/applications/udpxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/ko/

Translated using Weblate (Korean)

Currently translated at 42.8% (3 of 7 strings)

Translation: OpenWrt/LuCI/applications/squid
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssquid/ko/

Translated using Weblate (Korean)

Currently translated at 10.1% (11 of 108 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/ko/

Translated using Weblate (Korean)

Currently translated at 15.3% (2 of 13 strings)

Translation: OpenWrt/LuCI/applications/shairplay
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshairplay/ko/

Translated using Weblate (Korean)

Currently translated at 7.4% (6 of 81 strings)

Translation: OpenWrt/LuCI/applications/shadowsocks-libev
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/ko/

Translated using Weblate (Korean)

Currently translated at 1.7% (2 of 116 strings)

Translation: OpenWrt/LuCI/applications/radicale
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/ko/

Translated using Weblate (Korean)

Currently translated at 4.8% (3 of 62 strings)

Translation: OpenWrt/LuCI/applications/ocserv
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/ko/

Translated using Weblate (Korean)

Currently translated at 6.0% (10 of 164 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/ko/

Translated using Weblate (Korean)

Currently translated at 4.1% (2 of 48 strings)

Translation: OpenWrt/LuCI/applications/mjpg-streamer
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/ko/

Translated using Weblate (Korean)

Currently translated at 1.5% (1 of 65 strings)

Translation: OpenWrt/LuCI/applications/dnscrypt-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdnscrypt-proxy/ko/

Translated using Weblate (Korean)

Currently translated at 3.5% (7 of 196 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/ko/

Translated using Weblate (Korean)

Currently translated at 4.8% (2 of 41 strings)

Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/ko/

Translated using Weblate (Korean)

Currently translated at 2.8% (5 of 173 strings)

Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/ko/

Translated using Weblate (Russian)

Currently translated at 98.7% (162 of 164 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/ru/

Translated using Weblate (Korean)

Currently translated at 10.2% (5 of 49 strings)

Translated using Weblate (Korean)

Currently translated at 2.7% (2 of 74 strings)

Translated using Weblate (Korean)

Currently translated at 2.6% (9 of 341 strings)

Translated using Weblate (Korean)

Currently translated at 18.1% (2 of 11 strings)

Translated using Weblate (Korean)

Currently translated at 1.5% (3 of 191 strings)

Translated using Weblate (Korean)

Currently translated at 6.1% (12 of 195 strings)

Translated using Weblate (Korean)

Currently translated at 1.5% (2 of 133 strings)

Translated using Weblate (Korean)

Currently translated at 14.2% (2 of 14 strings)

Translated using Weblate (Korean)

Currently translated at 8.3% (4 of 48 strings)

Translated using Weblate (Korean)

Currently translated at 75.7% (25 of 33 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translated using Weblate (Korean)

Currently translated at 25.4% (54 of 212 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (1744 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/

Translated using Weblate (Spanish)

Currently translated at 99.0% (1727 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/

Co-authored-by: 01230 <4585006@gmail.com>
Co-authored-by: Anton Kikin <a.a.kikin@gmail.com>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Sunggu Choi <dkaost@outlook.com>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: orangepizza <abnoeh@mail.com>
Co-authored-by: ywx <yangwenxiao4511@gmail.com>
Signed-off-by: 01230 <4585006@gmail.com>
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Sunggu Choi <dkaost@outlook.com>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Signed-off-by: orangepizza <abnoeh@mail.com>
Signed-off-by: ywx <yangwenxiao4511@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsntpc/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnut/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/es/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/ko/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/ko/
Translation: OpenWrt/LuCI/applications/ahcp
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/minidlna
Translation: OpenWrt/LuCI/applications/ntpc
Translation: OpenWrt/LuCI/applications/nut
Translation: OpenWrt/LuCI/applications/olsr
Translation: OpenWrt/LuCI/applications/openvpn
Translation: OpenWrt/LuCI/applications/p910nd
Translation: OpenWrt/LuCI/applications/statistics
Translation: OpenWrt/LuCI/applications/tinyproxy
Translation: OpenWrt/LuCI/applications/upnp
2021-06-07 17:48:37 +03:00
Jo-Philipp Wich
b4c394f2d2 protocols: unify TOS and TTL description strings
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 13:59:03 +02:00
Jo-Philipp Wich
28e982dcf0 luci-app-wol: resync translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 12:48:35 +02:00
Jo-Philipp Wich
e0a1067b3d luci-app-firewall: resync translations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 12:48:27 +02:00
Jo-Philipp Wich
88b9d84388 treewide: consolidate {IPv4,IPv6,MAC} {address,gateway} spellings
- Turn IPv4-Address into IPv4 address
 - Turn IPv4-Gateway into IPv4 gateway
 - Turn IPv6-Address into IPv6 address
 - Turn IPv6-Gateway into IPv6 gateway
 - Turn MAC-Address into MAC address

Also remove related duplicate translation entries.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 12:48:08 +02:00
Jo-Philipp Wich
abb76681d5 luci-base: update German base translation
Use a common nomenclature for logical network interfaces, physical
network devices, wireless networks and radio phys.

Also add missing translations for recently added strings.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 11:53:31 +02:00
Jo-Philipp Wich
b5832d134e treewide: fix "promiscious" typo
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-07 11:53:04 +02:00
Hosted Weblate
364c86c3b7 Translated using Weblate (Korean)
Currently translated at 100.0% (29 of 29 strings)

Translation: OpenWrt/LuCI/applications/acl
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/ko/

Translated using Weblate (Greek)

Currently translated at 8.1% (3 of 37 strings)

Translation: OpenWrt/LuCI/applications/sqm
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssqm/el/

Translated using Weblate (Greek)

Currently translated at 3.0% (2 of 66 strings)

Translation: OpenWrt/LuCI/applications/yggdrasil
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsyggdrasil/el/

Translated using Weblate (Greek)

Currently translated at 100.0% (12 of 12 strings)

Translation: OpenWrt/LuCI/applications/bcp38
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/el/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (1744 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 97.4% (1700 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/

Translated using Weblate (Polish)

Currently translated at 100.0% (1744 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/

Translated using Weblate (Greek)

Currently translated at 28.9% (505 of 1744 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/

Translated using Weblate (Korean)

Currently translated at 55.1% (16 of 29 strings)

Translation: OpenWrt/LuCI/applications/acl
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/ko/

Translated using Weblate (Korean)

Currently translated at 55.1% (16 of 29 strings)

Translation: OpenWrt/LuCI/applications/acl
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/ko/

Translated using Weblate (Russian)

Currently translated at 100.0% (17 of 17 strings)

Translation: OpenWrt/LuCI/applications/eoip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationseoip/ru/

Translated using Weblate (Russian)

Currently translated at 38.8% (82 of 211 strings)

Translation: OpenWrt/LuCI/applications/dockerman
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/ru/

Translated using Weblate (Russian)

Currently translated at 98.1% (161 of 164 strings)

Translation: OpenWrt/LuCI/applications/mwan3
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/ru/

Translated using Weblate (Russian)

Currently translated at 100.0% (196 of 196 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/ru/

Translated using Weblate (Russian)

Currently translated at 95.3% (103 of 108 strings)

Translation: OpenWrt/LuCI/applications/simple-adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssimple-adblock/ru/

Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: Nikolay Parukhin <parukhin@gmail.com>
Co-authored-by: Stefanos Batsios <bouzouste@hotmail.com>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: asdf1234 <cydyellowgreen@gmail.com>
Co-authored-by: thenist <p717394@gmail.com>
Signed-off-by: Eric <spice2wolf@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: Nikolay Parukhin <parukhin@gmail.com>
Signed-off-by: Stefanos Batsios <bouzouste@hotmail.com>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Signed-off-by: asdf1234 <cydyellowgreen@gmail.com>
Signed-off-by: thenist <p717394@gmail.com>
2021-06-06 18:39:38 +03:00
Hannu Nyman
b6039d0c50 luci-base: i18n - sync translations
Sync translations in luci-base.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-06-06 08:57:48 +03:00
Jo-Philipp Wich
9bd27b0bb8
Merge pull request #5095 from jow-/dhcpv6-rework
luci-mod-network: interfaces: restructure DHCPv6 and IPv6 RA options
2021-06-05 19:13:05 +02:00
Jo-Philipp Wich
e598f34e29
Merge pull request #5100 from SvenRoederer/uci-defaults
luci.mk: don't run uci-defaults scripts ourself
2021-06-05 19:12:11 +02:00
David Bauer
516c58e133
Merge pull request #5070 from blocktrron/pr-luci-wifi6
luci-mod-network: add 802.11ax HE support
2021-06-05 19:04:11 +02:00
Jo-Philipp Wich
a6c0ad00b2 luci-mod-network: allow device declarations and device configs to coexist
It is legal to have two device sections referring to the same netdev if one
section is a declaration (a section setting option type) and the other is
a configuration (a section not specifying a type but matching an existing
netdev).

Support this case in LuCI since it might be required for some complex
device setups.

Additionally, fix the device type determination for device configuration
sections without type, those should be treated as ethernet (a.k.a.
simple device) configuration instead of falling back to the underlying
netdev device type.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-05 18:41:39 +02:00
David Bauer
4b17f8baa3 luci-base: add 11ax HW / HT modes
Add the known values returned for 802.11ax HW as well as HT modes to the
respective method descriptions.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-06-05 16:24:19 +02:00
David Bauer
f35e877dc6 luci-mod-network: add 802.11ax HE support
This commit adds the ability to configure HE-modes for radios
(HE20 / HE40 / HE80 / HE160) as well as HE rate information in the
assiciation view.

Tested-on: Ubiquiti UniFi 6 Lite / LR

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-06-05 16:24:19 +02:00
David Bauer
7b11e848ac rpcd-mod-luci: support parsing 11ax HW / HT modes
Add support for parsing 11ax modes returned from UBUS. This is required
so the frontend can display information about supported 11ax operation.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-06-05 16:24:19 +02:00
Jo-Philipp Wich
3c6b59504a luci-mod-interfaces: simplify configuring MAC address of 802.1q devices
Treat not explicitly configured, preexisting VLAN interfaces as simple
network devices when adding configuration for them, since it is more
likely that people want to set general device properties such as MAC
address instead of reconfiguring ingress/egress QoS mapping, which is
the only editable property of preexisting VLAN device config dialogs.

Ref: https://github.com/openwrt/luci/issues/5102
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-05 16:17:37 +02:00
Sven Roederer
70631277db
luci.mk: don't run uci-defaults scripts ourself
Do not run the uci-defaults scripts of a package in the package-postinst, but leave this
for the default_postinst() of the OpenWrt base-files package.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-06-04 23:04:37 +02:00
Hosted Weblate
1bfeec6994 Translated using Weblate (Polish)
Currently translated at 100.0% (1715 of 1715 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/

Translated using Weblate (Russian)

Currently translated at 100.0% (1715 of 1715 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/

Translated using Weblate (Bulgarian)

Currently translated at 0.4% (1 of 211 strings)

Translation: OpenWrt/LuCI/applications/dockerman
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdockerman/bg/

Translated using Weblate (Bulgarian)

Currently translated at 3.5% (1 of 28 strings)

Translation: OpenWrt/LuCI/applications/vnstat2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsvnstat2/bg/

Translated using Weblate (Bulgarian)

Currently translated at 2.3% (40 of 1715 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/bg/

Translated using Weblate (Bulgarian)

Currently translated at 2.4% (2 of 81 strings)

Translation: OpenWrt/LuCI/applications/shadowsocks-libev
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/bg/

Translated using Weblate (Bulgarian)

Currently translated at 8.3% (6 of 72 strings)

Translated using Weblate (Bulgarian)

Currently translated at 0.5% (1 of 196 strings)

Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/bg/

Translated using Weblate (Bulgarian)

Currently translated at 6.0% (2 of 33 strings)

Translated using Weblate (Bulgarian)

Currently translated at 0.5% (1 of 193 strings)

Translation: OpenWrt/LuCI/applications/banip
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/bg/

Translated using Weblate (Bulgarian)

Currently translated at 2.4% (1 of 41 strings)

Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/bg/

Translated using Weblate (Bulgarian)

Currently translated at 15.7% (6 of 38 strings)

Translation: OpenWrt/LuCI/applications/advanced-reboot
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/bg/

Translated using Weblate (Bulgarian)

Currently translated at 0.5% (1 of 169 strings)

Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/bg/

Translated using Weblate (Polish)

Currently translated at 100.0% (1715 of 1715 strings)

Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/

Co-authored-by: Anton Kikin <a.a.kikin@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Kalin Iliev <kalin.t.iliev@gmail.com>
Co-authored-by: Marcin Net <marcin.net@linux.pl>
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Signed-off-by: Kalin Iliev <kalin.t.iliev@gmail.com>
Signed-off-by: Marcin Net <marcin.net@linux.pl>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscommands/bg/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/bg/
Translation: OpenWrt/LuCI/applications/commands
Translation: OpenWrt/LuCI/applications/opkg
2021-06-03 23:17:48 +03:00
Jo-Philipp Wich
3fbd433884 luci-mod-network: interfaces: restructure DHCPv6 and IPv6 RA options
- Condense overly large IPv6 RA/DHCPv6 description texts and get rid of most embedded markup

 - Switch ra/ndp/dhcpv6 mode selections to rich dropdown lists and move extended choice
   descriptions next to the selection options

 - Drop ndproxy_static option which has been removed from odhcpd long ago

 - Add format validations to all text input fields

 - Add ability to configure master/relay modes for non-static interfaces (#2998)

 - Move extended RA configuration options into a new tab

 - Prevent enabling master mode on multiple interfaces

 - Prevent enabling ra/dhcpv6 server mode on non-static or master interfaces

 - Drop ra_management in favor to ra_flags option (#5083)

 - Add support for dns_service option

 - Read current effective IPv6 MTU and hop limit placeholder values from procfs

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 10:43:36 +02:00
Jo-Philipp Wich
dc0cfc642e luci-app-firewall: further luci-rpc/getHostHints compatibility fixes
Rework some further code instances to fall back to the legacy ipv4/ipv6
properties if needed.

Fixes: c7b7b42cd3 ("treewide: Update JS using luci-rpc getHostHints")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 10:03:48 +02:00
Jo-Philipp Wich
bc1015f7db luci-proto-wireguard: fix fwmark validation to allow 32 bit values
The iptables mark field is 32 bits wide, which is 4 bytes and so 8 hex
characters. Fix the fwmark validation to allow 8 characters in the hex
string.

Fixes: #5098
Suggested-by: Robert <32970961+differentblue@users.noreply.github.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 09:51:58 +02:00
Jo-Philipp Wich
e35041e0a8 luci-base: network.js: sorting fixes
Ensure that sort callbacks consistently return [-N .. 0 .. +N] values
instead of just true/false.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 09:51:09 +02:00
Niels Widger
c7b7b42cd3 treewide: Update JS using luci-rpc getHostHints
Update frontend JS code which uses luci-rpc getHostHints to support the new
response format which removes the `ipv4` and `ipv6` host hint string fields
and replaces them with `ipaddrs` and `ip6addrs` weighted string list fields.

Signed-off-by: Niels Widger <niels@qacafe.com>
[rework code to be forwards/backwards compatible, fix some Network.Hosts
 methods, fix IP choice ordering, change commit subject, rewrap commit
 message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 09:51:09 +02:00
Niels Widger
a5195e7825 rpcd-mod-luci: Return array of addresses in getHostHints
Update luci-rpc's getHostHints method to return two string arrays for
each host, `ipaddrs` and `ip6addrs`, each containing the host's IPv4
and IPv6 addresses, respectively.  Each array is sorted by a priority
derived from the source from which the address was discovered.  The
current address sources and their priority is as follows (a
higher (larger) priority is listed first):

    - neighbor table entries: 10
    - /etc/ethers entries:    50
    - DHCP leasefile:        100
    - RRDNS queries:         100
    - getifaddrs():          200
    - UCI static leases:     200

The existing `ipv4` and `ipv6` string fields for each host in
`getHostHints` has been removed.  Downstream users of getHostHints
still need to be updated.

Fixes: #4838
Signed-off-by: Niels Widger <niels@qacafe.com>
[squash commits, reformat fixes tag]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 09:51:09 +02:00
Sven Roederer
2b11ec6fd0 luci.mk: make SUBMENU package define customizable and optional
When including luci.mk in external repos it's sometimes usefull to not use
the default LuCI-submenu hierarchy.
This change defines the LUCI_SUBMENU_FORCED variable which completely overrides
the default submenu of the LuCI config-section. When LUCI_SUBMENU_FORCED is not
defined, the default submenu derrived from LUCI_TYPE or "Application" fallback
is used.
Defining LUCI_SUBMENU_FORCED in the package Makefile will just use this value.
Setting it to "none" will not define a submenu at all.
Together with LUCI_SECTION and LUCI_CATEGORY menu items can now created at any
place in the menu structure.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-06-02 07:07:22 -10:00
Sven Roederer
209141d491 luci.mk: add PKG_PROVIDES make-macro to set package/provides option
Add PKG_PROVIDES macro to be passed down to buildpackage defines as  PROVIDES variable.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-06-02 07:07:22 -10:00
Sven Roederer
ae0795deb0 luci.mk: add URL and MAINTAINER fields to package-definitions
Add the LUCI_URL and LUCI_MAINTAINER variables to pass them to the buildpackage
defines. Give them some sane defaults and allow overwritting by the individual
package.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2021-06-02 07:07:22 -10:00
Jo-Philipp Wich
dffc057fa2
Merge pull request #4305 from EHfive/fix-luci-app-frpc-prop-subdomain
luci-app-frpc: correct prop name 'subdomain'
2021-06-02 08:29:07 +02:00
Jo-Philipp Wich
1255c4832e
Merge pull request #4770 from nickberry17/update_DummyValue
luci-base: add new member 'hidden' to DummyValue
2021-06-02 08:23:45 +02:00
Jo-Philipp Wich
064e5cca96
Merge pull request #4985 from j123b567/feature_luci-theme-openwrt-2020_mainmenu-submenu-tweek
luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible
2021-06-02 08:21:20 +02:00
Jo-Philipp Wich
67c426c40d
Merge pull request #5062 from SvenRoederer/issue_5051
luci-theme-openwrt-2020: use SVG-file for favicon and logo
2021-06-02 08:20:00 +02:00
Jo-Philipp Wich
96ee6dc8d6 protocols: rename "device" option to "_modem_device"
This is required to resolve clashes with the generic "option device"
referring to netdev names in current netifd versions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
10f02472c5 luci-mod-network: rename "device" option to "_net_device" internally
This is required to resolve conflicts with the existing "device" option
in other proto handlers such as PPP or QMI where "device" refers to the
device path of the tty control device instead of a netdev name.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
26e21d43b5 luci-mod-network: clarify device settings reset button tooltip
Ref: #5090
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
f3f74bd0fe luci-base: form.js: consider aliased options in AbstractValue.remove()
If different options point to the same underlying uci option, we must only
remove the uci value if none of the other alias options is active in order
to prevent inactive options (due to unsatisfied depends) removing the uci
value of active once on save.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
671c94b034 luci-mod-network: don't accidentally reset macvlan device names
Fixes: #5081
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Jo-Philipp Wich
6960819997 luci-theme-bootstrap: add svg help icon to form field descriptions
The still referenced help.gif icon is absent by default since it has been
moved to luci-compat.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-01 15:34:11 +02:00
Hannu Nyman
0a6fda27e7 luci-mod-network: drop duplicated "Master" option
It got accidentally added when additional RA and NDP parameters
were added.

Fixes: 504bdb23fb ("luci-mod-network: Introduce new RA and NDP params...")
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-06-01 08:15:01 +03:00
Rafał Miłecki
49be69316b luci-mod-network: migrate macaddr during bridge migration
Link: https://forum.openwrt.org/t/network-migration-21-02-0-rc2/97934
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2021-05-31 21:48:09 +02:00
Jo-Philipp Wich
34dc351303 luci-mod-network: allow netifd version query to fail
Fixes: 17af33ee48 ("luci-mod-network: migrate network config depending on netifd version")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-31 19:00:15 +02:00
Jo-Philipp Wich
fc12933670 luci-mod-network: make device selector dependent on protocol (again)
This commit effectively reverts the change made with
907b4222f7 ("luci-mod-network: don't hide "Device" on protocol change").

Floating tunnel protocols such as 6in4, plain PPP over modem device,
VPNC etc. do not have any layer 2 device at all, for such protocols the
device selector should be hidden.

Also swap back the incorrect option order introduced with commit
b7f3cf66ca ("luci-mod-network: drop support for *adding* legacy bridges").

Since device depends on proto, it should come after the protocol selection,
not before.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-31 14:04:50 +02:00