harden media

This commit is contained in:
2025-12-31 15:39:28 +01:00
parent 92226800df
commit 8260bf7baf
413 changed files with 8361 additions and 1544 deletions

View File

@@ -1,8 +1,8 @@
/**
* Application Port: IMediaRepository
*
* Repository interface for static media assets (logos, images, icons).
* Handles frontend assets like team logos, driver avatars, etc.
* Repository interface for media assets (logos, avatars).
* Handles frontend assets like team logos and driver avatars.
*/
export interface IMediaRepository {
@@ -17,22 +17,17 @@ export interface IMediaRepository {
getTeamLogo(teamId: string): Promise<string | null>;
/**
* Get track image URL
* Get league logo URL
*/
getTrackImage(trackId: string): Promise<string | null>;
getLeagueLogo(leagueId: string): Promise<string | null>;
/**
* Get category icon URL
* Get league cover URL
*/
getCategoryIcon(categoryId: string): Promise<string | null>;
/**
* Get sponsor logo URL
*/
getSponsorLogo(sponsorId: string): Promise<string | null>;
getLeagueCover(leagueId: string): Promise<string | null>;
/**
* Clear all media data (for reseeding)
*/
clear(): Promise<void>;
}
}

View File

@@ -6,7 +6,6 @@
*/
export interface TeamStats {
logoUrl: string;
performanceLevel: 'beginner' | 'intermediate' | 'advanced' | 'pro';
specialization: 'endurance' | 'sprint' | 'mixed';
region: string;