Changes:
- Add monitor center page with KPI cards, charts and request logs
- Implement channel stats, failure analysis, model distribution visualization
- Support time range filtering (last 1/6/24 hours)
- Add model disable feature with related hooks and state management
- Optimize request logs list performance with virtual scrolling
- Improve mobile styles and table scrolling experience
- Add i18n support for Chinese and English
Modified files:
- src/pages/MonitorPage.tsx (added)
- src/components/monitor/* (added, 10 components)
- src/hooks/useDisableModel.ts (added)
- src/utils/monitor.ts (added)
- src/i18n/locales/*.json (modified)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add log line parser to extract timestamp, level, status code, latency, IP, HTTP method, and path
- Implement virtual scrolling with load-more on scroll-up to handle large log files efficiently
- Replace monolithic pre block with structured grid layout for better readability
- Add visual badges for log levels and HTTP status codes with color-coded severity
- Add IconRefreshCw icon component
- Update ToggleSwitch to accept ReactNode as label
- Fix fetchConfig calls to use default parameters consistently
- Add request deduplication in useConfigStore to prevent duplicate /config API calls
- Add i18n keys for load_more_hint and hidden_lines