refactor: 整体迁移控制面至MySQL + 替换UI框架为Element Plus

1. 移除naive-ui依赖,迁移前端至Element Plus
2. 重构后端数据库层,切换为MySQL替代SQLite
3. 调整项目部署架构,停止exe打包改为源码部署
4. 新增设备上报接口与相关数据库模型
5. 优化配置路径与SQL语法,替换为MySQL占位符格式
6. 调整站点名称与文案,统一为「37du 插件管理平台」
7. 新增SQLite到MySQL迁移脚本
This commit is contained in:
2026-09-16 15:58:45 +08:00
parent 813bee743b
commit 6d2dd93628
54 changed files with 5542 additions and 1890 deletions
+13
View File
@@ -21,6 +21,19 @@ class RuntimeReportIn(BaseModel):
duration_sec: int = 0
class DeviceReportIn(BaseModel):
"""执行机心跳/环境上报(含 Chrome 检测结果),与 devices 表一一对应。"""
device_id: str
account: str = ""
hostname: str = ""
os: str = ""
ip: str = ""
chrome_installed: int = 0 # 是否已安装 Chrome:1=是 0=否
chrome_version: str = "" # Chrome 版本号(检测到才填)
chrome_ok: int = 0 # Chrome 是否就绪:1=是 0=否
status: int = 1 # 设备状态:1=在线 0=离线
class AuthIn(BaseModel):
account: str
password: str