2024-03-06 03:22:06 Auto Sync

This commit is contained in:
WindyMadman 2024-03-06 03:22:06 +08:00
parent ea13a755d2
commit a13d6a3eb8
7 changed files with 39 additions and 14 deletions

View File

@ -5,20 +5,21 @@
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-go
PKG_VERSION:=6.1.0
PKG_RELEASE:=43
KG_VERSION:=6.1.2
PKG_RELEASE:=45
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/jeessy2/ddns-go/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=skip
PKG_SOURCE_URL:=https://github.com/jeessy2/ddns-go.git
PKG_MIRROR_HASH:=skip
PKG_SOURCE_VERSION:=52ef2b7fbf854df52a2996d926b869524a003326
PKG_LICENSE:=MIT
PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_MAINTAINER:=herboy2008 <herboy2008@gmail.com>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1

View File

@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021-2022 sirpdboy <herboy2008@gmail.com> https://github.com/sirpdboy/luci-app-ddns-go
#
# Copyright (C) 2021-2024 sirpdboy <herboy2008@gmail.com>
# https://github.com/sirpdboy/luci-app-ddns-go
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk

View File

@ -12,7 +12,7 @@ function index()
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", "ddns-go", "ddns-go"}, template("ddns-go"), _("DDNS-GO Control panel"), 30).leaf = true
entry({"admin", "services", "ddnsgo_status"}, call("act_status"))
end

View File

@ -28,7 +28,7 @@ o.default=5
o = s:option(Flag,"skipverify",translate("Skip verifying certificates"))
o.default = 0
o = s:option(Value, "dns",translate("Specify DNS resolution server"))
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)")

View File

@ -1,13 +1,16 @@
<%#
Copyright 2021-2022 sirpdboy Wich <sirpdboy@qq.com>
Copyright 2008-2024 by sirpdboy <herboy2008@gmail.com>
https://github.com/sirpdboy/luci-app-ddns-go
Licensed to the public under the Apache License 2.0.
-%>
<%
local running = luci.sys.exec("pidof ddns-go | awk -F ' ' '{print $1}'")
%>
<%+header%>
<div class="cbi-map">
<iframe id="ddnsgo" style="width: 100%; min-height: 780px; border: none; border-radius: .375rem;box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 15px -5px;"><br/><em style=\"color:red\">
<% if tonumber(running) ~= nil then %>
<iframe id="ddnsgo" style="width: 100%; min-height: 580px; border: none; border-radius: .375rem;box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 15px -5px;"><br/><em style=\"color:red\">
<p ><em><%:The DDNS-GO service is not running.%></em></p>
</iframe>
@ -19,4 +22,13 @@
document.getElementById("ddnsgo").height = document.documentElement.clientHeight;
}
</script>
<% else %>
<style>.running{text-align: center;} .running>h1{font-size: 25px; color: #333; margin: 1rem;} .running>p{ font-size: 1.2rem; color: #8391a2; margin: 1rem;}</style>
<div class="running">
<img src="data:image/svg+xml;base64,PCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMjQiIGhlaWd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NS-GO service is not running.%></font></h1>
<p><%:Please enable the DDNS-GO service%></p>
</div>
<% end -%>
</div>
<%+footer%>

View File

@ -13,6 +13,9 @@ msgstr "基本设置"
msgid "Running state"
msgstr "运行状态"
msgid "DDNS-GO Control panel"
msgstr "DDNS-GO操作台"
msgid "The DDNS-GO service is running."
msgstr "DDNS-GO服务已启动"
@ -22,6 +25,9 @@ msgstr "DDNS-GO服务未启动"
msgid "DDNS-GO Status"
msgstr "DDNS-GO服务状态"
msgid "Please enable the DDNS-GO service"
msgstr "请将DDNS-GO服务启用"
msgid "Click the new page to open ddns-go"
msgstr "点击打开ddns-go后台"

View File

@ -13,6 +13,9 @@ msgstr "基本设置"
msgid "Running state"
msgstr "运行状态"
msgid "DDNS-GO Control panel"
msgstr "DDNS-GO操作台"
msgid "The DDNS-GO service is running."
msgstr "DDNS-GO服务已启动"
@ -22,6 +25,9 @@ msgstr "DDNS-GO服务未启动"
msgid "DDNS-GO Status"
msgstr "DDNS-GO服务状态"
msgid "Please enable the DDNS-GO service"
msgstr "请将DDNS-GO服务启用"
msgid "Click the new page to open ddns-go"
msgstr "点击打开ddns-go后台"