feat(api, i18n): add agent_node_id to various admin queries and enhance multi-language support

Introduced the agent_node_id field in AdminDrawListQuery, AdminPlayerListQuery, AdminSettlementBatchListQuery, TicketItemsListQuery, and TransferOrderListQuery to improve filtering capabilities. Updated the admin-breadcrumb and admin-sidebar components to include new translations for agent-related terms in English, Nepali, and Chinese, enhancing the overall user experience and multi-language support across the admin interface.
This commit is contained in:
2026-06-02 14:37:08 +08:00
parent a4e7a2d228
commit b15e377187
105 changed files with 5305 additions and 1596 deletions

View File

@@ -44,6 +44,14 @@ export function getAdminPlayTypesLoadPromise(
return inflightLoad;
}
/** 确保玩法目录已加载并返回缓存列表(全局去重,配置页勿直接 getAdminPlayTypes */
export async function ensureAdminPlayTypesLoaded(
loader: () => Promise<{ items: AdminPlayTypeRow[] }>,
): Promise<AdminPlayTypeRow[]> {
await getAdminPlayTypesLoadPromise(loader);
return getCachedAdminPlayTypes();
}
/** 解析玩法显示名;无配置时回退 play_code */
export function resolveAdminPlayTypeDisplayName(
playCode: string | null | undefined,