diff options
author | Stan Grishin <stangri@melmac.ca> | 2024-08-03 23:32:11 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2024-08-03 23:32:11 +0000 |
commit | bd7bee7731a45ee72960562546cc713a03fbfc92 (patch) | |
tree | 1eed82d11fd32b346537364498bec1bef1d318fd /applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast | |
parent | ee1bf573ec94eb23f99c4c5edcd86e53e0300719 (diff) |
luci-app-adblock-fast: sync with 1.1.2-3 principal package
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast')
-rw-r--r-- | applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast/status.js | 15 |
1 files changed, 14 insertions, 1 deletions
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 bebafff50a..d05f09403e 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 @@ -11,8 +11,19 @@ var pkg = { get Name() { return "adblock-fast"; }, + get ReadmeCompat() { + return ""; + }, get URL() { - return "https://docs.openwrt.melmac.net/" + pkg.Name + "/"; + return ( + "https://docs.openwrt.melmac.net/" + pkg.Name + "/" + pkg.ReadmeCompat + ); + }, + humanFileSize: function (bytes, si = false, dp = 2) { + return `%${si ? 1000 : 1024}.${dp ?? 0}mB`.format(bytes); + }, + isObjEmpty: function (obj) { + return Object.keys(obj).length === 0; }, }; @@ -515,6 +526,8 @@ RPC.on("setInitAction", function (reply) { return L.Class.extend({ status: status, + pkg: pkg, + getInitStatus: getInitStatus, getFileUrlFilesizes: getFileUrlFilesizes, getPlatformSupport: getPlatformSupport, }); |