Merge pull request #12 from router-for-me/main
sync: merge upstream router-for-me/Cli-Proxy-API-Management-Center 主要更新: - 登录页面重新设计(分屏布局 + 自动登录 UI) - AI 提供商编辑改为独立页面(替代弹窗模式) - 新增浮动导航侧边栏,支持快速跳转 - OAuth 模型别名和排除模型编辑页面 - 新增多个模型图标(Codex、DeepSeek、GLM、Grok、Kimi、MiniMax) - 页面过渡动画优化,防止空白闪烁 - 日志页面新增原始日志显示开关 - 移动端响应式布局优化 - 配额管理新增认证类型统计 冲突解决: - src/stores/index.ts: 保留本地 useDisabledModelsStore 和 PR 的 useOpenAIEditDraftStore - src/pages/AiProvidersPage.tsx: 采用 PR 版本(页面导航重构) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,8 @@ const MODEL_CATEGORIES = [
|
||||
{ id: 'qwen', label: 'Qwen', patterns: [/qwen/i] },
|
||||
{ id: 'glm', label: 'GLM', patterns: [/glm/i, /chatglm/i] },
|
||||
{ id: 'grok', label: 'Grok', patterns: [/grok/i] },
|
||||
{ id: 'deepseek', label: 'DeepSeek', patterns: [/deepseek/i] }
|
||||
{ id: 'deepseek', label: 'DeepSeek', patterns: [/deepseek/i] },
|
||||
{ id: 'minimax', label: 'MiniMax', patterns: [/minimax/i, /abab/i] }
|
||||
];
|
||||
|
||||
const matchCategory = (text: string) => {
|
||||
|
||||
@@ -29,6 +29,14 @@ export function isRuntimeOnlyAuthFile(file: AuthFileItem): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export function isDisabledAuthFile(file: AuthFileItem): boolean {
|
||||
const raw = (file as { disabled?: unknown }).disabled;
|
||||
if (typeof raw === 'boolean') return raw;
|
||||
if (typeof raw === 'number') return raw !== 0;
|
||||
if (typeof raw === 'string') return raw.trim().toLowerCase() === 'true';
|
||||
return false;
|
||||
}
|
||||
|
||||
export function isIgnoredGeminiCliModel(modelId: string): boolean {
|
||||
return GEMINI_CLI_IGNORED_MODEL_PREFIXES.some(
|
||||
(prefix) => modelId === prefix || modelId.startsWith(`${prefix}-`)
|
||||
|
||||
Reference in New Issue
Block a user