@coorpacademy/app-review 0.13.9-alpha.36 → 0.14.0
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/types/slides.d.ts +0 -1
- package/es/views/slides/map-api-slide-to-ui.js +1 -18
- package/lib/types/slides.d.ts +0 -1
- package/lib/views/slides/map-api-slide-to-ui.js +1 -18
- package/locales/.mtslconfig.json +1 -0
- package/locales/bs/review.json +1 -4
- package/locales/cs/review.json +1 -4
- package/locales/et/review.json +1 -4
- package/locales/hr/review.json +1 -4
- package/locales/hy/review.json +1 -4
- package/locales/nl/review.json +1 -4
- package/locales/zh/review.json +1 -4
- package/locales/zh_TW/review.json +1 -4
- package/package.json +5 -5
package/es/types/slides.d.ts
CHANGED
|
@@ -163,30 +163,13 @@ const getAnswerUIModel = (question, answers, dispatch, translate) => {
|
|
|
163
163
|
throw new Error(`${type} is not an handled question.type`);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
const getMedia = (media) => {
|
|
167
|
-
if (!media)
|
|
168
|
-
return;
|
|
169
|
-
const { type } = media;
|
|
170
|
-
const resource = get('src.0', media);
|
|
171
|
-
switch (type) {
|
|
172
|
-
case 'img':
|
|
173
|
-
case 'audio':
|
|
174
|
-
return {
|
|
175
|
-
...resource,
|
|
176
|
-
type,
|
|
177
|
-
url: get('url', resource)
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
166
|
export const mapApiSlideToUi = (dispatch, translate) => (slide, answers) => {
|
|
182
167
|
const questionText = getOr('', 'question.header', slide);
|
|
183
|
-
const media = get('question.medias.0', slide);
|
|
184
168
|
return {
|
|
185
169
|
questionText,
|
|
186
170
|
answerUI: {
|
|
187
171
|
model: getAnswerUIModel(slide.question, answers, dispatch, translate),
|
|
188
|
-
help: getHelp(slide)
|
|
189
|
-
media: getMedia(media)
|
|
172
|
+
help: getHelp(slide)
|
|
190
173
|
}
|
|
191
174
|
};
|
|
192
175
|
};
|
package/lib/types/slides.d.ts
CHANGED
|
@@ -167,30 +167,13 @@ const getAnswerUIModel = (question, answers, dispatch, translate) => {
|
|
|
167
167
|
throw new Error(`${type} is not an handled question.type`);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
const getMedia = (media) => {
|
|
171
|
-
if (!media)
|
|
172
|
-
return;
|
|
173
|
-
const { type } = media;
|
|
174
|
-
const resource = (0, fp_1.get)('src.0', media);
|
|
175
|
-
switch (type) {
|
|
176
|
-
case 'img':
|
|
177
|
-
case 'audio':
|
|
178
|
-
return {
|
|
179
|
-
...resource,
|
|
180
|
-
type,
|
|
181
|
-
url: (0, fp_1.get)('url', resource)
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
170
|
const mapApiSlideToUi = (dispatch, translate) => (slide, answers) => {
|
|
186
171
|
const questionText = (0, fp_1.getOr)('', 'question.header', slide);
|
|
187
|
-
const media = (0, fp_1.get)('question.medias.0', slide);
|
|
188
172
|
return {
|
|
189
173
|
questionText,
|
|
190
174
|
answerUI: {
|
|
191
175
|
model: getAnswerUIModel(slide.question, answers, dispatch, translate),
|
|
192
|
-
help: getHelp(slide)
|
|
193
|
-
media: getMedia(media)
|
|
176
|
+
help: getHelp(slide)
|
|
194
177
|
}
|
|
195
178
|
};
|
|
196
179
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ignore_dirs":[]}
|
package/locales/bs/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Još nemate vještinu za reviziju",
|
|
55
55
|
"text": "Prvo morate završiti kurseve prije nego što možete provjeriti različite vještine."
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Animacija stečenih zvijezda",
|
|
58
|
-
"New rank animation": "Nova animacija ranga",
|
|
59
|
-
"Congratulations confetti animation": "Čestitamo konfeti animacija"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/cs/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Dosud nemáte k revizi žádnou dovednost",
|
|
55
55
|
"text": "Nejprve musíte dokončit kursy a teprve poté si zobrazíte různé dovednosti."
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Animace získaných hvězd",
|
|
58
|
-
"New rank animation": "Nová animace hodnosti",
|
|
59
|
-
"Congratulations confetti animation": "Gratulujeme animace konfet"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/et/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Teil pole veel ülevaatamiseks oskusi",
|
|
55
55
|
"text": "Enne erinevate oskuste ülevaatamist peate esmalt läbima kursused."
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Omandatud tähtede animatsioon",
|
|
58
|
-
"New rank animation": "Uus järgu animatsioon",
|
|
59
|
-
"Congratulations confetti animation": "Õnnitleme konfeti animatsiooni"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/hr/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Još nemate vještinu za reviziju",
|
|
55
55
|
"text": "Prvo morate završiti tečajeve prije nego što možete pregledati različite vještine."
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Dobivena animacija zvijezda",
|
|
58
|
-
"New rank animation": "Nova animacija ranga",
|
|
59
|
-
"Congratulations confetti animation": "Čestitke, animacija s konfetima"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/hy/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Դեռևս վերանայելու հմտություն չունեք",
|
|
55
55
|
"text": "Սկզբում դուք պետք է ավարտեք դասընթացները, որպեսզի կարողանաք վերանայել տարբեր հմտություններ:"
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Ձեռք բերված աստղերի անիմացիա",
|
|
58
|
-
"New rank animation": "Նոր աստիճանի անիմացիա",
|
|
59
|
-
"Congratulations confetti animation": "Շնորհավոր կոնֆետի անիմացիա"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/nl/review.json
CHANGED
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"no_skills": {
|
|
54
54
|
"title": "Je hebt nog geen vaardigheden om aan te passen",
|
|
55
55
|
"text": "Je moet eerst cursussen afronden voor je verschillende vaardigheden kunt beoordelen."
|
|
56
|
-
}
|
|
57
|
-
"Acquired stars animation": "Verworven sterren animatie",
|
|
58
|
-
"New rank animation": "Nieuwe rang animatie",
|
|
59
|
-
"Congratulations confetti animation": "Gefeliciteerd confetti-animatie"
|
|
56
|
+
}
|
|
60
57
|
}
|
package/locales/zh/review.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"main": "lib/index.js",
|
|
36
36
|
"module": "es/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@coorpacademy/components": "11.
|
|
38
|
+
"@coorpacademy/components": "11.3.0",
|
|
39
39
|
"@coorpacademy/progression-engine": "11.5.3",
|
|
40
40
|
"@coorpacademy/redux-task": "1.1.6",
|
|
41
|
-
"@coorpacademy/review-services": "1.
|
|
42
|
-
"@coorpacademy/review-services-mocks": "1.
|
|
41
|
+
"@coorpacademy/review-services": "1.1.0",
|
|
42
|
+
"@coorpacademy/review-services-mocks": "1.1.1",
|
|
43
43
|
"@coorpacademy/translate": "6.2.0",
|
|
44
44
|
"cross-fetch": "^3.1.5",
|
|
45
45
|
"jwt-decode": "^3.1.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"webpack-cli": "^4.10.0",
|
|
75
75
|
"webpack-dev-server": "^4.11.1"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "19ad2bc9fd3531d637fe0aede0727cc87ab049be"
|
|
78
78
|
}
|