mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
luci-app: adapt LuCI style of luci-theme-openwrt-2020 (#6884)
* luci-app-amule: adapt LuCI style of luci-theme-openwrt-2020 * luci-app-unblockmusic: adapt LuCI style of luci-theme-openwrt-2020 Co-authored-by: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
This commit is contained in:
parent
5d4aa4be33
commit
7a92f40719
@ -27,7 +27,7 @@
|
|||||||
<%
|
<%
|
||||||
-- one button on top, one at the buttom
|
-- one button on top, one at the buttom
|
||||||
%>
|
%>
|
||||||
<input class="cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="onclick_logview(this.name, false)"
|
<input class="btn cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="onclick_logview(this.name, false)"
|
||||||
<%=
|
<%=
|
||||||
attr("name", section) .. attr("id", cbid .. ".btn1") .. attr("value", self.inputtitle)
|
attr("name", section) .. attr("id", cbid .. ".btn1") .. attr("value", self.inputtitle)
|
||||||
%> />
|
%> />
|
||||||
@ -49,7 +49,7 @@ attr("name", cbid .. ".txt") .. attr("id", cbid .. ".txt") .. ifattr(self.rows,
|
|||||||
<%
|
<%
|
||||||
-- one button on top, one at the buttom
|
-- one button on top, one at the buttom
|
||||||
%>
|
%>
|
||||||
<input class="cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="onclick_logview(this.name, true)"
|
<input class="btn cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="onclick_logview(this.name, true)"
|
||||||
<%= attr("name", section) .. attr("id", cbid .. ".btn2") .. attr("value", self.inputtitle) %> />
|
<%= attr("name", section) .. attr("id", cbid .. ".btn2") .. attr("value", self.inputtitle) %> />
|
||||||
|
|
||||||
<%+cbi/valuefooter%>
|
<%+cbi/valuefooter%>
|
||||||
|
@ -3,7 +3,7 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin/nas/amule/status")%>', null,
|
|||||||
function(x, data) {
|
function(x, data) {
|
||||||
var tb = document.getElementById('amule_status');
|
var tb = document.getElementById('amule_status');
|
||||||
var btn = document.getElementById("amule_startstop");
|
var btn = document.getElementById("amule_startstop");
|
||||||
var btn_tmpl = '<input class="cbi-button cbi-button-apply" id="btn_startstop" style="font-size: 100%;" value="PID: NUMBER"type="button" onclick="onclick_startstop(this.id)">'
|
var btn_tmpl = '<input class="btn cbi-button cbi-button-apply" id="btn_startstop" style="font-size: 100%;" value="PID: NUMBER"type="button" onclick="onclick_startstop(this.id)">'
|
||||||
if (data && tb) {
|
if (data && tb) {
|
||||||
if (data.amuled) {
|
if (data.amuled) {
|
||||||
var links = '<em><%:aMule daemon is running.%></em>';
|
var links = '<em><%:aMule daemon is running.%></em>';
|
||||||
|
@ -82,9 +82,9 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<%=translate("Command: ")%>
|
<%=translate("Command: ")%>
|
||||||
<input type="text" id="cmd"/>
|
<input type="text" id="cmd"/>
|
||||||
<input class="cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="update_status(null)"
|
<input class="btn cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="update_status(null)"
|
||||||
<%= attr("name", section) .. attr("id", cbid .. ".btn2") .. attr("value", translate("Execute")) %> />
|
<%= attr("name", section) .. attr("id", cbid .. ".btn2") .. attr("value", translate("Execute")) %> />
|
||||||
<input class="cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="clear_textfield()"
|
<input class="btn cbi-button cbi-input-button" style="align: center; width: 100%" type="button" onclick="clear_textfield()"
|
||||||
<%= attr("name", section) .. attr("id", cbid .. ".btn3") .. attr("value", translate("Clear")) %> />
|
<%= attr("name", section) .. attr("id", cbid .. ".btn3") .. attr("value", translate("Clear")) %> />
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,7 +69,7 @@ o.description = translate("每天自动检测并更新到最新版本")
|
|||||||
o:depends("apptype", "nodejs")
|
o:depends("apptype", "nodejs")
|
||||||
|
|
||||||
download_certificate=s:option(DummyValue,"opennewwindow",translate("HTTPS 证书"))
|
download_certificate=s:option(DummyValue,"opennewwindow",translate("HTTPS 证书"))
|
||||||
download_certificate.description = translate("<input type=\"button\" class=\"cbi-button cbi-button-apply\" value=\"下载CA根证书\" onclick=\"window.open('https://raw.githubusercontent.com/nondanee/UnblockNeteaseMusic/master/ca.crt')\" /><br />Mac/iOS客户端需要安装 CA根证书并信任<br />iOS系统需要在“设置 -> 通用 -> 关于本机 -> 证书信任设置”中,信任 UnblockNeteaseMusic Root CA <br />Linux 设备请在启用时加入 --ignore-certificate-errors 参数")
|
download_certificate.description = translate("<input type=\"button\" class=\"btn cbi-button cbi-button-apply\" value=\"下载CA根证书\" onclick=\"window.open('https://raw.githubusercontent.com/nondanee/UnblockNeteaseMusic/master/ca.crt')\" /><br />Mac/iOS客户端需要安装 CA根证书并信任<br />iOS系统需要在“设置 -> 通用 -> 关于本机 -> 证书信任设置”中,信任 UnblockNeteaseMusic Root CA <br />Linux 设备请在启用时加入 --ignore-certificate-errors 参数")
|
||||||
|
|
||||||
local ver = fs.readfile("/usr/share/UnblockNeteaseMusic/core_ver") or "0.00"
|
local ver = fs.readfile("/usr/share/UnblockNeteaseMusic/core_ver") or "0.00"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user