feat: add official preset orange theme and disabled API input

- Add Anthropic orange theme styling for official preset buttons
- Auto-disable API Key input field when official preset is selected
- Add isOfficial field for precise official preset identification
- Enhance UX: official login requires no manual API Key input
This commit is contained in:
Jason
2025-08-29 09:03:11 +08:00
parent 9c17be1b59
commit fa2d64b692
3 changed files with 50 additions and 13 deletions

View File

@@ -5,9 +5,19 @@ export interface ProviderPreset {
name: string;
websiteUrl: string;
settingsConfig: object;
isOfficial?: boolean; // 标识是否为官方预设
}
export const providerPresets: ProviderPreset[] = [
{
name: "Claude官方登录",
websiteUrl: "https://www.anthropic.com/claude-code",
settingsConfig: {
env: {
},
},
isOfficial: true, // 明确标识为官方预设
},
{
name: "DeepSeek v3.1",
websiteUrl: "https://platform.deepseek.com",