Files
slp-modular-cms/aidlc-docs/features/andreaslop-site-hosting/construction/andreaslop-client/nfr-design/logical-components.md
T

2.4 KiB

Logical Components - andreaslop-client (U2)

No new infrastructure components. All changes are in-process code, CSS and workflow files.

Component Location (planned) Role
SlpModularCms.Api.AndreaSlopFotografie src/ (solution folder Clients) Thin host: CmsHostOptions { WebsiteMode = PrerenderedPages }, three-file appsettings, own launchSettings port
SetupOptions, ISetupTokenValidator, SetupTokenValidator Modules.Identity P1-P3
SetupController (changed) Modules.Identity/Controllers Limiter, token check, tokenRequired in status
SecurityEvents.SetupTokenRejected Core/Observability P6
Setup page change frontend/src/features/setup Token field only when tokenRequired; header X-Setup-Token
Theme frontend/themes/asf/ + Vite alias + VITE_THEME P9
i18n default language frontend/src/i18n/config.ts P10
publish-asf-test, deploy-asf-test .gitea/workflows/continuous_integration.yaml P8
ForwardedHeaders options + registration (new), CmsHost pipeline (changed: first middleware) Core/Hosting P11; shared by all clients, opt-in
AddCmsRateLimiting (changed) + ClientPartitionKey Core/Hosting P12; shared by all clients
Test projects Modules.Identity.Tests, frontend Vitest Validator (incl. PBT), controller, setup page, theme/i18n
Api.AndreaSlopFotografie tests host regression: capabilities has no Offerings Needs MariaDB like Api.Tests
flowchart TD
    CI["continuous_integration.yaml"] --> PUB["publish-asf-test"]
    PUB --> FE["frontend build (VITE_THEME=asf, VITE_DEFAULT_LANGUAGE=nl)"]
    PUB --> HOST["Api.AndreaSlopFotografie publish (linux-arm64)"]
    CI --> DEP["deploy-asf-test"]
    DEP --> SCP["deploy-scp.yaml (unchanged)"]
    HOST --> CORE["Core: CmsHost, WebsiteMode, StrictSite"]
    HOST --> IDM["Modules.Identity: setup token"]
    FE --> TH["themes/asf"]

    classDef ci fill:#d6bcfa,stroke:#553c9a,stroke-width:1px,color:#000;
    classDef app fill:#63b3ed,stroke:#2b6cb0,stroke-width:1px,color:#000;
    classDef fe fill:#f6e05e,stroke:#c05621,stroke-width:1px,color:#000;
    class CI,PUB,DEP,SCP ci;
    class HOST,CORE,IDM app;
    class FE,TH fe;

Text alternative: the pipeline builds the themed admin and publishes the Andrea host, which uses Core and the Identity module; the deploy job reuses the existing SCP workflow.