feat(target-lists): 新增黑白名单管理与实时告警功能

- rid-shared 新增 target_lists 模块,定义名单数据契约
- 地图适配器支持按名单类型着色渲染目标(白/黑/未知)
- 新增名单筛选器与目标目录过滤联动
- 实时详情面板支持加入/编辑白名单与黑名单操作
- 新增黑名单命中告警横幅与事件日志高亮
- 新增名单管理浮层(Manager 组件)与徽章展示
- 底图默认切换为影像图,相机初始俯仰角归零
- color-scheme 切换为 dark,新增 glass/workbench 样式
```
This commit is contained in:
2026-10-23 09:12:50 +08:00
parent 3cf50f2e8b
commit df9e8bdeb5
24 changed files with 1481 additions and 120 deletions
+194
View File
@@ -0,0 +1,194 @@
/* Approved A workbench: only home, registration and appearance use this layout. */
body[data-screen=home] .home-launcher.homescreen {
inset: 48px 0 0 68px !important;
margin: 0 !important;
padding: 34px 28px;
container: home-workbench / inline-size;
}
body[data-screen=home][data-menu-hidden=true] .home-launcher.homescreen { left: 0 !important; }
.home-space { width: 100%; max-width: 1170px; }
.home-kicker { color: var(--work-muted); font-size: 11px; letter-spacing: .14em; margin-bottom: 10px; }
.home-heading h1 { font-size: 27px; }
.home-cards { gap: 20px; }
.home-card { min-height: 370px; padding: 25px; }
.home-card-title { margin-top: 23px; font-size: 20px; }
.home-card-desc { min-height: 52px; }
.home-card-preview { margin-bottom: 8px; }
.home-card-open { margin-top: auto; }
body[data-screen=register] #workspace-content,
#appearance-view { container: workbench / inline-size; overflow: auto; }
body[data-screen=register] #workspace-content > div { height: 100%; min-height: 0; }
body[data-screen=register] .registry-workspace {
height: 100%; min-height: 0; max-height: 100%; padding: 24px;
grid-template-columns: 240px minmax(0, 1fr) 280px;
grid-template-rows: minmax(0, 1fr); gap: 18px;
}
.workbench-panel,
body[data-screen=register] .registry-workspace :is(.history-panel, .registration-editor, #registration-result) {
min-width: 0; min-height: 0; border: 1px solid var(--work-line); border-radius: 12px;
background: var(--work-panel); color: var(--work-text);
backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter);
box-shadow: 0 12px 28px #0003, inset 0 1px 0 #ffffff0b;
}
body[data-screen=register] .registry-workspace .history-panel {
display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
}
.registry-workspace .history-heading {
padding: 0 16px; min-height: 54px; flex-shrink: 0; border-bottom: 1px solid var(--work-line);
}
.registry-workspace .history-heading h2 { font-size: 16px; }
.registry-workspace .history-content { padding: 16px; min-height: 0; overflow: auto; flex: 1; scrollbar-width: thin; }
.registry-workspace .history-search { margin-bottom: 14px; }
.registry-workspace .history-toolbar { margin: 13px 0; }
.registry-workspace #selection-controls { margin: 12px 0; }
.registry-workspace .history-message { margin: 10px 0; }
.registry-workspace .pagination { margin: 0; padding: 14px 16px; flex-shrink: 0; }
.registry-workspace #archive-warning:not([hidden]) { padding: 10px 16px; flex-shrink: 0; }
.registry-workspace .export-controls .registry-popup { left: 10px; right: 10px; }
body[data-screen=register] .registry-workspace .registration-editor { display: flex; flex-direction: column; overflow: hidden; }
.registry-workspace .registration-editor .registration-heading {
padding: 17px 20px; margin: 0; min-height: 70px; flex-shrink: 0; border-bottom: 1px solid var(--work-line);
}
.registry-workspace .registration-editor .registration-heading h1 { font-size: 16px; line-height: 1.5; margin: 0 0 4px; }
.registry-workspace .registration-editor .registration-heading p { font-size: 12px; }
.registry-workspace #register-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.registry-workspace .registration-fields-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 20px; scroll-padding-block: 18px; scrollbar-width: thin; }
body[data-screen=register] .registry-workspace #register-form .registry-group {
border: 0; border-radius: 0; border-bottom: 1px solid var(--work-line);
background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
padding: 0 0 23px; margin: 0 0 23px; box-shadow: none;
}
body[data-screen=register] .registry-workspace #register-form .registry-group:last-of-type { border-bottom: 0; padding-bottom: 10px; margin-bottom: 0; }
.registry-workspace .registration-number { grid-template-columns: 1fr; gap: 8px; }
.registry-workspace .registration-number #fpv-hint { margin-top: 0; }
body[data-screen=register] .registry-workspace .registration-savebar {
position: static; flex-shrink: 0; margin: 0; padding: 15px 20px;
background: var(--glass-solid); box-shadow: none; backdrop-filter: none;
-webkit-backdrop-filter: none; gap: 12px;
}
.registry-workspace .registration-savebar #draft-state { font-size: 11px; }
.registry-workspace #register-button { font-size: 12px; }
body[data-screen=register] .registry-workspace #registration-result {
padding: 0; margin: 0; overflow: auto; scroll-padding-top: 60px; scrollbar-width: thin;
}
#registration-result > h2 {
position: sticky; top: 0; z-index: 2; padding: 17px 20px; min-height: 54px;
background: var(--glass-solid); border-bottom: 1px solid var(--work-line);
}
.registry-workspace #registration-result .empty-state {
display: flex; flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px;
}
.registry-workspace #registration-result .empty-state ol { margin: 0; padding-left: 20px; border: 0; font-size: 12px; }
.registry-workspace #registration-result .record-result { display: flex; flex-direction: column; padding: 22px 18px; gap: 17px; }
.registry-workspace #registration-result .qr-stage { width: 170px; align-self: center; flex-shrink: 0; }
.registry-workspace #registration-result .uas-display { font-size: 21px; overflow-wrap: anywhere; }
.registry-workspace #registration-result .result-fields { display: flex; flex-direction: column; gap: 14px; }
.registry-workspace #registration-result .result-fields > div { display: block; padding: 0; }
.registry-workspace #registration-result .result-fields dt { margin-bottom: 6px; font-size: 11px; }
.registry-workspace #registration-result .result-fields dd { overflow-wrap: anywhere; font-size: 13px; }
.registry-workspace #registration-result :is(.result-actions, .url-box) { display: flex; flex-direction: column; align-items: stretch; }
.registry-workspace #registration-result .result-actions :is(button, a) { text-align: center; }
.registry-workspace #registration-result .result-tip { font-size: 12px; }
#appearance-view .settings-layout {
height: 100%; min-height: 0; max-width: none; width: 100%; padding: 24px;
display: grid; grid-template-columns: 190px minmax(0, 1fr) 285px;
grid-template-rows: minmax(0, 1fr); align-items: start; gap: 18px; overflow: hidden;
}
#appearance-view .settings-sidebar { padding: 20px 12px; height: auto; }
.settings-sidebar h2 { padding: 0 8px 16px; font-size: 16px; }
.settings-sidebar .setting-link { width: 100%; text-align: left; justify-content: flex-start; margin: 0 0 7px; border: 1px solid transparent; background: none; padding: 11px 10px; font-size: 13px; color: var(--work-text); }
.settings-sidebar .setting-link.active { border-color: var(--work-line); background: #8bbdff14; }
.settings-sidebar .micro { padding: 9px 9px 0; font-size: 11px; line-height: 1.9; }
#appearance-view .setting-content { padding: 0; height: 100%; max-height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.setting-panel-head { min-height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--work-line); flex-shrink: 0; }
.setting-panel-head h2 { margin: 0; font-size: 16px; }
.setting-panel-head > span { font-size: 11px; color: var(--work-muted); }
.settings-scroll { padding: 20px; overflow: auto; min-height: 0; flex: 1; scroll-padding-block: 20px; scrollbar-width: thin; }
#appearance-view .glass-material-note { padding: 14px 0 20px; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--work-line); margin: 0; }
#appearance-view .glass-material-note p { font-size: 12px; }
#appearance-view .section-caption { margin: 23px 0 13px; }
#appearance-view .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#appearance-view .wall-choice { padding: 0; border-radius: 8px; border: 1px solid var(--work-line); background: #07152544; }
#appearance-view .wall-choice img { height: 80px !important; }
#appearance-view .wall-choice span { padding: 9px 11px; font-size: 12px; }
#appearance-view .native-group { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; margin: 10px 0; }
#appearance-view .setting-row { padding: 18px 0; gap: 16px; }
#appearance-view .setting-row label { font-size: 13px; }
#appearance-view .setting-row small { font-size: 11px; }
#appearance-view .setting-row .row { gap: 8px; }
#appearance-view .setting-row input[type=range] { width: 110px; }
#appearance-view .setting-row output { min-width: 32px; font-size: 11px; }
#appearance-view .setting-row select { min-width: 0; width: 125px; }
#appearance-view .setting-actions { flex-wrap: wrap; gap: 12px; }
.settings-preview { max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.preview-content { padding: 20px; min-height: 0; overflow: auto; scrollbar-width: thin; }
#desktop-sample { width: 100% !important; height: 180px !important; margin: 0 0 22px !important; border: 1px solid var(--work-line); border-radius: 9px; background: var(--glass-base); box-shadow: none; position: relative; isolation: isolate; overflow: hidden; }
#desktop-sample::before, #desktop-sample::after { display: none; }
#appearance-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(var(--preview-blur, 0px)); }
.preview-shade { position: absolute; inset: 0; background: linear-gradient(var(--glass-workspace), var(--glass-workspace)), rgba(0, 0, 0, var(--preview-shade, .14)); }
.preview-material { position: absolute; inset: 20px 16px; border: 1px solid var(--work-line); border-radius: 8px; padding: 17px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--work-panel); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); }
.preview-material span, .preview-material small { font-size: 10px; color: var(--work-muted); }
.preview-material strong { font-size: 14px; font-weight: 600; }
.preview-values { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 12px; margin: 0 0 23px; }
.preview-values div { min-width: 0; }
.preview-values dt { color: var(--work-muted); font-size: 11px; margin-bottom: 7px; }
.preview-values dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.preview-content .micro { font-size: 11px; line-height: 1.9; }
#edit-dialog #edit-cancel { min-width: 76px; flex-shrink: 0; white-space: nowrap; }
@container home-workbench (max-width: 899px) {
.home-space { margin: auto; }
.home-cards { grid-template-columns: 1fr; gap: 16px; }
.home-card { display: grid; grid-template-columns: 65px minmax(0, 1fr) 20px; gap: 5px 17px; padding: 20px; min-height: 132px; }
.home-app-icon { width: 65px; height: 65px; grid-row: 1/3; }
.home-card-title { grid-column: 2; grid-row: 1; margin: 0; align-self: end; font-size: 18px; }
.home-card-desc { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; font-size: 13px; align-self: start; }
.home-card-preview { display: none; }
.home-card-open { grid-column: 3; grid-row: 1/3; display: block; width: 20px; height: 22px; font-size: 0; padding: 0; margin: 0; border: 0; }
.home-card-open svg { position: static; }
}
@container workbench (max-width: 1199px) {
body[data-screen=register] .registry-workspace { height: auto; min-height: 100%; max-height: none; overflow: visible; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto auto; }
body[data-screen=register] .registry-workspace .history-panel { grid-row: 1/3; max-height: calc(100dvh - 96px); position: sticky; top: 24px; }
body[data-screen=register] .registry-workspace .registration-editor { height: max(480px, calc(100dvh - 96px)); }
body[data-screen=register] .registry-workspace #registration-result { grid-column: 2; max-height: none; }
#appearance-view .settings-layout { height: auto; min-height: 100%; overflow: visible; grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto auto; }
#appearance-view .settings-sidebar { grid-row: 1/3; }
#appearance-view .setting-content { height: auto; max-height: none; }
#appearance-view .settings-scroll { overflow: visible; }
#appearance-view .settings-preview { grid-column: 2; max-height: none; }
}
/* The container itself scrolls at narrower sizes; descendants control the columns. */
@media(max-width: 1267px) {
body[data-screen=register] #workspace-content, #appearance-view { overflow: auto; }
}
@container workbench (max-width: 767px) {
body[data-screen=register] .registry-workspace { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
body[data-screen=register] .registry-workspace .history-panel { order: 0; height: 280px; max-height: 280px; flex-shrink: 0; position: relative; top: auto; }
.registry-workspace .history-content { padding: 13px 15px; }
.registry-workspace .pagination { padding: 10px 15px; gap: 6px; }
body[data-screen=register] .registry-workspace .registration-editor { order: 1; height: auto; min-height: 0; overflow: visible; flex-shrink: 0; }
.registry-workspace #register-form { display: block; }
.registry-workspace .registration-fields-scroll { overflow: visible; padding: 20px 16px 30px; }
.registry-workspace .registration-fields { grid-template-columns: 1fr; }
body[data-screen=register] .registry-workspace .registration-savebar { position: sticky; bottom: 0; padding: 14px 16px; z-index: 3; }
.registry-workspace #register-button { width: 100%; }
body[data-screen=register] .registry-workspace #registration-result { order: 2; flex-shrink: 0; overflow: visible; }
#registration-result > h2 { position: static; }
.registry-workspace #registration-result .empty-state { flex-direction: column; }
#appearance-view .settings-layout { display: flex; flex-direction: column; padding: 16px; gap: 16px; }
#appearance-view .settings-sidebar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 10px; flex-shrink: 0; }
.settings-sidebar h2, .settings-sidebar .micro { display: none; }
.settings-sidebar .setting-link { width: auto; margin: 0; }
#appearance-view .setting-content, #appearance-view .settings-preview { width: 100%; height: auto; max-height: none; flex-shrink: 0; }
.settings-scroll, .preview-content { padding: 18px 16px; overflow: visible; }
#appearance-view .setting-row { flex-wrap: wrap; }
#appearance-view .setting-row > .row { width: 100%; justify-content: space-between; }
#appearance-view .setting-row input[type=range] { width: 75%; }
.setting-panel-head { padding: 0 16px; }
}
@media(max-width: 760px) {
body[data-screen=home] .home-launcher.homescreen { left: 56px !important; padding: 28px 20px; }
body[data-screen=home] .workspace-home-link > #workspace-brand { display: inline; font-size: 12px; }
body[data-screen=home] #reference-title { display: none; }
.home-heading h1 { font-size: 24px; }
}