feat: 更新Sidebar组件,优化外部链接处理;新增代码图像导航项

This commit is contained in:
xiongxiao
2026-03-24 02:28:56 +08:00
committed by cnb
parent b0acbbf337
commit 09fc199525
3 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { FolderKanban, LayoutDashboard, Settings, PlayCircle, Cloud, Package } from 'lucide-react'
import { FolderKanban, LayoutDashboard, Settings, PlayCircle, Cloud, Package ,Grape} from 'lucide-react'
import { Sidebar, type NavItem } from '@/components/a/Sidebar'
import { Logo } from './CNBBlackLogo.tsx'
@@ -23,7 +23,12 @@ const navItems: NavItem[] = [
path: '/cnb-packages',
icon: <Package className="w-5 h-5" />,
},
{
title: '代码图像',
path: '/root/code-graph',
icon: <Grape className="w-5 h-5" />,
external: true,
},
{
title: '其他',
path: '/other',