Add thinglink and infogram blocks

This commit is contained in:
Ramon Wenger 2022-10-05 09:29:56 +02:00
parent 6c2f414dc0
commit 262c9f1425
1 changed files with 21 additions and 7 deletions

View File

@ -62,7 +62,9 @@
const ImageBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/ImageBlock');
const Instruction = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/Instruction');
const ModuleRoomSlug = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/ModuleRoomSlug');
const CmsDocumentBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/CmsDocumentBlock');
const CmsDocumentBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/CmsDocumentBlock');
const ThinglinkBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/ThinglinkBlock');
const InfogramBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/InfogramBlock');
const CHOOSER = 'content-block-element-chooser-widget';
@ -105,6 +107,8 @@
Instruction,
ModuleRoomSlug,
CmsDocumentBlock,
InfogramBlock,
ThinglinkBlock
},
computed: {
@ -180,32 +184,42 @@
case 'survey':
return {
component: 'survey-block',
title: 'Umfrage'
title: 'Umfrage',
};
case 'solution':
return {
component: 'solution',
title: 'Lösung'
title: 'Lösung',
};
case 'image_block':
return {
component: 'image-block',
title: 'Bild'
title: 'Bild',
};
case 'instruction':
return {
component: 'instruction',
title: 'Instruktion'
title: 'Instruktion',
};
case 'module_room_slug':
return {
component: 'module-room-slug',
title: 'Raum'
title: 'Raum',
};
case 'cms_document_block':
return {
component: 'cms-document-block',
title: 'Dokument'
title: 'Dokument',
};
case 'thinglink_block':
return {
component: 'thinglink-block',
title: 'Illustration'
};
case 'infogram_block':
return {
component: 'infogram-block',
title: 'Illustration'
};
}
return {