update 2023-04-01 18:08:15

This commit is contained in:
github-actions[bot] 2023-04-01 18:08:15 +08:00
parent d86b462f76
commit a0d47ad3d4
6 changed files with 20 additions and 7 deletions

View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=4.62
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \

View File

@ -261,4 +261,11 @@ o.remove = function(self, section, value)
fs.writefile(hosts, "")
end
if sys.call('[ -f "/www/luci-static/resources/uci.js" ]') == 0 then
m.apply_on_parse = true
function m.on_apply(self)
luci.sys.call("/etc/init.d/passwall reload > /dev/null 2>&1 &")
end
end
return m

View File

@ -876,6 +876,6 @@ function to_check_self()
has_update = true,
local_version = local_version,
remote_version = remote_version,
error = remote_version
error = i18n.translatef("The latest version: %s, currently does not support automatic update, if you need to update, please compile or download the ipk and then manually install.", remote_version)
}
end

View File

@ -636,7 +636,7 @@ function gen_config(var)
if not observatory then
observatory = {
subjectSelector = { "blc-" },
probeUrl = _node.useCustomProbeUrl == true and _node.probeUrl or nil,
probeUrl = _node.useCustomProbeUrl and _node.probeUrl or nil,
probeInterval = _node.probeInterval or "1m",
enableConcurrency = node.type == "Xray" and true or nil --这里只判断顶层节点(分流总节点/单独的负载均衡节点)类型为Xray就可以启用并发
}

View File

@ -9,7 +9,7 @@ local version = {}
var appInfoList = new Array();
var inProgressCount = 0;
var tokenStr = '<%=token%>';
var manuallyUpdateText = '<%:Manually update%>';
var checkUpdateText = '<%:Check update%>';
var noUpdateText = '<%:It is the latest version%>';
var updateSuccessText = '<%:Update successful%>';
var clickToUpdateText = '<%:Click to update%>';
@ -55,7 +55,7 @@ local version = {}
function onRequestError(btn, errorMessage) {
btn.disabled = false;
btn.value = manuallyUpdateText;
btn.value = checkUpdateText;
var ckeckDetailElm = document.getElementById(btn.id + '-detail');
if (errorMessage && ckeckDetailElm) {
@ -180,7 +180,7 @@ local version = {}
<div class="cbi-value-description">
<span><%=api.get_version()%> 】</span>
<input class="btn cbi-button cbi-button-apply" type="button" id="passwall-check_btn"
onclick="onBtnClick(this,'passwall');" value="<%:Manually update%>" />
onclick="onBtnClick(this,'passwall');" value="<%:Check update%>" />
<span id="passwall-check_btn-detail"></span>
</div>
</div>
@ -196,7 +196,7 @@ local version = {}
<div class="cbi-value-description">
<span><%=version[k] ~="" and version[k] or translate("Null") %> 】</span>
<input class="btn cbi-button cbi-button-apply" type="button" id="_<%=k%>-check_btn"
onclick="onBtnClick(this,'<%=k%>');" value="<%:Manually update%>" />
onclick="onBtnClick(this,'<%=k%>');" value="<%:Check update%>" />
<span id="_<%=k%>-check_btn-detail"></span>
</div>
</div>

View File

@ -757,9 +757,15 @@ msgstr "主要"
msgid "Standby"
msgstr "备用"
msgid "Check update"
msgstr "检查更新"
msgid "Manually update"
msgstr "手动更新"
msgid "The latest version: %s, currently does not support automatic update, if you need to update, please compile or download the ipk and then manually install."
msgstr "最新版本:%s目前暂不支持自动更新如需更新请自行编译或下载ipk然后手动安装。"
msgid "Enable custom URL"
msgstr "启用自定义规则地址"