website refactor

This commit is contained in:
2026-01-16 11:13:42 +01:00
parent d86aa4583b
commit d6b94e21df
30 changed files with 217 additions and 182 deletions

View File

@@ -1,22 +0,0 @@
/**
* Races All View Data
*
* ViewData for the all races page template.
* JSON-serializable, template-ready data structure.
*/
export interface RacesAllRace {
id: string;
track: string;
car: string;
scheduledAt: string;
status: 'scheduled' | 'running' | 'completed' | 'cancelled';
sessionType: string;
leagueId?: string;
leagueName?: string;
strengthOfField?: number;
}
export interface RacesAllViewData {
races: RacesAllRace[];
}

View File

@@ -1,29 +0,0 @@
/**
* 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[];
}