Track all types in git, sync to server on deploy
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
This commit is contained in:
38
types/image.json5
Normal file
38
types/image.json5
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
name: "image",
|
||||
description: "Image component with inline img (src + description) and layout",
|
||||
tags: ["component", "media"],
|
||||
category: "components",
|
||||
fields: {
|
||||
name: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "Internal component name",
|
||||
},
|
||||
img: {
|
||||
type: "referenceOrInline",
|
||||
collection: "img",
|
||||
required: true,
|
||||
description: "Image: Slug (Referenz) oder Inline-Objekt (gleiche Felder wie img)",
|
||||
},
|
||||
caption: {
|
||||
type: "string",
|
||||
description: "Image caption",
|
||||
},
|
||||
layout: {
|
||||
type: "object",
|
||||
useFields: "component_layout",
|
||||
description: "Column width (grid)",
|
||||
},
|
||||
maxWidth: {
|
||||
type: "integer",
|
||||
description: "Max width in px",
|
||||
},
|
||||
aspectRatio: {
|
||||
type: "string",
|
||||
description: "Aspect ratio",
|
||||
enum: ["1:1", "4:3", "3:2", "16:9", "21:9", "2:3", "3:4"],
|
||||
default: "4:3",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user