1eea633634
feat(h5): rebuild report.html with WeUI + Remix Icon
2026-04-14 12:59:26 +08:00
35300aa3c4
rebuild logs.html using WeUI + Remix Icon
2026-04-14 12:59:24 +08:00
bfe8673f95
重建 log.html 使用 WeUI + Remix Icon
2026-04-14 12:59:05 +08:00
aa9d2de57c
优化样式文件格式
2026-04-14 12:57:19 +08:00
be5bfa14e9
添加预警详情页样式
2026-04-14 12:57:10 +08:00
552fc8401b
重建 alert.html 使用 WeUI + Remix Icon
2026-04-14 12:56:59 +08:00
31bc478b1a
重建 device.html 使用 WeUI + Remix Icon
...
- 顶栏使用 page-hd + ri-arrow-left-s-line 图标
- 基本信息卡片使用 weui-panel
- 设备图标使用 ri-hammer-line (塔吊) / ri-arrow-up-down-line (升降机), 48px
- 状态标签使用 weui-badge 在线(绿色)/离线(灰色)
- 实时数据使用 data-grid 2列布局
- 告警使用 ri-error-warning-line (危险/橙色) / ri-alert-line (警告/黄色)
- 刷新栏显示更新时间 + ri-refresh-line 按钮
- 底部 Tabbar 使用 weui-tabbar, 设备高亮 ri-archive-fill
- JS: getQueryParam('id'), loadRealtime(), 30秒自动刷新
2026-04-14 12:56:52 +08:00
e80c0465c0
重建 alerts.html 使用 WeUI + Remix Icon
2026-04-14 12:56:11 +08:00
1cd1835e91
refactor(h5): rebuild index.html with WeUI + Remix Icon
...
- Replace emoji with Remix Icon classes (ri-user-line, ri-hammer-line, etc.)
- Use WeUI panel components (weui-panel, weui-panel__hd, weui-panel__bd)
- Add weui-tabbar with ri-home-fill highlighted for index
- Update CSS for stat-card icons and panel-more link
- All icons via Remix Icon CDN
2026-04-14 12:53:43 +08:00
d56948dcfd
refactor: WeUI+RemixIcon重建全套H5原型
2026-04-14 12:51:44 +08:00
5916ea3525
重建 devices.html 使用 WeUI + Remix Icon
2026-04-14 12:51:33 +08:00
599fc4d1c3
feat: 创建个人中心页面 profile.html
2026-04-14 12:38:06 +08:00
c71353d2c3
feat: add checkbox styles for equipment selection
2026-04-14 12:36:36 +08:00
c9d19adc93
feat: add construction log page (log.html)
2026-04-14 12:36:07 +08:00
b2365a9d10
feat: 创建隐患随手拍页面 report.html
2026-04-14 12:35:09 +08:00
36d8520c30
Create construction log list page (h5/logs.html)
2026-04-14 12:35:01 +08:00
2d2ee1bd8b
feat(h5): add device detail page with realtime data
2026-04-14 12:33:37 +08:00
e307ba0512
feat(h5): add alert detail page
2026-04-14 12:30:39 +08:00
74e802e1b6
feat: 创建预警列表页 alerts.html
2026-04-14 12:29:56 +08:00
2cb9177d05
feat(h5): add dashboard index page with device stats, alerts overview
2026-04-14 12:28:48 +08:00
818e385754
feat(h5): add devices list page
2026-04-14 12:28:37 +08:00
fbe78450eb
feat(h5): 创建登录页面
...
- 添加登录页 login.html
- 渐变背景 + 居中白色登录卡片
- 账号/密码输入框(默认admin/123456)
- 登录验证流程: isLoggedIn检查、apiLogin调用、setToken存储
- 空输入提示: showToast('请输入账号和密码')
2026-04-14 12:28:30 +08:00
982f57a169
Task 4: 创建Mock数据文件
...
- MOCK_DEVICES: 5台设备 (3台塔吊, 2台升降机)
- MOCK_REALTIME: 设备实时监测数据
- MOCK_ALERTS: 6条预警记录
- MOCK_REPORTS: 3条隐患随手拍记录
- MOCK_LOGS: 3条施工日志
- MOCK_USER: 用户信息
- 辅助函数: getDeviceById, getAlertById, getRealtimeById
2026-04-14 12:27:10 +08:00
172f5583b6
feat(h5): add api.js with 11 mock API functions
2026-04-14 12:27:07 +08:00
47c8d92eef
feat(h5): add global app.js with utility functions
2026-04-14 12:26:41 +08:00
1c60401958
feat: H5全局样式文件
2026-04-14 12:25:33 +08:00
2bdba41780
chore: create h5 project directory structure
2026-04-14 12:24:30 +08:00
25914df3f4
docs: H5原型实施计划(18个任务,完整代码示例)
2026-04-14 12:21:33 +08:00
d787a313f3
feat: H5原型设计 spec 审批通过
...
- docs/superpowers/specs/2026-04-14-smart-project-prototype-design.md
- 设计锁定: 智慧工地风配色/4Tab/10页面/隐患随手拍/施工日志
- 10个页面: login/device list+detail/alert list+detail/report/logs/log write/profile
2026-04-14 12:12:26 +08:00
6c8760c6c5
feat: 确认河南三农推送协议,8个接口完整字段
...
- 新增第0章:设备推送协议(认证+统一入口+塔吊4接口+升降机4接口)
- 架构图更新:数据流改为厂家主动推送
- 推送地址/appid/secret待部署时配置
- API文档结构重排,H5接口和设备接口分开
2026-04-14 12:01:34 +08:00
7b71edf17a
feat: 确认设备API自带预警判断,简化预警引擎设计
...
- alert_engine → alert_handler(仅接收存储)
- 移除 alert_records.threshold 字段
- 架构图/DB/API 文档同步更新
2026-04-14 11:50:36 +08:00
a4c1bc90bf
feat: 锁定 JWT Secret 环境变量管理方案
2026-04-14 11:47:36 +08:00
b985912234
feat: 锁定 SQLite 数据库选型(MVP)
...
- 架构图/SPEC.md/database.md 同步更新
- 移除 Alembic 迁移工具,改用 schema.sql 初始化
2026-04-14 11:46:40 +08:00
0c37da0744
feat: 锁定已确认的设计决策
...
- 预警推送: 轮询(前端每30s)
- JWT有效期: 7天
- OSS: Bucket=jesxion-ai-studio, Region=oss-cn-beijing
- 待确认项: 设备API协议(JWT Secret待定)
2026-04-14 11:44:29 +08:00
86777f585e
feat: 初始化设计文档草稿
...
- SPEC.md: 项目概览与文档索引
- docs/architecture.md: 系统架构设计
- docs/api.md: 后台 API 接口设计
- docs/database.md: 数据库表结构设计
- docs/h5.md: H5 页面结构与交互设计
- docs/offline.md: 离线数据方案
状态: 设计中,待设备API协议确认后细化
2026-04-14 11:25:17 +08:00