website refactor

This commit is contained in:
2026-01-14 16:28:39 +01:00
parent 85e09b6f4d
commit 4b7d82ab43
119 changed files with 2403 additions and 1615 deletions

View File

@@ -0,0 +1,78 @@
export interface DriverProfileViewData {
currentDriver: {
id: string;
name: string;
country: string;
avatarUrl: string;
iracingId: number | null;
joinedAt: string;
rating: number | null;
globalRank: number | null;
consistency: number | null;
bio: string | null;
totalDrivers: number | null;
} | null;
stats: {
totalRaces: number;
wins: number;
podiums: number;
dnfs: number;
avgFinish: number | null;
bestFinish: number | null;
worstFinish: number | null;
finishRate: number | null;
winRate: number | null;
podiumRate: number | null;
percentile: number | null;
rating: number | null;
consistency: number | null;
overallRank: number | null;
} | null;
finishDistribution: {
totalRaces: number;
wins: number;
podiums: number;
topTen: number;
dnfs: number;
other: number;
} | null;
teamMemberships: {
teamId: string;
teamName: string;
teamTag: string | null;
role: string;
joinedAt: string;
isCurrent: boolean;
}[];
socialSummary: {
friendsCount: number;
friends: {
id: string;
name: string;
country: string;
avatarUrl: string;
}[];
};
extendedProfile: {
socialHandles: {
platform: string;
handle: string;
url: string;
}[];
achievements: {
id: string;
title: string;
description: string;
icon: string;
rarity: string;
earnedAt: string;
}[];
racingStyle: string;
favoriteTrack: string;
favoriteCar: string;
timezone: string;
availableHours: string;
lookingForTeam: boolean;
openToRequests: boolean;
} | null;
}

View File

@@ -0,0 +1,18 @@
export interface DriversViewData {
drivers: {
id: string;
name: string;
country: string;
avatarUrl: string;
iracingId: number | null;
rating: number | null;
globalRank: number | null;
consistency: number | null;
totalRaces: number;
wins: number;
isActive: boolean;
}[];
totalRaces: number;
totalWins: number;
activeCount: number;
}