mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 13:53:56 +08:00
update 2026-07-17 14:11:04
This commit is contained in:
1 parent
cd5197e3d2
commit
4e81f1b848
5 files changed
+22
-30
No files matched your search
@@ -9,6 +9,8 @@ local gfwlist_path = "/usr/share/passwall/rules/gfwlist"
|
|||||||
local chnlist_path = "/usr/share/passwall/rules/chnlist"
|
local chnlist_path = "/usr/share/passwall/rules/chnlist"
|
||||||
local chnroute_path = "/usr/share/passwall/rules/chnroute"
|
local chnroute_path = "/usr/share/passwall/rules/chnroute"
|
||||||
|
|
||||||
|
api.set_default_cbi()
|
||||||
|
|
||||||
m = Map(appname)
|
m = Map(appname)
|
||||||
api.set_apply_on_parse(m)
|
api.set_apply_on_parse(m)
|
||||||
|
|
||||||
@@ -335,4 +337,4 @@ m.on_before_save = function(self)
|
|||||||
m:set("@global[0]", "flush_set", "1")
|
m:set("@global[0]", "flush_set", "1")
|
||||||
end
|
end
|
||||||
|
|
||||||
return m
|
return api.return_map(m)
|
||||||
@@ -1541,9 +1541,6 @@ function set_apply_on_parse(map)
|
|||||||
if old then old(self) end
|
if old then old(self) end
|
||||||
map:set("@global[0]", "timestamp", os.time())
|
map:set("@global[0]", "timestamp", os.time())
|
||||||
end
|
end
|
||||||
-- 优化页面
|
|
||||||
local cbi = require "luci.cbi"
|
|
||||||
map:append(cbi.Template(appname .. "/cbi/optimize_cbi_ui"))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,18 @@
|
|||||||
<!-- map footer -->
|
<!-- map footer -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
setTimeout(updateElements, 200);
|
||||||
|
function updateElements() {
|
||||||
|
//删除value控件和描述之间多余换行
|
||||||
|
document.querySelectorAll("div.cbi-value-description").forEach(function(descDiv) {
|
||||||
|
var prev = descDiv.previousSibling;
|
||||||
|
while (prev && prev.nodeType === Node.TEXT_NODE && prev.textContent.trim() === "") {
|
||||||
|
prev = prev.previousSibling;
|
||||||
|
}
|
||||||
|
if (prev && prev.nodeType === Node.ELEMENT_NODE && prev.tagName === "BR") {
|
||||||
|
prev.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<script type="text/javascript">
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
|
||||||
setTimeout(updateElements, 200);
|
|
||||||
function updateElements() {
|
|
||||||
//修正上移、下移按钮名称
|
|
||||||
document.querySelectorAll("input.btn.cbi-button.cbi-button-up").forEach(function(btn) {
|
|
||||||
btn.value = "<%:Move up%>";
|
|
||||||
});
|
|
||||||
document.querySelectorAll("input.btn.cbi-button.cbi-button-down").forEach(function(btn) {
|
|
||||||
btn.value = "<%:Move down%>";
|
|
||||||
});
|
|
||||||
//删除控件和说明之间的多余换行
|
|
||||||
document.querySelectorAll("div.cbi-value-description").forEach(function(descDiv) {
|
|
||||||
var prev = descDiv.previousSibling;
|
|
||||||
while (prev && prev.nodeType === Node.TEXT_NODE && prev.textContent.trim() === "") {
|
|
||||||
prev = prev.previousSibling;
|
|
||||||
}
|
|
||||||
if (prev && prev.nodeType === Node.ELEMENT_NODE && prev.tagName === "BR") {
|
|
||||||
prev.remove();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -21,13 +21,13 @@ define Download/geoip
|
|||||||
HASH:=b71d1999439dde2de2d2b6844a2befa50c50211ff739785c005ca7c230a17d6a
|
HASH:=b71d1999439dde2de2d2b6844a2befa50c50211ff739785c005ca7c230a17d6a
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20260716111426
|
GEOSITE_VER:=20260717012451
|
||||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||||
define Download/geosite
|
define Download/geosite
|
||||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||||
URL_FILE:=dlc.dat
|
URL_FILE:=dlc.dat
|
||||||
FILE:=$(GEOSITE_FILE)
|
FILE:=$(GEOSITE_FILE)
|
||||||
HASH:=13ffc92b1dc3eba4a0df478281fe618dfa4a2aec51c96c54bc25913a4d9f71de
|
HASH:=3cbf4239131963fd6eadddf4f385f8177ffd60234e1c2a744da7de9e35154ae8
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_IRAN_VER:=202607130116
|
GEOSITE_IRAN_VER:=202607130116
|
||||||
|
|||||||
Reference in new issue
Block a user