@medicus.ai/medicus-report-pdf-generator 1.0.254 → 1.0.255
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/assets/sanusx/css/sanusx_report.css +2 -2
- package/lib/sanusx_report_generator.js +35 -33
- package/locales/wellbeing/de.json +304 -292
- package/locales/wellbeing/en.json +12 -0
- package/package.json +1 -1
- package/templates/sanusx/blocks/personal-details.html +2 -2
- package/templates/sanusx/blocks/predictions-section.html +15 -14
|
@@ -656,11 +656,11 @@ span.speedometer-value-down {
|
|
|
656
656
|
background: #F58F90;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
.insight-container
|
|
659
|
+
.insight-container .score-lines .score-line.highlight-blue {
|
|
660
660
|
background: #80A9A7;
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
.insight-container
|
|
663
|
+
.insight-container .score-lines .score-line.highlight-green {
|
|
664
664
|
background: #CCDDDC;
|
|
665
665
|
}
|
|
666
666
|
|
|
@@ -87,6 +87,7 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
87
87
|
|
|
88
88
|
/*check if the language is an RTL language*/
|
|
89
89
|
localeService.setLocale(language);
|
|
90
|
+
console.log(localeService.getLocales())
|
|
90
91
|
debugLog("pdf language:", language);
|
|
91
92
|
|
|
92
93
|
/*choose the right template*/
|
|
@@ -121,15 +122,6 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
let highestElementName = "";
|
|
125
|
-
if (highestAvatarScorePartId == 1) {
|
|
126
|
-
highestElementName = data.PartScoresHighestValues.lifeStyle;
|
|
127
|
-
} else if (highestAvatarScorePartId == 2) {
|
|
128
|
-
highestElementName = data.PartScoresHighestValues.body;
|
|
129
|
-
} else {
|
|
130
|
-
highestElementName = data.PartScoresHighestValues.mind;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
125
|
/* Header */
|
|
134
126
|
|
|
135
127
|
headerTemplate = headerTemplate
|
|
@@ -152,16 +144,18 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
152
144
|
.replace("{{weaknessImage}}", path.resolve(__dirname + '/../assets/sanusx/images/weakness_icon.png'))
|
|
153
145
|
.replace("{{WeaknessTitle}}", localeService.t('WEAKNESS'))
|
|
154
146
|
.replace("{{WeaknessMsg}}", localeService.t('WEAKNESS-msg'))
|
|
155
|
-
.replace("{{highestElementName}}",
|
|
147
|
+
.replace("{{highestElementName}}", data.PartScoresHighestValues.lifeStyle[0].name + ", " + data.PartScoresHighestValues.body[0].name + ", " + data.PartScoresHighestValues.mind[0].name)
|
|
156
148
|
.replace("{{lowestElementScore}}", lowestElementScore.name)
|
|
157
149
|
|
|
158
150
|
/* Personal Details section */
|
|
159
|
-
let
|
|
151
|
+
let physicalScoreRounded = data.calculation.physicalScore
|
|
152
|
+
let physicalScore = Number(Math.round(physicalScoreRounded + 'e' + 1) + 'e-' + 1)
|
|
160
153
|
let physicalAmount = ((physicalScore > 40 && physicalScore < 70) ? 255 : (physicalScore >= 70) ? 253 : 214);
|
|
161
154
|
let physicalColor = (physicalScore > 40 && physicalScore < 70) ? second_level_color : (physicalScore >= 70) ? third_level_color : first_level_color;
|
|
162
155
|
|
|
163
156
|
const rotatePhysicalAmount = (physicalScore / 100) * physicalAmount;
|
|
164
|
-
let
|
|
157
|
+
let psychologicalScoreRounded = data.calculation.psychologicalScore
|
|
158
|
+
let psychologicalScore = Number(Math.round(psychologicalScoreRounded + 'e' + 1) + 'e-' + 1)
|
|
165
159
|
let psychologicalAmount = ((psychologicalScore > 40 && psychologicalScore < 70) ? 255 : (psychologicalScore >= 70) ? 253 : 214);
|
|
166
160
|
let psychologicalColor = (psychologicalScore > 40 && psychologicalScore < 70) ? second_level_color : (psychologicalScore >= 70) ? third_level_color : first_level_color;
|
|
167
161
|
const rotatePsychologicalAmount = (psychologicalScore / 100) * psychologicalAmount;
|
|
@@ -169,14 +163,12 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
169
163
|
let physicalScoreImage = (physicalScore > 40 && physicalScore < 70) ? "med" : (physicalScore >= 70) ? 'high' : 'low';
|
|
170
164
|
|
|
171
165
|
|
|
172
|
-
personalDetailsSectionTemplate = personalDetailsSectionTemplate.replace("{{physicalScore}}",
|
|
173
|
-
.replace("{{physicalScoreDecimalPart}}", parseFloat((data.calculation.physicalScore).toFixed(1) % 1).toFixed(1).substring(1))
|
|
166
|
+
personalDetailsSectionTemplate = personalDetailsSectionTemplate.replace("{{physicalScore}}", physicalScore)
|
|
174
167
|
.replace("{{physicalScoreStatement}}", data.calculation.physicalScoreStatement)
|
|
175
168
|
.replace("{{PhysicalWord}}", localeService.t('physicalScore'))
|
|
176
169
|
.replace(/{{rotatePhysicalAmount}}/gi, rotatePhysicalAmount)
|
|
177
170
|
.replace(/{{physicalColor}}/gi, physicalColor)
|
|
178
|
-
.replace("{{psychologicalScore}}",
|
|
179
|
-
.replace("{{psychologicalScoreDecimalPart}}", parseFloat((data.calculation.psychologicalScore).toFixed(1) % 1).toFixed(1).substring(1))
|
|
171
|
+
.replace("{{psychologicalScore}}", psychologicalScore)
|
|
180
172
|
.replace("{{psychologicalWord}}", localeService.t('psychologicalScore'))
|
|
181
173
|
.replace("{{psychologicalScoreStatement}}", data.calculation.psychologicalScoreStatement)
|
|
182
174
|
.replace(/{{rotatePsychologicalAmount}}/gi, rotatePsychologicalAmount)
|
|
@@ -205,29 +197,37 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
205
197
|
let predictedBodyMsg, predictedLifestyleMsg, predictedHeartMsg = ''
|
|
206
198
|
let finalScore = 0;
|
|
207
199
|
if (!data.PartScoresHighestValues.body[0].isPredictiveElement) {
|
|
208
|
-
predictedBodyMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.body[0].
|
|
200
|
+
predictedBodyMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.body[0].predictiveAnswer)
|
|
209
201
|
} else {
|
|
210
202
|
finalScore++
|
|
211
|
-
predictedBodyMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.body[0].
|
|
203
|
+
predictedBodyMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.body[0].predictiveAnswer)
|
|
212
204
|
}
|
|
213
205
|
if (!data.PartScoresHighestValues.mind[0].isPredictiveElement) {
|
|
214
|
-
predictedHeartMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.mind[0].
|
|
206
|
+
predictedHeartMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.mind[0].predictiveAnswer)
|
|
215
207
|
} else {
|
|
216
208
|
finalScore++
|
|
217
|
-
predictedHeartMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.mind[0].
|
|
209
|
+
predictedHeartMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.mind[0].predictiveAnswer)
|
|
218
210
|
}
|
|
219
211
|
if (!data.PartScoresHighestValues.lifeStyle[0].isPredictiveElement) {
|
|
220
|
-
predictedLifestyleMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].
|
|
212
|
+
predictedLifestyleMsg = localeService.t('youPredictedWrong').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].predictiveAnswer)
|
|
221
213
|
} else {
|
|
222
214
|
finalScore++
|
|
223
|
-
predictedLifestyleMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].
|
|
215
|
+
predictedLifestyleMsg = localeService.t('youPredictedRight').replace("{$value}", data.PartScoresHighestValues.lifeStyle[0].predictiveAnswer)
|
|
216
|
+
}
|
|
217
|
+
let predMsg=''
|
|
218
|
+
if (finalScore == 0) {
|
|
219
|
+
predMsg = localeService.t('predictionsDesc').replace("{$val}",finalScore)
|
|
220
|
+
} else if (finalScore == 1 || finalScore == 2) {
|
|
221
|
+
predMsg = localeService.t('predictionsDesc2').replace("{$val}",finalScore)
|
|
222
|
+
} else if (finalScore == 3) {
|
|
223
|
+
predMsg = localeService.t('predictionsDesc3').replace("{$val}",finalScore)
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
|
|
228
228
|
predictionsSectionTemplate = predictionsSectionTemplate
|
|
229
229
|
.replace("{{predictionsTitle}}", localeService.t('predictionsTitle'))
|
|
230
|
-
.replace("{{predictionsDesc}}",
|
|
230
|
+
.replace("{{predictionsDesc}}", predMsg)
|
|
231
231
|
.replace("{{bodyResultSanusX}}", localeService.t('bodyResultSanusX'))
|
|
232
232
|
.replace("{{lifestyleResultSanusX}}", localeService.t('lifeStyleResultSanusX'))
|
|
233
233
|
.replace("{{mindResultSanusX}}", localeService.t('mindResultSanusX'))
|
|
@@ -431,24 +431,26 @@ let renderInsightTips = (tips, elementScores) => {
|
|
|
431
431
|
insightClass = 'mind';
|
|
432
432
|
}
|
|
433
433
|
let roundScore = Math.round(score / 2)
|
|
434
|
-
let score_segments = Math.round(score / 2) + "/5";
|
|
434
|
+
let score_segments = Math.round(score / 2) + "/5"; // get score between 1 and 5
|
|
435
435
|
let line1Class, line2Class, line3Class, line4Class, line5Class = ''
|
|
436
|
-
if (roundScore === 1
|
|
436
|
+
if (roundScore === 1) {
|
|
437
437
|
line1Class = 'highlighted highlight-red'
|
|
438
438
|
}
|
|
439
|
-
if (roundScore
|
|
440
|
-
line2Class = 'highlighted highlight-red'
|
|
439
|
+
if (roundScore === 2) {
|
|
440
|
+
line1Class = line2Class = 'highlighted highlight-red'
|
|
441
441
|
}
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
|
|
443
|
+
if (roundScore === 3) {
|
|
444
|
+
line1Class = line2Class = line3Class = 'highlighted highlight-green'
|
|
444
445
|
}
|
|
445
|
-
if (roundScore === 4
|
|
446
|
-
line4Class = 'highlighted highlight-
|
|
446
|
+
if (roundScore === 4) {
|
|
447
|
+
line1Class = line2Class = line3Class = line4Class = 'highlighted highlight-green'
|
|
447
448
|
}
|
|
448
449
|
if (roundScore === 5) {
|
|
449
|
-
line5Class = 'highlighted highlight-blue'
|
|
450
|
+
line1Class = line2Class = line3Class = line4Class = line5Class = 'highlighted highlight-blue'
|
|
450
451
|
}
|
|
451
452
|
|
|
453
|
+
|
|
452
454
|
tipsHtml += "<div class='insight-container " + insightClass + "'>" +
|
|
453
455
|
"<div class='top-tip-section'>" +
|
|
454
456
|
"<div class='chunk-image'>" +
|
|
@@ -1,294 +1,306 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
2
|
+
"yearsOld": {
|
|
3
|
+
"message": "Jahre alt",
|
|
4
|
+
"description": "After the patient old in the header"
|
|
5
|
+
},
|
|
6
|
+
"lifeStyle": {
|
|
7
|
+
"message": "Lebensstil",
|
|
8
|
+
"description": "my lifestyle part header"
|
|
9
|
+
},
|
|
10
|
+
"body": {
|
|
11
|
+
"message": "Körper",
|
|
12
|
+
"description": "my body part header"
|
|
13
|
+
},
|
|
14
|
+
"mind": {
|
|
15
|
+
"message": "Geist/Psyche",
|
|
16
|
+
"description": "my mind part header"
|
|
17
|
+
},
|
|
18
|
+
"psychological": {
|
|
19
|
+
"message": "Psychologisch",
|
|
20
|
+
"description": "Psychological title"
|
|
21
|
+
},
|
|
22
|
+
"physical": {
|
|
23
|
+
"message": "Körperlich",
|
|
24
|
+
"description": "Physical title"
|
|
25
|
+
},
|
|
26
|
+
"weRecommend": {
|
|
27
|
+
"message": "Unsere Empfehlung",
|
|
28
|
+
"description": "tips section title"
|
|
29
|
+
},
|
|
30
|
+
"wellbeingReport": {
|
|
31
|
+
"message": "Wellbeing-Bericht",
|
|
32
|
+
"description": "Report header"
|
|
33
|
+
},
|
|
34
|
+
"scoresNote": {
|
|
35
|
+
"message": "Je höher dein Score ist, umso gesünder bist du",
|
|
36
|
+
"description": "scores note"
|
|
37
|
+
},
|
|
38
|
+
"reportHeaderDescription": {
|
|
39
|
+
"message": "Dein Wellbeingscore ist fast medaillenreif, nur dein Lebensstil und deine Gewohnheiten halten dich vom Podium ab. Wir helfen dir, es zu erklimmen!",
|
|
40
|
+
"description": "Text showing in the report header"
|
|
41
|
+
},
|
|
42
|
+
"sincerely": {
|
|
43
|
+
"message": "Mit freundlichen Grüßen",
|
|
44
|
+
"description": "part of message showing in email template preview in general configuration page"
|
|
45
|
+
},
|
|
46
|
+
"hospital": {
|
|
47
|
+
"message": "Krankenhaus",
|
|
48
|
+
"description": "name of field showing at add user"
|
|
49
|
+
},
|
|
50
|
+
"healthRisk": {
|
|
51
|
+
"message": "Gesundheitsrisiken",
|
|
52
|
+
"description": "part header"
|
|
53
|
+
},
|
|
54
|
+
"Disclaimer": {
|
|
55
|
+
"message": "Haftungsausschluss:",
|
|
56
|
+
"description": "Label showing in the footer as disclaimer title"
|
|
57
|
+
},
|
|
58
|
+
"Disclaimer Text": {
|
|
59
|
+
"message": "Dieser Bericht wurde nur für dich erstellt und zeigt deine Fortschritte, indem er dein aktuelles\n und dein früheres Gesundheitsverhalten vergleicht. Das hilft dir, deine Gesundheit immer weiter zu verbessern. Diese Angaben sind\n kein Ersatz für einen Arztbesuch und können keine Krankheiten oder medizinischen Probleme diagnostizieren. Stattdessen sollen sie dir\n Informationen zu deinen gesundheitlichen Risiken und zu deinem Wohlbefinden geben. Sie werden dir zur Verfügung gestellt, um dir beim Planen\n und Umsetzen gesundheitsfördernder neuer Gewohnheiten zu helfen:",
|
|
60
|
+
"description": "text showing in the footer as disclaimer"
|
|
61
|
+
},
|
|
62
|
+
"January": {
|
|
63
|
+
"message": "Januar",
|
|
64
|
+
"description": "Month name"
|
|
65
|
+
},
|
|
66
|
+
"February": {
|
|
67
|
+
"message": "Februar",
|
|
68
|
+
"description": "Month name"
|
|
69
|
+
},
|
|
70
|
+
"March": {
|
|
71
|
+
"message": "März",
|
|
72
|
+
"description": "Month name"
|
|
73
|
+
},
|
|
74
|
+
"April": {
|
|
75
|
+
"message": "April",
|
|
76
|
+
"description": "Month name"
|
|
77
|
+
},
|
|
78
|
+
"May": {
|
|
79
|
+
"message": "Mai",
|
|
80
|
+
"description": "Month name"
|
|
81
|
+
},
|
|
82
|
+
"June": {
|
|
83
|
+
"message": "Juni",
|
|
84
|
+
"description": "Month name"
|
|
85
|
+
},
|
|
86
|
+
"July": {
|
|
87
|
+
"message": "Juli",
|
|
88
|
+
"description": "Month name"
|
|
89
|
+
},
|
|
90
|
+
"August": {
|
|
91
|
+
"message": "August",
|
|
92
|
+
"description": "Month name"
|
|
93
|
+
},
|
|
94
|
+
"September": {
|
|
95
|
+
"message": "September",
|
|
96
|
+
"description": "Month name"
|
|
97
|
+
},
|
|
98
|
+
"October": {
|
|
99
|
+
"message": "Oktober",
|
|
100
|
+
"description": "Month name"
|
|
101
|
+
},
|
|
102
|
+
"November": {
|
|
103
|
+
"message": "November",
|
|
104
|
+
"description": "Month name"
|
|
105
|
+
},
|
|
106
|
+
"December": {
|
|
107
|
+
"message": "Dezember",
|
|
108
|
+
"description": "Month name"
|
|
109
|
+
},
|
|
110
|
+
"Moxie recommends...": {
|
|
111
|
+
"message": "Moxie empfiehlt ...",
|
|
112
|
+
"description": "Title in corporate report"
|
|
113
|
+
},
|
|
114
|
+
"Copyright": {
|
|
115
|
+
"message": "© Copyright NASCO Insurance 2020",
|
|
116
|
+
"description": "Copyright text in corporate report"
|
|
117
|
+
},
|
|
118
|
+
"Participant Analytics": {
|
|
119
|
+
"message": "Teilnehmer-Analytik",
|
|
120
|
+
"description": "Section title in corporate report"
|
|
121
|
+
},
|
|
122
|
+
"Page": {
|
|
123
|
+
"message": "Seite",
|
|
124
|
+
"description": "page number in the corporate report PDF"
|
|
125
|
+
},
|
|
126
|
+
"recommends...": {
|
|
127
|
+
"message": "empfiehlt...",
|
|
128
|
+
"description": "Title in corporate report"
|
|
129
|
+
},
|
|
130
|
+
"Sources": {
|
|
131
|
+
"message": "Quellen",
|
|
132
|
+
"descripition": "sources in the corporate report PDF"
|
|
133
|
+
},
|
|
134
|
+
"Hi": {
|
|
135
|
+
"message": "Hi",
|
|
136
|
+
"description": "Hi in the email body"
|
|
137
|
+
},
|
|
138
|
+
"Your Wellbeing Report": {
|
|
139
|
+
"message": "Your Wellbeing Report",
|
|
140
|
+
"description": "first sentence in the email body"
|
|
141
|
+
},
|
|
142
|
+
"Your detailed Wellbeing Report is ready!": {
|
|
143
|
+
"message": "Your detailed Wellbeing Report is ready!",
|
|
144
|
+
"description": "second sentence in the email body"
|
|
145
|
+
},
|
|
146
|
+
"Download the attached PDF to view your report.": {
|
|
147
|
+
"message": "Download the attached PDF to view your report.",
|
|
148
|
+
"description": "third sentence in the email body"
|
|
149
|
+
},
|
|
150
|
+
"Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.": {
|
|
151
|
+
"message": "Learn more about what your physical and psychological scores mean and get recommendations on how you can start improving your health and wellbeing today.",
|
|
152
|
+
"description": "fourth sentence in the email body"
|
|
153
|
+
},
|
|
154
|
+
"Congratulations, you’ve taken the first step towards better health. Keep going!": {
|
|
155
|
+
"message": "Congratulations, you’ve taken the first step towards better health. Keep going!",
|
|
156
|
+
"description": "fifth sentence in the email body"
|
|
157
|
+
},
|
|
158
|
+
"YourHealthHero": {
|
|
159
|
+
"message": "Dein Health Hero ist",
|
|
160
|
+
"description": "Shows on Result page"
|
|
161
|
+
},
|
|
162
|
+
"tiger": {
|
|
163
|
+
"message": "Der Tiger",
|
|
164
|
+
"description": "Shows on Result page"
|
|
165
|
+
},
|
|
166
|
+
"monkey": {
|
|
167
|
+
"message": "Der Affe",
|
|
168
|
+
"description": "Shows on Result page"
|
|
169
|
+
},
|
|
170
|
+
"owl": {
|
|
171
|
+
"message": "Die Eule",
|
|
172
|
+
"description": "Shows on Result page"
|
|
173
|
+
},
|
|
174
|
+
"owlDesc": {
|
|
175
|
+
"message": "Dein Health Hero bestimmt in welcher der drei Kategorien Lifestyle, Körper und Geist du am besten abschneidest.<br/>Als <b>Tiger</b> sticht deine <b>körperliche</b> Fitness eindeutig hervor.",
|
|
176
|
+
"description": "Shows on Result page"
|
|
177
|
+
},
|
|
178
|
+
"owlDetails": {
|
|
179
|
+
"message": "Die Eule ist entschlossen, denn sie ist sich ihres Scharfsinns und ihrer Weisheit bewusst. Die innere Ausgeglichenheit der Eule hat so manchen Streitlustigen eingeschüchtert. Ihre Resilienz dient als Quelle der Inspiration.",
|
|
180
|
+
"description": "Shows on Result page"
|
|
181
|
+
},
|
|
182
|
+
"monkeyDesc": {
|
|
183
|
+
"message": "Dein Health Hero bestimmt in welcher der drei Kategorien Lifestyle, Körper und Geist du am besten abschneidest.<br/>Als <b>Tiger</b> sticht deine <b>körperliche</b> Fitness eindeutig hervor.",
|
|
184
|
+
"description": "Shows on Result page"
|
|
185
|
+
},
|
|
186
|
+
"tigerDetails": {
|
|
187
|
+
"message": "Der Tiger ist stets zuversichtlich und selbstbewusst, denn er kann sich auf seinen starken Körper verlassen. Andere bewundern den Tiger für seine Fitness und lassen sich von seiner Beharrlichkeit und Hingabe zur körperlichen Gesundheit inspirieren.",
|
|
188
|
+
"description": "Shows on Result page"
|
|
189
|
+
},
|
|
190
|
+
"tigerDesc": {
|
|
191
|
+
"message": "Dein Health Hero bestimmt in welcher der drei Kategorien Lifestyle, Körper und Geist du am besten abschneidest.<br/>Als <b>Tiger</b> sticht deine <b>körperliche</b> Fitness eindeutig hervor.",
|
|
192
|
+
"description": "Shows on Result page"
|
|
193
|
+
},
|
|
194
|
+
"SUPERPOWER": {
|
|
195
|
+
"message": "SUPERKFRAFT",
|
|
196
|
+
"description": "Shows on Result page"
|
|
197
|
+
},
|
|
198
|
+
"tigerSUPERPOWER-msg": {
|
|
199
|
+
"message": "deine körperliche Fitness",
|
|
200
|
+
"description": "Shows on Result page"
|
|
201
|
+
},
|
|
202
|
+
"owlSUPERPOWER-msg": {
|
|
203
|
+
"message": "deine geistige Stärke",
|
|
204
|
+
"description": "Shows on Result page"
|
|
205
|
+
},
|
|
206
|
+
"monkeySUPERPOWER-msg": {
|
|
207
|
+
"message": "dein ausgewogener Lifestyle",
|
|
208
|
+
"description": "Shows on Result page"
|
|
209
|
+
},
|
|
210
|
+
"STRENGTH": {
|
|
211
|
+
"message": "STÄRKE",
|
|
212
|
+
"description": "Shows on Result page"
|
|
213
|
+
},
|
|
214
|
+
"WEAKNESS": {
|
|
215
|
+
"message": "SCHWÄCHE",
|
|
216
|
+
"description": "Shows on Result page"
|
|
217
|
+
},
|
|
218
|
+
"STRENGTH-msg": {
|
|
219
|
+
"message": "Ein Bereich, in dem du unschlagbar bist: Ernährung",
|
|
220
|
+
"description": "Shows on Result page"
|
|
221
|
+
},
|
|
222
|
+
"WEAKNESS-msg": {
|
|
223
|
+
"message": "Ein Thema, dem du dich stärker widmen solltest: Stress im Alltag",
|
|
224
|
+
"description": "Shows on Result page"
|
|
225
|
+
},
|
|
226
|
+
"psychologicalScore": {
|
|
227
|
+
"message": "Pschologischer Score",
|
|
228
|
+
"description": "Psychological title"
|
|
229
|
+
},
|
|
230
|
+
"physicalScore": {
|
|
231
|
+
"message": "Körperlicher Score",
|
|
232
|
+
"description": "Physical title"
|
|
233
|
+
},
|
|
234
|
+
"predictionsTitle": {
|
|
235
|
+
"message": "Wie gut war deine Selbsteinschätzung?",
|
|
236
|
+
"description": "Shows on Result page"
|
|
237
|
+
},
|
|
238
|
+
"predictionsDesc": {
|
|
239
|
+
"message": "Oje, das war wohl nichts - du hast {$val} richtig. Wir höchste Zeit die eigenen Stärken zu kennen! Hier sind deine Ergebnisse",
|
|
240
|
+
"description": "Shows on Result page"
|
|
241
|
+
},
|
|
242
|
+
"bodyResultSanusX": {
|
|
243
|
+
"message": "In der Kategorie “Körper” ist dein bestes Ergebnis",
|
|
244
|
+
"description": "Shows on Result page"
|
|
245
|
+
},
|
|
246
|
+
"mindResultSanusX": {
|
|
247
|
+
"message": "In der Kategorie “Geist” ist dein bestes Ergebnis",
|
|
248
|
+
"description": "Shows on Result page"
|
|
249
|
+
},
|
|
250
|
+
"lifeStyleResultSanusX": {
|
|
251
|
+
"message": "In der Kategorie “Lifestyle” ist dein bestes Ergebnis",
|
|
252
|
+
"description": "Shows on Result page"
|
|
253
|
+
},
|
|
254
|
+
"recommendationsTitle": {
|
|
255
|
+
"message": "Mavie’s Empfehlungen",
|
|
256
|
+
"description": "Shows on Result page"
|
|
257
|
+
},
|
|
258
|
+
"yourScoreIs": {
|
|
259
|
+
"message": "Dein Ergebnis ist ",
|
|
260
|
+
"description": "Shows on Result page"
|
|
261
|
+
},
|
|
262
|
+
"sanusXReportFooter": {
|
|
263
|
+
"message": "Die auf dieser Website bereitgestellten Informationen dienen nur zu allgemeinen Informationszwecken. Wir bemühen uns zwar, aktuelle und genaue Informationen bereitzustellen, geben jedoch keinerlei ausdrückliche oder stillschweigende Zusicherungen oder Gewährleistungen in Bezug auf die Vollständigkeit, Genauigkeit, Zuverlässigkeit, Eignung oder Verfügbarkeit der Website oder der auf der Website enthaltenen Informationen, Produkte, Dienstleistungen oder zugehörigen Grafiken für einen bestimmten Zweck. Wenn du dich auf diese Informationen verlässt, tust du das auf eigenes Risiko.",
|
|
264
|
+
"description": "Shows on Result page"
|
|
265
|
+
},
|
|
266
|
+
"youPredictedRight": {
|
|
267
|
+
"message": "Deine Vorraussage war <b>{$value}</b>, du liegst goldrichtig!",
|
|
268
|
+
"description": "Shows on Result page"
|
|
269
|
+
},
|
|
270
|
+
"youPredictedWrong": {
|
|
271
|
+
"message": "Deine Vorraussage war <b>{$value}</b>, das war ein Fehlschuss.",
|
|
272
|
+
"description": "Shows on Result page"
|
|
273
|
+
},
|
|
274
|
+
"closerLook": {
|
|
275
|
+
"message": "Sehen wir uns deine persönlichen Ergebnisse im Detail an:",
|
|
276
|
+
"description": "Shows on Result page"
|
|
277
|
+
},
|
|
278
|
+
"bodyExample": {
|
|
279
|
+
"message": "z.B.: Herz, Lunge, BMI",
|
|
280
|
+
"description": "Shows on Result page"
|
|
281
|
+
},
|
|
282
|
+
"lifestyleExample": {
|
|
283
|
+
"message": "z.B.: Ernährung, Kaffee, Alkohol",
|
|
284
|
+
"description": "Shows on Result page"
|
|
285
|
+
},
|
|
286
|
+
"mindExample": {
|
|
287
|
+
"message": "z.B.: Lebensqualität, Resilienz, Alltagsstress",
|
|
288
|
+
"description": "Shows on Result page"
|
|
289
|
+
},
|
|
290
|
+
"monkeyDetails": {
|
|
291
|
+
"message": "Der Affe ist lebenslustig und optimistisch, wohl wissend, was ein erfülltes und gesundes Leben ausmacht. Mit Leichtigkeit jongliert der Affe Vergnügen, Vernunft und Selbstfürsorge und erntet dafür viel Bewunderung.",
|
|
292
|
+
"description": "Shows on Result page"
|
|
293
|
+
},
|
|
294
|
+
"predictionsDesc":{
|
|
295
|
+
"message": "Oje, das war wohl nichts - du hast {$val} richtig. Wir höchste Zeit die eigenen Stärken zu kennen! Hier sind deine Ergebnisse",
|
|
296
|
+
"description" : "Shows on Result page"
|
|
297
|
+
},
|
|
298
|
+
"predictionsDesc2": {
|
|
299
|
+
"message": "Nicht schlecht, du hast {$val} richtig! Da ist wohl die eine oder andere Überraschung für dich dabei. Hier sind deine Ergebnisse",
|
|
300
|
+
"description": "Shows on Result page"
|
|
301
|
+
},
|
|
302
|
+
"predictionsDesc3": {
|
|
303
|
+
"message": "Gut gemacht, du hast {$val} richtig! Du weißt genau wo deine Stärken liegen. Hier sind deine Ergebnisse",
|
|
304
|
+
"description": "Shows on Result page"
|
|
305
|
+
}
|
|
294
306
|
}
|
|
@@ -298,5 +298,17 @@
|
|
|
298
298
|
"mindExample":{
|
|
299
299
|
"message": "i.e. Life quality, resilience, daily stress",
|
|
300
300
|
"description" : "Shows on Result page"
|
|
301
|
+
},
|
|
302
|
+
"predictionsDesc":{
|
|
303
|
+
"message": "Oh dear, that wasn't on point- you got {$val} correct. It's high time to know your strengths! Here are your results.",
|
|
304
|
+
"description" : "Shows on Result page"
|
|
305
|
+
},
|
|
306
|
+
"predictionsDesc2":{
|
|
307
|
+
"message": "Not bad, you got {$val} correct! There is probably one or the other surprise for you. Here are your results",
|
|
308
|
+
"description" : "Shows on Result page"
|
|
309
|
+
},
|
|
310
|
+
"predictionsDesc3":{
|
|
311
|
+
"message": "Well done, you got {$val} right! You know exactly where your strengths lie. Here are your results",
|
|
312
|
+
"description" : "Shows on Result page"
|
|
301
313
|
}
|
|
302
314
|
}
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
</div>
|
|
59
59
|
<div class="speedometer-value">
|
|
60
60
|
<div class="speedometer-value-up needle-value" style="color: {{physicalColor}};">
|
|
61
|
-
<strong>{{physicalScore}}</strong>
|
|
61
|
+
<strong>{{physicalScore}}</strong>
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
64
|
<span class="speedometer-value-down">/100</span>
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</div>
|
|
99
99
|
<div class="speedometer-value">
|
|
100
100
|
<div class="speedometer-value-up needle-value" style="color: {{psychologicalColor}};">
|
|
101
|
-
<strong>{{psychologicalScore}}</strong>
|
|
101
|
+
<strong>{{psychologicalScore}}</strong>
|
|
102
102
|
</div>
|
|
103
103
|
|
|
104
104
|
<span class="speedometer-value-down">/100</span>
|
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
<div class="predictions-title">{{predictionsTitle}}</div>
|
|
4
4
|
<div class="predictions-desc">{{predictionsDesc}}</div>
|
|
5
5
|
<div class="predictions-body">
|
|
6
|
+
<div class="prediction-component lifestyle">
|
|
7
|
+
<div class="prediction-container prediction-container2">
|
|
8
|
+
|
|
9
|
+
<div class="prediction-sub-image"><img
|
|
10
|
+
src="{{heartIcon}}"></div>
|
|
11
|
+
<div class="prediction-des-container">
|
|
12
|
+
<div class="prediction-sub-title">{{lifestyleResultSanusX}}</div>
|
|
13
|
+
<div class="prediction-sub-desc">{{lifestyleResultPred}}</div>
|
|
14
|
+
<div class="prediction-sub-result lifestyle"><img
|
|
15
|
+
src="{{predictedLifestyleMsgIcon}}" class="ui image pred-icon">
|
|
16
|
+
<div> {{predictedLifestyleMsg}}</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
6
21
|
<div class="prediction-component body">
|
|
7
22
|
<div class="prediction-container prediction-container1">
|
|
8
23
|
|
|
@@ -19,21 +34,7 @@
|
|
|
19
34
|
</div>
|
|
20
35
|
</div>
|
|
21
36
|
</div>
|
|
22
|
-
<div class="prediction-component lifestyle">
|
|
23
|
-
<div class="prediction-container prediction-container2">
|
|
24
37
|
|
|
25
|
-
<div class="prediction-sub-image"><img
|
|
26
|
-
src="{{heartIcon}}"></div>
|
|
27
|
-
<div class="prediction-des-container">
|
|
28
|
-
<div class="prediction-sub-title">{{lifestyleResultSanusX}}</div>
|
|
29
|
-
<div class="prediction-sub-desc">{{lifestyleResultPred}}</div>
|
|
30
|
-
<div class="prediction-sub-result lifestyle"><img
|
|
31
|
-
src="{{predictedLifestyleMsgIcon}}" class="ui image pred-icon">
|
|
32
|
-
<div> {{predictedLifestyleMsg}}</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
38
|
<div class="prediction-component mind">
|
|
38
39
|
<div class="prediction-container prediction-container3">
|
|
39
40
|
<div class="prediction-sub-image"><img
|