website refactor

This commit is contained in:
2026-01-16 21:40:26 +01:00
parent ae910da21a
commit 2d322b42e1
170 changed files with 438 additions and 474 deletions

View File

@@ -5,11 +5,11 @@
* Currently a stub - to be implemented when Discord integration is needed.
*/
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type {
NotificationGateway,
NotificationDeliveryResult
NotificationDeliveryResult,
NotificationGateway
} from '@core/notifications/application/ports/NotificationGateway';
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type { NotificationChannel } from '@core/notifications/domain/types/NotificationTypes';
export interface DiscordAdapterConfig {

View File

@@ -5,11 +5,11 @@
* Currently a stub - to be implemented when email integration is needed.
*/
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type {
NotificationGateway,
NotificationDeliveryResult
import type {
NotificationDeliveryResult,
NotificationGateway
} from '@core/notifications/application/ports/NotificationGateway';
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type { NotificationChannel } from '@core/notifications/domain/types/NotificationTypes';
export interface EmailAdapterConfig {

View File

@@ -5,11 +5,11 @@
* Currently a stub - to be implemented when in-app notification system is needed.
*/
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type {
NotificationGateway,
NotificationDeliveryResult
import type {
NotificationDeliveryResult,
NotificationGateway
} from '@core/notifications/application/ports/NotificationGateway';
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type { NotificationChannel } from '@core/notifications/domain/types/NotificationTypes';
export class InAppNotificationAdapter implements NotificationGateway {

View File

@@ -4,13 +4,12 @@
* Manages notification gateways and routes notifications to appropriate channels.
*/
import type {
NotificationDeliveryResult,
NotificationGateway
} from '@core/notifications/application/ports/NotificationGateway';
import type { Notification } from '@core/notifications/domain/entities/Notification';
import type { NotificationChannel } from '@core/notifications/domain/types/NotificationTypes';
import type {
NotificationGateway,
NotificationGatewayRegistry as INotificationGatewayRegistry,
NotificationDeliveryResult
} from '@core/notifications/application/ports/NotificationGateway';
export class NotificationGatewayRegistry implements NotificationGatewayRegistry {
private gateways: Map<NotificationChannel, NotificationGateway> = new Map();