refactor: merge index & member page

This commit is contained in:
Dawn1Ocean
2024-03-22 10:23:39 +08:00
parent a7c96b2e8c
commit f3f5be793b
21 changed files with 268 additions and 468 deletions
+5 -1
View File
@@ -31,7 +31,7 @@ export interface MainPageText {
};
inDuty: {
title: string;
currentDutyText: (c: 'off' | '1' | '2' | '3') => string;
currentDutyText: (c: 'off' | '1' | '2' | '3' | 'others') => string;
inDutyCnt: (n: number) => string;
};
};
@@ -89,6 +89,8 @@ export const mainPageZhCn: MainPageText = {
return '第二班 16:00-18:00';
case '3':
return '第三班 18:00-20:30';
case 'others':
return '其他值班时间,见通知';
}
},
inDutyCnt: (n) => '当前值班人数:' + n,
@@ -148,6 +150,8 @@ export const mainPageEnUs: MainPageText = {
return '2nd Shift 16:00-18:00';
case '3':
return '3rd Shift 18:00-20:30';
case 'others':
return 'Other duty time, see notice';
}
},
inDutyCnt: (n) => 'EVA members on duty: ' + n,