feat: 统一管理端多语言、配置与票据/结算页面重构
This commit is contained in:
@@ -4,17 +4,13 @@ import { jackpotModuleMeta } from "@/modules/jackpot/meta";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: `Jackpot 记录 · ${jackpotModuleMeta.title}`,
|
||||
title: jackpotModuleMeta.title,
|
||||
};
|
||||
|
||||
export default function AdminConfigJackpotRecordsPage() {
|
||||
return (
|
||||
<div className="w-full max-w-none px-1">
|
||||
<JackpotSubNav />
|
||||
<div className="mx-auto mb-6 max-w-5xl">
|
||||
<h1 className="text-lg font-semibold tracking-tight">Jackpot 记录</h1>
|
||||
<p className="mt-1 text-sm text-muted-foreground">派彩与蓄水流水</p>
|
||||
</div>
|
||||
<JackpotRecordsConsole />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { configWalletMeta } from "@/modules/config/meta";
|
||||
import { WalletConfigDocScreen } from "@/modules/config/doc/wallet-config-doc-screen";
|
||||
import { redirect } from "next/navigation";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: configWalletMeta.title,
|
||||
title: "系统设置",
|
||||
};
|
||||
|
||||
export default function AdminConfigWalletPage() {
|
||||
return <WalletConfigDocScreen />;
|
||||
redirect("/admin/settings");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ModuleScaffold } from "@/components/admin/module-scaffold";
|
||||
import { settingsModuleMeta } from "@/modules/settings/meta";
|
||||
import { SystemSettingsScreen } from "@/modules/settings/system-settings-screen";
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
@@ -9,13 +10,7 @@ export const metadata: Metadata = {
|
||||
export default function AdminSettingsPage() {
|
||||
return (
|
||||
<ModuleScaffold>
|
||||
<p className="text-sm text-zinc-500 dark:text-zinc-400">
|
||||
业务组件请放在{" "}
|
||||
<code className="rounded bg-zinc-100 px-1 py-0.5 font-mono text-xs dark:bg-zinc-800">
|
||||
src/modules/settings
|
||||
</code>{" "}
|
||||
下。
|
||||
</p>
|
||||
<SystemSettingsScreen />
|
||||
</ModuleScaffold>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { InvalidSettlementBatchId } from "@/modules/settlement/invalid-settlement-batch-id";
|
||||
import { SettlementBatchDetailsConsole } from "@/modules/settlement/settlement-batch-details-console";
|
||||
import { settlementModuleMeta } from "@/modules/settlement/meta";
|
||||
import type { Metadata } from "next";
|
||||
@@ -12,7 +13,7 @@ export default async function AdminSettlementBatchDetailsPage(props: {
|
||||
const { batchId } = await props.params;
|
||||
const id = Number.parseInt(batchId, 10);
|
||||
if (!Number.isFinite(id) || id < 1) {
|
||||
return <p className="text-destructive text-sm">无效的批次 ID</p>;
|
||||
return <InvalidSettlementBatchId />;
|
||||
}
|
||||
|
||||
return <SettlementBatchDetailsConsole batchId={id} />;
|
||||
|
||||
@@ -151,7 +151,11 @@
|
||||
}
|
||||
|
||||
.admin-list-field {
|
||||
@apply flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:shrink-0;
|
||||
@apply flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:shrink-0 sm:gap-1.5;
|
||||
}
|
||||
|
||||
.admin-list-field > label {
|
||||
@apply w-auto min-w-0 shrink-0 whitespace-nowrap;
|
||||
}
|
||||
|
||||
.admin-list-actions {
|
||||
|
||||
@@ -19,7 +19,7 @@ export const metadata: Metadata = {
|
||||
template: "%s · 彩票后台",
|
||||
default: "彩票后台",
|
||||
},
|
||||
description: "Lottery 管理端",
|
||||
description: "彩票后台管理端",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
||||
Reference in New Issue
Block a user