website refactor

This commit is contained in:
2026-01-14 02:02:24 +01:00
parent 8d7c709e0c
commit 4522d41aef
291 changed files with 12763 additions and 9309 deletions

View File

@@ -0,0 +1,34 @@
/**
* Leagues ViewData
*
* SSR-safe data structure that can be built directly from DTO
* without ViewModel instantiation. Contains formatted values
* for display and ISO string timestamps for JSON serialization.
*/
export interface LeaguesViewData {
leagues: Array<{
id: string;
name: string;
description: string | null;
logoUrl: string | null;
ownerId: string;
createdAt: string; // ISO string
maxDrivers: number;
usedDriverSlots: number;
maxTeams: number | undefined;
usedTeamSlots: number | undefined;
structureSummary: string;
timingSummary: string;
category: string | null;
scoring: {
gameId: string;
gameName: string;
primaryChampionshipType: string;
scoringPresetId: string;
scoringPresetName: string;
dropPolicySummary: string;
scoringPatternSummary: string;
} | undefined;
}>;
}