feat: cream terminal redesign, English-only UI, autopilot launch fixes

- Redesign dashboard into a cream-paper + vermilion IBM Plex Mono terminal
  (live L2 order book, cost/liq map, WS K-line, signal matrix, orchestration
  topology, risk radar, execution log, current positions, equity curve)
- Convert all user-facing UI and backend strings/prompts from Chinese to
  English (multi-language retained, default English)
- Add /api/statistics/full endpoint + full-stats frontend wiring
- Fix Autopilot launch: reuse the existing trader instead of creating
  duplicates (eliminates repeat ~35s create cost and stale-trader 404s);
  launch sends 5m scan interval
- Fix unreadable toasts: cream theme with high-contrast text + per-type accent
- Silence background dashboard polls (getTraderConfig) to stop error-toast spam
This commit is contained in:
tinkle-community
2026-06-30 16:03:52 +08:00
parent eba28bcf0e
commit 110bf52908
149 changed files with 6835 additions and 3611 deletions

View File

@@ -17,9 +17,9 @@ const MODEL_COLORS: Record<string, string> = {
claw402: '#7C3AED',
}
// 获取AI模型图标的函数
// Returns the icon for an AI model
export const getModelIcon = (modelType: string, props: IconProps = {}) => {
// 支持完整ID或类型名
// Supports full ID or type name
const type = modelType.includes('_') ? modelType.split('_').pop() : modelType
let iconPath: string | null = null
@@ -67,8 +67,8 @@ export const getModelIcon = (modelType: string, props: IconProps = {}) => {
)
}
// 获取模型颜色用于没有图标时的fallback
// Returns the model color (fallback for when there is no icon)
export const getModelColor = (modelType: string): string => {
const type = modelType.includes('_') ? modelType.split('_').pop() : modelType
return MODEL_COLORS[type || ''] || '#60a5fa'
return MODEL_COLORS[type || ''] || '#E0483B'
}