Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
08d35347
Commit
08d35347
authored
May 09, 2021
by
Doan Andreas Nathanael
Browse files
[CHORES] update quiz copywriting
parent
d964391e
Pipeline
#75942
passed with stages
in 37 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/services/dietelaQuiz/quizResult.ts
View file @
08d35347
...
...
@@ -2,6 +2,7 @@ export enum Status {
HEALTHY
=
'
healthy
'
,
WARNING
=
'
warning
'
,
DANGER
=
'
danger
'
,
CATASTROPHE
=
'
catastrophe
'
,
}
export
enum
DietelaProgram
{
...
...
@@ -74,10 +75,10 @@ export const bodyMassStatus = {
status
:
Status
.
WARNING
,
},
[
BodyMassConstants
.
OBESITY1
]:
{
status
:
Status
.
WARNING
,
status
:
Status
.
DANGER
,
},
[
BodyMassConstants
.
OBESITY2
]:
{
status
:
Status
.
DANGER
,
status
:
Status
.
CATASTROPHE
,
},
};
...
...
@@ -100,82 +101,82 @@ export const gglStatus = {
};
export
const
makanBesarStatus
=
{
[
LargeMealDietRecommendation
.
ONCE_A_DAY
]:
{
status
:
Status
.
DANGER
,
headline
:
'
Risiko tinggi kekurangan zat gizi yang penting
'
,
},
[
LargeMealDietRecommendation
.
TWICE_A_DAY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Sudah cukup makan besar
'
,
status
:
Status
.
WARNING
,
headline
:
'
Risiko sedang kekurangan zat gizi yang penting
'
,
},
[
LargeMealDietRecommendation
.
THRICE_A_DAY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Sudah cukup makan besar
'
,
},
[
LargeMealDietRecommendation
.
ONCE_A_DAY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Kurang makan besar
'
,
headline
:
'
Zat gizi penting akan terpenuhi dengan baik
'
,
},
[
LargeMealDietRecommendation
.
MORE_THAN_THRICE_A_DAY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Kelebihan makan besar
'
,
status
:
Status
.
DANGER
,
headline
:
'
Risiko tinggi kelebihan konsumsi makan
'
,
},
};
export
const
sarapanStatus
=
{
[
BreakfastReponse
.
HI
_BREAKFAST
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Porsi sarapan
cukup
'
,
[
BreakfastReponse
.
NO
_BREAKFAST
]:
{
status
:
Status
.
DANGER
,
headline
:
'
Porsi sarapan
kurang
'
,
},
[
BreakfastReponse
.
MED_BREAKFAST
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Porsi sarapan cukup
'
,
},
[
BreakfastReponse
.
NO
_BREAKFAST
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Di
sara
nk
an
sarapan
'
,
[
BreakfastReponse
.
HI
_BREAKFAST
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Porsi
sara
p
an
cukup
'
,
},
};
export
const
cemilanStatus
=
{
[
SnacksDietRecommendation
.
TWICE_A_DAY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Frekuensi cemilan cukup
'
,
},
[
SnacksDietRecommendation
.
THRICE_A_DAY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Frekuensi cemilan cukup
'
,
[
SnacksDietRecommendation
.
NO_SNACK
]:
{
status
:
Status
.
DANGER
,
headline
:
'
Risiko tinggi metabolisme energi berantakan
'
,
},
[
SnacksDietRecommendation
.
ONCE_A_DAY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Tambah makan cemil
an
'
,
headline
:
'
Risiko sedang metabolisme energi berantak
an
'
,
},
[
SnacksDietRecommendation
.
NO_SNACK
]:
{
[
SnacksDietRecommendation
.
TWICE_A_DAY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Metabolisme energi akan terjaga
'
,
},
[
SnacksDietRecommendation
.
THRICE_A_DAY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
D
is
arank
an m
akan cemil
an
'
,
headline
:
'
R
is
iko sed
an
g
m
etabolisme energi berantak
an
'
,
},
[
SnacksDietRecommendation
.
MORE_THAN_THRICE_A_DAY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
D
is
arankan kurangi cemil
an
'
,
status
:
Status
.
DANGER
,
headline
:
'
R
is
iko tinggi metabolisme energi berantak
an
'
,
},
};
export
const
aktivitasFisikStatus
=
{
[
PhysicalActivityResponse
.
LEVEL1_ACTIVITY
]:
{
status
:
Status
.
DANGER
,
headline
:
'
Sangat kurang aktif (sedenter)
'
,
},
[
PhysicalActivityResponse
.
LEVEL2_ACTIVITY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Kurang aktif
'
,
},
[
PhysicalActivityResponse
.
LEVEL3_ACTIVITY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Sudah baik
'
,
headline
:
'
Cukup aktif
'
,
},
[
PhysicalActivityResponse
.
LEVEL4_ACTIVITY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Sudah baik
'
,
headline
:
'
Aktif
'
,
},
[
PhysicalActivityResponse
.
LEVEL5_ACTIVITY
]:
{
status
:
Status
.
HEALTHY
,
headline
:
'
Sangat baik
'
,
},
[
PhysicalActivityResponse
.
LEVEL1_ACTIVITY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Tingkatkan aktivitas fisik
'
,
},
[
PhysicalActivityResponse
.
LEVEL2_ACTIVITY
]:
{
status
:
Status
.
WARNING
,
headline
:
'
Tingkatkan aktivitas fisik
'
,
headline
:
'
Sangat aktif
'
,
},
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment