website refactor

This commit is contained in:
2026-01-17 16:23:51 +01:00
parent 72a626ce71
commit 846667c3d1
27 changed files with 140 additions and 154 deletions

View File

@@ -1,3 +1,4 @@
import { injectable, unmanaged } from 'inversify';
import { ProtestsApiClient } from '@/lib/api/protests/ProtestsApiClient';
import type { ApplyPenaltyCommandDTO } from '@/lib/types/generated/ApplyPenaltyCommandDTO';
import type { RequestProtestDefenseCommandDTO } from '@/lib/types/generated/RequestProtestDefenseCommandDTO';
@@ -18,10 +19,11 @@ import { ProtestDriverViewModel } from '@/lib/view-models/ProtestDriverViewModel
* All client-side presentation logic must be handled by hooks/components.
* @server-safe
*/
@injectable()
export class ProtestService implements Service {
private readonly apiClient: ProtestsApiClient;
constructor(apiClient?: ProtestsApiClient) {
constructor(@unmanaged() apiClient?: ProtestsApiClient) {
if (apiClient) {
this.apiClient = apiClient;
} else {