website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -10,6 +10,9 @@ export class DriverViewModel {
avatarUrl?: string;
iracingId?: string;
rating?: number;
country?: string;
bio?: string;
joinedAt?: string;
constructor(dto: {
id: string;
@@ -17,12 +20,18 @@ export class DriverViewModel {
avatarUrl?: string;
iracingId?: string;
rating?: number;
country?: string;
bio?: string;
joinedAt?: string;
}) {
this.id = dto.id;
this.name = dto.name;
if (dto.avatarUrl !== undefined) this.avatarUrl = dto.avatarUrl;
if (dto.iracingId !== undefined) this.iracingId = dto.iracingId;
if (dto.rating !== undefined) this.rating = dto.rating;
if (dto.country !== undefined) this.country = dto.country;
if (dto.bio !== undefined) this.bio = dto.bio;
if (dto.joinedAt !== undefined) this.joinedAt = dto.joinedAt;
}
/** UI-specific: Whether driver has an iRacing ID */