- Add recharts dependency for area chart visualizations - Add /api/metrics route querying Prometheus query_range (CPU, RAM, Network) - Add SystemTrends component with 3 sparkline area charts (6h window, 2min steps) - CPU (emerald), RAM (amber), Network I/O (indigo) with gradient fills - Tooltips show exact values on hover, time axis with formatted labels - Link to Grafana for deep-dive analysis - Fetches every 60s, shimmer loading state Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
668 B
JSON
30 lines
668 B
JSON
{
|
|
"name": "nuc-portal",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Self-hosted services dashboard for the NUC server",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"next": "16.1.6",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"recharts": "^3.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.6",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|