website refactor
This commit is contained in:
@@ -18,6 +18,18 @@ export interface SponsorDashboardViewData {
|
||||
activeSponsorships: number;
|
||||
formattedTotalInvestment: string;
|
||||
costPerThousandViews: string;
|
||||
upcomingRenewals: unknown[];
|
||||
recentActivity: unknown[];
|
||||
}
|
||||
upcomingRenewals: Array<{
|
||||
id: string;
|
||||
type: 'league' | 'team' | 'driver' | 'race' | 'platform';
|
||||
name: string;
|
||||
formattedRenewDate: string;
|
||||
formattedPrice: string;
|
||||
}>;
|
||||
recentActivity: Array<{
|
||||
id: string;
|
||||
message: string;
|
||||
time: string;
|
||||
typeColor: string;
|
||||
formattedImpressions?: string | null;
|
||||
}>;
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user