Files
VITEC-website/public/_frontend/assets/vitec_container-CekQ-Tqd.js
o-rasche bb7c03235d Checkpoint: headless JSON architecture documented + cleanup (Stufe 1+2)
Restore point before Stufe 3 (central resolver-service refactoring).

Includes this session's work:
- Success Story (usecase) rebuild: new fields/tabs, UsecaseSerializer,
  thin List/Show renderers, MM relations, inline content elements.
- vitec_columns content block (two-column layout with per-item content)
  incl. unified header section; special-cased JSON resolution.
- Container per-column flex (items[].config align/justify) + gap on parent.
- Unified header section across CEs/plugins/containers; header fields in JSON.
- ISO-style architecture spec: Documentation/Headless-JSON-Architecture.md.
- Cleanup: removed local scratch + verified .bak backups.
- Fixes: B-6 (undefined thumbnail variable in Downloadcardcollection image
  resolver), B-7 (unsatisfiable legacy CType OR branch in Downloadcard/Datasheets).

Rollback: git reset --hard snapshot-2026-07-09-pre-stufe3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 10:01:56 +02:00

1 line
1.0 KiB
JavaScript

import{C as e,D as t,Q as n,Z as r,c as i,d as a,k as o,n as s,o as c}from"./index-7LYai_r-.js";var l=n(),u=r();function d({element:n,nested:r,devInfoTags:d,uid:f,spaceBefore:p,spaceAfter:m,className:h,renderElement:g}){let _=i(n),v=a(n),y=n.tx_vitec_bg_variant,b=!!(y&&y!==`none`),x=b?c(y):{},S=[`vitec_container`,n.cssClass,h].filter(Boolean).join(` `),C=n.items?.flatMap(e=>e.contentElements??[])??[];return(0,u.jsx)(s,{className:S,devInfoTags:d,nested:r,uid:f,spaceBefore:p,spaceAfter:m,children:(0,u.jsx)(`div`,{className:`vitec_container__inner`,children:(0,u.jsxs)(t,{sx:{...x,...b?{borderRadius:3,px:{xs:2.5,md:4},py:{xs:3,md:3.5}}:{},"& p, & h1, & h2, & h3, & h4, & h5, & h6, & .MuiTypography-root":{color:`inherit`}},children:[(_||v)&&(0,u.jsxs)(e,{spacing:.5,sx:{mb:2.5},children:[_&&(0,u.jsx)(o,{variant:`h4`,children:_}),v&&(0,u.jsx)(o,{variant:`subtitle1`,color:`text.secondary`,children:v})]}),(0,u.jsx)(e,{spacing:2,children:C.map(e=>(0,u.jsx)(l.Fragment,{children:g(e,!0)},`${e.id??e.type}-${e.colPos}`))})]})})})}export{d as VitecContainer};