From f1292b757cb7859f73d30ac7e496cee55a40a9e3 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 27 Jul 2026 02:26:48 +0800 Subject: [PATCH] =?UTF-8?q?design(configurable-proxy):=20=E4=BF=AE?= =?UTF-8?q?=E5=9B=BE=E6=A0=87(=E8=A1=A5=20plus/=E7=A7=81=E6=9C=89=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=94=A8=20shield)+=20=E6=A1=8C=E9=9D=A2=E8=A1=A5?= =?UTF-8?q?=E9=BD=90=20+=20=E6=A8=A1=E5=BC=8F=E8=AF=AD=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - icons.js 补 'plus'(原缺失致「添加规则」+ 空);私有服务图标 server(不存在)→ shield - 桌面 routing 视图:内置规则加图标框(与移动一致)+ 从文本导入/重置默认已在 - 移动 routing 子屏:补「从文本导入/重置默认」 - 两端加模式说明:用户规则仅「智能分流」生效;全局/直连忽略(系统层仍强制) - 说明文档加三模式语义表 + 系统层解释 Co-Authored-By: Claude Opus 4.8 --- design/prototype/icons.js | 1 + design/prototype/screens/ui-desktop.html | 9 +++++---- design/prototype/screens/ui-mobile.html | 7 ++++++- docs/configurable-proxy-spec.html | 9 +++++++++ 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/design/prototype/icons.js b/design/prototype/icons.js index 4327c39..d725da0 100644 --- a/design/prototype/icons.js +++ b/design/prototype/icons.js @@ -47,6 +47,7 @@ // ── 源自 lucide-react 包(web/website/node_modules/lucide-react v0.469.0,usercenter 未含)── 'power': '', + 'plus': '', 'loader-circle': '', 'globe': '', 'user': '', diff --git a/design/prototype/screens/ui-desktop.html b/design/prototype/screens/ui-desktop.html index de4cdde..cbe720d 100644 --- a/design/prototype/screens/ui-desktop.html +++ b/design/prototype/screens/ui-desktop.html @@ -740,16 +740,17 @@
代理模式
-
+
+

下方「我的规则」仅在智能分流模式生效。全局代理 / 全部直连为一刀切模式,忽略自定义规则(系统强制层仍保留)。

内置规则
-
国内直连
GeoIP / GeoSite CN
-
局域网 / 私网直连
强制,不可关
🔒 强制
-
私有服务走隧道
服务端下发
🔒 服务端
+
国内直连
GeoIP / GeoSite CN
+
局域网 / 私网直连
强制,不可关
🔒 强制
+
私有服务走隧道
服务端下发
🔒 服务端
我的规则 · 有序,首命中生效
diff --git a/design/prototype/screens/ui-mobile.html b/design/prototype/screens/ui-mobile.html index 9b301eb..d74ff90 100644 --- a/design/prototype/screens/ui-mobile.html +++ b/design/prototype/screens/ui-mobile.html @@ -924,11 +924,12 @@
+

「我的规则」仅在智能分流模式生效;全局 / 直连为一刀切,忽略自定义规则(系统强制层仍保留)。

内置规则
国内直连
GeoIP / GeoSite CN
局域网 / 私网直连
强制,不可关
🔒
-
私有服务走隧道
服务端下发
🔒
+
私有服务走隧道
服务端下发
🔒
我的规则 · 首命中生效
@@ -937,6 +938,10 @@
category-ads
GeoSite 规则集
拒绝
+
+ + +
最终(未命中)
FINAL 兜底
走隧道
diff --git a/docs/configurable-proxy-spec.html b/docs/configurable-proxy-spec.html index b164999..b9d05dd 100644 --- a/docs/configurable-proxy-spec.html +++ b/docs/configurable-proxy-spec.html @@ -118,6 +118,15 @@ App ◀────────── 完整 sing-box 配置(含用户规则) 撞到锁定的系统目标(如给私有服务域名加规则)「该域名由系统强制走隧道,此规则不生效」 +

三模式语义 · 用户规则仅「智能分流」生效

+ + + + + +
模式行为用户规则
智能分流(默认)完整规则链:系统层 → 用户规则 → 国内分流 → FINAL生效
全局代理除系统层(LAN/私有服务)外全走隧道忽略
全部直连除系统层(私有服务走隧道)外全直连忽略
+

系统层(层1-3)在任何模式都强制生效——全局/直连只改 FINAL 兜底 + 是否套用用户规则,不会关掉 DNS 劫持/LAN 直连/私有服务。UI 在非智能分流模式下把「我的规则」区灰化并注明"当前模式忽略以下规则"。

+

与现有 Settings「Smart routing」的衔接

现在 Settings 的 Smart routing 是二元开关(= builtin.china_direct)。改为渐进式披露入口:该行变成「分流规则」设置行(右侧显示当前模式 + chevron →),点进去即分流规则屏。休闲用户维持"智能分流"不点即可(等价现在开关开着),高级用户点进去自定义。老的二元开关被三模式(全局/智能分流/直连)涵盖。