feat: Adressbuch-Block mit Suche, Org- und Buchstabenfilter
- AdressbuchBlock: listet alle Kontakte alphabetisch mit Suche, Org-Filter-Chips und A–Z-Buchstabenfilter; /adressbuch-Seite - ContactCard: neues Design passend zu OrganisationsCard (Badges, Links) - ContactsBlock: Karussell mit snap-scroll, volle Breite - block-types, blog-utils, cms: AdressbuchBlockData, resolveAdressbuchBlocks, getContacts; BlockRenderer registriert adressbuch - Kontakt-Seite: Link auf /adressbuch statt eingebettetem Block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -336,6 +336,7 @@ export interface ContactEntry {
|
||||
_slug?: string;
|
||||
name?: string;
|
||||
role?: string;
|
||||
organisations?: (string | { _slug?: string; name?: string })[];
|
||||
email?: string;
|
||||
phone?: string;
|
||||
note?: string;
|
||||
@@ -349,6 +350,15 @@ export interface ContactsBlockData {
|
||||
layout?: BlockLayout;
|
||||
}
|
||||
|
||||
export interface AdressbuchBlockData {
|
||||
_type?: "adressbuch";
|
||||
_slug?: string;
|
||||
excludeContacts?: (string | ContactEntry)[];
|
||||
layout?: BlockLayout;
|
||||
/** Server-side injected — not in CMS schema */
|
||||
resolvedContacts?: ContactEntry[];
|
||||
}
|
||||
|
||||
/** Live-Strommix-Widget (_type: "live_strommix"). Editorial-Konfig + Platzierungs-Instanz.
|
||||
* Fetched live data from /api/strommix (aggregator) and renders status bucket
|
||||
* derived from `(wind_onshore + wind_offshore + solar) / load * 100`. */
|
||||
|
||||
Reference in New Issue
Block a user