feat(web): add me storage page

This commit is contained in:
kris
2026-03-29 16:20:25 +08:00
parent 3307f79162
commit 8273340f7f
3 changed files with 266 additions and 0 deletions

View File

@@ -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="账号与安全"

View 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>
);
}