website refactor
This commit is contained in:
63
apps/website/lib/view-data/ProfileViewData.ts
Normal file
63
apps/website/lib/view-data/ProfileViewData.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
export interface ProfileViewData {
|
||||
driver: {
|
||||
id: string;
|
||||
name: string;
|
||||
countryCode: string;
|
||||
countryFlag: string;
|
||||
avatarUrl: string;
|
||||
bio: string | null;
|
||||
iracingId: string | null;
|
||||
joinedAtLabel: string;
|
||||
};
|
||||
stats: {
|
||||
ratingLabel: string;
|
||||
globalRankLabel: string;
|
||||
totalRacesLabel: string;
|
||||
winsLabel: string;
|
||||
podiumsLabel: string;
|
||||
dnfsLabel: string;
|
||||
bestFinishLabel: string;
|
||||
worstFinishLabel: string;
|
||||
avgFinishLabel: string;
|
||||
consistencyLabel: string;
|
||||
percentileLabel: string;
|
||||
} | null;
|
||||
teamMemberships: Array<{
|
||||
teamId: string;
|
||||
teamName: string;
|
||||
teamTag: string | null;
|
||||
roleLabel: string;
|
||||
joinedAtLabel: string;
|
||||
href: string;
|
||||
}>;
|
||||
extendedProfile: {
|
||||
timezone: string;
|
||||
racingStyle: string;
|
||||
favoriteTrack: string;
|
||||
favoriteCar: string;
|
||||
availableHours: string;
|
||||
lookingForTeamLabel: string;
|
||||
openToRequestsLabel: string;
|
||||
socialHandles: Array<{
|
||||
platformLabel: string;
|
||||
handle: string;
|
||||
url: string;
|
||||
}>;
|
||||
achievements: Array<{
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
earnedAtLabel: string;
|
||||
icon: 'trophy' | 'medal' | 'star' | 'crown' | 'target' | 'zap';
|
||||
rarityLabel: string;
|
||||
}>;
|
||||
friends: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
countryFlag: string;
|
||||
avatarUrl: string;
|
||||
href: string;
|
||||
}>;
|
||||
friendsCountLabel: string;
|
||||
} | null;
|
||||
}
|
||||
Reference in New Issue
Block a user