From cb0e171fd464bb677ff7bd6de833447075ae8311 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Fri, 24 Apr 2026 17:30:20 +0000 Subject: [PATCH] luci-app-adblock-fast: update to 1.2.2-r18 * 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 --- applications/luci-app-adblock-fast/Makefile | 2 +- .../htdocs/luci-static/resources/adblock-fast/status.js | 1 + .../luci-static/resources/view/adblock-fast/overview.js | 6 +++--- .../luci-app-adblock-fast/po/templates/adblock-fast.pot | 5 ++++- .../root/etc/uci-defaults/95_adblock-fast-api | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-adblock-fast/Makefile b/applications/luci-app-adblock-fast/Makefile index ef393b50b4..fd596281d8 100644 --- a/applications/luci-app-adblock-fast/Makefile +++ b/applications/luci-app-adblock-fast/Makefile @@ -7,7 +7,7 @@ PKG_NAME:=luci-app-adblock-fast PKG_LICENSE:=AGPL-3.0-or-later PKG_MAINTAINER:=Stan Grishin 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/ diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js index 72cc294f78..1bc6cee6cf 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js @@ -836,5 +836,6 @@ return L.Class.extend({ getServiceInfo: getServiceInfo, getQueryLogStatus: getQueryLogStatus, setQueryLog: setQueryLog, + setRpcdToken: RPC.setRpcdToken, callLogRead: callLogRead, }); diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js index af341e2ea0..fcc5768e40 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js @@ -814,17 +814,17 @@ return view.extend({ "rpcd_token", _("Remote Access Token"), _( - "Token for Google Chrome extension 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('', ""), ); 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); }; diff --git a/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot b/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot index ff8f52b1b6..6f4797e3bb 100644 --- a/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot +++ b/applications/luci-app-adblock-fast/po/templates/adblock-fast.pot @@ -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