|
|
|
@ -587,13 +587,16 @@ encodedBranchingScenarioContentTypeMetadata branchingScenarioContentTypeMetadata |
|
|
|
|
|
|
|
|
|
|
|
encodedBranchingScenarioContentTypeParams : BranchingScenarioContentTypeParams -> E.Value |
|
|
|
encodedBranchingScenarioContentTypeParams : BranchingScenarioContentTypeParams -> E.Value |
|
|
|
encodedBranchingScenarioContentTypeParams branchingScenarioContentTypeParams = |
|
|
|
encodedBranchingScenarioContentTypeParams branchingScenarioContentTypeParams = |
|
|
|
|
|
|
|
let |
|
|
|
|
|
|
|
f x = |
|
|
|
case branchingScenarioContentTypeParams of |
|
|
|
case branchingScenarioContentTypeParams of |
|
|
|
CoursePresentationH5P x -> |
|
|
|
CoursePresentationH5P p -> |
|
|
|
encodedCoursePresentation x |
|
|
|
encodedCoursePresentation p |
|
|
|
|
|
|
|
|
|
|
|
--TODO |
|
|
|
|
|
|
|
_ -> |
|
|
|
_ -> |
|
|
|
E.object [] |
|
|
|
E.object [] |
|
|
|
|
|
|
|
in |
|
|
|
|
|
|
|
f branchingScenarioContentTypeParams |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nouveauBranchingScenario = |
|
|
|
nouveauBranchingScenario = |
|
|
|
@ -622,8 +625,8 @@ nouveauBranchingScenario = |
|
|
|
, backButtonText = "Revenir en arrière" |
|
|
|
, backButtonText = "Revenir en arrière" |
|
|
|
, proceedButtonText = "Continuer" |
|
|
|
, proceedButtonText = "Continuer" |
|
|
|
, disableProceedButtonText = "Jouer la vidéo de nouveau" |
|
|
|
, disableProceedButtonText = "Jouer la vidéo de nouveau" |
|
|
|
, replayButtonText = "Votre note:" |
|
|
|
, replayButtonText = "Votre note :" |
|
|
|
, scoreText = "Votre note:" |
|
|
|
, scoreText = "Votre note :" |
|
|
|
, fullscreenAria = "Plein écran" |
|
|
|
, fullscreenAria = "Plein écran" |
|
|
|
} |
|
|
|
} |
|
|
|
, content = [] |
|
|
|
, content = [] |
|
|
|
@ -1428,11 +1431,10 @@ type H5pTree |
|
|
|
fromH5pTree tree = |
|
|
|
fromH5pTree tree = |
|
|
|
case tree of |
|
|
|
case tree of |
|
|
|
H5pTree BranchingScenarioContext title subTrees -> |
|
|
|
H5pTree BranchingScenarioContext title subTrees -> |
|
|
|
BranchingScenarioH5P |
|
|
|
nouveauBranchingScenario |
|
|
|
(nouveauBranchingScenario |
|
|
|
|
|
|
|
|> withMap startScreenField startScreenSubtitleField title |
|
|
|
|> withMap startScreenField startScreenSubtitleField title |
|
|
|
|> .with contentField (L.map fromBranchingScenario subTrees) |
|
|
|
|> .with contentField (L.map fromBranchingScenario subTrees) |
|
|
|
) |
|
|
|
|> BranchingScenarioH5P |
|
|
|
|
|
|
|
|
|
|
|
H5pTree CoursePresentationContext title subTrees -> |
|
|
|
H5pTree CoursePresentationContext title subTrees -> |
|
|
|
CoursePresentationH5P nouveauCoursePresentation |
|
|
|
CoursePresentationH5P nouveauCoursePresentation |
|
|
|
@ -1476,9 +1478,9 @@ fromBranchingScenario subTree = |
|
|
|
, metadata = |
|
|
|
, metadata = |
|
|
|
{ contentType = "Branching Question" |
|
|
|
{ contentType = "Branching Question" |
|
|
|
, license = "U" |
|
|
|
, license = "U" |
|
|
|
, title = "Untitled Branching Question" |
|
|
|
, title = title |
|
|
|
} |
|
|
|
} |
|
|
|
, params = CoursePresentationH5P nouveauCoursePresentation |
|
|
|
, params = fromH5pTree subTree |
|
|
|
, subContentId = uuid 1 |
|
|
|
, subContentId = uuid 1 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1495,7 +1497,7 @@ fromBranchingScenario subTree = |
|
|
|
, license = "U" |
|
|
|
, license = "U" |
|
|
|
, title = "Untitled Branching Question" |
|
|
|
, title = "Untitled Branching Question" |
|
|
|
} |
|
|
|
} |
|
|
|
, params = CoursePresentationH5P nouveauCoursePresentation |
|
|
|
, params = fromH5pTree subTree |
|
|
|
, subContentId = uuid 1 |
|
|
|
, subContentId = uuid 1 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|