feat(admin+api): 列表页子路由重构、结算历史与充值截图清理

赛事/代理管理从表格展开改为子路由详情页;结算页增加预览弹窗与历史记录;媒体库支持截图存储统计与自动/手动清理;Player 端充值截图压缩为 WebP 300KB。
This commit is contained in:
2026-06-22 12:28:25 +08:00
parent 499522f3fb
commit 648c314e23
38 changed files with 3298 additions and 1147 deletions

View File

@@ -1007,6 +1007,21 @@ export const API_ERROR_MESSAGES = {
'en-US': 'This country or region is not supported',
'ms-MY': 'Negara atau wilayah ini tidak disokong',
},
BEFORE_DATE_REQUIRED: {
'zh-CN': '截止日期不能为空',
'en-US': 'Before date is required',
'ms-MY': 'Tarikh akhir diperlukan',
},
INVALID_BEFORE_DATE: {
'zh-CN': '截止日期无效',
'en-US': 'Invalid before date',
'ms-MY': 'Tarikh akhir tidak sah',
},
BEFORE_DATE_CANNOT_BE_FUTURE: {
'zh-CN': '截止日期不能是未来日期',
'en-US': 'Before date cannot be in the future',
'ms-MY': 'Tarikh akhir tidak boleh pada masa hadapan',
},
};
export function normalizeLocale(input) {
const raw = String(input ?? '').trim();

View File

@@ -1009,6 +1009,21 @@ export const API_ERROR_MESSAGES = {
'en-US': 'This country or region is not supported',
'ms-MY': 'Negara atau wilayah ini tidak disokong',
},
BEFORE_DATE_REQUIRED: {
'zh-CN': '截止日期不能为空',
'en-US': 'Before date is required',
'ms-MY': 'Tarikh akhir diperlukan',
},
INVALID_BEFORE_DATE: {
'zh-CN': '截止日期无效',
'en-US': 'Invalid before date',
'ms-MY': 'Tarikh akhir tidak sah',
},
BEFORE_DATE_CANNOT_BE_FUTURE: {
'zh-CN': '截止日期不能是未来日期',
'en-US': 'Before date cannot be in the future',
'ms-MY': 'Tarikh akhir tidak boleh pada masa hadapan',
},
} as const satisfies Record<string, Record<Locale, string>>;
export type ApiErrorCode = keyof typeof API_ERROR_MESSAGES;