feat(agents, config, dashboard, i18n): add agent line provision wizard, site deletion, and site dashboard with multi-language support

Added agent line provision wizard page with permission gating, replacing redirect placeholder. Introduced site deletion API and UI with confirmation dialog in integration sites management. Added new site-scoped dashboard panel showing bet metrics, P/L trends, active players, and quick links. Enhanced chart tooltip to support custom formatters and fix indicator color
This commit is contained in:
2026-06-12 20:47:53 +08:00
parent 24fd7c10bd
commit 6ea0a6feec
48 changed files with 1573 additions and 629 deletions

View File

@@ -1,10 +1,15 @@
import type { AdminRoleRow } from "@/types/api/index";
export const PLATFORM_SUPER_ADMIN_SLUG = "super_admin";
export const PLATFORM_SITE_ADMIN_SLUG = "site_admin";
export const PLATFORM_AGENT_SLUG = "agent";
export function isPlatformFixedRole(role: Pick<AdminRoleRow, "slug">): boolean {
return role.slug === PLATFORM_SUPER_ADMIN_SLUG || role.slug === PLATFORM_AGENT_SLUG;
return (
role.slug === PLATFORM_SUPER_ADMIN_SLUG
|| role.slug === PLATFORM_SITE_ADMIN_SLUG
|| role.slug === PLATFORM_AGENT_SLUG
);
}
export function isPlatformSuperAdminRole(role: Pick<AdminRoleRow, "slug">): boolean {