website refactor

This commit is contained in:
2026-01-14 23:46:04 +01:00
parent c1a86348d7
commit 4a2d7d15a5
294 changed files with 5637 additions and 3418 deletions

View File

@@ -0,0 +1,35 @@
export interface RaceViewData {
id: string;
track: string;
car: string;
scheduledAt: string;
scheduledAtLabel: string;
timeLabel: string;
relativeTimeLabel: string;
status: 'scheduled' | 'running' | 'completed' | 'cancelled';
statusLabel: string;
sessionType: string;
leagueId: string | null;
leagueName: string | null;
strengthOfField: number | null;
isUpcoming: boolean;
isLive: boolean;
isPast: boolean;
}
export interface RacesViewData {
races: RaceViewData[];
totalCount: number;
scheduledCount: number;
runningCount: number;
completedCount: number;
leagues: Array<{ id: string; name: string }>;
upcomingRaces: RaceViewData[];
liveRaces: RaceViewData[];
recentResults: RaceViewData[];
racesByDate: Array<{
dateKey: string;
dateLabel: string;
races: RaceViewData[];
}>;
}