feat(users): integrate user info and services APIs into 3-tab detail panel with proper padding

This commit is contained in:
2026-08-12 00:35:59 +08:00
parent 703d4dc583
commit 1a5489a361
17 changed files with 4127 additions and 382 deletions
+12 -1
View File
@@ -5,6 +5,7 @@ import {
Bot,
ClipboardList,
FileText,
FileJson,
Flag,
FolderTree,
Hash,
@@ -40,6 +41,17 @@ export interface NavGroup {
}
export const NAV_GROUPS: NavGroup[] = [
{
label: '开发工具',
items: [
{
label: 'API 文档',
to: '/api-docs',
icon: FileJson,
permission: 'auth:api-docs:read',
},
],
},
{
label: '分类管理',
items: [
@@ -112,4 +124,3 @@ export function getFirstAccessibleRoute(): string | null {
}
return null
}
+2 -2
View File
@@ -60,7 +60,7 @@ function SheetContent({
<SheetPrimitive.Content
data-slot="sheet-content"
className={cn(
"fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
"fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
side === "right" &&
"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
side === "left" &&
@@ -89,7 +89,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="sheet-header"
className={cn("flex flex-col gap-1.5 p-4", className)}
className={cn("flex flex-col gap-1.5", className)}
{...props}
/>
)