fix: 修复前端导航和页面跳转问题
- 添加统一的导航菜单到所有页面 - 修复页面路由映射和高亮状态 - 创建 navigation.js 统一管理页面跳转 - 添加 test_navigation.py 路由测试工具 - 支持仪表板、预警管理、智能对话、HTTP对话页面间无缝切换 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,80 +1,66 @@
|
||||
# 核心依赖
|
||||
sqlalchemy>=2.0.32
|
||||
requests>=2.32.3
|
||||
numpy>=1.26.4
|
||||
scikit-learn>=1.4.2
|
||||
sqlalchemy==2.0.32
|
||||
requests==2.32.3
|
||||
numpy==1.26.4
|
||||
scikit-learn==1.4.2
|
||||
|
||||
# 数据库驱动
|
||||
pymysql>=1.1.1
|
||||
cryptography>=43.0.1
|
||||
flask>=3.0.3
|
||||
flask-cors>=5.0.0
|
||||
websockets>=15.0.1
|
||||
pymysql==1.1.1
|
||||
cryptography==43.0.1
|
||||
flask==3.0.3
|
||||
flask-cors==5.0.0
|
||||
websockets==15.0.1
|
||||
|
||||
# 中文处理
|
||||
jieba>=0.42.1
|
||||
jieba==0.42.1
|
||||
|
||||
# 系统监控
|
||||
psutil>=5.9.8
|
||||
psutil==5.9.8
|
||||
|
||||
# 数据处理
|
||||
pandas>=2.2.2
|
||||
openpyxl>=3.1.5
|
||||
pandas==2.2.2
|
||||
openpyxl==3.1.5
|
||||
|
||||
# 向量化(可选,如果不需要可以注释掉以节省空间)
|
||||
# sentence-transformers>=2.7.1
|
||||
# transformers>=4.43.2
|
||||
# torch>=2.4.1
|
||||
|
||||
# 日志和配置
|
||||
python-dotenv>=1.0.1
|
||||
structlog>=24.4.0
|
||||
python-dotenv==1.0.1
|
||||
structlog==24.4.0
|
||||
|
||||
# 时间处理
|
||||
python-dateutil>=2.9.0
|
||||
python-dateutil==2.9.0
|
||||
|
||||
# JSON处理
|
||||
ujson>=5.10.0
|
||||
ujson==5.10.0
|
||||
|
||||
# 异步支持
|
||||
aiohttp>=3.10.10
|
||||
aiohttp==3.10.10
|
||||
# asyncio是Python内置模块,不需要安装
|
||||
|
||||
# Redis缓存
|
||||
redis>=5.2.0
|
||||
redis-py-cluster>=2.1.3
|
||||
|
||||
# 测试框架
|
||||
pytest>=8.3.3
|
||||
pytest-asyncio>=0.24.0
|
||||
pytest-cov>=6.0.0
|
||||
pytest==8.3.3
|
||||
pytest-asyncio==0.24.0
|
||||
pytest-cov==6.0.0
|
||||
|
||||
# 代码质量
|
||||
black>=24.8.0
|
||||
flake8>=7.1.1
|
||||
mypy>=1.11.1
|
||||
isort>=5.13.2
|
||||
black==24.8.0
|
||||
flake8==7.1.1
|
||||
mypy==1.11.1
|
||||
isort==5.13.2
|
||||
|
||||
# 安全
|
||||
bcrypt>=4.2.1
|
||||
pyjwt>=2.9.0
|
||||
bcrypt==4.2.1
|
||||
pyjwt==2.9.0
|
||||
|
||||
# 文件处理
|
||||
python-magic>=0.4.27
|
||||
pillow>=11.0.0
|
||||
python-magic==0.4.27
|
||||
pillow==11.0.0
|
||||
|
||||
# 网络工具
|
||||
urllib3>=2.2.3
|
||||
httpx>=0.27.2
|
||||
urllib3==2.2.3
|
||||
httpx==0.27.2
|
||||
|
||||
# 数据验证
|
||||
pydantic>=2.9.2
|
||||
marshmallow>=3.21.4
|
||||
|
||||
# 任务队列(可选)
|
||||
# celery>=5.4.0
|
||||
# kombu>=5.4.1
|
||||
|
||||
# 文档生成(可选)
|
||||
# sphinx>=7.5.0
|
||||
# sphinx-rtd-theme>=2.0.0
|
||||
pydantic==2.9.2
|
||||
marshmallow==3.23.3
|
||||
Reference in New Issue
Block a user