完善用户认领功能

Signed-off-by: luorijun <luorijun@outlook.com>
This commit is contained in:
2026-01-06 14:57:55 +08:00
parent 0c5598c927
commit a27e856f07
5 changed files with 242 additions and 108 deletions

View File

@@ -95,7 +95,7 @@ function NavItem({ href, icon: Icon, label }: NavItemProps) {
: "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
}`}
>
<Icon className={`h-5 w-5 ${collapsed ? "" : "flex-shrink-0"}`} />
<Icon className={`h-5 w-5 ${collapsed ? "" : "shrink-0"}`} />
{!collapsed && <span className="ml-3 font-medium text-sm">{label}</span>}
</Link>
)
@@ -175,13 +175,13 @@ export default function Navigation() {
<NavItem href="/statistics" icon={BarChart3} label="数据统计" />
</NavGroup>
<NavSeparator />
{/*<NavSeparator />*/}
{/* IP 资源 */}
<NavGroup title="IP 资源">
{/*<NavGroup title="IP 资源">
<NavItem href="/proxy/nodes" icon={Globe} label="节点列表" />
<NavItem href="/proxy/pools" icon={Server} label="IP池管理" />
</NavGroup>
</NavGroup>*/}
<NavSeparator />
@@ -205,9 +205,9 @@ export default function Navigation() {
{/* 系统 */}
<NavGroup title="系统">
<NavItem href="/settings" icon={Settings} label="系统设置" />
<NavItem href="/security" icon={Shield} label="安全管理" />
<NavItem href="/logs" icon={FileText} label="系统日志" />
{/*<NavItem href="/settings" icon={Settings} label="系统设置" />*/}
<NavItem href="/security" icon={Shield} label="管理" />
{/*<NavItem href="/logs" icon={FileText} label="系统日志" />*/}
</NavGroup>
</nav>
</ScrollArea>