Commit Graph

222 Commits

Author SHA1 Message Date
24b9400767 feat: 离线部署包一体化,启动自动导入种子数据,人脸库构建流程修复
- package.sh: 打包包含 configs 种子数据、tools 构建工具、deps 离线依赖、scripts 辅助脚本
- ImportSeedAssets: 首次启动检测空库自动导入 templates/profiles/overlays
- face_gallery.html: 添加构建人脸库按钮
- device.html: 无标准配置时显示设备实际模型/资源,无人脸库配置时隐藏按钮
- register-face-gallery.py: 手动注册已构建人脸库到 standard_resources
- deployment.md: 更新部署流程反映新包结构
- .gitignore: 排除 *.tar.gz 构建产物
2026-07-23 17:57:47 +08:00
3d109b4b11 chore: 同步之前未提交的改动 (auto_config, ui, console) 2026-07-22 11:16:25 +08:00
c440186ce3 fix: 统一管理端部署路径,设备详情页支持无标准配置时展示设备实际模型/人脸库
- 所有路径统一为 /opt/safesightd/{bin,config,data}
- 新增 safesightd.json.example 使用绝对路径,不含 dev 私货
- package.sh 打包时使用示例配置,README 给出完整命令
- safesightd.service 精简冗余配置
- device.html: 无标准配置时仍展示设备上的模型/资源状态
- deployment.md: 路径对齐,补全配置字段
2026-07-22 11:14:30 +08:00
e284048435 feat: default integrations, inject into config, console live sync, task sort 2026-07-21 18:08:07 +08:00
a0f22230cb fix: console only deploys changed devices; wizard shows display names and pre-checks features 2026-07-21 16:55:22 +08:00
fe7ff6719d rename: /v1/media-server/* -> /v1/edge-server/* 2026-07-21 10:06:48 +08:00
4443440f0f feat: face gallery reload as task; device page model/resource status; task completion time fix 2026-07-20 16:56:36 +08:00
29db6be66d feat: device detail page shows real model/resource status with SHA256 comparison; filter unavailable features on console 2026-07-20 16:34:31 +08:00
0a9a1bd005 feat: console only shows device-supported features (filter unavailable) 2026-07-20 16:04:05 +08:00
ab32118f75 fix: remove /ui prefix globally, fix face-photo encoding, fix console video, default sort by time 2026-07-20 15:54:09 +08:00
b7757c7387 fix: normalize percent-encoding case in serveFacePhoto via PathUnescape; remove /ui prefix globally 2026-07-20 15:25:29 +08:00
32fcd43801 fix: actionFaceGalleryAdd now registers person/photo in SQLite DB 2026-07-20 15:01:31 +08:00
2b11844062 fix: 仪表盘页面标题同步为首页 2026-07-20 12:01:17 +08:00
a0c6df78b6 修改菜单名称和顺序 2026-07-20 11:36:58 +08:00
08ec88c45e feat: 视频源管理页增加 CSV 模板下载与批量导入 2026-07-20 10:52:25 +08:00
2369a1e3dc feat: 首次使用无检测通道时,仪表盘自动跳转到部署向导 2026-07-20 10:34:30 +08:00
96e689fec0 feat: 模型管理与人脸库产品化改进,通道部署配置状态指示
P2-14 模型管理简化:
- 上传新模型:模态框上传 → 存盘 → SHA256 入库 → 可选自动分发
- 设备兼容性矩阵:根据 Edge /v1/capabilities 区分缺失 vs 不适用
- 版本管理:从固定 auto 改为文件修改时间戳
- 更新全部智能过滤:只推送缺失/不一致的设备

P2-15 人脸库优化:
- Build 产出自动注册为标准资源,接入 Resource Task 分发系统
- 人脸库页面增加设备同步状态矩阵 + 批量同步按钮
- 人员搜索过滤
- 人脸质量评分反馈(构建诊断信息 + 通过率展示)

新增:通道部署页每台设备显示配置同步状态(对比 config_versions 与 Edge config SHA256)

文档:产品化改进计划、实施跟踪、模型与人脸库改进方案
2026-07-20 10:27:11 +08:00
ca5b687ee1 feat: config version history — auto-save on deploy, side-by-side JSON diff 2026-07-17 18:47:19 +08:00
232526de06 feat: CSV alarm export — supports filters, Excel-compatible with BOM 2026-07-17 18:16:10 +08:00
3adc1e1a43 refactor: register alarm API routes at /api/ level instead of /ui/api/ — consistent REST design 2026-07-17 18:09:46 +08:00
139baeef5f fix: add /ui prefix to alarm API calls — chart trending data was 404 2026-07-17 18:06:50 +08:00
a58c99a2f3 feat: alarm trend bar chart on dashboard — past 7 days, pure Canvas 2026-07-17 17:55:36 +08:00
a594e05692 refactor: unify terminology — 视频通道→检测通道, 场景→场景管理, 人脸库管理→人脸库 2026-07-17 17:51:45 +08:00
c71922a05d fix: hide static msg div when toast shows, prevent double display 2026-07-17 17:45:14 +08:00
53577b0ea6 feat: toast notifications replace URL parameter messages — auto-dismiss, no page reload 2026-07-17 17:43:56 +08:00
b2fbae9e4b feat: device row warning highlight when online but media server not running 2026-07-17 17:39:53 +08:00
bc5bd7d3fc fix: alarm badge shows 99+ on initial render for counts above 99 2026-07-17 17:36:16 +08:00
3d7313585c feat: alarm notification — topbar bell badge + title flash with unacknowledged count 2026-07-17 17:32:19 +08:00
13d22ce848 fix: wizard camera picker — select from existing video sources dropdown 2026-07-17 17:23:50 +08:00
bf0fed23f9 fix: wizard reads device channels from agent /v1/preview/channels instead of SQLite 2026-07-17 17:21:28 +08:00
b50ccda82d fix: wizard step 2 — separate assigned/added cameras, show loading state for features 2026-07-17 17:06:59 +08:00
3f3a2a0987 feat: deployment wizard — guided 3-step device setup for standard mode 2026-07-17 16:59:00 +08:00
59a18f3e62 feat: dashboard redesign with real-time alarm stream via SSE 2026-07-17 16:43:13 +08:00
3f6f3ddbb5 feat: alarm center enhancement — workflow, severity, filters, SSE 2026-07-17 16:35:42 +08:00
27584f931a fix: use vendored hls.js instead of CDN in monitor page 2026-07-17 16:21:31 +08:00
aa76607092 feat: add standard/expert mode toggle for sidebar menu
- Add mode toggle switch at sidebar bottom (标准/专家)
- Hide complex system config items in standard mode
- Remove '主模块' nav section header
- Persist mode selection in localStorage
2026-07-17 11:46:37 +08:00
ccde3aeea6 fix: update import path in alarm_collector.go (p0-dashboard merge) 2026-07-17 11:10:16 +08:00
d422ffd48e refactor: rebrand to SafeSight Control (merge p0-dashboard) 2026-07-17 11:08:47 +08:00
2921c180cb 修改平台名称和界面,增加了项目介绍文档和部分代码注释;为申请软著增加的代码文件。 2026-06-10 14:31:55 +08:00
7a2e82db0d fix: default alarm range to past 7 days, '全部' from 2020 2026-05-12 17:25:35 +08:00
ad98dee68f fix: restore '全部' link, keep per_page on same row 2026-05-12 17:16:36 +08:00
bc085533a1 fix: standard pagination with ellipsis (1 … cur±2 … N) 2026-05-12 17:12:45 +08:00
0f4c75fe26 fix: preserve per_page param in pagination links 2026-05-12 17:10:56 +08:00
b4a9772211 fix: pagination shows ±3 pages with prev/next arrows, 20 per page default with selector 2026-05-12 17:09:32 +08:00
8f68fbbb0d chore: remove redundant '告警中心' title from alarms page 2026-05-12 17:05:55 +08:00
e5922ea6c0 feat: add week/month quick links to alarms page, remove subtitle 2026-05-12 17:05:14 +08:00
316a05aec4 fix: add '全部' link and improve empty state message on alarms page 2026-05-12 17:03:27 +08:00
74ca578483 feat: alarm page date filter, pagination, auto-cleanup
- 告警页增加日期范围筛选(默认今天),50 条/页分页
- AlarmCollector.GetFiltered 支持 from/to/limit/offset
- alarm_retention_days 配置项(默认 30 天),超期自动清理
2026-05-12 16:58:56 +08:00
65eb988905 fix: move form inside device panel, use display:contents to preserve tab layout 2026-05-12 16:50:17 +08:00
84b8b1c65a fix: remove transactions causing SQLITE_BUSY, add coding rules
- persistTask: 去掉事务,每个 Exec 原子即可
- saveAsset(profiles): 去掉事务,profile 和 units 分步保存
- CLAUDE.md: 加两条规则——不用事务除非必要;调试只加日志不改代码
2026-05-12 16:43:44 +08:00