feat(integration): 为集成站点与开奖管理新增 AdminPermissionGate 权限控制

使用 AdminPermissionGate 包裹集成站点与开奖相关组件,根据权限进行访问控制。
新增集成管理与开奖管理相关权限常量。
更新相关 UI 组件以适配权限校验逻辑,提升系统安全性与用户体验。
增强国际化支持,在英文、尼泊尔语与中文语言包中新增集成相关文案。
This commit is contained in:
2026-05-27 16:51:48 +08:00
parent 5eabbcf0ee
commit 788c7998eb
24 changed files with 276 additions and 64 deletions

View File

@@ -286,9 +286,10 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
<Label>{t("adjustmentDirection")}</Label>
<Select
value={adj.direction}
onValueChange={(value: "increase" | "decrease") =>
updateAdjustmentDraft(p.id, { direction: value })
}
onValueChange={(value: "increase" | "decrease" | null) => {
if (value === null) return;
updateAdjustmentDraft(p.id, { direction: value });
}}
>
<SelectTrigger className="w-full min-w-0 sm:max-w-[12rem]">
<SelectValue>