website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -1,5 +1,7 @@
import { LeaguesApiClient } from '@/lib/api/leagues/LeaguesApiClient';
import { DriversApiClient } from '@/lib/api/drivers/DriversApiClient';
import { Result } from '@/lib/contracts/Result';
import { DomainError } from '@/lib/contracts/services/Service';
/**
* League Settings Service - DTO Only
@@ -25,4 +27,20 @@ export class LeagueSettingsService {
async transferOwnership(leagueId: string, currentOwnerId: string, newOwnerId: string): Promise<{ success: boolean }> {
return this.leagueApiClient.transferOwnership(leagueId, currentOwnerId, newOwnerId);
}
async selectScoringPreset(leagueId: string, preset: string): Promise<Result<void, DomainError>> {
return Result.err({ type: 'notImplemented', message: 'selectScoringPreset' });
}
async toggleCustomScoring(leagueId: string, enabled: boolean): Promise<Result<void, DomainError>> {
return Result.err({ type: 'notImplemented', message: 'toggleCustomScoring' });
}
getPresetEmoji(preset: string): string {
return '🏆';
}
getPresetDescription(preset: string): string {
return `Scoring preset: ${preset}`;
}
}