summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2024-07-29 01:07:55 +0000
committerStan Grishin <stangri@melmac.ca>2024-07-29 01:30:00 +0000
commit9c836d14734f069421a459a63436d07cc91dd760 (patch)
tree1dd73924ef16e312416e20a53e0ba80fa1a88a05 /applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy
parent975b5d3ad668bbb31f342a22de3e6f1b89ef7b1e (diff)
luci-app-https-dns-proxy: bugfix: OpenDNS family filter URL update
* bugfix: update OpenDNS family filter URL * update copyright/license * update PKG_RELEASE to avoid double `r` on snapshots * add LUCI_URL to upstream repository * update README URL to upstream documentation * update pkg.URL property to allow linking to a specific version of README * remove duplicates of pkg object from overview.js/status include js files Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy')
-rw-r--r--applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js
index 0ae128b923..37675c5b83 100644
--- a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js
+++ b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js
@@ -13,8 +13,16 @@ var pkg = {
get Name() {
return "https-dns-proxy";
},
+ get ReadmeCompat() {
+ return "";
+ },
get URL() {
- return "https://docs.openwrt.melmac.net/" + pkg.Name + "/";
+ return (
+ "https://docs.openwrt.melmac.net/" +
+ pkg.Name +
+ "/" +
+ (pkg.ReadmeCompat ? pkg.ReadmeCompat + "/" : "")
+ );
},
templateToRegexp: function (template) {
return RegExp(
@@ -30,6 +38,9 @@ var pkg = {
"$"
);
},
+ templateToResolver: function (template, args) {
+ return template.replace(/{(\w+)}/g, (_, v) => args[v]);
+ },
};
var getInitList = rpc.declare({
@@ -428,6 +439,8 @@ RPC.on("setInitAction", function (reply) {
return L.Class.extend({
status: status,
+ pkg: pkg,
+ getInitStatus: getInitStatus,
getPlatformSupport: getPlatformSupport,
getProviders: getProviders,
getRuntime: getRuntime,