diff --git a/app/admin/layout.tsx b/app/admin/layout.tsx index 934fee3..0966550 100644 --- a/app/admin/layout.tsx +++ b/app/admin/layout.tsx @@ -14,7 +14,7 @@ export default function AdminLayout({ -
+
{children}
diff --git a/app/admin/page.tsx b/app/admin/page.tsx index e451226..8da9edd 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -1,18 +1,31 @@ import { getCurrentUser } from '~/server/lib/user' +import { Card, CardBody } from '@nextui-org/card' export default async function Admin() { const user = await getCurrentUser() return ( - <> - { user ? -
-

控制台(已登录)

-

{JSON.stringify(user)}

-
- : - '控制台(未登录)' - } - - ) +
+ + +

+ {user ? +

+

控制台(已登录)

+
+ : + '控制台(未登录)' + } +

+
+
+ + +

+

{JSON.stringify(user)}

+

+
+
+
+) } \ No newline at end of file diff --git a/app/admin/settings/page.tsx b/app/admin/settings/page.tsx index 5939743..b95c9f6 100644 --- a/app/admin/settings/page.tsx +++ b/app/admin/settings/page.tsx @@ -1,7 +1,34 @@ -export default async function Admin() { +'use client' + +import React from 'react' +import {Tabs, Tab, Card, CardBody} from '@nextui-org/react' + +export default async function Settings() { return ( - <> - 系统设置 - +
+ + + + + 系统设置 + + + + + + + S3 设置 + + + + + + + AList 设置 + + + + +
) } \ No newline at end of file diff --git a/components/DropMenu.tsx b/components/DropMenu.tsx index bb05e44..a13ed61 100644 --- a/components/DropMenu.tsx +++ b/components/DropMenu.tsx @@ -29,6 +29,7 @@ export const DropMenu = () => {