website refactor

This commit is contained in:
2026-01-14 13:39:24 +01:00
parent faa4c3309e
commit 8b67295442
28 changed files with 1082 additions and 851 deletions

View File

@@ -0,0 +1,14 @@
export interface LeagueScheduleViewData {
leagueId: string;
races: Array<{
id: string;
name: string;
scheduledAt: string; // ISO string
track?: string;
car?: string;
sessionType?: string;
isPast: boolean;
isUpcoming: boolean;
status: 'scheduled' | 'completed';
}>;
}

View File

@@ -0,0 +1,18 @@
export interface LeagueSettingsViewData {
leagueId: string;
league: {
id: string;
name: string;
description: string;
visibility: 'public' | 'private';
ownerId: string;
createdAt: string;
updatedAt: string;
};
config: {
maxDrivers: number;
scoringPresetId: string;
allowLateJoin: boolean;
requireApproval: boolean;
};
}

View File

@@ -0,0 +1,29 @@
export interface LeagueSponsorshipsViewData {
leagueId: string;
league: {
id: string;
name: string;
description: string;
};
sponsorshipSlots: Array<{
id: string;
name: string;
description: string;
price: number;
currency: string;
isAvailable: boolean;
sponsoredBy?: {
id: string;
name: string;
logoUrl?: string;
};
}>;
sponsorshipRequests: Array<{
id: string;
slotId: string;
sponsorId: string;
sponsorName: string;
requestedAt: string;
status: 'pending' | 'approved' | 'rejected';
}>;
}

View File

@@ -0,0 +1,13 @@
export interface LeagueWalletViewData {
leagueId: string;
balance: number;
currency: string;
transactions: Array<{
id: string;
type: 'deposit' | 'withdrawal' | 'sponsorship' | 'prize';
amount: number;
description: string;
createdAt: string;
status: 'completed' | 'pending' | 'failed';
}>;
}