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

- 删除 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

@@ -1,19 +1,7 @@
import fs from 'fs/promises'
import path from 'path'
import os from 'os'
import { Provider, ProviderStatus } from '../shared/types'
export async function checkProviderStatus(
provider: Provider
): Promise<ProviderStatus> {
// 暂时返回未检查状态
return {
isOnline: false,
responseTime: -1,
lastChecked: new Date(),
error: '功能开发中'
}
}
import { Provider } from '../shared/types'
export function getClaudeCodeConfig() {
// Claude Code 配置文件路径