summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-10-27luci-app-firewall: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-openvpn: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-simple-adblock: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-travelmate: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-transmission: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-base: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-ddns: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-commands: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-aria2: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27luci-app-adblock: sync i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-27Merge pull request #5430 from ↵Florian Eckert
jeje42/feature/luci-app-openvpn-add-tls_crypt_v2-option Add tls_crypt_v2 openvpn option to LuCI.
2022-10-27Merge pull request #6051 from weblate/weblate-openwrt-luciFlorian Eckert
Translations update from Hosted Weblate
2022-10-27Translated using Weblate (Spanish)Hosted Weblate
Currently translated at 93.3% (14 of 15 strings) Translation: OpenWrt/LuCI/applications/example Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsexample/es/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (62 of 62 strings) Translation: OpenWrt/LuCI/applications/attendedsysupgrade Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/zh_Hans/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (2075 of 2075 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (2075 of 2075 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% (2075 of 2075 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/ Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (2075 of 2075 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% (2075 of 2075 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/ Translated using Weblate (Spanish) Currently translated at 96.2% (1997 of 2075 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Translated using Weblate (Turkish) Currently translated at 100.0% (117 of 117 strings) Translation: OpenWrt/LuCI/applications/https-dns-proxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (177 of 177 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (196 of 196 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (2079 of 2079 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/tr/ Translated using Weblate (Greek) Currently translated at 30.3% (631 of 2079 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/el/ Co-authored-by: Byacrya <byacrya@proton.me> Co-authored-by: Eric <hamburger1024@mailbox.org> 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: TakissX <pxatzidakis@gmail.com> Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Co-authored-by: semih <semiht@gmail.com> Co-authored-by: sergio <sergio+it@outerface.net> Signed-off-by: Byacrya <byacrya@proton.me> Signed-off-by: Eric <hamburger1024@mailbox.org> Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Signed-off-by: Matthaiks <kitynska@gmail.com> Signed-off-by: TakissX <pxatzidakis@gmail.com> Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Signed-off-by: semih <semiht@gmail.com> Signed-off-by: sergio <sergio+it@outerface.net>
2022-10-27luci-base: always link core.so with libcrypt to satisfy glibc buildsJo-Philipp Wich
Fixes the following runtime error on glibc based builds: Runtime error: Unable to dlopen file ...: undefined symbol: crypt In module(), file /usr/share/ucode/luci/dispatcher.uc, line 1, byte 1: called from anonymous function (/www/cgi-bin/luci:7:21) Ref: https://forum.openwrt.org/t/x/137250/18 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27luci-base: add ui indicator when fallback theme is usedJo-Philipp Wich
Add a ui indicator displaying error details when the configured theme failed to load and the next available one is being used instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27luci-theme-material: fix location of template filesJo-Philipp Wich
Fixes: #6060 Fixes: e496014760 ("luci-theme-material: convert Lua templates to ucode") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27luci-base: dispatcher.uc: update uci session ID in Lua contextJo-Philipp Wich
Make sure that the uci session ID of the `luci.model.uci` module within the Lua context is updated once we acquire the login session information. In case legacy themes are used, the probing of the theme header template might indirectly load the Lua runtime and the Lua side `luci.dispatcher` module which in turn will load the `luci.model.uci` and set the session ID there which is not yet initialized at this point in time. This results in broken uci change handling within legacy Lua applications when a legacy theme is loaded. Fixes: #6060 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27luci-mod-network: remove uppercase for interface name in modal viewFlorian Eckert
Unify the network name display as shown in the overview by removing the uppercase conversion. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-26luci-ssl-nginx: drop libiwinfo-lua dependencyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-nginx: drop libiwinfo-lua dependencyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-app-commands: drop luci-compat dependencyJo-Philipp Wich
This custom commands application does not utilize Lua code anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-theme-openwrt-2020: convert Lua templates to ucodeJo-Philipp Wich
Convert the theme's Lua templates to ucode to avoid the implicit dependency on the luci-lua-runtime package. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-lua-runtime: render cbi header/footer templates via ucode runtimeJo-Philipp Wich
Trigger rendering of CBI header and footer templates via the ucode runtime `include()` in order to ensure that scope data is properly inherited from Lua templates (`cbi/header`) including ucode templates (`header`). This fixes automatic triggering of the config apply flow on legacy Lua CBI forms. Ref: https://github.com/openwrt/luci/pull/6056#issuecomment-1292396588 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26Merge pull request #6055 from TDT-AG/pr/20221026-luci-mod-networkJo-Philipp Wich
luci-mod-network: remove uppercase for interface name on overview page
2022-10-26luci-lua-runtime: fix loading header/footer templates for SimpleFormsJo-Philipp Wich
Fixes: #6054 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-lua-runtime: ensure proper forwarding of route arguments to cbi actionJo-Philipp Wich
Ensure that the optional cbi() `config` argument is set to an empty table if unspecified to ensure that the static call argument array is exactly two elements long, otherwise call arguments are shifted and the invoked method might not receive the expected parameter. This fixes, among others, the dispatching of `arcombine()` targets. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-26luci-mod-network: remove uppercase for interface name on overview pageFlorian Eckert
In the overview page, the name of the interface is converted to uppercase. However, this is not the name in the configuration. From my point of view, this makes no sense. The name displayed should correspond exactly to the name in the configuration. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-25.gitignore: adjust paths for autogenerated plural_formula sourcesJo-Philipp Wich
Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1290370037 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: dispatcher.uc: ensure usage of dashes in language tagsJo-Philipp Wich
The LuCI uci configuration requires language tags with underscores due limitations of uci option names but the language catalogs themselves are designated with dash separated language tags. Make sure to substitute underscores with dashes when determining the desired request language in order to fix loading of languages such as `pt-br` or `zh-cn`. Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1290352951 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: dispatcher.uc: reintroduce support for 'absent' fs dependsJo-Philipp Wich
The ability to require certain paths to be absent for a menu entry to show up was lost during the ucode conversion. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci.mk: fix compatibility with GNU Make 4.2Jo-Philipp Wich
GNU Make version 4.2 chokes on `#` characters embedded in variable substitutions, leading to the following error: ../../luci.mk:114: *** unterminated call to function 'if': missing ')'. Stop. Avoid this problem by replacing variable substitutions with Git branch format arguments. Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1289935106 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25Merge pull request #5976 from jow-/ucodeJo-Philipp Wich
[RFT] Rewrite LuCI runtime in ucode
2022-10-25luci-app-commands: rewrite to client side renderingJo-Philipp Wich
Rewrite the luci-app-command configuration to client side cbi forms and port the server side templates and controller logic to ucode. Also utilize a query string parameter to pass custom arguments. Fixes: #5559 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25treewide: add explicit Lua runtime dependencies where neededJo-Philipp Wich
Some packages require Lua libraries but do not ship with a luasrc directory, add explicit dependencies in these cases. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-lua-runtime: drop Lua server gateway modulesJo-Philipp Wich
Remove the uhttpd and CGI gateway modules as they're not compatible with the Lua compat stub runtime anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: sys.uc: reliably skip TIME_WAIT connections in conntrack listJo-Philipp Wich
The TIME_WAIT indicator might not appear at the beginning of the tuple string in some cases, so match it anywhere. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> [add commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-theme-material: convert Lua templates to ucodeJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: sys.uc: fix parsing conntrack listJo-Philipp Wich
Ensure that the extracted tuple string starts with a space to fully match all contained key-value pairs. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: sys.uc: increase init script START/STOP search spaceJo-Philipp Wich
Some init scripts, such as the sysfsutils one, declare their START or STOP variables very late in the file. Duplicate the search buffer to 2048 byte in order to catch these cases. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: don't fail getInitList if no indexes can be determinedJo-Philipp Wich
Gracefully handle missing indexes in the luci rpcd plugin getInitList procedure. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-proto-wireguard: rewrite rpcd handler in ucodeJo-Philipp Wich
Rewrite the wireguard rpcd plugin in ucode to prevent an implicit dependency on the LuCI Lua runtime. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-app-statistics: rewrite stat-genconfig in ucodeJo-Philipp Wich
Rewrite the collectd config generator script in ucode to remove the implicit dependency on the Lua runtime. Also move the stat-genconfig script into /usr/libexec as it isn't really a user facing executable. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-app-upnp: convert rpcd backend script to ucodeJo-Philipp Wich
Utilize the rpcd ucode plugin to reimplement the upnp backend ubus actions in ucode, simplifying the implementation and roughly halving the processing time for the `get_status` call. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-lib-base: forward luci.http.context.request.message to ucodeJo-Philipp Wich
Some existing LuCI application code accesses the `luci.http.context.request.message.params` HTTP parameter table directly. Forward the `luci.http.context.request.message` object to the ucode `luci.http.message` instance in order to properly support this. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: dispatcher.uc: support `cbi` and `form` action typesJo-Philipp Wich
Some existing LuCI apps ship menu.d JSON files with `cbi` and `form` typed dispatch targets, support those as well. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-lua-runtime: preload luci.sysJo-Philipp Wich
Some existing model code expects the luci.sys namespace to be implicitly available, even without requiring it beforehand. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-base: rebase translationsJo-Philipp Wich
Re-scan base translations after ucode conversion and update po files. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci: drop dependency on libiwinfo-luaJo-Philipp Wich
None of the components pulled in by the standard luci collection require server side Lua processing anymore, so we're free to drop the explicit dependency on the libiwinfo Lua binding. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-theme-bootstrap: translate Lua templates to ucode equivalentsJo-Philipp Wich
Add ucode template equivalents for the Lua templates used by the theme. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-25luci-mod-system: drop unused Lua codeJo-Philipp Wich
Drop an unused, leftover Lua cbi model from the system module. Signed-off-by: Jo-Philipp Wich <jo@mein.io>