2026-03-31 04:31:47 +00:00
|
|
|
import '../../components/skill-market/SkillMarketShared.css';
|
|
|
|
|
import { PlatformSummaryCards } from './components/PlatformSummaryCards';
|
|
|
|
|
import { PlatformUsageAnalyticsSection } from './components/PlatformUsageAnalyticsSection';
|
2026-04-02 04:14:08 +00:00
|
|
|
import { PlatformBotActivityAnalyticsSection } from './components/PlatformBotActivityAnalyticsSection';
|
2026-03-31 04:31:47 +00:00
|
|
|
import { usePlatformDashboard } from './hooks/usePlatformDashboard';
|
|
|
|
|
import './PlatformDashboardPage.css';
|
|
|
|
|
|
|
|
|
|
interface PlatformAdminDashboardPageProps {
|
|
|
|
|
compactMode: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function PlatformAdminDashboardPage({ compactMode }: PlatformAdminDashboardPageProps) {
|
|
|
|
|
const dashboard = usePlatformDashboard({ compactMode });
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<section className="panel stack skill-market-page-shell platform-admin-page-shell">
|
|
|
|
|
<div className="skill-market-page-workspace platform-admin-page-workspace">
|
|
|
|
|
<PlatformSummaryCards
|
|
|
|
|
isZh={dashboard.isZh}
|
|
|
|
|
overview={dashboard.overview}
|
|
|
|
|
overviewBots={dashboard.overviewBots}
|
|
|
|
|
overviewImages={dashboard.overviewImages}
|
|
|
|
|
overviewResources={dashboard.overviewResources}
|
|
|
|
|
/>
|
|
|
|
|
|
2026-04-02 04:14:08 +00:00
|
|
|
<div className="platform-analytics-grid">
|
|
|
|
|
<PlatformUsageAnalyticsSection
|
|
|
|
|
isZh={dashboard.isZh}
|
|
|
|
|
usageAnalytics={dashboard.usageAnalytics}
|
|
|
|
|
usageAnalyticsMax={dashboard.usageAnalyticsMax}
|
|
|
|
|
usageAnalyticsSeries={dashboard.usageAnalyticsSeries}
|
|
|
|
|
usageAnalyticsTicks={dashboard.usageAnalyticsTicks}
|
|
|
|
|
usageLoading={dashboard.usageLoading}
|
|
|
|
|
usageSummary={dashboard.usageSummary}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PlatformBotActivityAnalyticsSection
|
|
|
|
|
isZh={dashboard.isZh}
|
|
|
|
|
activityStats={dashboard.activityStats}
|
|
|
|
|
loading={dashboard.loading}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2026-03-31 04:31:47 +00:00
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|