移除状态检测功能,专注核心切换功能

- 删除 checkProviderStatus 函数和相关 IPC 处理
- 移除 App.tsx 中所有状态检测相关的状态和函数
- 简化 ProviderList.tsx,去除状态显示和检查按钮
- 清理 types.ts 中的 ProviderStatus 类型定义
- 界面更简洁,专注于供应商切换这一核心功能
This commit is contained in:
farion1231
2025-08-05 23:28:47 +08:00
parent 671f9b34e2
commit ca5035696f
5 changed files with 5 additions and 109 deletions

View File

@@ -6,13 +6,6 @@ export interface Provider {
model?: string
}
export interface ProviderStatus {
isOnline: boolean
responseTime: number
lastChecked: Date
error?: string
}
export interface AppConfig {
providers: Record<string, Provider>
current: string
@@ -26,7 +19,6 @@ declare global {
addProvider: (provider: Provider) => Promise<boolean>
deleteProvider: (id: string) => Promise<boolean>
updateProvider: (provider: Provider) => Promise<boolean>
checkStatus: (provider: Provider) => Promise<ProviderStatus>
switchProvider: (providerId: string) => Promise<boolean>
getClaudeCodeConfigPath: () => Promise<string>
selectConfigFile: () => Promise<string | null>