refactor(auth): 移除用户登出功能并优化导航组件

- 从 app-top-nav.tsx 中移除登出相关代码和 LogOut 图标
- 从 canvas-client-page.tsx 中移除用户信息显示和登出回调函数
- 从 admin layout.tsx 中移除登出菜单项
- 将 navigation-tools 从 lib 目录迁移到 constant 目录
- 更新 UserStatusActions 组件以简化用户菜单逻辑
- 在用户状态操作组件中集成快捷键功能和管理员入口
This commit is contained in:
HouYunFei
2026-05-21 15:10:57 +08:00
parent dd6e426d78
commit e3d8fc092d
7 changed files with 30 additions and 61 deletions
+26
View File
@@ -0,0 +1,26 @@
import { FileText, ImagePlus, Images, Maximize2 } from "lucide-react";
export const navigationTools = [
{
slug: "canvas",
label: "我的画布",
icon: Maximize2,
},
{
slug: "image",
label: "生图工作台",
icon: ImagePlus,
},
{
slug: "prompts",
label: "提示词库",
icon: FileText,
},
{
slug: "assets",
label: "我的素材",
icon: Images,
},
] as const;
export type NavigationToolSlug = (typeof navigationTools)[number]["slug"];