summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-17 15:30:01 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-17 15:30:01 +0200
commit14e171fd132fc92ddb6e8f14f72797c1fd7697ce (patch)
tree6c57b69b255bc38b9640004ea8731cc508c0cc12 /animism-align/frontend/app/views/align/components/annotations
parent282d24668ca08adf3ab6919c3071346653727a6a (diff)
adding grid
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotation.form.js2
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js9
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationTypes/index.js5
3 files changed, 11 insertions, 5 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
index 8b4b6fe..eb5afeb 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js
@@ -16,7 +16,7 @@ const ANNOTATION_TYPES = [
'sentence', 'section_heading', 'heading_text', 'paragraph_end',
'video',
'image',
- 'gallery', 'grid', 'carousel', 'vitrine',
+ 'gallery', 'carousel', 'grid', 'vitrine',
'curtain', 'intro',
].map(name => ({ name, label: capitalize(name.replace('_', ' ')) }))
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
index ab63c98..a4ad015 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
@@ -21,12 +21,15 @@ import {
export const annotationFormLookup = {
section_heading: AnnotationFormSectionHeading,
+
image: AnnotationFormImage,
video: AnnotationFormVideo,
- intro: AnnotationFormIntro,
- curtain: AnnotationFormCurtain,
+
gallery: AnnotationFormGallery,
- grid: AnnotationFormGallery,
carousel: AnnotationFormGallery,
+ grid: AnnotationFormGallery,
vitrine: AnnotationFormGallery,
+
+ intro: AnnotationFormIntro,
+ curtain: AnnotationFormCurtain,
}
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/index.js b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/index.js
index f69e81f..2ebe7b3 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/index.js
@@ -29,12 +29,15 @@ export const AnnotationElementLookup = {
heading_text: React.memo(AnnotationHeadingText),
section_heading: React.memo(AnnotationSectionHeading),
paragraph_end: React.memo(AnnotationParagraphEnd),
+
video: React.memo(AnnotationVideo),
+
image: React.memo(AnnotationImage),
gallery: React.memo(AnnotationGallery),
+ carousel: React.memo(AnnotationGallery),
grid: React.memo(AnnotationGallery),
vitrine: React.memo(AnnotationGallery),
- carousel: React.memo(AnnotationGallery),
+
intro: React.memo(AnnotationIntro),
curtain: React.memo(AnnotationCurtain),
}