refactor(layout, i18n, admin): 优化布局结构与多语言支持

调整 AdminShell 组件的子组件顺序,提升代码可读性。更新 admin-breadcrumb 组件,简化导航标签翻译逻辑,确保多语言支持的一致性。重构 admin-language-switcher 组件,优化语言切换的用户体验,增强界面交互性。更新多语言配置,新增登录界面的副标题,提升用户体验。
This commit is contained in:
2026-05-30 17:46:27 +08:00
parent 36117144dc
commit a550c418e5
64 changed files with 3405 additions and 1378 deletions

View File

@@ -1,6 +1,7 @@
{
"title": "Login",
"loginTitle": "Admin Login",
"loginSubtitle": "Sign in with your admin account",
"account": "Account",
"accountPlaceholder": "Login account",
"password": "Password",

View File

@@ -54,7 +54,8 @@
},
"aria": {
"expand": "Expand",
"collapse": "Collapse"
"collapse": "Collapse",
"rowActionsMenu": "Row actions menu"
},
"export": {
"drawsList": { "filename": "draws-list", "sheetName": "Draws" },
@@ -155,7 +156,9 @@
"workspace": "Workspace"
},
"auth": {
"checking": "Checking sign-in status…"
"checking": "Checking sign-in status…",
"checkingShort": "Loading workspace…",
"sessionExpired": "Your session has expired. Please sign in again."
},
"confirm": {
"cancel": "Cancel",

View File

@@ -353,6 +353,26 @@
},
"odds": {
"sectionHint": "Pick a version to edit prize-tier odds; publishing applies to new tickets immediately.",
"sections": {
"playScope": "Play scope",
"oddsConfig": "Odds"
},
"currentSelection": "Selection: {{category}} / {{play}}",
"playGroups": {
"bigSmall": "Big / small",
"combo4": "4D position",
"number3": "3D position",
"number2": "2D position",
"other": "Other"
},
"summary": {
"title": "Summary",
"version": "Version",
"statusLabel": "Status",
"readOnlyTag": "Read-only",
"readOnlyHint": "This version is read-only. Create a draft to make changes.",
"activeHint": "This version is active; new tickets use these settings."
},
"tabs": {
"all": "All"
},

View File

@@ -7,10 +7,13 @@
"lifetime": "All-time totals",
"currentDraw": "Current draw",
"currentDrawDetail": "Current draw · {{drawNo}}",
"operations": "Operations (current draw)"
"operations": "Operations (current draw)",
"snapshot": "Current draw snapshot"
},
"countdownToClose": "Time to close",
"scheduledDrawTime": "Draw at {{time}}",
"analytics": {
"title": "Financial analytics",
"title": "Finance overview",
"periodLabel": "Period",
"metricLabel": "Metric",
"playLabel": "Play filter",
@@ -22,8 +25,16 @@
"summaryBet": "Period bet",
"summaryPayout": "Period payout",
"summaryProfit": "Period profit",
"dailyTrend": "Daily trend",
"dailyTrend": "Period trend",
"granularityDay": "By day",
"playBreakdown": "Play breakdown",
"playRanking": "Top 5 plays",
"rankingMetricLabel": "Ranking metric",
"rankingMetrics": {
"bet": "By bet amount",
"payout": "By payout",
"profit": "By profit"
},
"periodDistribution": "Period structure",
"noPlayData": "No play data in this period",
"periods": {
@@ -57,6 +68,7 @@
"currentDrawPayout": "Draw payout",
"currentDrawProfit": "Draw profit",
"drawFinanceDetails": "Draw finance details",
"detailsShort": "Details",
"todayBetTotal": "Today's total bet",
"todayPayout": "Today's payout",
"todayProfit": "Today's profit",
@@ -97,6 +109,10 @@
"soldOutTotal": "Total sold out",
"pendingReviewResults": "Pending result review",
"abnormalTransferOrders": "Abnormal transfer orders",
"abnormalTransferScope": "Flagged by wallet reconciliation",
"abnormalTransferPending": "{{count}} pending review",
"abnormalTransferAllClear": "Reconciliation clear",
"abnormalTransferAction": "Open transfer orders to resolve",
"viewTransferOrders": "View transfer orders",
"noSoldOutNumbers": "No sold-out numbers",
"noPoolData": "No pool data for this dimension",
@@ -121,7 +137,11 @@
"results": "Results",
"tickets": "Ticket management",
"walletTransactions": "Wallet transactions",
"auditLogs": "Audit logs"
"auditLogs": "Audit logs",
"reports": "Reports",
"payoutRules": "Odds & rebate",
"riskMonitor": "Risk monitor",
"systemSettings": "System settings"
},
"warnings": {
"drawPermission": "This account has no draw/dashboard view permission. Finance and risk data were not returned.",

View File

@@ -1,6 +1,7 @@
{
"title": "लगइन",
"loginTitle": "एडमिन लगइन",
"loginSubtitle": "कृपया एडमिन खाताबाट लगइन गर्नुहोस्",
"account": "खाता",
"accountPlaceholder": "लगइन खाता",
"password": "पासवर्ड",

View File

@@ -54,7 +54,8 @@
},
"aria": {
"expand": "खोल्नुहोस्",
"collapse": "बन्द गर्नुहोस्"
"collapse": "बन्द गर्नुहोस्",
"rowActionsMenu": "पङ्क्ति कार्य मेनु"
},
"export": {
"drawsList": { "filename": "draw-suchi", "sheetName": "Draw" },
@@ -155,7 +156,9 @@
"workspace": "कार्यस्थान"
},
"auth": {
"checking": "लगइन स्थिति जाँच हुँदैछ…"
"checking": "लगइन स्थिति जाँच हुँदैछ…",
"checkingShort": "कार्यस्थान खोल्दै…",
"sessionExpired": "लगइन समाप्त भयो। कृपया पुनः लगइन गर्नुहोस्।"
},
"confirm": {
"cancel": "रद्द",

View File

@@ -353,6 +353,26 @@
},
"odds": {
"sectionHint": "संस्करण छानेर पुरस्कार-स्तर बाधा सम्पादन गर्नुहोस्; प्रकाशनपछि नयाँ टिकटमा लागू हुन्छ।",
"sections": {
"playScope": "खेल दायरा",
"oddsConfig": "बाधा सेटिङ"
},
"currentSelection": "हालको छनोट: {{category}} / {{play}}",
"playGroups": {
"bigSmall": "ठूलो / सानो",
"combo4": "4D स्थिति",
"number3": "3D स्थिति",
"number2": "2D स्थिति",
"other": "अन्य"
},
"summary": {
"title": "सारांश",
"version": "संस्करण",
"statusLabel": "स्थिति",
"readOnlyTag": "पढ्न मात्र",
"readOnlyHint": "यो संस्करण पढ्न मात्र हो। परिवर्तन गर्न ड्राफ्ट बनाउनुहोस्।",
"activeHint": "यो संस्करण सक्रिय छ; नयाँ टिकट यही सेटिङ प्रयोग गर्छ।"
},
"tabs": {
"all": "सबै"
},

View File

@@ -7,10 +7,13 @@
"lifetime": "ऐतिहासिक कुल",
"currentDraw": "हालको ड्रअ",
"currentDrawDetail": "हालको ड्रअ · {{drawNo}}",
"operations": "सञ्चालन (हालको ड्रअ)"
"operations": "सञ्चालन (हालको ड्रअ)",
"snapshot": "हालको ड्रअ स्न्यापसट"
},
"countdownToClose": "बन्द हुन बाँकी",
"scheduledDrawTime": "ड्रअ {{time}}",
"analytics": {
"title": "वित्त विश्लेषण",
"title": "वित्त सारांश",
"periodLabel": "अवधि",
"metricLabel": "मेट्रिक",
"playLabel": "प्ले फिल्टर",
@@ -22,8 +25,16 @@
"summaryBet": "अवधि बेट",
"summaryPayout": "अवधि भुक्तानी",
"summaryProfit": "अवधि नाफा",
"dailyTrend": "दैनिक ट्रेन्ड",
"dailyTrend": "अवधि ट्रेन्ड",
"granularityDay": "दैनिक",
"playBreakdown": "प्ले विभाजन",
"playRanking": "शीर्ष ५ प्ले",
"rankingMetricLabel": "रैंकिङ मेट्रिक",
"rankingMetrics": {
"bet": "बेट रकम",
"payout": "भुक्तानी",
"profit": "नाफा"
},
"periodDistribution": "अवधि संरचना",
"noPlayData": "यस अवधिमा प्ले डाटा छैन",
"periods": {
@@ -57,6 +68,7 @@
"currentDrawPayout": "हालको भुक्तानी",
"currentDrawProfit": "हालको नाफा/नोक्सान",
"drawFinanceDetails": "ड्रअ वित्त विवरण",
"detailsShort": "विवरण",
"todayBetTotal": "आजको कुल बेट",
"todayPayout": "आजको भुक्तानी",
"todayProfit": "आजको नाफा/नोक्सान",
@@ -96,6 +108,10 @@
"soldOutTotal": "कुल बिक्री समाप्त",
"pendingReviewResults": "समीक्षा बाँकी परिणाम",
"abnormalTransferOrders": "असामान्य ट्रान्सफर अर्डर",
"abnormalTransferScope": "वालेट मिलानबाट चिनिएको",
"abnormalTransferPending": "{{count}} समीक्षा बाँकी",
"abnormalTransferAllClear": "मिलान ठीक, असामान्य छैन",
"abnormalTransferAction": "समाधान गर्न ट्रान्सफर सूची खोल्नुहोस्",
"viewTransferOrders": "ट्रान्सफर अर्डर हेर्नुहोस्",
"noSoldOutNumbers": "बिक्री समाप्त नम्बर छैन",
"noPoolData": "यस डाइमेन्सनमा पूल डाटा छैन",
@@ -120,7 +136,11 @@
"results": "परिणाम",
"tickets": "टिकट व्यवस्थापन",
"walletTransactions": "वालेट कारोबार",
"auditLogs": "अडिट लग"
"auditLogs": "अडिट लग",
"reports": "रिपोर्ट केन्द्र",
"payoutRules": "बाधा र रिबेट",
"riskMonitor": "जोखिम निगरानी",
"systemSettings": "प्रणाली सेटिङ"
},
"warnings": {
"drawPermission": "यो खातासँग ड्रअ/ड्यासबोर्ड हेर्ने अनुमति छैन। वित्तीय र जोखिम डाटा फिर्ता आएन।",

View File

@@ -1,6 +1,7 @@
{
"title": "登录",
"loginTitle": "后台登录",
"loginSubtitle": "请使用管理员账号登录",
"account": "账号",
"accountPlaceholder": "登录账号",
"password": "密码",

View File

@@ -54,7 +54,8 @@
},
"aria": {
"expand": "展开",
"collapse": "收起"
"collapse": "收起",
"rowActionsMenu": "行操作菜单"
},
"export": {
"drawsList": { "filename": "期号列表", "sheetName": "期号列表" },
@@ -148,14 +149,16 @@
"audit": "审计日志",
"settings": "系统设置",
"account": "账号设置",
"integration": "主站接入站点",
"integration": "接入站点",
"config": "运营配置"
},
"sidebar": {
"workspace": "工作台"
},
"auth": {
"checking": "正在校验登录状态…"
"checking": "正在校验登录状态…",
"checkingShort": "正在进入工作台…",
"sessionExpired": "登录已失效,请重新登录"
},
"confirm": {
"cancel": "取消",

View File

@@ -30,11 +30,11 @@
"jackpotDesc": "奖池参数与进账流水",
"riskCapTitle": "限额版本",
"riskCapDesc": "号码赔付封顶与占用视图",
"integrationTitle": "主站接入站点",
"integrationTitle": "接入站点",
"integrationDesc": "site_code、JWT 密钥、主站钱包 URL 与 iframe 白名单"
},
"integrationSites": {
"title": "主站接入站点",
"title": "接入站点",
"description": "由运营在后台维护各主站对接参数并通过权限控制谁能查看或修改。site_code 创建后不可修改。",
"create": "新建站点",
"edit": "编辑",
@@ -353,6 +353,26 @@
},
"odds": {
"sectionHint": "选择版本后可编辑各奖级赔率;发布后立即作用于新注单。",
"sections": {
"playScope": "玩法范围",
"oddsConfig": "赔率配置"
},
"currentSelection": "当前选择:{{category}} / {{play}}",
"playGroups": {
"bigSmall": "大小类",
"combo4": "组合类",
"number3": "号码类",
"number2": "2D 位置类",
"other": "其他类"
},
"summary": {
"title": "配置摘要",
"version": "版本",
"statusLabel": "状态",
"readOnlyTag": "只读",
"readOnlyHint": "当前为只读版本,如需修改请先创建草稿。",
"activeHint": "当前版本已生效,新注单将按此配置计算。"
},
"tabs": {
"all": "全部"
},

View File

@@ -7,10 +7,13 @@
"lifetime": "历史累计",
"currentDraw": "当前期号",
"currentDrawDetail": "当期明细 · {{drawNo}}",
"operations": "运营监控(当期)"
"operations": "运营监控(当期)",
"snapshot": "当期快照"
},
"countdownToClose": "距截止投注",
"scheduledDrawTime": "开奖 {{time}}",
"analytics": {
"title": "财务分析",
"title": "财务概览",
"periodLabel": "统计区间",
"metricLabel": "指标类型",
"playLabel": "玩法筛选",
@@ -22,8 +25,16 @@
"summaryBet": "区间下注",
"summaryPayout": "区间派彩",
"summaryProfit": "区间盈亏",
"dailyTrend": "每日趋势",
"dailyTrend": "区间趋势",
"granularityDay": "按天",
"playBreakdown": "玩法拆解 Top",
"playRanking": "玩法排行榜 Top 5",
"rankingMetricLabel": "排行维度",
"rankingMetrics": {
"bet": "按投注金额",
"payout": "按派彩金额",
"profit": "按盈亏"
},
"periodDistribution": "区间结构对比",
"noPlayData": "该区间暂无玩法数据",
"periods": {
@@ -57,6 +68,7 @@
"currentDrawPayout": "当期派彩",
"currentDrawProfit": "当期盈亏",
"drawFinanceDetails": "期号财务详情",
"detailsShort": "详情",
"todayBetTotal": "今日下注总额",
"todayPayout": "今日派彩",
"todayProfit": "今日盈亏",
@@ -97,6 +109,10 @@
"soldOutTotal": "售罄合计",
"pendingReviewResults": "待审核开奖",
"abnormalTransferOrders": "异常转账单",
"abnormalTransferScope": "钱包对账标记的异常转账",
"abnormalTransferPending": "{{count}} 笔待核对",
"abnormalTransferAllClear": "对账正常,暂无异常",
"abnormalTransferAction": "前往转账单列表处理",
"viewTransferOrders": "查看转账单",
"noSoldOutNumbers": "暂无售罄号码",
"noPoolData": "该维度暂无池数据",
@@ -121,7 +137,11 @@
"results": "开奖结果",
"tickets": "注单管理",
"walletTransactions": "钱包流水",
"auditLogs": "审计日志"
"auditLogs": "审计日志",
"reports": "报表中心",
"payoutRules": "赔付规则",
"riskMonitor": "风控监控",
"systemSettings": "系统设置"
},
"warnings": {
"drawPermission": "当前账号无开奖/仪表盘查看权限,财务与风控数据未返回。",