The apparently correct usage is not to pass an array (though that is now
checked). Make usage consistent to {...string}.
Signed-off-by: Paul Donald <newtwen+github@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>
* match version with principal package
* update README version
* use var instead of const for RPCD objects
Signed-off-by: Stan Grishin <stangri@melmac.ca>
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>
Image selection for armsr and loongarch is currently broken, as
they are not recognized as a "combined" image target. Add a list
of the appropriate targets to make maintenance easy.
Signed-off-by: Eric Fahlgren <ericfahlgren@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>