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

@@ -1,5 +1,5 @@
import type { Logger } from '@core/shared/domain/Logger';
import type { LogContext } from './LoggerContext';
import type { Logger } from '@core/shared/application';
/**
* LoggerPort - Port interface for application-layer logging.

View File

@@ -1,8 +1,8 @@
import { AuthenticationState } from '../../domain/value-objects/AuthenticationState';
import type { Logger } from '@core/shared/application';
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import type { AuthenticationServicePort } from '../ports/AuthenticationServicePort';
import { AuthenticationState } from '../../domain/value-objects/AuthenticationState';
import { SessionLifetime } from '../../domain/value-objects/SessionLifetime';
import type { AuthenticationServicePort } from '../ports/AuthenticationServicePort';
import type { SessionValidatorPort } from '../ports/SessionValidatorPort';
/**

View File

@@ -1,6 +1,6 @@
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import type { AuthenticationServicePort } from '../ports/AuthenticationServicePort';
import type { Logger } from '@core/shared/application';
/**
* Use case for clearing the user's session (logout).

View File

@@ -1,7 +1,7 @@
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import { RaceCreationResult } from '../../domain/value-objects/RaceCreationResult';
import type { CheckoutServicePort } from '../ports/CheckoutServicePort';
import type { Logger } from '@core/shared/application';
export class CompleteRaceCreationUseCase {
constructor(private readonly checkoutService: CheckoutServicePort, private readonly logger: Logger) {}

View File

@@ -1,8 +1,8 @@
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import type { Logger } from '@core/shared/application';
import type { CheckoutServicePort } from '../ports/CheckoutServicePort';
import type { CheckoutConfirmationPort } from '../ports/CheckoutConfirmationPort';
import { CheckoutStateEnum } from '../../domain/value-objects/CheckoutState';
import type { CheckoutConfirmationPort } from '../ports/CheckoutConfirmationPort';
import type { CheckoutServicePort } from '../ports/CheckoutServicePort';
interface SessionMetadata {

View File

@@ -1,11 +1,11 @@
import type { AsyncUseCase } from '@core/shared/application';
import type { Logger } from '@core/shared/application';
import type { Logger } from '@core/shared/domain/Logger';
import { AutomationSession } from '../../domain/entities/AutomationSession';
import type { HostedSessionConfig } from '../../domain/types/HostedSessionConfig';
import type { SessionDTO } from '../dto/SessionDTO';
import { AutomationEnginePort } from '../ports/AutomationEnginePort';
import type { IBrowserAutomation } from '../ports/ScreenAutomationPort';
import { SessionRepositoryPort } from '../ports/SessionRepositoryPort';
import type { SessionDTO } from '../dto/SessionDTO';
export class StartAutomationSessionUseCase
implements AsyncUseCase<HostedSessionConfig, SessionDTO> {

View File

@@ -1,7 +1,7 @@
import type { AuthenticationServicePort } from '../ports/AuthenticationServicePort';
import type { Logger } from '@core/shared/domain/Logger';
import { Result } from '@core/shared/domain/Result';
import { BrowserAuthenticationState } from '../../domain/value-objects/BrowserAuthenticationState';
import type { Logger } from '@core/shared/application';
import type { AuthenticationServicePort } from '../ports/AuthenticationServicePort';
/**
* Use case for verifying browser shows authenticated page state.

View File

@@ -1,6 +1,6 @@
import type { LoggerPort } from '../../../application/ports/LoggerPort';
import type { Logger } from '@core/shared/domain/Logger';
import type { LogContext } from '../../../application/ports/LoggerContext';
import type { Logger } from '@core/shared/application';
import type { LoggerPort } from '../../../application/ports/LoggerPort';
export class NoOpLogAdapter implements LoggerPort, Logger {
debug(__message: string, __context?: LogContext): void {}

View File

@@ -1,8 +1,8 @@
import type { LoggerPort } from 'apps/companion/main/automation/application/ports/LoggerPort';
import type { Logger } from '@core/shared/domain/Logger';
import type { LogContext } from 'apps/companion/main/automation/application/ports/LoggerContext';
import type { LogLevel } from 'apps/companion/main/automation/application/ports/LoggerLogLevel';
import type { LoggerPort } from 'apps/companion/main/automation/application/ports/LoggerPort';
import { loadLoggingConfig, type LoggingEnvironmentConfig } from '../../config/LoggingConfig';
import type { Logger } from '@core/shared/application';
const LOG_LEVEL_PRIORITY: Record<LogLevel, number> = {
debug: 10,