website refactor

This commit is contained in:
2026-01-16 15:20:25 +01:00
parent 7e02fc3ea5
commit 37b1aa626c
325 changed files with 2167 additions and 2782 deletions

View File

@@ -5,19 +5,19 @@
* Immutable entity with factory methods and domain validation.
*/
import type { Entity } from '@core/shared/domain';
import { MediaReference } from '@core/domain/media/MediaReference';
import type { Entity } from '@core/shared/domain/Entity';
import { RacingDomainInvariantError, RacingDomainValidationError } from '../errors/RacingDomainError';
import { LeagueVisibility, LeagueVisibilityType } from '../value-objects/LeagueVisibility';
import { MaxParticipants } from '../value-objects/MaxParticipants';
import { ParticipantCount } from '../value-objects/ParticipantCount';
import { SessionDuration } from '../value-objects/SessionDuration';
import { LeagueCreatedAt } from './LeagueCreatedAt';
import { LeagueDescription } from './LeagueDescription';
import { LeagueId } from './LeagueId';
import { LeagueName } from './LeagueName';
import { LeagueDescription } from './LeagueDescription';
import { LeagueOwnerId } from './LeagueOwnerId';
import { LeagueCreatedAt } from './LeagueCreatedAt';
import { LeagueSocialLinks } from './LeagueSocialLinks';
import { LeagueVisibility, LeagueVisibilityType } from '../value-objects/LeagueVisibility';
import { ParticipantCount } from '../value-objects/ParticipantCount';
import { MaxParticipants } from '../value-objects/MaxParticipants';
import { SessionDuration } from '../value-objects/SessionDuration';
import { RacingDomainValidationError, RacingDomainInvariantError } from '../errors/RacingDomainError';
import { MediaReference } from '@core/domain/media/MediaReference';
/**
* Stewarding decision mode for protests
@@ -536,4 +536,11 @@ export class League implements Entity<LeagueId> {
canAcceptMore(): boolean {
return !this.isFull();
}
equals(other: Entity<LeagueId>): boolean {
if (!(other instanceof League)) {
return false;
}
return this.id.equals(other.id);
}
}