summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/constants.js')
-rw-r--r--animism-align/frontend/app/constants.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/animism-align/frontend/app/constants.js b/animism-align/frontend/app/constants.js
index b70f49c..711d979 100644
--- a/animism-align/frontend/app/constants.js
+++ b/animism-align/frontend/app/constants.js
@@ -1,3 +1,5 @@
+import { capitalize } from 'app/utils'
+
export const URLS = {
audio: '/static/data_store/peaks/animism_episode_01_2810.mp3',
peaks: '/static/data_store/peaks/peaks.json',
@@ -44,6 +46,21 @@ export const ROMAN_NUMERALS = [
'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX',
]
+export const ANNOTATION_SELECT_LABELS = {
+ 'section_heading': 'Chapter Heading',
+}
+
+export const ANNOTATION_SELECT_OPTIONS = [
+ 'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'paragraph_end',
+ 'footnote',
+ 'text_plate',
+ 'video', 'subtitle',
+ 'image',
+ 'gallery', 'carousel', 'grid', 'vitrine',
+ 'gallery_advance',
+ 'curtain', 'intro', 'schedule',
+].map(name => ({ name, label: ANNOTATION_SELECT_LABELS[name] || capitalize(name.replace('_', ' ')) }))
+
export const TEXT_ANNOTATION_TYPES = new Set([
'section_heading', 'heading_text', 'sentence', 'paragraph_end', 'pullquote_credit',
'footnote', 'text_plate', 'subtitle',
@@ -95,7 +112,7 @@ export const BLACK_WHITE_SELECT_OPTIONS = [
]
export const CURTAIN_STYLE_SELECT_OPTIONS = [
- { label: 'section heading', name: 'section_heading'},
+ { label: 'chapter heading', name: 'section_heading'},
{ label: 'video title', name: 'video_title'},
{ label: 'default', name: 'default'},
]
@@ -116,6 +133,7 @@ export const IMAGE_BACKGROUND_SIZE_OPTIONS = [
{ label: 'Contain', name: 'contain' },
{ label: '90% Width', name: '90% auto' },
{ label: '90% Height', name: 'auto 90%' },
+ { label: 'Hidden', name: 'hidden' },
]
export const IMAGE_INLINE_SIZE_OPTIONS = [