Fakultas Ilmu Komputer UI

routes.ts 2.36 KB
Newer Older
1
export const initial = 'initial-page';
2
export const allCartsExpired = 'all-carts-expired';
3
export const comingSoon = '*';
4
5
6

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

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

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

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

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

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

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`;
46
export const clientDietRecommendation = `${admin}/client-diet-recommendation`;
47

48
49
50
const weeklyReport = 'weekly-report';
export const weeklyReportForm = `${weeklyReport}/form`;
export const weeklyReportChooseWeek = `${weeklyReport}/choose-week`;
51
export const weeklyReportChooseWeekForNutritionist = `${weeklyReport}/choose-week-for-nutritionist`;
52
export const weeklyReportReadOnly = `${weeklyReport}/read-only`;