luci-app-adblock-fast: update to 1.2.2-r18
authorStan Grishin <redacted>
Fri, 24 Apr 2026 17:30:20 +0000 (17:30 +0000)
committerStan Grishin <redacted>
Sun, 26 Apr 2026 16:04:01 +0000 (09:04 -0700)
* reformat Chrome Extension helper message for i18n
* remove use of base64 in uci-defaults script (thanks @sppmaster)
* fix setRpcdToken export

Signed-off-by: Stan Grishin <redacted>
applications/luci-app-adblock-fast/Makefile
applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js
applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js
applications/luci-app-adblock-fast/po/templates/adblock-fast.pot
applications/luci-app-adblock-fast/root/etc/uci-defaults/95_adblock-fast-api

index ef393b50b42827be11b62981365965796ca77a66..fd596281d8ace0077f4e0bd9ff11c048df09a01f 100644 (file)
@@ -7,7 +7,7 @@ PKG_NAME:=luci-app-adblock-fast
 PKG_LICENSE:=AGPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_VERSION:=1.2.2
-PKG_RELEASE:=16
+PKG_RELEASE:=18
 
 LUCI_TITLE:=AdBlock-Fast Web UI
 LUCI_URL:=https://github.com/mossdef-org/luci-app-adblock-fast/
index 72cc294f7895a958c08a37fdfd1fa1f34136cc9a..1bc6cee6cf6f276543e6105173b2626d4cf10457 100644 (file)
@@ -836,5 +836,6 @@ return L.Class.extend({
        getServiceInfo: getServiceInfo,
        getQueryLogStatus: getQueryLogStatus,
        setQueryLog: setQueryLog,
+       setRpcdToken: RPC.setRpcdToken,
        callLogRead: callLogRead,
 });
index af341e2ea06b1f5c4410ba0fa7f0c4d6742eb662..fcc5768e40364cbb2edb88fd55defd29682eaea8 100644 (file)
@@ -814,17 +814,17 @@ return view.extend({
                        "rpcd_token",
                        _("Remote Access Token"),
                        _(
-                               "Token for <a href=\"" + pkg.URL + "#chrome-extension\" target=\"_blank\">Google Chrome extension</a> or other remote API access. " +
+                               "Token for %sGoogle Chrome extension%s or other remote API access. " +
                                "Copy this value into the extension settings as the password. " +
                                "Changing it here will update the API user password on save.",
-                       ),
+                       ).format('<a href="' + pkg.URL + '#chrome-extension" target="_blank">', "</a>"),
                );
                o.default = "";
                o.rmempty = true;
                o.write = function (section_id, formvalue) {
                        var currentValue = L.uci.get(pkg.Name, section_id, "rpcd_token");
                        if (formvalue && formvalue !== currentValue) {
-                               RPC.setRpcdToken(pkg.Name, formvalue);
+                               adb.setRpcdToken(pkg.Name, formvalue);
                        }
                        return L.uci.set(pkg.Name, section_id, "rpcd_token", formvalue);
                };
index ff8f52b1b69809707ef6852d5802590b566c6705..6f4797e3bb015a98354f5aff8de744e35adfee04 100644 (file)
@@ -817,7 +817,10 @@ msgid "Thursday"
 msgstr ""
 
 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:817
-msgid "Token for <a href=\""
+msgid ""
+"Token for %sGoogle Chrome extension%s or other remote API access. Copy this "
+"value into the extension settings as the password. Changing it here will "
+"update the API user password on save."
 msgstr ""
 
 #: applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js:590
index e7b49fee63d1aa512608a8ae101a05fa8a1cb646..d16ecfa7a7fb5ee9bc374bec5ac303268bc96182 100644 (file)
@@ -18,7 +18,7 @@ fi
 # Generate random rpcd_token if not already set
 _token="$(uci -q get adblock-fast.config.rpcd_token)"
 if [ -z "$_token" ]; then
-       _token="$(head -c 24 /dev/urandom | base64 | tr -d '/+=' | head -c 24)"
+       _token="$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 24)"
        uci set adblock-fast.config.rpcd_token="$_token"
        uci commit adblock-fast
 fi
git clone https://git.99rst.org/PROJECT