update 2023-11-14 23:36:46

This commit is contained in:
github-actions[bot] 2023-11-14 23:36:46 +08:00
parent 61ffc20775
commit d27becd6f6
8 changed files with 91 additions and 6 deletions

View File

@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ddns-go
PKG_VERSION:=1.3.2
PKG_VERSION:=1.4.1
PKG_RELEASE:=10
LUCI_TITLE:=LuCI Support for Dynamic ddns-go Client

View File

@ -8,7 +8,9 @@ function index()
return
end
entry({"admin", "services", "ddns-go"}, alias("admin", "services", "ddns-go", "setting"),_("DDNS-GO"), 58).dependent = true
local e=entry({"admin", "services", "ddns-go"}, alias("admin", "services", "ddns-go", "setting"),_("DDNS-GO"), 58)
e.dependent=false
e.acl_depends={ "luci-app-ddns-go" }
entry({"admin", "services", "ddns-go", "setting"}, cbi("ddns-go"), _("Base Setting"), 20).leaf=true
entry({"admin", "services", "ddns-go", "ddns-go"}, template("ddns-go"), _("DDNS-GO"), 30).leaf = true
entry({"admin", "services", "ddnsgo_status"}, call("act_status"))

View File

@ -20,7 +20,23 @@ o.datatype = "uinteger"
o.default=9876
o = s:option(Value, "time",translate("update interval"))
o.default=300
o.default=600
o = s:option(Value, "ctimes",translate("Compare with service provider N times intervals"))
o.default=5
o = s:option(Flag,"skipverify",translate("Skip verifying certificates"))
o.default = 0
o = s:option(ListValue, "dns",translate("Specify DNS resolution server"))
o:value("223.5.5.5", ""..translate("Ali").." DNS (223.5.5.5)")
o:value("223.6.6.6", ""..translate("Ali").." DNS (223.6.6.6)")
o:value("119.29.29.29", ""..translate("Tencent").." DNS (119.29.29.29)")
o:value("1.1.1.1", translate("CloudFlare DNS(1.1.1.1)"))
o.default = "223.5.5.5"
o = s:option(Flag,"noweb",translate("Do not start web services"))
o.default = 0
m.apply_on_parse = true
m.on_after_apply = function(self,map)

View File

@ -1,3 +1,7 @@
<%
protocol="http://"
%>
<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[services]], [[ddnsgo_status]])%>', null,
function(x, data) {
@ -6,9 +10,11 @@
{
if (data.running)
{
var URL = ""+ window.location.protocol + "//" + window.location.hostname +":<%=luci.model.uci.cursor():get_first("ddns-go", "basic", "port") %>";
var URL = "<%=protocol%>" + window.location.hostname +":<%=luci.model.uci.cursor():get_first("ddns-go", "basic", "port") %>";
tb.innerHTML = '<em><b style=\"color:green\"><%:The DDNS-GO service is running.%></b></em>';
tb.innerHTML +='<em> <br/><br/>' + ' <b > <%:Click the new page to open ddns-go%> <a href="' +URL+'"'+' target="_blank">' + URL + ' </a><br/> </em>';
tb.innerHTML +='<em> <br/><br/>' + ' <b > <%:Click the new page to open ddns-go%> </em>';
tb.innerHTML += "<input class=\"cbi-button cbi-button-reload \" type=\"button\" value=\" "+ URL+ "\" onclick=\"window.open('"+ URL+ "/')\"/>";
}
else
{

View File

@ -37,4 +37,15 @@ msgstr "收集数据..."
msgid "update interval"
msgstr "更新间隔"
msgid "Skip verifying certificates"
msgstr "跳过验证证书"
msgid "Compare with service provider N times intervals"
msgstr "间隔N次与服务商比对"
msgid "Specify DNS resolution server"
msgstr "指定DNS解析服务器"
msgid "Do not start web services"
msgstr "不启动web服务"

View File

@ -1 +0,0 @@
zh-cn

View File

@ -0,0 +1,51 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
msgid "DDNS-GO"
msgstr "DDNS-GO"
msgid "DDNS-GO automatically obtains your public IPv4 or IPv6 address and resolves it to the corresponding domain name service."
msgstr "DDNS-GO自动获得你的公网 IPv4 或 IPv6 地址,并解析到对应的域名服务."
msgid "Base Setting"
msgstr "基本设置"
msgid "Running state"
msgstr "运行状态"
msgid "The DDNS-GO service is running."
msgstr "DDNS-GO服务已启动"
msgid "The DDNS-GO service is not running."
msgstr "DDNS-GO服务未启动"
msgid "DDNS-GO Status"
msgstr "DDNS-GO服务状态"
msgid "Click the new page to open ddns-go"
msgstr "点击打开ddns-go后台"
msgid "Set the DDNS-TO access port"
msgstr "设置访问端口"
msgid "</br>For specific usage, see:"
msgstr "</br>具体使用方法参见:"
msgid "Collecting data..."
msgstr "收集数据..."
msgid "update interval"
msgstr "更新间隔"
msgid "Skip verifying certificates"
msgstr "跳过验证证书"
msgid "Compare with service provider N times intervals"
msgstr "间隔N次与服务商比对"
msgid "Specify DNS resolution server"
msgstr "指定DNS解析服务器"
msgid "Do not start web services"
msgstr "不启动web服务"

View File

@ -1 +0,0 @@
zh-cn

1
luci-app-lucky/po/zh_Hans Symbolic link
View File

@ -0,0 +1 @@
zh-cn