website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -5,7 +5,7 @@
* Contains base image and sponsor decal placements.
*/
import type { Entity } from '@core/shared/domain/Entity';
import { Entity } from '@core/shared/domain/Entity';
import { RacingDomainInvariantError, RacingDomainValidationError } from '../errors/RacingDomainError';
import { CarId } from '../value-objects/CarId';
import type { LiveryDecal } from '../value-objects/LiveryDecal';
@@ -16,8 +16,7 @@ import { LiveryTemplateId } from './LiveryTemplateId';
import { LiveryTemplateUpdatedAt } from './LiveryTemplateUpdatedAt';
import { SeasonId } from './season/SeasonId';
export class LiveryTemplate implements Entity<LiveryTemplateId> {
readonly id: LiveryTemplateId;
export class LiveryTemplate extends Entity<LiveryTemplateId> {
readonly leagueId: LeagueId;
readonly seasonId: SeasonId;
readonly carId: CarId;
@@ -36,7 +35,8 @@ export class LiveryTemplate implements Entity<LiveryTemplateId> {
createdAt: LiveryTemplateCreatedAt;
updatedAt?: LiveryTemplateUpdatedAt;
}) {
this.id = props.id;
super(props.id);
this.leagueId = props.leagueId;
this.seasonId = props.seasonId;
this.carId = props.carId;