- 登录页 + App 鉴权门 + X-Auth-Token 拦截器 + 菜单头部退出按钮 - 仪表盘重构:6 指标卡 / 趋势图 + 场景表现 / 最近记录 + 快捷操作 + 来源分布 - Reports 页重做:场景筛选、富选项下拉、allowClear、一键重置、同场景对比约束 - useOnTabActive:标签页激活自动刷新(根治 AI 助手评测记录"消失") - ModelConfigs 12 列合并为 6 列;来源 Tag;chunk 告警阈值修正并记录原因
74 lines
1.3 KiB
TypeScript
74 lines
1.3 KiB
TypeScript
export const colors = {
|
|
// Sidebar
|
|
sider: '#1e2030',
|
|
siderSelected: '#2e3250',
|
|
siderHover: 'rgba(255,255,255,0.08)',
|
|
siderText: 'rgba(255,255,255,0.65)',
|
|
siderTextHover: 'rgba(255,255,255,0.9)',
|
|
siderTextActive: '#ffffff',
|
|
|
|
// Layout
|
|
bgLayout: '#f5f6f8',
|
|
bgContainer: '#ffffff',
|
|
bgSubtle: '#fafafa',
|
|
border: '#f0f0f0',
|
|
|
|
// Brand
|
|
primary: '#1677ff',
|
|
|
|
// Text
|
|
text: '#1f2937',
|
|
textSecondary: '#6b7280',
|
|
textMuted: '#9ca3af',
|
|
|
|
// Chat bubbles
|
|
chatUser: '#e6f4ff',
|
|
chatAgent: '#f0fdf4',
|
|
chatSystemError: '#fff1f0',
|
|
} as const
|
|
|
|
export const statusColors: Record<string, string> = {
|
|
pending: '#8c8c8c',
|
|
running: '#1677ff',
|
|
completed: '#52c41a',
|
|
failed: '#ff4d4f',
|
|
cancelled: '#8c8c8c',
|
|
}
|
|
|
|
export const statusLabels: Record<string, string> = {
|
|
pending: '待执行',
|
|
running: '执行中',
|
|
completed: '已完成',
|
|
failed: '失败',
|
|
cancelled: '已取消',
|
|
}
|
|
|
|
export const triggerLabels: Record<string, string> = {
|
|
manual: '手动',
|
|
ai_assistant: 'AI 助手',
|
|
cli: 'CLI',
|
|
}
|
|
|
|
export const triggerColors: Record<string, string> = {
|
|
manual: 'default',
|
|
ai_assistant: 'purple',
|
|
cli: 'blue',
|
|
}
|
|
|
|
export const spacing = {
|
|
xs: 4,
|
|
sm: 8,
|
|
md: 12,
|
|
lg: 16,
|
|
xl: 24,
|
|
} as const
|
|
|
|
export const fontSizes = {
|
|
meta: 11,
|
|
body: 12,
|
|
emphasis: 13,
|
|
title: 16,
|
|
hero: 24,
|
|
} as const
|
|
|