From ebfea9d6f0f1902e12d5544edf57268a91714d81 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Wed, 11 Nov 2026 23:33:10 +0100 Subject: [PATCH] U6: marker en voorbeeldcontract voor door de host ingevulde pakketten; app verwijdert statische kopie Co-Authored-By: Claude Sonnet 5.5 --- docs/offerings-injection.example.html | 19 +++++++++++++++++++ index.html | 1 + src/main.tsx | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 docs/offerings-injection.example.html diff --git a/docs/offerings-injection.example.html b/docs/offerings-injection.example.html new file mode 100644 index 0000000..59768d0 --- /dev/null +++ b/docs/offerings-injection.example.html @@ -0,0 +1,19 @@ + + + (inside ) --> + + + + (inside , above #root). Removed by the app at start-up. --> +
+
    +
  • Landingspagina

    Een snelle landingspagina.

    € 300 eenmalig

  • +
  • Maatwerk

    Past er niets bij?

    Op aanvraag

  • +
+
diff --git a/index.html b/index.html index 105c987..fd21f90 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,7 @@ +
diff --git a/src/main.tsx b/src/main.tsx index 76c4f07..7ed23b2 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -34,6 +34,10 @@ if (!rootElement) { throw new Error('Root element "#root" not found in index.html'); } +// The CMS host may inject a static, crawler-readable packages list (#packages-static, see +// index.html); the app renders its own packages, so drop the static copy to avoid duplicates. +document.getElementById('packages-static')?.remove(); + createRoot(rootElement).render(