If the value returned from UCI was falsy, it became an empty array instead
of an empty string, which crashed the UI when trying to invoke the
non-existing replace instance function on the value.
Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
Commit 234e131507 changed the "val"
variable to be a constant, but it's value is reassigned later. Change
the variable to be declared with let instead so it can be reassigned.
Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
This commit adds a simple filtering input text into the connections status page. You can type some filtering like:
- '100.15' -> Will show only connections that include this '100.15' onto the IP.
- 'UDP 100.15' -> Will show only UDP connections that include this '100.15' onto the IP.
- ':443' -> Will show only connections that use the port 443 as source or destination.
You can use a part of the IP or part of the name if the DNS resolution button is enabled.
It's a very simple filter that can grow in the future if it deserves some interest, maybe adding some regular expression support.
Signed-off-by: Miguel Angel Mulero Martinez <migmul@gmail.com>
While the jsdoc for this function describes a string[] parameter, this
seemingly was not handled; consistent usage of various
L.(url|resource|etc) is multiple strings that become object properties.
E.g.:
L.resource('lldpd/lldpd.css');
L.url("admin", "system", "leds");
which become e.g.:
Arguments { 0: "admin/network", 1: "routes", … }
Handle a string[] parameter, by re-entering the function with any
Array[] parameter.
follow-up fix to 7c2cde52db
This prevents:
TypeError
parts[i].startsWith is not a function
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Manifests in the console as:
RPCError: RPC call to uci/get failed with ubus code 4: Resource not found
The lazy-loading is harmless and has been that way for years, but the
presence of the trace-back clouds other problems. This should keep the
console cleaner; it conditionally attempts to load wireless when a more
fundamental check for it passes.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Manifests in the console as:
RPCError: RPC call to uci/get failed with ubus code 4: Resource not found
The lazy-loading is harmless and has been that way for years, but the
presence of the trace-back clouds other problems. This should keep the
console cleaner; it conditionally attempts to load wireless when a more
fundamental check for it passes.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Subsequent commits will modernize LuCI JavaScript code to use ES6 features,
so drop the Promise polyfill as we're dropping support for non-ES6 browsers.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Convert existing JavaScript code in LuCI base to utilize ES6 standard
features such as spread arguments, arrow functions, object method
declarations etc.
This makes the code somewhat easier to follow and slightly smaller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
otherwise ucode function call breaks with:
RPC call to luci/getInitList failed with error -32000: Object not found
Follow-up fix to ab15b5e379
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Currently translated at 92.3% (2338 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/
Translated using Weblate (Catalan)
Currently translated at 36.9% (935 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ca/
Translated using Weblate (Catalan)
Currently translated at 36.2% (918 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ca/
Translated using Weblate (Catalan)
Currently translated at 36.2% (917 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ca/
Translated using Weblate (Finnish)
Currently translated at 55.5% (40 of 72 strings)
Translation: OpenWrt/LuCI/applications/attendedsysupgrade
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/fi/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (86 of 86 strings)
Translation: OpenWrt/LuCI/applications/package-manager
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspackage-manager/pt_BR/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 90.5% (2293 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/
Translated using Weblate (Swedish)
Currently translated at 25.0% (12 of 48 strings)
Translation: OpenWrt/LuCI/applications/openwisp
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenwisp/sv/
Translated using Weblate (Swedish)
Currently translated at 57.5% (23 of 40 strings)
Translated using Weblate (Spanish)
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Translated using Weblate (Spanish)
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Janderson Vieira Santos <jandersonvs79@gmail.com>
Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Co-authored-by: Yuan Lau <traverslombard@outlook.com>
Co-authored-by: dtalens <databio@gmail.com>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Janderson Vieira Santos <jandersonvs79@gmail.com>
Signed-off-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Signed-off-by: Ricky Tigg <ricky.tigg@gmail.com>
Signed-off-by: Yuan Lau <traverslombard@outlook.com>
Signed-off-by: dtalens <databio@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsp910nd/sv/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/pt_BR/
Translation: OpenWrt/LuCI/applications/p910nd
Translation: OpenWrt/LuCI/applications/upnp
The kmod install link only displays in new device dialogues so as not
to be too prominent.
Closes#6996Closes#7086
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
netifd support for bonding devices has been added in commit 5ba9744.
The other way to have bonding available in luci is via
luci-proto-bonding and its proto-bonding dependency.
luci-proto-bonding requires an IP address on a bond interface due to a
netifd limitation. This can cause some issues if you want to bridge an
Ethernet port and a bond.
This patch aims to have the device to be configurable not as an
interface protocol but as a device.
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
This is to prepare for the bonding implementation, two configuration
nodes cannot share the same name.
Probably a more unique and precise naming would be better.
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
fwmark is used internally during firewall processing, and no mark
remains on egress. Yes, the fwmark is to identify egress encrypted
packets, but no egress packet itself contains this value, and
this metadata disappears once the packet leaves the firewall.
The current wording is ambiguous, since "for" does a lot of lifting.
"during" helps limit the scope of this definition.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Without validation, `dnsmasq` can fail silently if users enter
invalid leasetime input. This change adds input validation to
align user input with the backend parsing logic. Whilst it does
not enforce the >120 seconds requirement, this is documented
in the field description and handled by `dnsmasq`'s `option.c`,
which adjusts values <120 to meet this minimum.
Signed-off-by: Lyall Beveridge <lyall.beveridge@morsemicro.com>
master and 24 use much newer versions.
This will prevent a read error on the non-existent control file when
the system uses apk.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Allow the DHCPv6 client to accept /64 prefix via SLAAC and extend it on downstream interface (RFC 7278)
useful for ISPs that only distribute /64 IPv6 prefixes through SLAAC.
Signed-off-by: Arayuki Mago <ms@missing233.com>
Currently translated at 100.0% (168 of 168 strings)
Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/zh_Hant/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hans/
Translated using Weblate (Polish)
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/pl/
Translated using Weblate (Spanish)
Currently translated at 100.0% (195 of 195 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/es/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (168 of 168 strings)
Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/zh_Hant/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (198 of 198 strings)
Translation: OpenWrt/LuCI/applications/ddns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/zh_Hant/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (52 of 52 strings)
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Co-authored-by: Piotr Kołtun <pkoltungm@gmail.com>
Co-authored-by: Yuan Lau <traverslombard@outlook.com>
Co-authored-by: try496 <pinghejk@gmail.com>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Signed-off-by: Piotr Kołtun <pkoltungm@gmail.com>
Signed-off-by: Yuan Lau <traverslombard@outlook.com>
Signed-off-by: try496 <pinghejk@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/zh_Hant/
Translation: OpenWrt/LuCI/applications/upnp
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ga/
Translated using Weblate (Irish)
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Irish)
Currently translated at 100.0% (172 of 172 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/ga/
Translated using Weblate (Irish)
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ga/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (168 of 168 strings)
Translation: OpenWrt/LuCI/applications/aria2
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/zh_Hant/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/
Translated using Weblate (Hindi)
Currently translated at 78.5% (22 of 28 strings)
Translation: OpenWrt/LuCI/applications/acl
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacl/hi/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/
Translated using Weblate (Russian)
Currently translated at 100.0% (172 of 172 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/ru/
Translated using Weblate (Turkish)
Currently translated at 100.0% (116 of 116 strings)
Translation: OpenWrt/LuCI/applications/radicale
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale/tr/
Translated using Weblate (Russian)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ru/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/
Translated using Weblate (Russian)
Currently translated at 99.9% (2531 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (172 of 172 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/zh_Hans/
Translated using Weblate (Polish)
Currently translated at 100.0% (172 of 172 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/pl/
Translated using Weblate (Polish)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/pl/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hans/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (16 of 16 strings)
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hant/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/
Translated using Weblate (Polish)
Currently translated at 100.0% (2532 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Translated using Weblate (Spanish)
Currently translated at 99.9% (2530 of 2532 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (52 of 52 strings)
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (52 of 52 strings)
Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Co-authored-by: Yuan Lau <traverslombard@outlook.com>
Co-authored-by: ghanshyam-pal <ghanshyampal789@gmail.com>
Co-authored-by: sergio <sergio+it@outerface.net>
Co-authored-by: try496 <pinghejk@gmail.com>
Signed-off-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Signed-off-by: Yuan Lau <traverslombard@outlook.com>
Signed-off-by: ghanshyam-pal <ghanshyampal789@gmail.com>
Signed-off-by: sergio <sergio+it@outerface.net>
Signed-off-by: try496 <pinghejk@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/ga/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswol/zh_Hant/
Translation: OpenWrt/LuCI/applications/upnp
Translation: OpenWrt/LuCI/applications/wol
Add "Disabled" with value 9 as a choice for cron log level.
9 actually exceeds the highest built-in value 8, but can be
used to quieten the logging in cases where there are e.g. cron
jobs running each minute, which would create log spam.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Busybox crond only uses level 5, 7 and 8. (And 7 and 8 only differ
on one error regarding finding a crontab without user.)
For simplicity, just provide 5 and 7 as alternatives in LuCI.
Show level 7 as the default and as the first offered choice.
Add missing semicolons to the file.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>