add diptych
This commit is contained in:
parent
2efd7887c9
commit
721bc4bf78
4 changed files with 44 additions and 5 deletions
|
|
@ -25,6 +25,11 @@
|
|||
"images"
|
||||
]
|
||||
},
|
||||
"image_attribution": {
|
||||
"type": "component",
|
||||
"component": "global.link",
|
||||
"repeatable": false
|
||||
},
|
||||
"dl": {
|
||||
"type": "component",
|
||||
"component": "global.descriptive-list",
|
||||
|
|
@ -36,11 +41,6 @@
|
|||
"global.copy",
|
||||
"global.media"
|
||||
]
|
||||
},
|
||||
"image_attribution": {
|
||||
"type": "component",
|
||||
"component": "global.link",
|
||||
"repeatable": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
21
src/components/global/dipytch.json
Normal file
21
src/components/global/dipytch.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"collectionName": "components_global_dipytches",
|
||||
"info": {
|
||||
"displayName": "Dipytch",
|
||||
"icon": "landscape"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"left_media": {
|
||||
"type": "component",
|
||||
"component": "global.media",
|
||||
"repeatable": false
|
||||
},
|
||||
"right_media": {
|
||||
"type": "component",
|
||||
"component": "global.media",
|
||||
"repeatable": false
|
||||
}
|
||||
},
|
||||
"config": {}
|
||||
}
|
||||
|
|
@ -20,6 +20,10 @@
|
|||
"allowedTypes": [
|
||||
"videos"
|
||||
]
|
||||
},
|
||||
"looping": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"config": {}
|
||||
|
|
|
|||
14
types/generated/components.d.ts
vendored
14
types/generated/components.d.ts
vendored
|
|
@ -23,6 +23,18 @@ export interface GlobalDescriptiveList extends Struct.ComponentSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface GlobalDipytch extends Struct.ComponentSchema {
|
||||
collectionName: 'components_global_dipytches';
|
||||
info: {
|
||||
displayName: 'Dipytch';
|
||||
icon: 'landscape';
|
||||
};
|
||||
attributes: {
|
||||
left_media: Schema.Attribute.Component<'global.media', false>;
|
||||
right_media: Schema.Attribute.Component<'global.media', false>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface GlobalLink extends Struct.ComponentSchema {
|
||||
collectionName: 'components_global_links';
|
||||
info: {
|
||||
|
|
@ -43,6 +55,7 @@ export interface GlobalMedia extends Struct.ComponentSchema {
|
|||
};
|
||||
attributes: {
|
||||
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||
looping: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<true>;
|
||||
video: Schema.Attribute.Media<'videos'>;
|
||||
};
|
||||
}
|
||||
|
|
@ -65,6 +78,7 @@ declare module '@strapi/strapi' {
|
|||
export interface ComponentSchemas {
|
||||
'global.copy': GlobalCopy;
|
||||
'global.descriptive-list': GlobalDescriptiveList;
|
||||
'global.dipytch': GlobalDipytch;
|
||||
'global.link': GlobalLink;
|
||||
'global.media': GlobalMedia;
|
||||
'global.seo': GlobalSeo;
|
||||
|
|
|
|||
Loading…
Reference in a new issue