mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-07 03:34:20 +08:00
1482dc9e66
- Add createdAt timestamp field to Provider interface - Implement sorting logic: old providers without timestamp first, then by creation time - Providers without timestamps are sorted alphabetically by name - New providers are automatically timestamped on creation
18 lines
459 B
TypeScript
18 lines
459 B
TypeScript
export interface Provider {
|
||
id: string;
|
||
name: string;
|
||
settingsConfig: Record<string, any>; // 应用配置对象:Claude 为 settings.json;Codex 为 { auth, config }
|
||
websiteUrl?: string;
|
||
createdAt?: number; // 添加时间戳(毫秒)
|
||
}
|
||
|
||
export interface AppConfig {
|
||
providers: Record<string, Provider>;
|
||
current: string;
|
||
}
|
||
|
||
// 应用设置类型(用于 SettingsModal 与 Tauri API)
|
||
export interface Settings {
|
||
showInDock: boolean;
|
||
}
|