Vite + React 18 + TypeScript project with: - Tailwind CSS for styling (dark theme, trading-focused color palette) - React Router with 6 dashboard routes (Trading, Risk, ML, Performance, Backtest, Config) and keyboard shortcuts (T/R/M/P/B/C) - TanStack Query for data fetching with auto-refetch - Shared lib layer: typed API client, WebSocket manager with auto-reconnect and topic subscriptions, auth (JWT in localStorage) - React hooks: useAuth, useApi (query/mutation wrappers), useWebSocket - DashboardLayout with nav tabs and StatusBar (WS connection, auth status) - Stub pages with placeholder component layouts matching design doc Vite proxy configured to forward /api/* to gateway at localhost:3000. TypeScript passes with zero errors, production build succeeds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
942 B
JSON
38 lines
942 B
JSON
{
|
|
"name": "web-dashboard",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@tailwindcss/vite": "^4.2.0",
|
|
"@tanstack/react-query": "^5.90.21",
|
|
"lightweight-charts": "^5.1.0",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"react-router-dom": "^7.13.0",
|
|
"recharts": "^3.7.0",
|
|
"tailwindcss": "^4.2.0",
|
|
"zustand": "^5.0.11"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.1",
|
|
"@types/node": "^24.10.1",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.1",
|
|
"eslint": "^9.39.1",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
"globals": "^16.5.0",
|
|
"typescript": "~5.9.3",
|
|
"typescript-eslint": "^8.48.0",
|
|
"vite": "^7.3.1"
|
|
}
|
|
}
|