From 1b5445c3611daedc6b57824f80b98e48146c4ae2 Mon Sep 17 00:00:00 2001 From: QLHazyCoder <2825305047@qq.com> Date: Tue, 28 Apr 2026 19:47:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(ip-proxy):=20=E6=B7=BB=E5=8A=A0=20IP=20?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E9=9D=A2=E6=9D=BF=E5=8F=8A=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sidepanel/ip-proxy-panel.js | 2 - sidepanel/sidepanel.css | 49 +-- sidepanel/sidepanel.html | 296 ++++++++---------- ...epanel-phone-verification-settings.test.js | 19 ++ 4 files changed, 166 insertions(+), 200 deletions(-) diff --git a/sidepanel/ip-proxy-panel.js b/sidepanel/ip-proxy-panel.js index fe6e115..6ae4002 100644 --- a/sidepanel/ip-proxy-panel.js +++ b/sidepanel/ip-proxy-panel.js @@ -1172,8 +1172,6 @@ function updateIpProxyUI(state = latestState) { const busyAction = normalizeIpProxyActionType(actionState.action); const runtimeState = state || latestState || {}; - setIpProxyEnabledInlineStatus(runtimeState, enabled); - if (rowIpProxyEnabled) { rowIpProxyEnabled.style.display = ''; } diff --git a/sidepanel/sidepanel.css b/sidepanel/sidepanel.css index afb0681..404c144 100644 --- a/sidepanel/sidepanel.css +++ b/sidepanel/sidepanel.css @@ -785,6 +785,14 @@ header { display: block; } +.ip-proxy-card { + margin-top: 10px; +} + +.ip-proxy-header-actions { + flex: 0 0 auto; +} + .ip-proxy-fold { width: 100%; border: none; @@ -858,11 +866,6 @@ header { } } -.ip-proxy-enabled-inline { - justify-content: flex-end; - gap: 10px; -} - .ip-proxy-actions-inline { flex-wrap: wrap; align-items: center; @@ -888,42 +891,6 @@ header { color: var(--text-secondary); } -.ip-proxy-enabled-status { - margin-left: auto; - display: inline-flex; - align-items: center; - justify-content: flex-end; - gap: 6px; - min-width: 92px; - font-size: 12px; - font-weight: 600; - color: var(--text-muted); - text-align: right; - white-space: nowrap; -} - -.ip-proxy-enabled-status-dot { - width: 7px; - height: 7px; - border-radius: 999px; - background: var(--text-muted); - box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-muted) 25%, transparent); - flex-shrink: 0; -} - -.ip-proxy-enabled-status.is-on { - color: var(--green); -} - -.ip-proxy-enabled-status.is-on .ip-proxy-enabled-status-dot { - background: var(--green); - box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 30%, transparent); -} - -.ip-proxy-enabled-status.is-off { - color: var(--text-muted); -} - .ip-proxy-runtime-status { display: inline-flex; align-items: flex-start; diff --git a/sidepanel/sidepanel.html b/sidepanel/sidepanel.html index 5cc38cb..b9a7cb3 100644 --- a/sidepanel/sidepanel.html +++ b/sidepanel/sidepanel.html @@ -200,163 +200,6 @@ 默认代理 -
- IP代理 -
- - - - 未开启 - -
-
- +
+
+
+ + 用于浏览器代理接管与出口切换 +
+
+ +
+
+ +