157 lines
4.1 KiB
TypeScript
157 lines
4.1 KiB
TypeScript
export interface MainPageText {
|
||
mainTitleLine: string;
|
||
subTitleLine: string;
|
||
cardTitle: {
|
||
dutyInfo: string;
|
||
stepInfo: string;
|
||
tipsInfo: string;
|
||
};
|
||
cardTips: {
|
||
dutyInfo: string;
|
||
stepInfo: string;
|
||
tipsInfo: string;
|
||
};
|
||
extraInfo: {
|
||
dutyInfo: string;
|
||
stepInfo: string;
|
||
tipsInfo: string;
|
||
};
|
||
expandTitle: {
|
||
stepInfo: string;
|
||
tipsInfo: string;
|
||
};
|
||
stepList: Array<{ title: string }>;
|
||
tipsList: Array<{ title: string }>;
|
||
|
||
dutyCard: {
|
||
offDuty: {
|
||
title: string;
|
||
reason: (s: string) => string;
|
||
recoverTime: (t: string) => string;
|
||
};
|
||
inDuty: {
|
||
title: string;
|
||
currentDutyText: (c: 'off' | '1' | '2' | '3') => string;
|
||
inDutyCnt: (n: number) => string;
|
||
};
|
||
};
|
||
}
|
||
|
||
export const mainPageZhCn: MainPageText = {
|
||
mainTitleLine: '您好,这里是E志者协会',
|
||
subTitleLine: '维修请至【东三-204】实验室',
|
||
cardTitle: {
|
||
dutyInfo: '值班情况',
|
||
stepInfo: '维修步骤',
|
||
tipsInfo: '注意事项',
|
||
},
|
||
cardTips: {
|
||
dutyInfo: '提示:可以先前往【维修】页面在线上预填写工单!',
|
||
stepInfo: '提示:请在 20:30 之前取走自己的物品哦!',
|
||
tipsInfo: '',
|
||
},
|
||
extraInfo: {
|
||
dutyInfo: '',
|
||
stepInfo: '',
|
||
tipsInfo: '',
|
||
},
|
||
expandTitle: {
|
||
stepInfo: '查看维修步骤',
|
||
tipsInfo: '查看注意事项',
|
||
},
|
||
stepList: [
|
||
{ title: '线上填写工单' },
|
||
{ title: '去【东三-204】实验室维修电脑' },
|
||
{ title: '等待电脑维修' },
|
||
{ title: '维修结束,取回电脑' },
|
||
],
|
||
tipsList: [
|
||
{ title: '戴尔/外星人、Surface、苹果电脑不能拆哦~' },
|
||
{ title: '数据无价,请随时做好数据备份哦~' },
|
||
{ title: '204 也是实验室,请勿在内饮食~' },
|
||
{ title: '我们是志愿服务,不收取任何礼物哦~' },
|
||
],
|
||
dutyCard: {
|
||
offDuty: {
|
||
title: '未值班',
|
||
reason: (s) => '值班停止原因:' + s,
|
||
recoverTime: (t) => '恢复值班时间:' + t,
|
||
},
|
||
inDuty: {
|
||
title: '值班中',
|
||
currentDutyText: (c) => {
|
||
switch (c) {
|
||
case 'off':
|
||
return '当前未值班';
|
||
case '1':
|
||
return '第一班 13:30-16:00';
|
||
case '2':
|
||
return '第二班 16:00-18:00';
|
||
case '3':
|
||
return '第三班 18:00-20:30';
|
||
}
|
||
},
|
||
inDutyCnt: (n) => '当前值班人数:' + n,
|
||
},
|
||
},
|
||
};
|
||
|
||
export const mainPageEnUs: MainPageText = {
|
||
mainTitleLine: 'Hi! This is EVA.',
|
||
subTitleLine: 'For maintenance, please go to [204 Lab, E3 building]',
|
||
cardTitle: {
|
||
dutyInfo: 'Duty Situation',
|
||
stepInfo: 'Maintenance Steps',
|
||
tipsInfo: 'Tips',
|
||
},
|
||
cardTips: {
|
||
dutyInfo: 'Tips: Please go to [Repair] and filling out tickets online.',
|
||
stepInfo: 'Tips: Please retrieve your devices before 20:30!',
|
||
tipsInfo: '',
|
||
},
|
||
expandTitle: {
|
||
stepInfo: 'Check for maintenance steps',
|
||
tipsInfo: 'Check for tips',
|
||
},
|
||
extraInfo: {
|
||
dutyInfo: '',
|
||
stepInfo: '',
|
||
tipsInfo: '',
|
||
},
|
||
stepList: [
|
||
{ title: 'Filling out tickets online' },
|
||
{ title: 'Go to [204 Lab, E3 building] for maintenance' },
|
||
{ title: 'Waiting for the device maintenance' },
|
||
{ title: 'The maintenance is over, retrieve the device' },
|
||
],
|
||
tipsList: [
|
||
{ title: 'Dell/Alienware, Surface, Apple cannot be dissassembled.' },
|
||
{ title: 'Data is priceless, please backup your data at any time!' },
|
||
{ title: '204 is also a laboratory. Do not eat inside.' },
|
||
{ title: 'We are volunteers and do not take any gifts.' },
|
||
],
|
||
dutyCard: {
|
||
offDuty: {
|
||
title: 'Off Duty',
|
||
reason: (s) => 'Reason for cessation of duty: ' + s,
|
||
recoverTime: (t) => 'Resumption of duty: ' + t,
|
||
},
|
||
inDuty: {
|
||
title: 'On Duty',
|
||
currentDutyText: (c) => {
|
||
switch (c) {
|
||
case 'off':
|
||
return 'Currently not on duty';
|
||
case '1':
|
||
return '1st Shift 13:30-16:00';
|
||
case '2':
|
||
return '2nd Shift 16:00-18:00';
|
||
case '3':
|
||
return '3rd Shift 18:00-20:30';
|
||
}
|
||
},
|
||
inDutyCnt: (n) => 'EVA members on duty: ' + n,
|
||
},
|
||
},
|
||
};
|