From 9681f77e203940bf1a40e5c8a229980d695c82d3 Mon Sep 17 00:00:00 2001
From: Memory <134070804+Memory2314@users.noreply.github.com>
Date: Tue, 30 Sep 2025 00:05:32 +0800
Subject: [PATCH] feat: connection card pure number display
---
src/main/utils/template.ts | 1 +
.../src/components/settings/general-config.tsx | 12 +++++++++++-
src/renderer/src/components/sider/conn-card.tsx | 10 ++++++----
src/renderer/src/locales/en-US.json | 1 +
src/renderer/src/locales/zh-CN.json | 1 +
src/shared/types.d.ts | 1 +
6 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/src/main/utils/template.ts b/src/main/utils/template.ts
index 9e5156f..6e50d55 100644
--- a/src/main/utils/template.ts
+++ b/src/main/utils/template.ts
@@ -26,6 +26,7 @@ export const defaultConfig: IAppConfig = {
floatingWindowCompatMode: true,
disableHardwareAcceleration: false,
disableLoopbackDetector: false,
+ hideConnectionCardWave: false,
disableEmbedCA: false,
disableSystemCA: false,
skipSafePathCheck: false,
diff --git a/src/renderer/src/components/settings/general-config.tsx b/src/renderer/src/components/settings/general-config.tsx
index 252dabc..fa1df54 100644
--- a/src/renderer/src/components/settings/general-config.tsx
+++ b/src/renderer/src/components/settings/general-config.tsx
@@ -64,7 +64,8 @@ const GeneralConfig: React.FC = () => {
autoCheckUpdate,
appTheme = 'system',
language = 'zh-CN',
- triggerMainWindowBehavior = 'show' // 添加这一行
+ triggerMainWindowBehavior = 'show',
+ hideConnectionCardWave = false
} = appConfig || {}
useEffect(() => {
@@ -412,6 +413,15 @@ const GeneralConfig: React.FC = () => {
+
+ {
+ await patchAppConfig({ hideConnectionCardWave: v })
+ }}
+ />
+
= (props) => {
const { iconOnly } = props
const { appConfig } = useAppConfig()
- const { showTraffic = false, connectionCardStatus = 'col-span-2', disableAnimations = false } = appConfig || {}
+ const { showTraffic = false, connectionCardStatus = 'col-span-2', disableAnimations = false, hideConnectionCardWave = false } = appConfig || {}
const location = useLocation()
const navigate = useNavigate()
const match = location.pathname.includes('/connections')
@@ -224,9 +224,11 @@ const ConnCard: React.FC = (props) => {
-
-
-
+ {!hideConnectionCardWave && (
+
+
+
+ )}
>
) : (