diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-19 12:04:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-19 12:04:07 +0100 |
commit | 15816e668df0bbdc36f6426557e488f6ade2e3ed (patch) | |
tree | 576b04d39c5381944dfeb1d75211f37da6e1535b /applications/luci-app-nextdns/luasrc/model/cbi | |
parent | 8262e1272552db43cef527e5da88e6706d50e7a4 (diff) | |
parent | 29fdc2b014b05a4d6ae2324b36ea9ce1c956360b (diff) |
Merge pull request #3328 from ysc3839/nextdns
luci-app-nextdns: port to client side
Diffstat (limited to 'applications/luci-app-nextdns/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-nextdns/luasrc/model/cbi/overview.lua | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/applications/luci-app-nextdns/luasrc/model/cbi/overview.lua b/applications/luci-app-nextdns/luasrc/model/cbi/overview.lua deleted file mode 100644 index a932a85f89..0000000000 --- a/applications/luci-app-nextdns/luasrc/model/cbi/overview.lua +++ /dev/null @@ -1,41 +0,0 @@ -local uci = require("luci.model.uci").cursor() - -nextdns = Map("nextdns", translate("NextDNS"), - translate("NextDNS Configuration.") - .. "<br>" - .. translatef("For further information, go to " - .. "<a href=\"https://nextdns.io\" target=\"_blank\">nextdns.io</a>")) - - -function nextdns.on_after_commit(self) - luci.sys.call("env -i /etc/init.d/nextdns restart >/dev/null 2>&1") -end - -s = nextdns:section(TypedSection, "nextdns", translate("General")) -s.anonymous = true - -enabled = s:option(Flag, "enabled", translate("Enabled"), - translate("Enable NextDNS.")) -enabled.rmempty = false - -conf = s:option(Value, "config", translate("Configuration ID"), - translate("The ID of your NextDNS configuration.") - .. "<br>" - .. translate("Go to nextdns.io to create a configuration.")) -conf.rmempty = false - -report_client_info = s:option(Flag, "report_client_info", translate("Report Client Info"), - translate("Expose LAN clients information in NextDNS analytics.")) -report_client_info.rmempty = false - -hardened_privacy = s:option(Flag, "hardened_privacy", translate("Hardened Privacy"), - translate("When enabled, use DNS servers located in jurisdictions with strong privacy laws.") - .. "<br>" - .. translate("Available locations are: Switzerland, Iceland, Finland, Panama and Hong Kong.")) -hardened_privacy.rmempty = false - -log_query = s:option(Flag, "log_query", translate("Log Queries"), - translate("Log individual queries to system log.")) -log_query.rmempty = false - -return nextdns |