RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Peter Meier
2026-02-16 09:30:30 +01:00
commit aad93d145f
224 changed files with 19225 additions and 0 deletions

37
types/image.json5 Normal file
View File

@@ -0,0 +1,37 @@
{
// 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)",
},
},
}