feat(dashboard, i18n): enhance agent dashboard and localization support

Updated the agent dashboard to include new metrics for today's bets and payouts, improving visibility for users. Enhanced localization files with additional hints and labels for better user experience across English, Nepali, and Chinese. Introduced new functions for formatting business dates and improved the handling of analytics permissions in the dashboard components.
This commit is contained in:
2026-06-16 14:18:58 +08:00
parent a4454a54a4
commit d4cf4ff436
17 changed files with 534 additions and 415 deletions

View File

@@ -76,6 +76,12 @@ export const PRD_RISK_ACCESS_ANY = [
export const PRD_REPORTS_VIEW_ACCESS_ANY = [PRD_REPORT_VIEW] as const;
export const PRD_REPORTS_EXPORT_ACCESS_ANY = [PRD_REPORT_EXPORT] as const;
/** 仪表盘趋势/排行(后端 analytics 需 dashboard.view站点另有 report.view */
export const PRD_DASHBOARD_ANALYTICS_ACCESS_ANY = [
PRD_DASHBOARD_VIEW,
...PRD_REPORTS_VIEW_ACCESS_ANY,
] as const;
/** 系统设置(与后端 admin.settings.* 资源口径一致) */
export const PRD_SETTINGS_ACCESS_ANY = [
PRD_WALLET_RECONCILE_MANAGE,