update 2022-07-12 20:19:32

This commit is contained in:
github-actions[bot] 2022-07-12 20:19:32 +08:00
parent 7df6200cb6
commit 7c0c2f9793
5 changed files with 5 additions and 6 deletions

View File

@ -13,9 +13,9 @@ function index()
page.dependent = false
page.acl_depends = { "luci-app-unblockneteasemusic" }
entry({"admin", "services", "unblockneteasemusic", "general"}, cbi("unblockneteasemusic/unblockneteasemusic"), _("基本设定"), 1)
entry({"admin", "services", "unblockneteasemusic", "upgrade"}, form("unblockneteasemusic/unblockneteasemusic_upgrade"), _("更新组件"), 2).leaf = true
entry({"admin", "services", "unblockneteasemusic", "log"}, form("unblockneteasemusic/unblockneteasemusic_log"), _("日志"), 3)
entry({"admin", "services", "unblockneteasemusic", "general"}, cbi("unblockneteasemusic/main"), _("基本设定"), 1)
entry({"admin", "services", "unblockneteasemusic", "upgrade"}, form("unblockneteasemusic/upgrade"), _("更新组件"), 2).leaf = true
entry({"admin", "services", "unblockneteasemusic", "log"}, form("unblockneteasemusic/log"), _("日志"), 3)
entry({"admin", "services", "unblockneteasemusic", "status"}, call("act_status")).leaf = true
entry({"admin", "services", "unblockneteasemusic", "update_core"}, call("act_update_core"))

View File

@ -3,7 +3,7 @@ local m, s, o
m = Map("unblockneteasemusic", translate("解除网易云音乐播放限制"))
m.description = translate("原理:采用 [Bilibili/JOOX/酷狗/酷我/咪咕/pyncmd/QQ/Youtube] 等音源,替换网易云音乐 无版权/收费 歌曲链接<br/>具体使用方法参见:<a href=\"https://github.com/UnblockNeteaseMusic/luci-app-unblockneteasemusic\" target=\"_blank\">GitHub @UnblockNeteaseMusic/luci-app-unblockneteasemusic</a>")
m:section(SimpleSection).template = "unblockneteasemusic/unblockneteasemusic_status"
m:section(SimpleSection).template = "unblockneteasemusic/status"
s = m:section(TypedSection, "unblockneteasemusic")
s.anonymous = true

View File

@ -4,8 +4,7 @@ XHR.poll(3, '<%=url([[admin]], [[services]], [[unblockneteasemusic]], [[status]]
var tb = document.getElementById('unblockneteasemusic_status');
if (data && tb) {
if (data.running) {
var links = '<em><b style=color:green>UnblockNeteaseMusic <%:运行中%></b></em>';
tb.innerHTML = links;
tb.innerHTML = '<em><b style=color:green>UnblockNeteaseMusic <%:运行中%></b></em>';
} else {
tb.innerHTML = '<em><b style=color:red>UnblockNeteaseMusic <%:未在运行%></b></em>';
}