RustyCMS: file-based headless CMS — API, Admin UI (content, types, assets), Docker/Caddy, image transform; only demo type and demo content in version control
Made-with: Cursor
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
{
|
||||
// Corresponds to CF_ComponentImage / Contentful_Image.ts
|
||||
name: "image",
|
||||
description: "Image component with reference to img asset and layout",
|
||||
tags: ["component", "media"],
|
||||
category: "components",
|
||||
fields: {
|
||||
name: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Internal component name",
|
||||
},
|
||||
image: {
|
||||
type: "reference",
|
||||
collection: "img",
|
||||
required: true,
|
||||
description: "Image (reference to img)",
|
||||
},
|
||||
caption: {
|
||||
type: "string",
|
||||
description: "Image caption",
|
||||
},
|
||||
layout: {
|
||||
type: "object",
|
||||
useFields: "component_layout",
|
||||
description: "Column width (grid) like CF_ComponentLayout",
|
||||
},
|
||||
maxWidth: {
|
||||
type: "integer",
|
||||
description: "Max width in px",
|
||||
},
|
||||
aspectRatio: {
|
||||
type: "number",
|
||||
description: "Aspect ratio (e.g. 16/9)",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user