wip league admin tools

This commit is contained in:
2025-12-28 12:04:12 +01:00
parent 5dc8c2399c
commit 6edf12fda8
401 changed files with 15365 additions and 6047 deletions

View File

@@ -1,4 +1,4 @@
import { LeagueWithCapacityDTO } from '../types/generated/LeagueWithCapacityDTO';
import { LeagueWithCapacityAndScoringDTO } from '../types/generated/LeagueWithCapacityAndScoringDTO';
import { LeagueStatsDTO } from '../types/generated/LeagueStatsDTO';
import { LeagueMembershipsDTO } from '../types/generated/LeagueMembershipsDTO';
import { LeagueScheduleDTO } from '../types/generated/LeagueScheduleDTO';
@@ -93,7 +93,7 @@ export class LeagueDetailPageViewModel {
stewardSummaries: DriverSummary[];
constructor(
league: LeagueWithCapacityDTO,
league: LeagueWithCapacityAndScoringDTO,
owner: GetDriverOutputDTO | null,
scoringConfig: LeagueScoringConfigDTO | null,
drivers: GetDriverOutputDTO[],
@@ -111,9 +111,9 @@ export class LeagueDetailPageViewModel {
maxDrivers: league.settings?.maxDrivers ?? (league as any).maxDrivers,
};
this.socialLinks = {
discordUrl: league.discordUrl ?? (league as any).socialLinks?.discordUrl,
youtubeUrl: league.youtubeUrl ?? (league as any).socialLinks?.youtubeUrl,
websiteUrl: league.websiteUrl ?? (league as any).socialLinks?.websiteUrl,
discordUrl: league.socialLinks?.discordUrl ?? (league as any).socialLinks?.discordUrl,
youtubeUrl: league.socialLinks?.youtubeUrl ?? (league as any).socialLinks?.youtubeUrl,
websiteUrl: league.socialLinks?.websiteUrl ?? (league as any).socialLinks?.websiteUrl,
};
this.owner = owner;