diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 21:48:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 21:48:23 +0200 |
| commit | d8ac0c8298cf6157fcf5773eab088f19a2c8fbb1 (patch) | |
| tree | c313de92454827fc804a22d81f313212ac4f517f /animism-align/frontend/app/views/viewer/viewer.actions.js | |
| parent | e83fbeeefed0a8416b9417f713bc335d79cfbfc7 (diff) | |
background color stuff, pull quotes in the text but not the transcript, inline vitrine stuff
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index fdd47a9..b4a374c 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -15,18 +15,6 @@ import { buildParagraphs } from 'app/utils/transcript.utils' import { annotationFadeTimings } from 'app/utils/annotation.utils' import { getNextSection } from 'app/utils/viewer.utils' -const newSection = (annotation, index, mediaIndex) => ({ - start_ts: annotation.start_ts, - end_ts: 0, - title: annotation.text, - media: [], - fullscreenTimeline: [], - index, - mediaIndex, - no_audio: !!annotation.settings.no_audio, - section_nav_color: annotation.settings.section_nav_color || 'white', -}) - // build the list of sections from the raw annotation list. export const loadSections = () => dispatch => { // list of all sections @@ -184,6 +172,19 @@ export const loadSections = () => dispatch => { dispatch({ type: types.viewer.load_sections, sections }) } +const newSection = (annotation, index, mediaIndex) => ({ + start_ts: annotation.start_ts, + end_ts: 0, + title: annotation.text, + media: [], + fullscreenTimeline: [], + index, + mediaIndex, + no_audio: !!annotation.settings.no_audio, + color: annotation.settings.color || 'white', + section_nav_color: annotation.settings.section_nav_color || 'white', +}) + const makeFullscreenEvent = (index, annotation) => { const timing = annotationFadeTimings(annotation) const event = { |
