@coorpacademy/app-review 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/actions/api/fetch-skills.d.ts +3 -3
- package/es/actions/api/fetch-skills.js +7 -2
- package/es/actions/api/fetch-slide.d.ts +1 -1
- package/es/actions/api/fetch-slide.js +3 -1
- package/es/actions/api/post-answer.d.ts +14 -0
- package/es/actions/api/post-answer.js +25 -0
- package/es/actions/api/post-progression.d.ts +3 -3
- package/es/actions/api/post-progression.js +5 -2
- package/es/actions/api/test/fetch-skills.test.js +7 -4
- package/es/actions/api/test/fetch-slide.test.js +7 -4
- package/es/actions/api/test/post-answer.test.d.ts +1 -0
- package/es/actions/api/test/post-answer.test.js +82 -0
- package/es/actions/api/test/post-progression.test.js +7 -4
- package/es/actions/data/test/token.test.d.ts +1 -0
- package/es/actions/data/test/token.test.js +25 -0
- package/es/actions/index.d.ts +1 -8
- package/es/actions/{api/test → test}/create-test-store.d.ts +2 -2
- package/es/actions/{api/test → test}/create-test-store.js +1 -1
- package/es/actions/ui/answers.d.ts +17 -3
- package/es/actions/ui/answers.js +41 -3
- package/es/actions/ui/slides.d.ts +0 -5
- package/es/actions/ui/slides.js +0 -4
- package/es/actions/ui/test/answers.test.d.ts +1 -0
- package/es/actions/ui/test/answers.test.js +100 -0
- package/es/actions/ui/test/slides.test.d.ts +1 -0
- package/es/actions/ui/test/slides.test.js +26 -0
- package/es/common/index.d.ts +0 -3
- package/es/common/index.js +0 -4
- package/es/index.js +1 -3
- package/es/reducers/data/index.d.ts +1 -1
- package/es/reducers/data/progression.d.ts +3 -3
- package/es/reducers/data/progression.js +2 -5
- package/es/reducers/data/slides.d.ts +2 -3
- package/es/reducers/data/test/progression.test.js +12 -27
- package/es/reducers/index.d.ts +2 -1
- package/es/reducers/ui/answers.d.ts +2 -2
- package/es/reducers/ui/answers.js +4 -8
- package/es/reducers/ui/index.d.ts +4 -1
- package/es/reducers/ui/index.js +3 -1
- package/es/reducers/ui/slide.d.ts +8 -0
- package/es/reducers/ui/slide.js +26 -0
- package/es/reducers/ui/test/answers.test.js +23 -3
- package/es/reducers/ui/test/current-slide-ref.test.js +1 -1
- package/es/reducers/ui/test/navigation.test.js +5 -5
- package/es/reducers/ui/test/slide.test.d.ts +1 -0
- package/es/reducers/ui/test/slide.test.js +12 -0
- package/es/test/util/services.mock.d.ts +3 -1
- package/es/test/util/services.mock.js +89 -72
- package/es/types/common.d.ts +0 -25
- package/es/views/skills/index.d.ts +1 -1
- package/es/views/skills/index.js +0 -3
- package/es/views/skills/test/skills.test.d.ts +1 -0
- package/es/views/skills/test/skills.test.js +94 -0
- package/es/views/slides/index.d.ts +13 -2
- package/es/views/slides/index.js +19 -15
- package/es/views/slides/map-api-slide-to-ui.js +65 -68
- package/es/views/slides/test/fixtures/free-text.d.ts +2 -1
- package/es/views/slides/test/fixtures/qcm-drag.d.ts +2 -1
- package/es/views/slides/test/fixtures/qcm-graphic.d.ts +2 -1
- package/es/views/slides/test/fixtures/qcm.d.ts +2 -1
- package/es/views/slides/test/fixtures/slider.d.ts +2 -1
- package/es/views/slides/test/fixtures/template.d.ts +4 -0
- package/{lib/views/slides/test/fixtures/select-template.js → es/views/slides/test/fixtures/template.js} +82 -4
- package/es/views/slides/test/index.test.d.ts +1 -0
- package/es/views/slides/test/index.test.js +473 -0
- package/es/views/slides/test/map-api-slide-to-ui.test.js +4 -10
- package/es/views/slides/test/slide.template.on-change.test.d.ts +1 -0
- package/es/views/slides/test/slide.template.on-change.test.js +79 -0
- package/lib/actions/api/fetch-skills.d.ts +3 -3
- package/lib/actions/api/fetch-skills.js +22 -19
- package/lib/actions/api/fetch-slide.d.ts +1 -1
- package/lib/actions/api/fetch-slide.js +3 -1
- package/lib/actions/api/post-answer.d.ts +14 -0
- package/lib/actions/api/post-answer.js +75 -0
- package/lib/actions/api/post-progression.d.ts +3 -3
- package/lib/actions/api/post-progression.js +6 -3
- package/lib/actions/api/test/fetch-skills.test.js +7 -4
- package/lib/actions/api/test/fetch-slide.test.js +7 -4
- package/lib/actions/api/test/post-answer.test.d.ts +1 -0
- package/lib/actions/api/test/post-answer.test.js +145 -0
- package/lib/actions/api/test/post-progression.test.js +7 -4
- package/lib/actions/data/test/token.test.d.ts +1 -0
- package/lib/actions/data/test/token.test.js +70 -0
- package/lib/actions/index.d.ts +1 -8
- package/lib/actions/{api/test → test}/create-test-store.d.ts +2 -2
- package/lib/actions/{api/test → test}/create-test-store.js +1 -1
- package/lib/actions/ui/answers.d.ts +17 -3
- package/lib/actions/ui/answers.js +50 -3
- package/lib/actions/ui/slides.d.ts +0 -5
- package/lib/actions/ui/slides.js +0 -4
- package/lib/actions/ui/test/answers.test.d.ts +1 -0
- package/lib/actions/ui/test/answers.test.js +190 -0
- package/lib/actions/ui/test/slides.test.d.ts +1 -0
- package/lib/actions/ui/test/slides.test.js +71 -0
- package/lib/common/index.d.ts +0 -3
- package/lib/common/index.js +0 -4
- package/lib/index.js +1 -3
- package/lib/reducers/data/index.d.ts +1 -1
- package/lib/reducers/data/progression.d.ts +3 -3
- package/lib/reducers/data/progression.js +2 -5
- package/lib/reducers/data/slides.d.ts +2 -3
- package/lib/reducers/data/test/progression.test.js +12 -27
- package/lib/reducers/index.d.ts +2 -1
- package/lib/reducers/ui/answers.d.ts +2 -2
- package/lib/reducers/ui/answers.js +4 -8
- package/lib/reducers/ui/index.d.ts +4 -1
- package/lib/reducers/ui/index.js +3 -1
- package/lib/reducers/ui/slide.d.ts +8 -0
- package/lib/reducers/ui/slide.js +27 -0
- package/lib/reducers/ui/test/answers.test.js +23 -3
- package/lib/reducers/ui/test/current-slide-ref.test.js +1 -1
- package/lib/reducers/ui/test/navigation.test.js +5 -5
- package/lib/reducers/ui/test/slide.test.d.ts +1 -0
- package/lib/reducers/ui/test/slide.test.js +12 -0
- package/lib/test/util/services.mock.d.ts +3 -1
- package/lib/test/util/services.mock.js +89 -72
- package/lib/types/common.d.ts +0 -25
- package/lib/views/skills/index.d.ts +1 -1
- package/lib/views/skills/index.js +0 -3
- package/lib/views/skills/test/skills.test.d.ts +1 -0
- package/lib/views/skills/test/skills.test.js +94 -0
- package/lib/views/slides/index.d.ts +13 -2
- package/lib/views/slides/index.js +19 -15
- package/lib/views/slides/map-api-slide-to-ui.js +106 -99
- package/lib/views/slides/test/fixtures/free-text.d.ts +2 -1
- package/lib/views/slides/test/fixtures/qcm-drag.d.ts +2 -1
- package/lib/views/slides/test/fixtures/qcm-graphic.d.ts +2 -1
- package/lib/views/slides/test/fixtures/qcm.d.ts +2 -1
- package/lib/views/slides/test/fixtures/slider.d.ts +2 -1
- package/lib/views/slides/test/fixtures/template.d.ts +4 -0
- package/{es/views/slides/test/fixtures/select-template.js → lib/views/slides/test/fixtures/template.js} +82 -4
- package/lib/views/slides/test/index.test.d.ts +1 -0
- package/lib/views/slides/test/index.test.js +473 -0
- package/lib/views/slides/test/map-api-slide-to-ui.test.js +4 -10
- package/lib/views/slides/test/slide.template.on-change.test.d.ts +1 -0
- package/lib/views/slides/test/slide.template.on-change.test.js +82 -0
- package/package.json +6 -5
- package/src/actions/api/fetch-skills.ts +18 -11
- package/src/actions/api/fetch-slide.ts +3 -1
- package/src/actions/api/post-answer.ts +44 -0
- package/src/actions/api/post-progression.ts +7 -4
- package/src/actions/api/test/fetch-skills.test.ts +9 -6
- package/src/actions/api/test/fetch-slide.test.ts +9 -6
- package/src/actions/api/test/post-answer.test.ts +101 -0
- package/src/actions/api/test/post-progression.test.ts +9 -6
- package/src/actions/data/test/token.test.ts +29 -0
- package/src/actions/index.ts +1 -17
- package/src/actions/{api/test → test}/create-test-store.ts +2 -2
- package/src/actions/ui/answers.ts +55 -6
- package/src/actions/ui/slides.ts +1 -8
- package/src/actions/ui/test/answers.test.ts +115 -0
- package/src/actions/ui/test/slides.test.ts +30 -0
- package/src/common/index.ts +0 -7
- package/src/index.tsx +1 -3
- package/src/reducers/data/progression.ts +4 -7
- package/src/reducers/data/slides.ts +2 -3
- package/src/reducers/data/test/progression.test.ts +15 -31
- package/src/reducers/ui/answers.ts +5 -9
- package/src/reducers/ui/index.ts +4 -1
- package/src/reducers/ui/slide.ts +43 -0
- package/src/reducers/ui/test/answers.test.ts +29 -4
- package/src/reducers/ui/test/current-slide-ref.test.ts +1 -1
- package/src/reducers/ui/test/navigation.test.ts +5 -5
- package/src/reducers/ui/test/slide.test.ts +15 -0
- package/src/test/util/services.mock.ts +94 -73
- package/src/types/common.ts +0 -30
- package/src/views/skills/index.ts +1 -5
- package/src/views/skills/test/skills.test.ts +101 -0
- package/src/views/slides/index.ts +38 -23
- package/src/views/slides/map-api-slide-to-ui.ts +146 -113
- package/src/views/slides/test/fixtures/free-text.ts +2 -1
- package/src/views/slides/test/fixtures/qcm-drag.ts +2 -1
- package/src/views/slides/test/fixtures/qcm-graphic.ts +2 -1
- package/src/views/slides/test/fixtures/qcm.ts +2 -1
- package/src/views/slides/test/fixtures/slider.ts +2 -1
- package/src/views/slides/test/fixtures/{select-template.ts → template.ts} +84 -5
- package/src/views/slides/test/index.test.ts +493 -0
- package/src/views/slides/test/map-api-slide-to-ui.test.ts +6 -11
- package/src/views/slides/test/slide.template.on-change.test.ts +92 -0
- package/es/fixtures/qcm-slide.d.ts +0 -2
- package/es/fixtures/qcm-slide.js +0 -33
- package/es/fixtures/temp-fixture.d.ts +0 -3
- package/es/fixtures/temp-fixture.js +0 -84
- package/es/views/slides/test/fixtures/select-template.d.ts +0 -3
- package/es/views/slides/test/fixtures/text-template.d.ts +0 -3
- package/es/views/slides/test/fixtures/text-template.js +0 -58
- package/lib/fixtures/qcm-slide.d.ts +0 -2
- package/lib/fixtures/qcm-slide.js +0 -33
- package/lib/fixtures/temp-fixture.d.ts +0 -3
- package/lib/fixtures/temp-fixture.js +0 -84
- package/lib/views/slides/test/fixtures/select-template.d.ts +0 -3
- package/lib/views/slides/test/fixtures/text-template.d.ts +0 -3
- package/lib/views/slides/test/fixtures/text-template.js +0 -58
- package/src/fixtures/qcm-slide.ts +0 -35
- package/src/fixtures/temp-fixture.ts +0 -94
- package/src/views/slides/test/fixtures/text-template.ts +0 -61
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export const correctionPopinProps = {
|
|
2
|
-
klf: {
|
|
3
|
-
label: 'Key learning factor',
|
|
4
|
-
tooltip: 'Some tooltip info.',
|
|
5
|
-
onClick: () => {
|
|
6
|
-
console.log('klf onClick');
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
information: {
|
|
10
|
-
label: 'Key learning factor',
|
|
11
|
-
message: 'info msg'
|
|
12
|
-
},
|
|
13
|
-
next: {
|
|
14
|
-
label: 'Next',
|
|
15
|
-
ariaLabel: 'Next'
|
|
16
|
-
},
|
|
17
|
-
successLabel: 'CORRECT ANSWER',
|
|
18
|
-
failureLabel: 'WRONG ANSWER'
|
|
19
|
-
};
|
|
20
|
-
const confettiAnimationProps = {
|
|
21
|
-
'aria-label': 'aria lottie',
|
|
22
|
-
'data-name': 'default-lottie',
|
|
23
|
-
className: undefined,
|
|
24
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
25
|
-
loop: undefined,
|
|
26
|
-
autoplay: true,
|
|
27
|
-
rendererSettings: {
|
|
28
|
-
hideOnTransparent: false,
|
|
29
|
-
animationClassName: ''
|
|
30
|
-
},
|
|
31
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
|
|
32
|
-
animationControl: undefined
|
|
33
|
-
};
|
|
34
|
-
const starAnimationProps = {
|
|
35
|
-
'aria-label': 'Review Card Congrats Container',
|
|
36
|
-
'data-name': 'card-star',
|
|
37
|
-
animationLottie: {
|
|
38
|
-
'aria-label': 'aria lottie',
|
|
39
|
-
'data-name': 'default-lottie',
|
|
40
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
41
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg'
|
|
42
|
-
},
|
|
43
|
-
iconAriaLabel: 'Image without information',
|
|
44
|
-
cardType: 'card-star',
|
|
45
|
-
reviewCardTitle: 'You have won',
|
|
46
|
-
reviewCardValue: '100',
|
|
47
|
-
timerAnimation: 200
|
|
48
|
-
};
|
|
49
|
-
const rankAnimationProps = {
|
|
50
|
-
'aria-label': 'Review Card Congrats Container',
|
|
51
|
-
'data-name': 'card-rank',
|
|
52
|
-
animationLottie: {
|
|
53
|
-
'aria-label': 'aria lottie',
|
|
54
|
-
'data-name': 'default-lottie',
|
|
55
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
56
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg'
|
|
57
|
-
},
|
|
58
|
-
cardType: 'card-rank',
|
|
59
|
-
iconAriaLabel: 'Image without information',
|
|
60
|
-
reviewCardTitle: 'You are now',
|
|
61
|
-
reviewCardValue: '14',
|
|
62
|
-
rankSuffix: 'th',
|
|
63
|
-
timerAnimation: 200
|
|
64
|
-
};
|
|
65
|
-
export const congratsProps = {
|
|
66
|
-
'aria-label': 'Review Congratulations',
|
|
67
|
-
'data-name': 'review-congrats',
|
|
68
|
-
animationLottie: confettiAnimationProps,
|
|
69
|
-
title: 'Congratulations!',
|
|
70
|
-
cardCongratsStar: starAnimationProps,
|
|
71
|
-
cardCongratsRank: rankAnimationProps,
|
|
72
|
-
buttonRevising: {
|
|
73
|
-
'aria-label': 'Continue revising button',
|
|
74
|
-
label: 'Continue revising',
|
|
75
|
-
onClick: () => console.log('Continue revising'),
|
|
76
|
-
type: 'tertiary'
|
|
77
|
-
},
|
|
78
|
-
buttonRevisingSkill: {
|
|
79
|
-
label: 'Revise another skill',
|
|
80
|
-
'aria-label': 'Revise another skill button',
|
|
81
|
-
onClick: () => console.log('Revise another skill'),
|
|
82
|
-
type: 'primary'
|
|
83
|
-
}
|
|
84
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import noop from 'lodash/fp/noop';
|
|
2
|
-
export const textTemplateSlide = {
|
|
3
|
-
question: {
|
|
4
|
-
content: {
|
|
5
|
-
media: {
|
|
6
|
-
src: [],
|
|
7
|
-
posters: [],
|
|
8
|
-
subtitles: []
|
|
9
|
-
},
|
|
10
|
-
template: 'Un {{inp58402}} model.',
|
|
11
|
-
choices: [
|
|
12
|
-
{
|
|
13
|
-
media: {
|
|
14
|
-
src: [],
|
|
15
|
-
posters: [],
|
|
16
|
-
subtitles: []
|
|
17
|
-
},
|
|
18
|
-
items: [],
|
|
19
|
-
_id: '62433c2c58920f02c4950de0',
|
|
20
|
-
type: 'text',
|
|
21
|
-
name: 'inp58402',
|
|
22
|
-
id: '62433c2c58920f02c4950de0'
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
type: 'template',
|
|
27
|
-
header: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
28
|
-
explanation: 'Saisissez votre réponse (en anglais).'
|
|
29
|
-
},
|
|
30
|
-
klf: "Le mentoré voit dans son mentor un <i>role model</i>, c'est-à-dire un exemple inspirant qui lui permet de se projeter dans un poste à responsabilité.",
|
|
31
|
-
tips: "L'origine de l'expression <i>role model</i> est attribué au sociologue Robert K. Merton.",
|
|
32
|
-
universalRef: 'sli_VJKQonm2g',
|
|
33
|
-
hasClue: true,
|
|
34
|
-
id: 'sli_VJKQonm2g',
|
|
35
|
-
parentContentTitle: {
|
|
36
|
-
title: 'Using redux',
|
|
37
|
-
type: 'chapter'
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const textTemplateUISlide = {
|
|
41
|
-
questionText: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
42
|
-
answerUI: {
|
|
43
|
-
help: 'Saisissez votre réponse (en anglais).',
|
|
44
|
-
model: {
|
|
45
|
-
type: 'template',
|
|
46
|
-
template: 'Un {{inp58402}} model.',
|
|
47
|
-
answers: [
|
|
48
|
-
{
|
|
49
|
-
type: 'text',
|
|
50
|
-
name: 'inp58402',
|
|
51
|
-
placeholder: 'Type here',
|
|
52
|
-
value: undefined,
|
|
53
|
-
onChange: noop
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import noop from 'lodash/fp/noop';
|
|
2
|
-
export var slide = {
|
|
3
|
-
questionText: 'QCM',
|
|
4
|
-
answerUI: {
|
|
5
|
-
help: '__help',
|
|
6
|
-
model: {
|
|
7
|
-
type: 'qcm',
|
|
8
|
-
answers: [
|
|
9
|
-
{
|
|
10
|
-
selected: false,
|
|
11
|
-
title: 'choix1',
|
|
12
|
-
help: '(help choix1)',
|
|
13
|
-
ariaLabel: '__ariaLabel1',
|
|
14
|
-
onClick: noop
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
selected: false,
|
|
18
|
-
title: 'choix2',
|
|
19
|
-
help: '(help choix2)',
|
|
20
|
-
ariaLabel: '__ariaLabel2',
|
|
21
|
-
onClick: noop
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
selected: false,
|
|
25
|
-
title: 'choix3',
|
|
26
|
-
help: '(help choix3)',
|
|
27
|
-
ariaLabel: '__ariaLabel3',
|
|
28
|
-
onClick: noop
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export var correctionPopinProps = {
|
|
2
|
-
klf: {
|
|
3
|
-
label: 'Key learning factor',
|
|
4
|
-
tooltip: 'Some tooltip info.',
|
|
5
|
-
onClick: function () {
|
|
6
|
-
console.log('klf onClick');
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
information: {
|
|
10
|
-
label: 'Key learning factor',
|
|
11
|
-
message: 'info msg'
|
|
12
|
-
},
|
|
13
|
-
next: {
|
|
14
|
-
label: 'Next',
|
|
15
|
-
ariaLabel: 'Next'
|
|
16
|
-
},
|
|
17
|
-
successLabel: 'CORRECT ANSWER',
|
|
18
|
-
failureLabel: 'WRONG ANSWER'
|
|
19
|
-
};
|
|
20
|
-
var confettiAnimationProps = {
|
|
21
|
-
'aria-label': 'aria lottie',
|
|
22
|
-
'data-name': 'default-lottie',
|
|
23
|
-
className: undefined,
|
|
24
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
25
|
-
loop: undefined,
|
|
26
|
-
autoplay: true,
|
|
27
|
-
rendererSettings: {
|
|
28
|
-
hideOnTransparent: false,
|
|
29
|
-
animationClassName: ''
|
|
30
|
-
},
|
|
31
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
|
|
32
|
-
animationControl: undefined
|
|
33
|
-
};
|
|
34
|
-
var starAnimationProps = {
|
|
35
|
-
'aria-label': 'Review Card Congrats Container',
|
|
36
|
-
'data-name': 'card-star',
|
|
37
|
-
animationLottie: {
|
|
38
|
-
'aria-label': 'aria lottie',
|
|
39
|
-
'data-name': 'default-lottie',
|
|
40
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
41
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg'
|
|
42
|
-
},
|
|
43
|
-
iconAriaLabel: 'Image without information',
|
|
44
|
-
cardType: 'card-star',
|
|
45
|
-
reviewCardTitle: 'You have won',
|
|
46
|
-
reviewCardValue: '100',
|
|
47
|
-
timerAnimation: 200
|
|
48
|
-
};
|
|
49
|
-
var rankAnimationProps = {
|
|
50
|
-
'aria-label': 'Review Card Congrats Container',
|
|
51
|
-
'data-name': 'card-rank',
|
|
52
|
-
animationLottie: {
|
|
53
|
-
'aria-label': 'aria lottie',
|
|
54
|
-
'data-name': 'default-lottie',
|
|
55
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
56
|
-
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg'
|
|
57
|
-
},
|
|
58
|
-
cardType: 'card-rank',
|
|
59
|
-
iconAriaLabel: 'Image without information',
|
|
60
|
-
reviewCardTitle: 'You are now',
|
|
61
|
-
reviewCardValue: '14',
|
|
62
|
-
rankSuffix: 'th',
|
|
63
|
-
timerAnimation: 200
|
|
64
|
-
};
|
|
65
|
-
export var congratsProps = {
|
|
66
|
-
'aria-label': 'Review Congratulations',
|
|
67
|
-
'data-name': 'review-congrats',
|
|
68
|
-
animationLottie: confettiAnimationProps,
|
|
69
|
-
title: 'Congratulations!',
|
|
70
|
-
cardCongratsStar: starAnimationProps,
|
|
71
|
-
cardCongratsRank: rankAnimationProps,
|
|
72
|
-
buttonRevising: {
|
|
73
|
-
'aria-label': 'Continue revising button',
|
|
74
|
-
label: 'Continue revising',
|
|
75
|
-
onClick: function () { return console.log('Continue revising'); },
|
|
76
|
-
type: 'tertiary'
|
|
77
|
-
},
|
|
78
|
-
buttonRevisingSkill: {
|
|
79
|
-
label: 'Revise another skill',
|
|
80
|
-
'aria-label': 'Revise another skill button',
|
|
81
|
-
onClick: function () { return console.log('Revise another skill'); },
|
|
82
|
-
type: 'primary'
|
|
83
|
-
}
|
|
84
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import noop from 'lodash/fp/noop';
|
|
2
|
-
export var textTemplateSlide = {
|
|
3
|
-
question: {
|
|
4
|
-
content: {
|
|
5
|
-
media: {
|
|
6
|
-
src: [],
|
|
7
|
-
posters: [],
|
|
8
|
-
subtitles: []
|
|
9
|
-
},
|
|
10
|
-
template: 'Un {{inp58402}} model.',
|
|
11
|
-
choices: [
|
|
12
|
-
{
|
|
13
|
-
media: {
|
|
14
|
-
src: [],
|
|
15
|
-
posters: [],
|
|
16
|
-
subtitles: []
|
|
17
|
-
},
|
|
18
|
-
items: [],
|
|
19
|
-
_id: '62433c2c58920f02c4950de0',
|
|
20
|
-
type: 'text',
|
|
21
|
-
name: 'inp58402',
|
|
22
|
-
id: '62433c2c58920f02c4950de0'
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
type: 'template',
|
|
27
|
-
header: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
28
|
-
explanation: 'Saisissez votre réponse (en anglais).'
|
|
29
|
-
},
|
|
30
|
-
klf: "Le mentoré voit dans son mentor un <i>role model</i>, c'est-à-dire un exemple inspirant qui lui permet de se projeter dans un poste à responsabilité.",
|
|
31
|
-
tips: "L'origine de l'expression <i>role model</i> est attribué au sociologue Robert K. Merton.",
|
|
32
|
-
universalRef: 'sli_VJKQonm2g',
|
|
33
|
-
hasClue: true,
|
|
34
|
-
id: 'sli_VJKQonm2g',
|
|
35
|
-
parentContentTitle: {
|
|
36
|
-
title: 'Using redux',
|
|
37
|
-
type: 'chapter'
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export var textTemplateUISlide = {
|
|
41
|
-
questionText: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
42
|
-
answerUI: {
|
|
43
|
-
help: 'Saisissez votre réponse (en anglais).',
|
|
44
|
-
model: {
|
|
45
|
-
type: 'template',
|
|
46
|
-
template: 'Un {{inp58402}} model.',
|
|
47
|
-
answers: [
|
|
48
|
-
{
|
|
49
|
-
type: 'text',
|
|
50
|
-
name: 'inp58402',
|
|
51
|
-
placeholder: 'Type here',
|
|
52
|
-
value: undefined,
|
|
53
|
-
onChange: noop
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import noop from 'lodash/fp/noop';
|
|
2
|
-
import {UISlide} from '../types/common';
|
|
3
|
-
|
|
4
|
-
export const slide: Pick<UISlide, 'questionText' | 'answerUI'> = {
|
|
5
|
-
questionText: 'QCM',
|
|
6
|
-
answerUI: {
|
|
7
|
-
help: '__help',
|
|
8
|
-
model: {
|
|
9
|
-
type: 'qcm',
|
|
10
|
-
answers: [
|
|
11
|
-
{
|
|
12
|
-
selected: false,
|
|
13
|
-
title: 'choix1',
|
|
14
|
-
help: '(help choix1)',
|
|
15
|
-
ariaLabel: '__ariaLabel1',
|
|
16
|
-
onClick: noop
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
selected: false,
|
|
20
|
-
title: 'choix2',
|
|
21
|
-
help: '(help choix2)',
|
|
22
|
-
ariaLabel: '__ariaLabel2',
|
|
23
|
-
onClick: noop
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
selected: false,
|
|
27
|
-
title: 'choix3',
|
|
28
|
-
help: '(help choix3)',
|
|
29
|
-
ariaLabel: '__ariaLabel3',
|
|
30
|
-
onClick: noop
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import {SlidesViewProps, CorrectionPopinProps} from '../views/slides';
|
|
3
|
-
|
|
4
|
-
export const correctionPopinProps: CorrectionPopinProps = {
|
|
5
|
-
klf: {
|
|
6
|
-
label: 'Key learning factor',
|
|
7
|
-
tooltip: 'Some tooltip info.',
|
|
8
|
-
onClick: () => {
|
|
9
|
-
console.log('klf onClick');
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
information: {
|
|
13
|
-
label: 'Key learning factor',
|
|
14
|
-
message: 'info msg'
|
|
15
|
-
},
|
|
16
|
-
next: {
|
|
17
|
-
label: 'Next',
|
|
18
|
-
ariaLabel: 'Next'
|
|
19
|
-
},
|
|
20
|
-
successLabel: 'CORRECT ANSWER',
|
|
21
|
-
failureLabel: 'WRONG ANSWER'
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const confettiAnimationProps = {
|
|
25
|
-
'aria-label': 'aria lottie',
|
|
26
|
-
'data-name': 'default-lottie',
|
|
27
|
-
className: undefined,
|
|
28
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
29
|
-
loop: undefined,
|
|
30
|
-
autoplay: true,
|
|
31
|
-
rendererSettings: {
|
|
32
|
-
hideOnTransparent: false,
|
|
33
|
-
animationClassName: ''
|
|
34
|
-
},
|
|
35
|
-
ie11ImageBackup:
|
|
36
|
-
'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
|
|
37
|
-
animationControl: undefined
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const starAnimationProps = {
|
|
41
|
-
'aria-label': 'Review Card Congrats Container',
|
|
42
|
-
'data-name': 'card-star',
|
|
43
|
-
animationLottie: {
|
|
44
|
-
'aria-label': 'aria lottie',
|
|
45
|
-
'data-name': 'default-lottie',
|
|
46
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
47
|
-
ie11ImageBackup:
|
|
48
|
-
'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg'
|
|
49
|
-
},
|
|
50
|
-
iconAriaLabel: 'Image without information',
|
|
51
|
-
cardType: 'card-star',
|
|
52
|
-
reviewCardTitle: 'You have won',
|
|
53
|
-
reviewCardValue: '100',
|
|
54
|
-
timerAnimation: 200
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const rankAnimationProps = {
|
|
58
|
-
'aria-label': 'Review Card Congrats Container',
|
|
59
|
-
'data-name': 'card-rank',
|
|
60
|
-
animationLottie: {
|
|
61
|
-
'aria-label': 'aria lottie',
|
|
62
|
-
'data-name': 'default-lottie',
|
|
63
|
-
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
64
|
-
ie11ImageBackup:
|
|
65
|
-
'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg'
|
|
66
|
-
},
|
|
67
|
-
cardType: 'card-rank',
|
|
68
|
-
iconAriaLabel: 'Image without information',
|
|
69
|
-
reviewCardTitle: 'You are now',
|
|
70
|
-
reviewCardValue: '14',
|
|
71
|
-
rankSuffix: 'th',
|
|
72
|
-
timerAnimation: 200
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const congratsProps: SlidesViewProps['congratsProps'] = {
|
|
76
|
-
'aria-label': 'Review Congratulations',
|
|
77
|
-
'data-name': 'review-congrats',
|
|
78
|
-
animationLottie: confettiAnimationProps,
|
|
79
|
-
title: 'Congratulations!',
|
|
80
|
-
cardCongratsStar: starAnimationProps,
|
|
81
|
-
cardCongratsRank: rankAnimationProps,
|
|
82
|
-
buttonRevising: {
|
|
83
|
-
'aria-label': 'Continue revising button',
|
|
84
|
-
label: 'Continue revising',
|
|
85
|
-
onClick: () => console.log('Continue revising'),
|
|
86
|
-
type: 'tertiary'
|
|
87
|
-
},
|
|
88
|
-
buttonRevisingSkill: {
|
|
89
|
-
label: 'Revise another skill',
|
|
90
|
-
'aria-label': 'Revise another skill button',
|
|
91
|
-
onClick: () => console.log('Revise another skill'),
|
|
92
|
-
type: 'primary'
|
|
93
|
-
}
|
|
94
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import noop from 'lodash/fp/noop';
|
|
2
|
-
import {SlideFromAPI, UISlide} from '../../../../types/common';
|
|
3
|
-
|
|
4
|
-
export const textTemplateSlide: SlideFromAPI = {
|
|
5
|
-
question: {
|
|
6
|
-
content: {
|
|
7
|
-
media: {
|
|
8
|
-
src: [],
|
|
9
|
-
posters: [],
|
|
10
|
-
subtitles: []
|
|
11
|
-
},
|
|
12
|
-
template: 'Un {{inp58402}} model.',
|
|
13
|
-
choices: [
|
|
14
|
-
{
|
|
15
|
-
media: {
|
|
16
|
-
src: [],
|
|
17
|
-
posters: [],
|
|
18
|
-
subtitles: []
|
|
19
|
-
},
|
|
20
|
-
items: [],
|
|
21
|
-
_id: '62433c2c58920f02c4950de0',
|
|
22
|
-
type: 'text',
|
|
23
|
-
name: 'inp58402',
|
|
24
|
-
id: '62433c2c58920f02c4950de0'
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
type: 'template',
|
|
29
|
-
header: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
30
|
-
explanation: 'Saisissez votre réponse (en anglais).'
|
|
31
|
-
},
|
|
32
|
-
klf: "Le mentoré voit dans son mentor un <i>role model</i>, c'est-à-dire un exemple inspirant qui lui permet de se projeter dans un poste à responsabilité.",
|
|
33
|
-
tips: "L'origine de l'expression <i>role model</i> est attribué au sociologue Robert K. Merton.",
|
|
34
|
-
universalRef: 'sli_VJKQonm2g',
|
|
35
|
-
hasClue: true,
|
|
36
|
-
id: 'sli_VJKQonm2g',
|
|
37
|
-
parentContentTitle: {
|
|
38
|
-
title: 'Using redux',
|
|
39
|
-
type: 'chapter'
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const textTemplateUISlide: Partial<UISlide> = {
|
|
44
|
-
questionText: 'Comment le protégé doit-il percevoir son mentor ?',
|
|
45
|
-
answerUI: {
|
|
46
|
-
help: 'Saisissez votre réponse (en anglais).',
|
|
47
|
-
model: {
|
|
48
|
-
type: 'template',
|
|
49
|
-
template: 'Un {{inp58402}} model.',
|
|
50
|
-
answers: [
|
|
51
|
-
{
|
|
52
|
-
type: 'text',
|
|
53
|
-
name: 'inp58402',
|
|
54
|
-
placeholder: 'Type here',
|
|
55
|
-
value: undefined,
|
|
56
|
-
onChange: noop
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|