website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -0,0 +1,29 @@
/**
* Races View Data
*
* ViewData for the main races page template.
* JSON-serializable, template-ready data structure.
*/
export interface RacesRace {
id: string;
track: string;
car: string;
scheduledAt: string;
status: 'scheduled' | 'running' | 'completed' | 'cancelled';
sessionType: string;
leagueId?: string;
leagueName?: string;
strengthOfField?: number;
isUpcoming: boolean;
isLive: boolean;
isPast: boolean;
}
export interface RacesViewData {
races: RacesRace[];
totalCount: number;
scheduledRaces: RacesRace[];
runningRaces: RacesRace[];
completedRaces: RacesRace[];
}