...
 
Commits (2)
    https://gitcode.net/xylz0928/luci-app-pushbot/-/commit/3732c67f6b1f34cf7ea2ff6c64d8c9903cd47df1 tidy up files 2021-09-14T11:10:38+00:00 Beginner-Go 70857188+Beginner-Go@users.noreply.github.com https://gitcode.net/xylz0928/luci-app-pushbot/-/commit/e5a42f0cf8c67e8049c21072c8e69a6c279d2387 Merge pull request #34 from Beginner-Go/master 2021-09-15T20:09:42+08:00 然后七年 69092025+zzsj0928@users.noreply.github.com tidy up files
...@@ -2,9 +2,9 @@ include $(TOPDIR)/rules.mk ...@@ -2,9 +2,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-pushbot PKG_NAME:=luci-app-pushbot
PKG_VERSION:=3.55 PKG_VERSION:=3.55
PKG_RELEASE:=15 PKG_RELEASE:=16
PKG_MAINTAINER:=tty228 zzsj0928 PKG_MAINTAINER:=tty228 <tty228@yeah.net> zzsj0928
LUCI_TITLE:=LuCI support for Pushbot LUCI_TITLE:=LuCI support for Pushbot
LUCI_PKGARCH:=all LUCI_PKGARCH:=all
......
...@@ -2,5 +2,5 @@ f = SimpleForm("pushbot") ...@@ -2,5 +2,5 @@ f = SimpleForm("pushbot")
luci.sys.call("/usr/bin/pushbot/pushbot client") luci.sys.call("/usr/bin/pushbot/pushbot client")
f.reset = false f.reset = false
f.submit = false f.submit = false
f:append(Template("pushbot/client")) f:append(Template("pushbot/pushbot_client"))
return f return f
f = SimpleForm("pushbot") f = SimpleForm("pushbot")
f.reset = false f.reset = false
f.submit = false f.submit = false
f:append(Template("pushbot/log")) f:append(Template("pushbot/pushbot_log"))
return f return f
...@@ -8,4 +8,3 @@ config pushbot 'pushbot' ...@@ -8,4 +8,3 @@ config pushbot 'pushbot'
option cpuload_enable '1' option cpuload_enable '1'
option cpuload '2' option cpuload '2'
option temperature_enable '0' option temperature_enable '0'
...@@ -3,4 +3,4 @@ ipv4.ddnspod.com ...@@ -3,4 +3,4 @@ ipv4.ddnspod.com
ifcfg.cn ifcfg.cn
speed.neu.edu.cn/getIP.php speed.neu.edu.cn/getIP.php
ddns.oray.com/checkip ddns.oray.com/checkip
www.net.cn/static/customercare/yourip.asp www.net.cn/static/customercare/yourip.asp
\ No newline at end of file
...@@ -2,4 +2,4 @@ ip.sb ...@@ -2,4 +2,4 @@ ip.sb
ipv6.ddnspod.com ipv6.ddnspod.com
api-ipv6.ip.sb/ip api-ipv6.ip.sb/ip
speed.neu6.edu.cn/getIP.php speed.neu6.edu.cn/getIP.php
v6.myip.la/json v6.myip.la/json
\ No newline at end of file
...@@ -519,7 +519,7 @@ function get_client(){ ...@@ -519,7 +519,7 @@ function get_client(){
local js_str="${js_str}<div class='th'><%:${tmp_uptime}%></div></div>" local js_str="${js_str}<div class='th'><%:${tmp_uptime}%></div></div>"
done < ${dir}ipAddress done < ${dir}ipAddress
fi fi
cat>/usr/lib/lua/luci/view/pushbot/client.htm<<EOF cat>/usr/lib/lua/luci/view/pushbot/pushbot_client.htm<<EOF
<h2><%:在线设备列表%></h2><div class="table" id="traffic"><div class="tr table-titles"><div class="th" id="thClient" style="width:17%"><%:客户端名%></div><div class="th" id="thMAC" style="width:10%"><%:MAC%></div><div class="th" id="thIP" style="width:17%"><%:IP%></div><div class="th" id="thTotal" style="width:9%"><%:总计流量%></div><div class="th" id="thFirstSeen" style="width:15%"><%:在线时间%></div></div> <h2><%:在线设备列表%></h2><div class="table" id="traffic"><div class="tr table-titles"><div class="th" id="thClient" style="width:17%"><%:客户端名%></div><div class="th" id="thMAC" style="width:10%"><%:MAC%></div><div class="th" id="thIP" style="width:17%"><%:IP%></div><div class="th" id="thTotal" style="width:9%"><%:总计流量%></div><div class="th" id="thFirstSeen" style="width:15%"><%:在线时间%></div></div>
$js_str $js_str
</div> </div>
......
文件模式从 100755 更改为 100644