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:
@@ -12,6 +12,7 @@ import { AdminRowActionsMenu } from "@/components/admin/admin-row-actions-menu";
|
||||
import { AdminStatusBadge } from "@/components/admin/admin-status-badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { formatAdminCreditMajorDecimal } from "@/lib/money";
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
@@ -44,7 +45,7 @@ function formatCredit(value: number | null | undefined): string {
|
||||
return "-";
|
||||
}
|
||||
|
||||
return new Intl.NumberFormat("zh-CN", { maximumFractionDigits: 0 }).format(value);
|
||||
return formatAdminCreditMajorDecimal(value);
|
||||
}
|
||||
|
||||
function statusLabel(status: number, t: (key: string, options?: { defaultValue?: string }) => string): string {
|
||||
|
||||
Reference in New Issue
Block a user