website cleanup

This commit is contained in:
2025-12-24 21:44:58 +01:00
parent 9b683a59d3
commit d78854a4c6
277 changed files with 6141 additions and 2693 deletions

View File

@@ -1,5 +1,5 @@
// DTO matching the backend RacesPageDataRaceDTO
interface RaceListItemDTO {
export interface RaceListItemDTO {
id: string;
track: string;
car: string;
@@ -7,7 +7,7 @@ interface RaceListItemDTO {
status: string;
leagueId: string;
leagueName: string;
strengthOfField: number | null;
strengthOfField?: number | null;
isUpcoming: boolean;
isLive: boolean;
isPast: boolean;
@@ -34,7 +34,7 @@ export class RaceListItemViewModel {
this.status = dto.status;
this.leagueId = dto.leagueId;
this.leagueName = dto.leagueName;
this.strengthOfField = dto.strengthOfField;
this.strengthOfField = dto.strengthOfField ?? null;
this.isUpcoming = dto.isUpcoming;
this.isLive = dto.isLive;
this.isPast = dto.isPast;
@@ -70,4 +70,4 @@ export class RaceListItemViewModel {
const hours = Math.floor(minutes / 60);
return `${hours}h ${minutes % 60}m`;
}
}
}