feat(providers): add timestamp-based sorting for provider list
- 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
This commit is contained in:
@@ -3,6 +3,7 @@ export interface Provider {
|
||||
name: string;
|
||||
settingsConfig: Record<string, any>; // 应用配置对象:Claude 为 settings.json;Codex 为 { auth, config }
|
||||
websiteUrl?: string;
|
||||
createdAt?: number; // 添加时间戳(毫秒)
|
||||
}
|
||||
|
||||
export interface AppConfig {
|
||||
|
||||
Reference in New Issue
Block a user