index.html: 页面骨架(4 个 Tab)。main.js: 页面渲染、状态管理、命令流程、WebSocket 处理。api.js: REST 接口封装(支持 API/WS 地址配置)。store.js: 前端状态存储与本地持久化。styles.css: 移动端样式。manifest.webmanifest/sw.js: PWA 配置与离线缓存。APP_FEATURE_API_OVERVIEW.md: 项目主要功能与接口说明。
在 e:\Embedded_competition\app\app 执行:
python -m http.server 5173浏览器访问:http://127.0.0.1:5173
后端默认地址:
- API:
http://127.0.0.1:8000 - WS:
ws://127.0.0.1:8000/ws
支持的主要接口:
POST /api/auth/loginGET /api/devicesGET /api/devices/{id}/statusGET /api/telemetryPOST /api/strips/{id}/cmdGET /api/cmd/{cmdId}GET /healthWS /ws