refactor: 合并多语言支持的显示名称字段,优化奖池手动爆发功能的返回数据结构,增强管理端权限控制

This commit is contained in:
2026-05-25 14:31:24 +08:00
parent 7d01e5c47e
commit ddedef824e
101 changed files with 3033 additions and 641 deletions

View File

@@ -3,10 +3,11 @@
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { AdminPageCard } from "@/components/admin/admin-page-card";
import { JackpotPoolsConsole } from "@/modules/jackpot/jackpot-pools-console";
import { JackpotRecordsConsole } from "@/modules/jackpot/jackpot-records-console";
/** 奖池单页:池参数 + 流水记录,避免 ConfigDocPage / 内层 Card 重复套娃。 */
/** 奖池单页:池参数 + 流水记录,与列表/设置页共用 admin-list-card 布局。 */
export function JackpotConfigScreen() {
const { t } = useTranslation("jackpot");
@@ -23,20 +24,14 @@ export function JackpotConfigScreen() {
}, []);
return (
<div className="flex flex-col gap-10">
<section className="space-y-4">
<h2 className="border-b border-border/60 pb-3 text-base font-semibold text-foreground">
{t("poolsSectionTitle")}
</h2>
<div className="flex w-full max-w-none flex-col gap-6">
<AdminPageCard title={t("poolsSectionTitle")}>
<JackpotPoolsConsole embedded />
</section>
</AdminPageCard>
<section id="jackpot-records" className="scroll-mt-24 space-y-4">
<h2 className="border-b border-border/60 pb-3 text-base font-semibold text-foreground">
{t("recordsSectionTitle")}
</h2>
<AdminPageCard id="jackpot-records" title={t("recordsSectionTitle")}>
<JackpotRecordsConsole embedded />
</section>
</AdminPageCard>
</div>
);
}