From 4186f2bb6a8de0445ebcf82356bc40ce6ee18e69 Mon Sep 17 00:00:00 2001 From: gitea-action Date: Sat, 21 Dec 2024 02:00:19 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/5f4057f5407ff5493af01373737fa7c8568c65b1 --- .../model/cbi/passwall/client/global.lua | 8 +++-- .../view/passwall/node_list/node_list.htm | 30 ++++++++----------- patch-luci-app-passwall.patch | 6 ++-- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua index 89543b9f5..bf2c38361 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -143,12 +143,16 @@ if (has_singbox or has_xray) and #nodes_table > 0 then end local function get_write(shunt_node_id, option) return function(self, section, value) - m:set(shunt_node_id, option, value) + if s.fields["tcp_node"]:formvalue(section) == shunt_node_id then + m:set(shunt_node_id, option, value) + end end end local function get_remove(shunt_node_id, option) return function(self, section) - m:del(shunt_node_id, option) + if s.fields["tcp_node"]:formvalue(section) == shunt_node_id then + m:del(shunt_node_id, option) + end end end if #normal_list > 0 then diff --git a/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm b/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm index a00b943e3..304f25434 100644 --- a/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm +++ b/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm @@ -26,18 +26,12 @@ table td, .table .td { } ._now_use { - background: #5e72e445 !important; + color: red !important; } .ping a:hover{ text-decoration : underline; } - -@media (prefers-color-scheme: dark) { - ._now_use { - background: #4a90e2 !important; - } -}