Skip to content

Commit

Permalink
update-09.14
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 14, 2021
1 parent 9e48152 commit ad7053c
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 23 deletions.
13 changes: 13 additions & 0 deletions aliyundrive-webdav/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,20 @@ define Package/$(PKG_NAME)/conffiles
/etc/config/aliyundrive-webdav
endef

define Download/sha256sum
FILE:=$(PKG_SOURCE).sha256
URL_FILE:=$(FILE)
URL:=$(PKG_SOURCE_URL)
HASH:=skip
endef
$(eval $(call Download,sha256sum))

define Build/Prepare
mv $(DL_DIR)/$(PKG_SOURCE).sha256 .
cp $(DL_DIR)/$(PKG_SOURCE) .
shasum -a 256 -c $(PKG_SOURCE).sha256
rm $(PKG_SOURCE).sha256 $(PKG_SOURCE)

tar -C $(PKG_BUILD_DIR)/ -zxf $(DL_DIR)/$(PKG_SOURCE)
endef

Expand Down
2 changes: 1 addition & 1 deletion luci-app-dnsfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-dnsfilter
PKG_VERSION:=1.0
PKG_RELEASE:=10
PKG_RELEASE:=11

PKG_LICENSE:=GPLv2
PKG_MAINTAINER:=small_5 kiddin9
Expand Down
2 changes: 1 addition & 1 deletion luci-app-dnsfilter/luasrc/controller/dnsfilter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function index()
if not nixio.fs.access("/etc/config/dnsfilter") then
return
end
local page = entry({"admin","services","dnsfilter"},alias("admin","services","dnsfilter","base"),_("DNSFilter"),9)
local page = entry({"admin","services","dnsfilter"},alias("admin","services","dnsfilter","base"),_("DNS Filter"),9)
page.dependent = true
page.acl_depends = { "luci-app-dnsfilter" }
entry({"admin","services","dnsfilter","base"},cbi("dnsfilter/base"),_("Base Setting"),10).leaf=true
Expand Down
8 changes: 4 additions & 4 deletions luci-app-dnsfilter/luasrc/model/cbi/dnsfilter/base.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local SYS=require "luci.sys"

m=Map("dnsfilter")
m.title=translate("DNSFilter")
m.title=translate("DNS Filter")
m.description=translate("Support AdGuardHome/Host/DNSMASQ/Domain Rules")
m:section(SimpleSection).template="dnsfilter/dnsfilter_status"

Expand All @@ -26,9 +26,9 @@ o=s:option(Flag,"cron_mode")
o.title=translate("Enable automatic update rules")

o=s:option(ListValue,"time_update")
o.title=translate("Update time")
o.title=translate("Update time (every day)")
for s=0,23 do
o:value(s)
o:value(s, s .. ':00')
end
o.default=6
o:depends("cron_mode",1)
Expand All @@ -40,7 +40,7 @@ UD=SYS.exec("cat /tmp/dnsfilter/dnsfilter.updated 2>/dev/null")
rule_count=tonumber(SYS.exec("find /tmp/dnsfilter -exec cat {} \\; 2>/dev/null | wc -l"))
o=s:option(DummyValue,"1",translate("Subscribe Rules Data"))
o.rawhtml=true
o.template="dnsfilter/refresh"
o.template="dnsfilter/dnsfilter_refresh"
o.value=rule_count.." "..translate("Records")
o.description=string.format(translate("AdGuardHome / Host / DNSMASQ / Domain rules auto-convert").."<br/><strong>"..translate("Last Update Checked")..":</strong> %s<br/>",UD)
end
Expand Down
4 changes: 2 additions & 2 deletions luci-app-dnsfilter/luasrc/view/dnsfilter/dnsfilter_status.htm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
var tb=document.getElementById('dnsfilter_status');
if (data&&tb){
if (data.running){
tb.innerHTML='<em><b><font color=green>DNSFilter <%:RUNNING%></font></b></em>';
tb.innerHTML='<em><b><font color=green>DNS Filter <%:RUNNING%></font></b></em>';
}else{
tb.innerHTML='<em><b><font color=red>DNSFilter <%:NOT RUNNING%></font></b></em>';
tb.innerHTML='<em><b><font color=red>DNS Filter <%:NOT RUNNING%></font></b></em>';
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions luci-app-dnsfilter/po/zh-cn/dnsfilter.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
msgid "Base Setting"
msgstr "基本设置"

msgid "DNS Filter"
msgstr "DNS 过滤器"

msgid "Support AdGuardHome/Host/DNSMASQ/Domain Rules"
msgstr "支持 AdGuardHome/Host/DNSMASQ/Domain 规则"

Expand All @@ -22,8 +25,8 @@ msgstr "拦截 短视频 APP 和网站"
msgid "Enable automatic update rules"
msgstr "启用规则自动更新"

msgid "Update time"
msgstr "更新时间"
msgid "Update time (every day)"
msgstr "更新时间 (每天)"

msgid "DNSFilter Data"
msgstr "DNSFilter 规则数据库"
Expand Down Expand Up @@ -56,7 +59,7 @@ msgid "Subscribe Rules Data"
msgstr "去广告规则"

msgid "AdGuardHome / Host / DNSMASQ / Domain rules auto-convert"
msgstr "AdGuardHome / Host / DNSMASQ /Domain 规则自动识别, 自动去重"
msgstr "AdGuardHome / Host / DNSMASQ / Domain 规则自动识别, 自动去重"

msgid "Save rules to flash"
msgstr "保存规则到闪存"
Expand Down
2 changes: 1 addition & 1 deletion luci-app-serverchan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PKG_NAME:=luci-app-serverchan
PKG_VERSION:=2.01.3
PKG_RELEASE:=9

PKG_MAINTAINER:=tty228
PKG_MAINTAINER:=tty228 <[email protected]>

LUCI_TITLE:=LuCI support for serverchan
LUCI_PKGARCH:=all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ a.default = "10"
a.datatype="uinteger"
a:depends({public_ip_event="1"})

return m
return m
2 changes: 1 addition & 1 deletion luci-app-serverchan/luasrc/model/cbi/serverchan/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ f = SimpleForm("serverchan")
luci.sys.call("/usr/bin/serverchan/serverchan client")
f.reset = false
f.submit = false
f:append(Template("serverchan/client"))
f:append(Template("serverchan/serverchan_client"))
return f
2 changes: 1 addition & 1 deletion luci-app-serverchan/luasrc/model/cbi/serverchan/log.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
f = SimpleForm("serverchan")
f.reset = false
f.submit = false
f:append(Template("serverchan/log"))
f:append(Template("serverchan/serverchan_log"))
return f
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<p id="serverchan_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>
</fieldset>
2 changes: 1 addition & 1 deletion luci-app-serverchan/root/etc/init.d/serverchan
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ restart(){
sleep 1
start
echo "restarted."
}
}
2 changes: 1 addition & 1 deletion luci-app-serverchan/root/etc/uci-defaults/luci-serverchan
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ uci -q batch <<-EOF >/dev/null
EOF

rm -rf /tmp/luci-*
exit 0
exit 0
2 changes: 1 addition & 1 deletion luci-app-serverchan/root/usr/bin/serverchan/api/ipv4.list
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ipv4.ddnspod.com
ifcfg.cn
speed.neu.edu.cn/getIP.php
ddns.oray.com/checkip
www.net.cn/static/customercare/yourip.asp
www.net.cn/static/customercare/yourip.asp
2 changes: 1 addition & 1 deletion luci-app-serverchan/root/usr/bin/serverchan/api/ipv6.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ip.sb
ipv6.ddnspod.com
api-ipv6.ip.sb/ip
speed.neu6.edu.cn/getIP.php
v6.myip.la/json
v6.myip.la/json
6 changes: 3 additions & 3 deletions luci-app-serverchan/root/usr/bin/serverchan/serverchan
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function get_client(){
local js_str="${js_str}<div class='th'><%:${tmp_uptime}%></div></div>"
done < ${dir}ipAddress
fi
cat>/usr/lib/lua/luci/view/serverchan/client.htm<<EOF
cat>/usr/lib/lua/luci/view/serverchan/serverchan_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>
$js_str
</div>
Expand Down Expand Up @@ -718,7 +718,7 @@ function ip_changes(){
[ ! -z "$serverchan_ipv6" ] && [ "$serverchan_ipv6" -ne "0" ] && echo "`date "+%Y-%m-%d %H:%M:%S"` 当前IPv6: ${IPv6}" >> ${logfile}
echo IPv4 $IPv4 > ${dir}ip && echo -e IPv6 $IPv6 >> ${dir}ip
title="路由器重新启动"
content="${content}${str_splitline}${str_title_start} 路由器重新启动"${str_title_end}
content="${content}${str_splitline}${str_title_start} 路由器重新启动${str_title_end}"
[ ! -z "$serverchan_ipv4" ] && [ "$serverchan_ipv4" -ne "0" ] && content="${content}${str_linefeed}${str_tab}当前IP:${IPv4}"
[ ! -z "$serverchan_ipv6" ] && [ "$serverchan_ipv6" -ne "0" ] && content="${content}${str_linefeed}${str_tab}当前IPv6:${IPv6}"
fi
Expand Down Expand Up @@ -1104,7 +1104,7 @@ function send(){
local cpuload=`getcpu`
local ramload=`free -m|sed -n '2p'|awk '{printf "%.2f%%\n",($3/$2)*100}'`
local systemstatustime=`cat /proc/uptime|awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("运行时间:%d天%d时%d分%d秒",run_days,run_hour,run_minute,run_second)}'`;unset run_days run_hour run_minute run_second
local send_content="${send_content}${str_splitline}${str_title_start} 系统运行状态"${str_title_end}
local send_content="${send_content}${str_splitline}${str_title_start} 系统运行状态${str_title_end}"
local send_content="${send_content}${str_linefeed}${str_tab}平均负载:${systemload}"
local send_content="${send_content}${str_linefeed}${str_tab}CPU占用:${cpuload}"
local send_content="${send_content}${str_linefeed}${str_tab}内存占用:${ramload}"
Expand Down

0 comments on commit ad7053c

Please sign in to comment.