From 6df7b92a50485d7a7c61c38c5abeaf96ad69a28c Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Tue, 29 Aug 2023 18:42:10 +0000 Subject: luci-app-https-dns-proxy: rewrite in javascript Signed-off-by: Stan Grishin --- .../luasrc/view/https-dns-proxy/buttons.htm | 75 ---------------------- .../luasrc/view/https-dns-proxy/css.htm | 9 --- .../luasrc/view/https-dns-proxy/js.htm | 60 ----------------- .../view/https-dns-proxy/status-textarea.htm | 13 ---- .../luasrc/view/https-dns-proxy/status.htm | 12 ---- 5 files changed, 169 deletions(-) delete mode 100644 applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/buttons.htm delete mode 100644 applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/css.htm delete mode 100644 applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/js.htm delete mode 100644 applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status-textarea.htm delete mode 100644 applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status.htm (limited to 'applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy') diff --git a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/buttons.htm b/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/buttons.htm deleted file mode 100644 index 6fd7ebd355..0000000000 --- a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/buttons.htm +++ /dev/null @@ -1,75 +0,0 @@ -<%# Copyright 2020 Stan Grishin -%> - -<%+https-dns-proxy/css%> -<%+https-dns-proxy/js%> - -<%- - local packageName = "https-dns-proxy" - local serviceRunning, serviceEnabled = false, false; - - serviceEnabled = luci.sys.init.enabled(packageName) - local ubusStatus = luci.util.ubus("service", "list", { name = packageName }) - if ubusStatus and ubusStatus[packageName] then - serviceRunning = true - end - - if serviceEnabled then - btn_start_status = true - btn_action_status = true - btn_stop_status = true - btn_enable_status = false - btn_disable_status = true - else - btn_start_status = false - btn_action_status = false - btn_stop_status = false - btn_enable_status = true - btn_disable_status = false - end - if serviceRunning then - btn_start_status = false - btn_action_status = true - btn_stop_status = true - else - btn_action_status = false - btn_stop_status = false - end --%> - -<%+cbi/valueheader%> - - - - - - -   -   -   -   - - - - -<%+cbi/valuefooter%> - -<%-if not btn_start_status then%> - -<%-end%> -<%-if not btn_action_status then%> - -<%-end%> -<%-if not btn_stop_status then%> - -<%-end%> -<%-if not btn_enable_status then%> - -<%-end%> -<%-if not btn_disable_status then%> - -<%-end%> diff --git a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/css.htm b/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/css.htm deleted file mode 100644 index 6fb3d51d3b..0000000000 --- a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/css.htm +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/js.htm b/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/js.htm deleted file mode 100644 index fac92a3925..0000000000 --- a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/js.htm +++ /dev/null @@ -1,60 +0,0 @@ - - diff --git a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status-textarea.htm b/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status-textarea.htm deleted file mode 100644 index 3840cd19d4..0000000000 --- a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status-textarea.htm +++ /dev/null @@ -1,13 +0,0 @@ -<%# -Copyright 2017-2019 Stan Grishin (stangri@melmac.net) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%+cbi/valueheader%> - - - -<%+cbi/valuefooter%> diff --git a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status.htm b/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status.htm deleted file mode 100644 index b02c7faa82..0000000000 --- a/applications/luci-app-https-dns-proxy/luasrc/view/https-dns-proxy/status.htm +++ /dev/null @@ -1,12 +0,0 @@ -<%# -Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%+cbi/valueheader%> - -
- <%=self:cfgvalue(section):gsub('\n', '
' )%> -
- -<%+cbi/valuefooter%> -- cgit v1.2.3