summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock-fast/htdocs/luci-static/resources/adblock-fast
diff options
context:
space:
mode:
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.js15
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,
});