From bf62c25c93d5d3d2e848c791586f96da2c11aa95 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Fri, 5 Sep 2025 14:01:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/types/settings.ts | 44 +- frontend/src/views/Settings.vue | 1710 +++++++++++++++++++++---------- 2 files changed, 1192 insertions(+), 562 deletions(-) diff --git a/frontend/src/types/settings.ts b/frontend/src/types/settings.ts index 8488f4c..96989af 100644 --- a/frontend/src/types/settings.ts +++ b/frontend/src/types/settings.ts @@ -1,50 +1,44 @@ // 设置相关类型定义 export interface SettingsData { + UI: { + IfShowTray: boolean + IfToTray: boolean + } Function: { BossKey: string HistoryRetentionTime: number - HomeImageMode: string IfAgreeBilibili: boolean IfAllowSleep: boolean IfSilence: boolean IfSkipMumuSplashAds: boolean - UnattendedMode: boolean } Notify: { - AuthorizationCode: string - CompanyWebHookBotUrl: string - FromAddress: string - IfCompanyWebHookBot: boolean + SendTaskResultTime: string + IfSendStatistic: boolean + IfSendSixStar: boolean IfPushPlyer: boolean IfSendMail: boolean - IfSendSixStar: boolean - IfSendStatistic: boolean - IfServerChan: boolean SMTPServerAddress: string - SendTaskResultTime: string - ServerChanChannel: string - ServerChanKey: string - ServerChanTag: string + AuthorizationCode: string + FromAddress: string ToAddress: string + IfServerChan: boolean + ServerChanKey: string + ServerChanChannel: string + ServerChanTag: string + IfCompanyWebHookBot: boolean + CompanyWebHookBotUrl: string } Update: { IfAutoUpdate: boolean - MirrorChyanCDK: string - ProxyAddress: string - ProxyUrlList: string[] - ThreadNumb: number UpdateType: string + Source: string + ProxyAddress: string + MirrorChyanCDK: string } Start: { - IfMinimizeDirectly: boolean IfSelfStart: boolean - } - UI: { - IfShowTray: boolean // 常驻显示托盘 - IfToTray: boolean // 最小化到托盘 - location: string - maximized: boolean - size: string + IfMinimizeDirectly: boolean } Voice: { Enabled: boolean diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue index 8709f0e..9956aff 100644 --- a/frontend/src/views/Settings.vue +++ b/frontend/src/views/Settings.vue @@ -1,17 +1,13 @@