feat: 添加日期处理库和日历选择器,更新管理员抽奖模块
This commit is contained in:
16
src/app/admin/(shell)/draws/[drawId]/layout.tsx
Normal file
16
src/app/admin/(shell)/draws/[drawId]/layout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ModuleScaffold } from "@/components/admin/module-scaffold";
|
||||
import { DrawSubnav } from "@/modules/draws/draw-subnav";
|
||||
|
||||
export default async function AdminDrawSegmentLayout(props: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
|
||||
return (
|
||||
<ModuleScaffold className="w-full max-w-none">
|
||||
<DrawSubnav drawId={drawId} />
|
||||
{props.children}
|
||||
</ModuleScaffold>
|
||||
);
|
||||
}
|
||||
8
src/app/admin/(shell)/draws/[drawId]/page.tsx
Normal file
8
src/app/admin/(shell)/draws/[drawId]/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DrawDetailConsole } from "@/modules/draws/draw-detail-console";
|
||||
|
||||
export default async function AdminDrawDetailPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
return <DrawDetailConsole drawId={drawId} />;
|
||||
}
|
||||
8
src/app/admin/(shell)/draws/[drawId]/results/page.tsx
Normal file
8
src/app/admin/(shell)/draws/[drawId]/results/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DrawResultsConsole } from "@/modules/draws/draw-results-console";
|
||||
|
||||
export default async function AdminDrawResultsPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
return <DrawResultsConsole drawId={drawId} />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { DrawPublishConsole } from "@/modules/draws/draw-publish-console";
|
||||
|
||||
export default async function AdminDrawPublishPage(props: {
|
||||
params: Promise<{ drawId: string; batchId: string }>;
|
||||
}) {
|
||||
const { drawId, batchId } = await props.params;
|
||||
return <DrawPublishConsole drawId={drawId} batchId={batchId} />;
|
||||
}
|
||||
8
src/app/admin/(shell)/draws/[drawId]/review/page.tsx
Normal file
8
src/app/admin/(shell)/draws/[drawId]/review/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DrawReviewConsole } from "@/modules/draws/draw-review-console";
|
||||
|
||||
export default async function AdminDrawReviewPage(props: {
|
||||
params: Promise<{ drawId: string }>;
|
||||
}) {
|
||||
const { drawId } = await props.params;
|
||||
return <DrawReviewConsole drawId={drawId} />;
|
||||
}
|
||||
Reference in New Issue
Block a user