Files
JARVIS/frontend/package.json
WIN-JHFT4D3SIVT\caoxiaozhu 712d9e1652 feat(frontend): add weather icons and redesign calendar header
Backend changes:
- Add LOCATION configuration option to Settings
- Add /api/system/config endpoint to expose public config
- Implement location priority: config > geolocation > default

Frontend changes:
- Install and integrate weather-icons npm package (Erik Flowers)
- Redesign calendar header with date/time on left, weather/location on right
- Display weather icon using CSS classes instead of SVG components
- Fetch location from backend API on component mount
- Use configured location name (from .env) instead of geocoded result

Layout:
- Left: month/year + current time
- Right: city name + weather description + weather icon
2026-04-06 22:18:44 +08:00

39 lines
893 B
JSON

{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview",
"test": "vitest run"
},
"dependencies": {
"@vueuse/core": "^14.2.1",
"3d-force-graph": "^1.79.0",
"axios": "^1.13.6",
"echarts": "^6.0.0",
"element-plus": "^2.13.6",
"lucide-vue-next": "^0.577.0",
"motion": "^12.38.0",
"pinia": "^3.0.4",
"three": "^0.180.0",
"vue": "^3.5.30",
"vue-router": "^4.6.4",
"weather-icons": "^1.3.2"
},
"devDependencies": {
"@types/node": "^25.5.0",
"@types/three": "^0.180.0",
"@vitejs/plugin-vue": "^6.0.5",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.9.0",
"jsdom": "^29.0.1",
"typescript": "^5.9.3",
"vite": "^8.0.1",
"vitest": "^4.1.0",
"vue-tsc": "^2.2.12"
}
}