Fakultas Ilmu Komputer UI

routes.ts 2.14 KB
Newer Older
1
export const initial = 'initial-page';
2
export const comingSoon = '*';
3
4
5

const questionnaire = 'questionnaire';
export const allAccessQuestionnaire = `${questionnaire}/all-access`;
6
export const dietelaQuizResult = `${questionnaire}/dietela-quiz-result`;
Wulan Mantiri's avatar
Wulan Mantiri committed
7
8
9
10
export const consentForm = `${questionnaire}/consent`;
export const extendedQuestionnaire = `${questionnaire}/extended`;
export const extendedQuestionnaireById = (id: number) =>
  `${extendedQuestionnaire}/${id}`;
11

12
13
14
15
export const checkout = 'checkout';
export const choosePlan = `${checkout}/choose-plan`;
export const programDetail = `${checkout}/dietela-program`;
export const nutritionistDetail = `${checkout}/nutritionist`;
16
17

export const registration = 'registration';
18
export const login = 'login';
19
export const loginChoosePlan = 'login-choose-plan';
20
export const nutritionistAdminLogin = 'nutritionist-admin-login';
21

22
export const payment = 'payment';
Wulan Mantiri's avatar
Wulan Mantiri committed
23
export const paymentResult = `${payment}/result`;
24

25
const client = 'client';
26
export const clientTabNavigation = `${client}/tab-navigation`;
27
export const clientProfile = `${client}/profile`;
28
export const clientRecommendation = `${client}/recommendation`;
29
export const clientWeeklyReport = `${client}/report`;
30
export const clientChat = `${client}/chat`;
31

32
const nutritionist = 'nutritionist';
33
export const clientListForNutritionist = `${nutritionist}/client-list`;
34
35
36
export const clientProfileNutritionist = `${nutritionist}/client-profile`;
export const clientDietReportNutritionist = `${nutritionist}/client-diet-report`;
export const clientChatNutritionist = `${nutritionist}/client-chat`;
37
38
39
40
41
42
43
44

export const profileDietRecommendation = `${clientProfileNutritionist}/recommendation`;

const admin = 'admin';
export const clientListForAdmin = `${admin}/client-list`;
export const clientProfileAdmin = `${admin}/client-profile`;
export const clientDietReportAdmin = `${admin}/client-diet-report`;
export const clientChatAdmin = `${admin}/client-chat`;
45
export const clientDietRecommendation = `${admin}/client-diet-recommendation`;
46

47
48
49
const weeklyReport = 'weekly-report';
export const weeklyReportForm = `${weeklyReport}/form`;
export const weeklyReportChooseWeek = `${weeklyReport}/choose-week`;