feat: add breadcrumb navigation and refactor SPA view management

- Add breadcrumb navigation with folder hierarchy display
- Create setCurrentSection() helper to centralize view state management
- Derive nav item section dynamically from DOM data-i18n attribute
- Remove remnant /shared page and consolidate to SPA sharedView
- Add search input to sharedView for client-side filtering
- Fix 'Go to Files' button to use switchToFilesView()
This commit is contained in:
George Wu
2026-02-22 20:20:00 -08:00
parent 85908311dc
commit 6a9554d23f
10 changed files with 196 additions and 903 deletions
+17
View File
@@ -38,3 +38,20 @@
font-size: 12px;
user-select: none;
}
.breadcrumb-home {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 4px;
}
.breadcrumb-home i {
font-size: 12px;
}
.breadcrumb-home.breadcrumb-link:hover {
background: rgba(255, 94, 58, 0.1);
}
+9
View File
@@ -97,6 +97,15 @@
color: #64748b;
}
[data-theme="dark"] .breadcrumb-home {
color: #94a3b8;
}
[data-theme="dark"] .breadcrumb-home.breadcrumb-link:hover {
color: #ff5e3a;
background: rgba(255, 94, 58, 0.15);
}
[data-theme="dark"] .btn-secondary {
background-color: #1e293b;
color: #cbd5e1;