From 2e6ba771872ae7d0d591c4f005214bcb0d8fe52d Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Mon, 15 Dec 2025 00:16:12 +0800 Subject: [PATCH] feat(proxy): add settings button to proxy panel Add configuration buttons in both running and stopped states to provide easy access to proxy settings dialog. --- src/components/proxy/ProxyPanel.tsx | 35 +++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/components/proxy/ProxyPanel.tsx b/src/components/proxy/ProxyPanel.tsx index c4cbabeb3..bb0dbe271 100644 --- a/src/components/proxy/ProxyPanel.tsx +++ b/src/components/proxy/ProxyPanel.tsx @@ -1,5 +1,12 @@ import { useState } from "react"; -import { Activity, Clock, TrendingUp, Server, ListOrdered } from "lucide-react"; +import { + Activity, + Clock, + TrendingUp, + Server, + ListOrdered, + Settings, +} from "lucide-react"; import { Button } from "@/components/ui/button"; import { useProxyStatus } from "@/hooks/useProxyStatus"; import { ProxySettingsDialog } from "./ProxySettingsDialog"; @@ -39,8 +46,19 @@ export function ProxyPanel() {
-

服务地址

-
+
+

服务地址

+ +
+
http://{status.address}:{status.port} @@ -171,9 +189,18 @@ export function ProxyPanel() {

代理服务已停止

-

+

使用右上角开关即可启动服务

+
)}