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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user