🌈 Sync 2026-08-27 14:56:13

This commit is contained in:
github-actions[bot] committed 2026-08-27 14:56:13 +08:00
1 parent 1b91eb3175
commit 3ebef8b234
25 files changed
+416 -168

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=26.8.26
PKG_RELEASE:=246
PKG_RELEASE:=247
PKG_PO_VERSION:=$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \
@@ -1,16 +1,13 @@
local api = require "luci.passwall.api"
local fs = api.fs
local sys = api.sys
local uci = api.uci
local datatypes = api.datatypes
local path = string.format("/usr/share/%s/rules/", api.c_config)
local gfwlist_path = "/usr/share/passwall/rules/gfwlist"
local chnlist_path = "/usr/share/passwall/rules/chnlist"
local chnroute_path = "/usr/share/passwall/rules/chnroute"
local path = string.format("/usr/share/%s/rules/", api.appname)
local gfwlist_path = path .. "gfwlist"
local chnlist_path = path .. "chnlist"
local chnroute_path = path .. "chnroute"
api.set_default_cbi()
m = Map()
m = Map(api.appname)
function clean_text(text)
local nbsp = string.char(0xC2, 0xA0) -- 不间断空格(U+00A0)
@@ -317,7 +314,7 @@ if fs.access(chnroute_path) then
]], translate("Read List"))
end
m:appendTemplate("/rule_list/js")
m:append(Template(api.appname .. "/rule_list/js"))
local geo_dir = (api.uci_get_c("@global_rules[0]", "v2ray_location_asset") or "/usr/share/v2ray/"):match("^(.*)/")
local geosite_path = geo_dir .. "/geosite.dat"
@@ -327,7 +324,7 @@ if api.finded_com("geoview") and fs.access(geosite_path) and fs.access(geoip_pat
s:tab("geoview", translate("Geo View"))
o = s:taboption("geoview", DummyValue, "_geoview_fieldset")
o.rawhtml = true
o.template = m:template_path("/rule_list/geoview")
o.template = api.appname .. "/rule_list/geoview"
end
end
@@ -335,4 +332,4 @@ m.on_before_save = function(self)
m:set("@global[0]", "flush_set", "1")
end
return api.return_map(m)
return m
@@ -20,7 +20,6 @@ local map = self.map
});
</script>
<% if luci.http.formvalue("cbi.apply") == "1" and map.is_js_luci then -%>
<script type="text/javascript">
document.addEventListener("luci-loaded", function() {
@@ -1,6 +1,5 @@
<%
local map = self.map
local api = map.api
local api = require "luci.passwall.api"
-%>
<style>
@@ -1,6 +1,5 @@
<%
local map = self.map
local api = map.api
local api = require "luci.passwall.api"
-%>
<script type="text/javascript">
//<![CDATA[