feat(web): add me storage page
This commit is contained in:
@@ -21,6 +21,11 @@ export default async function MePage() {
|
||||
<HeaderTitle title="我的" />
|
||||
<div className="flex flex-col gap-3 px-[18px] pb-5">
|
||||
<ProfileHero user={state.user} />
|
||||
<MenuRow
|
||||
href="/me/storage"
|
||||
title="附件与存储"
|
||||
description="当前附件存储模式、服务器文件存储与阿里 OSS"
|
||||
/>
|
||||
<MenuRow
|
||||
href="/me/security"
|
||||
title="账号与安全"
|
||||
|
||||
20
src/app/me/storage/page.tsx
Normal file
20
src/app/me/storage/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { AppShell, PageNav, StatusBar } from "@/components/app-ui";
|
||||
import { AttachmentStorageClient } from "@/components/attachment-storage-client";
|
||||
import { requirePageSession } from "@/lib/boss-auth";
|
||||
import { getAttachmentStorageConfig } from "@/lib/boss-data";
|
||||
import { sanitizeAttachmentStorageConfig } from "@/lib/boss-storage";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function StoragePage() {
|
||||
const session = await requirePageSession();
|
||||
const config = sanitizeAttachmentStorageConfig(await getAttachmentStorageConfig(session.account));
|
||||
|
||||
return (
|
||||
<AppShell bottomNav={false}>
|
||||
<StatusBar />
|
||||
<PageNav title="附件与存储" backHref="/me" />
|
||||
<AttachmentStorageClient key={`${config.mode}:${config.updatedAt}`} config={config} />
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user