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/youtube_video.json5
Normal file
38
types/youtube_video.json5
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
// Corresponds to CF_YoutubeVideo / Contentful_YoutubeVideo.ts
|
||||
name: "youtube_video",
|
||||
description: "Embedded YouTube video with optional params",
|
||||
tags: [
|
||||
"media",
|
||||
"component"
|
||||
],
|
||||
category: "components",
|
||||
fields: {
|
||||
id: {
|
||||
type: "string",
|
||||
description: "Unique ID (optional, otherwise _slug)",
|
||||
},
|
||||
youtubeId: {
|
||||
type: "string",
|
||||
required: true,
|
||||
description: "YouTube video ID (e.g. from URL ?v=VIDEO_ID)",
|
||||
},
|
||||
params: {
|
||||
type: "string",
|
||||
description: "Optional URL params (e.g. start=30, autoplay=1)",
|
||||
},
|
||||
title: {
|
||||
type: "string",
|
||||
description: "Video title",
|
||||
},
|
||||
description: {
|
||||
type: "string",
|
||||
description: "Short description",
|
||||
},
|
||||
layout: {
|
||||
type: "object",
|
||||
useFields: "component_layout",
|
||||
description: "Column width (grid) like CF_ComponentLayout",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user