diff --git a/luci-app-unblockneteasemusic/luasrc/controller/unblockneteasemusic.lua b/luci-app-unblockneteasemusic/luasrc/controller/unblockneteasemusic.lua index a4e26468..7d890c49 100644 --- a/luci-app-unblockneteasemusic/luasrc/controller/unblockneteasemusic.lua +++ b/luci-app-unblockneteasemusic/luasrc/controller/unblockneteasemusic.lua @@ -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")) diff --git a/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic_log.lua b/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/log.lua similarity index 100% rename from luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic_log.lua rename to luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/log.lua diff --git a/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic.lua b/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/main.lua similarity index 99% rename from luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic.lua rename to luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/main.lua index 3a17798e..ef63bc4d 100644 --- a/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic.lua +++ b/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/main.lua @@ -3,7 +3,7 @@ local m, s, o m = Map("unblockneteasemusic", translate("解除网易云音乐播放限制")) m.description = translate("原理:采用 [Bilibili/JOOX/酷狗/酷我/咪咕/pyncmd/QQ/Youtube] 等音源,替换网易云音乐 无版权/收费 歌曲链接
具体使用方法参见:GitHub @UnblockNeteaseMusic/luci-app-unblockneteasemusic") -m:section(SimpleSection).template = "unblockneteasemusic/unblockneteasemusic_status" +m:section(SimpleSection).template = "unblockneteasemusic/status" s = m:section(TypedSection, "unblockneteasemusic") s.anonymous = true diff --git a/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic_upgrade.lua b/luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/upgrade.lua similarity index 100% rename from luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/unblockneteasemusic_upgrade.lua rename to luci-app-unblockneteasemusic/luasrc/model/cbi/unblockneteasemusic/upgrade.lua diff --git a/luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/unblockneteasemusic_status.htm b/luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/status.htm similarity index 83% rename from luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/unblockneteasemusic_status.htm rename to luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/status.htm index a70889c5..022c2efd 100644 --- a/luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/unblockneteasemusic_status.htm +++ b/luci-app-unblockneteasemusic/luasrc/view/unblockneteasemusic/status.htm @@ -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 = 'UnblockNeteaseMusic <%:运行中%>'; - tb.innerHTML = links; + tb.innerHTML = 'UnblockNeteaseMusic <%:运行中%>'; } else { tb.innerHTML = 'UnblockNeteaseMusic <%:未在运行%>'; }