From 9c836d14734f069421a459a63436d07cc91dd760 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Mon, 29 Jul 2024 01:07:55 +0000 Subject: 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 --- .../luci-static/resources/https-dns-proxy/status.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy') 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, -- cgit v1.2.3