feat(dream): add Dream Diary tab to memory management page

- Backend: MemoryService supports category param (memory/dream), lists memory/dreams/*.md
- Backend: MemoryContentHandler resolves dream files from memory/dreams/ directory
- Frontend: add tab switcher (Memory Files / Dream Diary) matching knowledge tab style
- Frontend: dream entries show purple "Dream" badge, empty state with moon icon
- Cloud dispatch passes category param for consistency
This commit is contained in:
zhayujie
2026-04-13 22:08:15 +08:00
parent ea1a0c8b3d
commit 94d8c7e366
5 changed files with 108 additions and 56 deletions

View File

@@ -890,15 +890,15 @@
============================================================ */
/* Tab toggle */
.knowledge-tab {
.knowledge-tab, .memory-tab {
color: #64748b;
}
.knowledge-tab.active {
.knowledge-tab.active, .memory-tab.active {
background: #fff;
color: #334155;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dark .knowledge-tab.active {
.dark .knowledge-tab.active, .dark .memory-tab.active {
background: rgba(255,255,255,0.1);
color: #e2e8f0;
}