feat: align Sense prototype with go-admin-ui (#30)

This commit is contained in:
QiuSW
2026-08-12 10:41:28 +08:00
parent 533225d712
commit 1da77fe0b1
4 changed files with 319 additions and 54 deletions
+10 -1
View File
@@ -14,7 +14,7 @@ python -m http.server 4173 --directory prototypes
## 原型范围
- `sense/index.html`:设备接入、ONVIF/RTSP、MediaMTX、实时监看和区域配置。
- `sense/index.html`:设备接入、ONVIF/RTSP、MediaMTX、实时监看和区域配置;直接映射 go-admin-ui 与 Element Plus 的通用管理端组件。
- `brain/index.html`:合成输入到项目内匿名事件的内部流水线;Brain 无客户管理 UI。
- `bell/index.html`:合成事件、不可变 Event、规则/Alert、ack/close 和审计时间线。
- `assets/`:三套原型复用的样式和交互脚本。
@@ -28,6 +28,15 @@ python -m http.server 4173 --directory prototypes
- Bell 可注入合成事件,并演示 Alert 的 ack 和 close。
- 所有弹窗支持 `Esc` 关闭,交互元素支持键盘焦点。
## Sense 的 go-admin-ui 对齐基线
- 只读参考仓库:`D:\github\goadmin\go-admin-ui`。
- 参考 commit:`67d393d713877572fab0b897296a4c1d525fc81d`。
- 应用外壳映射:`Sidebar`、`Navbar`、`TagsView`、`AppMain` 和 `BasicLayout` / 页面容器。
- 通用组件映射:Element Plus 的 Button、Form、Input/Select、Table、Pagination、Dialog 和 Tag,以及 go-admin-ui 的搜索区与 `v-permisaction` 权限按钮模式。
- Sense 专用组件:视频舞台 `SenseVideoStage` 与区域画布 `SenseZoneCanvas`;正式实现前先确认 go-admin-ui 内没有等价组件。
- 原型仍是无构建依赖的 HTML/CSS/JavaScript,并未嵌入或复制 go-admin-ui / Element Plus 源码;这些名称用于约束正式 Vue 实现的组件落点。
## 事实来源边界
- 产品范围以 Gitea Wiki 的 Product Requirements、Product Roadmap 和对应工单为准。