Phase 1 — 品牌替换:
- BRAND_DEFAULTS 回退值改为暖记品牌 (themes.ts)
- 登录页/侧边栏/底部回退文字 → 暖记 (Login, MainLayout)
- index.html title/meta/favicon → 暖记
- localStorage key → nuanji-theme, 默认主题 → warm
- 4 套主题色适配暖记设计系统 (珊瑚 #E07A5F / 蓝 / 深色 / 鼠尾草绿)
- 品牌信息通过系统设置配置,不硬编码
Phase 2 — 清理 HMS 模块:
- 删除 health/ai 页面 (~55+2)、API (~30+9)、组件、stores、hooks
- 重写 Home.tsx 为暖记 Dashboard
- 重写 NotificationPanel/MediaPicker 移除 health 依赖
- 清理 routeConfig 移除所有 health/ai 路由权限
Phase 3 — 暖记管理页面:
- API 层: api/diary/{types,journals,classes,topics,comments,stickers}.ts
- 班级管理: 班级列表+创建+成员查看+班级码复制 (ClassList)
- 日记审核: 日记列表+筛选+详情+老师点评 (JournalList)
- 主题管理: 班级选择+主题卡片+创建+过期标记 (TopicList)
- 贴纸管理: 贴纸包卡片+贴纸详情网格 (StickerPackList)
- 路由注册: /diary/classes, /diary/journals, /diary/topics, /diary/stickers
验证: tsc 0 error, vite build ✓, vitest 226/226 pass
13 lines
663 B
XML
13 lines
663 B
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
|
<!-- 暖记 favicon: 温暖的书+笔, 珊瑚色 -->
|
|
<rect width="32" height="32" rx="8" fill="#E07A5F"/>
|
|
<!-- 书本 -->
|
|
<path d="M8 22 L16 20 L16 8 L8 10 Z" fill="#FFF8F0" opacity="0.9"/>
|
|
<path d="M16 20 L24 22 L24 10 L16 8 Z" fill="#FFFFFF" opacity="0.9"/>
|
|
<!-- 书脊 -->
|
|
<line x1="16" y1="8" x2="16" y2="20" stroke="#E07A5F" stroke-width="1.5" opacity="0.5"/>
|
|
<!-- 笔 -->
|
|
<path d="M20 6 L25 11 L16 20 L13 19 Z" fill="#81B29A" opacity="0.85"/>
|
|
<path d="M25 11 L26 10 C26.5 9.5 26.5 8.5 26 8 L24 6 C23.5 5.5 22.5 5.5 22 6 L20 6 Z" fill="#F2CC8F"/>
|
|
</svg>
|