feat: 全站 Ant Design Pro 风格重构 + 登录守卫与角色门户(issue #131/#134)

- 新增 web/shared:pro.css(AntD 5 设计系统,旧 CSS 变量统一映射 AntD 色板)、
  session.js(后端优先+本地账号降级双轨会话,IAOP_AUTH 兼容层)、
  pro-header.js(全站统一 Pro 导航条:logo/页题/用户角色 Tag/退出)
- 门户 web/index.html:未登录跳登录页(next 回跳),登录后按角色过滤
  可见模块(readonly→驾驶舱/助手/移动端;engineer→+配置台;admin→全部)
- 登录页 auth/login.html 重写为 Ant Design Pro 风格,本地降级模式自动
  播种演示账号(admin/engineer/viewer),保留 OIDC SSO 双轨入口
- user_store.js 新增 verify() + seedDefaults() 默认账号播种
- 六模块页统一接入 pro.css + 统一导航条 + 登录守卫(PRD 8.2)
- 驾驶舱主题 dark→light(Ant Design 5 色板):renderer.py THEME_TOKENS、
  ti-cl4/resin 模板 theme、告警三级配色对齐 AntD(P0 #ff4d4f/P1 #faad14/
  P2 #1677ff),渲染计划已重编(build_plans.py)
- 验证:core/cockpit 86 单测通过;JS 语法检查通过;静态冒烟全 200
This commit is contained in:
2026-08-05 14:17:37 +08:00
parent b53e71c85d
commit 7a2e45e7c4
21 changed files with 1224 additions and 204 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
# alarm_panel(告警面板)/ nl_query(NL查询入口)。
$schema: iAOP-cockpit-layout-v1
title: 吸附树脂车间驾驶舱
theme: dark
# 2026-08 全站 Ant Design Pro 风格重构:dark → light(与 ti-cl4 一致)
theme: light
widgets:
- type: process_view
src: resin_four_state.svg
@@ -12,20 +12,21 @@
$schema: iAOP-cockpit-alarm-panel-v1
# severityColors:P0/P1/P2 三级展示配色(覆盖主题默认告警色)。
# P0=红色(驾驶舱红色告警,PRD 场景A)、P1=黄色(加强监控)、P2=蓝色(提示)。
# 2026-08 对齐 Ant Design 5 色板:error #ff4d4f / warning #faad14 / primary #1677ff。
severityColors:
- severity: P0
fg: "#ff3b30" # 红色前景(告警文本 / 图标)
bg: "rgba(255,59,48,0.12)"
fg: "#ff4d4f" # AntD error 红(告警文本 / 图标)
bg: "rgba(255,77,79,0.10)"
icon: alert-octagon
border: "#ff3b30"
border: "#ff4d4f"
- severity: P1
fg: "#f5a623" # 黄色
bg: "rgba(245,166,35,0.12)"
fg: "#faad14" # AntD warning 黄
bg: "rgba(250,173,20,0.10)"
icon: alert-triangle
border: "#f5a623"
border: "#faad14"
- severity: P2
fg: "#3aa0ff" # 蓝色(提示)
bg: "rgba(58,160,255,0.10)"
fg: "#1677ff" # AntD primary 蓝(提示)
bg: "rgba(22,119,255,0.08)"
icon: info
# rulesSource:告警面板订阅哪份规则资产(阈值/规则外置)。
# 指向 issue #72 落地的炉层杂质预警规则模板(templates/ti-cl4/impurity-forecast/
+3 -1
View File
@@ -16,7 +16,9 @@
# bind 的 point_id 对齐 templates/ti-cl4/point-dict/point_dict.default.csv。
$schema: iAOP-cockpit-layout-v1
title: 海绵钛车间驾驶舱
theme: dark
# 2026-08 全站 Ant Design Pro 风格重构:dark → light(Ant Design 5 色板,
# token 见 core/cockpit/renderer.py THEME_TOKENS["light"])
theme: light
widgets:
# ---- 四状态工艺流程主视图(首屏立即加载) ---------------------------
- type: process_view