feat: 完成Nacos配置优化和WebSocket集成

主要更新:
1. 统一所有微服务端口配置(19000-19008)
2. 为所有服务创建本地/测试/生产三套环境配置
3. 配置Nacos认证密码(本地:Peanut2817*#, 测试/生产:EmotionMuseum2025)
4. 优化网关路由配置,支持负载均衡和WebSocket
5. 新增emotion-websocket模块,支持实时聊天
6. 前端集成WebSocket,替代HTTP轮询
7. 添加配置验证和管理工具脚本

技术特性:
- 完整的环境隔离和服务发现
- WebSocket实时通信支持
- 负载均衡路由配置
- 跨域和安全配置
- 自动重连和心跳检测
This commit is contained in:
2025-07-17 18:10:45 +08:00
parent 9a3a8267b5
commit c77352877d
391 changed files with 46585 additions and 4294 deletions
+48
View File
@@ -0,0 +1,48 @@
{
"name": "emotion-museum-web",
"version": "1.0.0",
"description": "开心APP - 情绪陪伴使者前端应用",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/",
"type-check": "vue-tsc --noEmit"
},
"dependencies": {
"vue": "^3.3.4",
"vue-router": "^4.2.4",
"pinia": "^2.1.6",
"ant-design-vue": "^4.0.0",
"@ant-design/icons-vue": "^7.0.0",
"axios": "^1.5.0",
"dayjs": "^1.11.9",
"chart.js": "^4.3.0",
"vue-chartjs": "^5.2.0",
"sockjs-client": "^1.6.1",
"stompjs": "^2.3.3"
},
"devDependencies": {
"@types/node": "^20.5.0",
"@types/sockjs-client": "^1.5.2",
"@types/stompjs": "^2.3.5",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@vitejs/plugin-vue": "^4.3.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"eslint": "^8.47.0",
"eslint-plugin-vue": "^9.17.0",
"prettier": "^3.0.0",
"sass": "^1.66.0",
"typescript": "^5.1.0",
"vite": "^4.4.0",
"vue-tsc": "^1.8.8"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
}
}