feat(chatbot): integrate OpenRouter API for AI assistance in dashboard

- Added a Chatbot component to the dashboard for user interaction and support.
- Created a README for the Chatbot detailing setup, features, and usage instructions.
- Introduced environment variables for secure API key management.
- Updated app.js to include the Chatbot component.
- Implemented a configuration server to serve API keys securely.
- Enhanced styles for the Chatbot interface to improve user experience.
This commit is contained in:
2025-09-27 15:00:30 +08:00
parent c0c3fb7b5a
commit ec3c7320d7
12 changed files with 1194 additions and 1 deletions

16
dashboard/package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "citypulse-dashboard",
"version": "1.0.0",
"description": "CityPulse Dashboard with Chatbot",
"scripts": {
"setup": "node replace-env-vars.js",
"serve": "python -m http.server 3000",
"dev": "npm run setup && npm run serve"
},
"dependencies": {
"dotenv": "^16.0.3"
},
"devDependencies": {},
"keywords": ["dashboard", "citypulse", "chatbot"],
"author": "CityPulse Team"
}