feat(layout): 实现应用布局和侧边栏功能

- 添加侧边栏组件,支持展开/收缩和移动端适配
- 实现导航菜单,支持高亮当前路由
- 添加主题选择器组件
- 集成认证状态显示和登出功能
- 优化侧边栏在不同屏幕尺寸下的行为
- 添加多种图标支持,包括logo、菜单、主页等
- 创建NavItem类型定义,用于导航菜单项
- 扩展sidebarStore,增加手动控制状态管理
- 添加数据看板页面占位内容
- 更新全局布局文件以支持主题和侧边栏状态管理
This commit is contained in:
Chaos
2025-11-22 22:45:49 +08:00
parent 26fef2fd7a
commit 65cf80fb51
9 changed files with 325 additions and 81 deletions

View File

@@ -3,7 +3,6 @@
import { DAISYUI_THEME_OPTIONS, type DaisyUIThemeID } from '$lib/types/theme.ts';
import ThemePreview from '$lib/widget/ThemePreview.svelte';
// ... 逻辑保持不变 ...
const handleThemeChange = (themeValue: DaisyUIThemeID) => {
themeStore.set(themeValue);
};