Voeg CMS voor de Publieke Website toe (overgenomen van rikx-org)
Pagina-editor, hoofdmenu, SEO en media onder Publieke Website → Pagina's (/website), los van het CMS in rikx-org: eigen tabellen in de beheerdatabase. Blokken (hero, tekstblok, testimonial, voordelenlijst, call-to-action) met Quill, NL/EN/DE met terugval op NL, en afbeeldingsupload naar MEDIA_DIR met een openbare /media-route (CSP-sandbox). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// Weergave van een tekstblok (CMS). Losse module zonder node:sqlite-import,
|
||||
// zodat zowel BlockEditModal (client) als de server action deze lijst gebruikt.
|
||||
// Ontbreekt de variant in de opgeslagen content, dan geldt "standaard".
|
||||
export const RICHTEXT_VARIANTS = ["standaard", "oranje-balk", "kaart-grijs", "kaart-oranje"] as const;
|
||||
|
||||
export type RichtextVariant = (typeof RICHTEXT_VARIANTS)[number];
|
||||
|
||||
export const RICHTEXT_VARIANT_LABELS: Record<RichtextVariant, string> = {
|
||||
standaard: "Standaard",
|
||||
"oranje-balk": "Oranje balk (intro)",
|
||||
"kaart-grijs": "Kaart – grijs",
|
||||
"kaart-oranje": "Kaart – oranje rand",
|
||||
};
|
||||
|
||||
export function isRichtextVariant(value: unknown): value is RichtextVariant {
|
||||
return typeof value === "string" && (RICHTEXT_VARIANTS as readonly string[]).includes(value);
|
||||
}
|
||||
Reference in New Issue
Block a user