249 lines
6.3 KiB
TypeScript
249 lines
6.3 KiB
TypeScript
export interface MemberPageText {
|
|
titleLine: {
|
|
main: {
|
|
index: string;
|
|
login: string;
|
|
logout: string;
|
|
};
|
|
sub: {
|
|
index: string;
|
|
login: string;
|
|
logout: string;
|
|
};
|
|
};
|
|
cardTitle: {
|
|
dutyInfo: string;
|
|
stepInfo: string;
|
|
tipsInfo: string;
|
|
};
|
|
dutyCount: {
|
|
button: string;
|
|
text: string;
|
|
};
|
|
stuidText: {
|
|
title: string;
|
|
placeholder: string;
|
|
};
|
|
passwdText: {
|
|
title: string;
|
|
placeholder: string;
|
|
};
|
|
dutyCard: {
|
|
offDuty: {
|
|
title: string;
|
|
reason: (s: string) => string;
|
|
recoverTime: (t: string) => string;
|
|
};
|
|
inDuty: {
|
|
title: string;
|
|
currentDutyText: (c: 'off' | '1' | '2' | '3' | 'others') => string;
|
|
inDutyCnt: (n: number) => string;
|
|
};
|
|
};
|
|
expandTitle: {
|
|
stepInfo: string;
|
|
tipsInfo: string;
|
|
admin: string;
|
|
};
|
|
cardTips: {
|
|
dutyInfo: string;
|
|
stepInfo: string;
|
|
tipsInfo: string;
|
|
};
|
|
extraInfo: {
|
|
dutyInfo: string;
|
|
stepInfo: string;
|
|
tipsInfo: string;
|
|
};
|
|
stepList: Array<{ title: string }>;
|
|
tipsList: Array<{ title: string }>;
|
|
ticketList: {
|
|
hint: string;
|
|
title: string;
|
|
note: string;
|
|
};
|
|
}
|
|
|
|
export const memberPageZhCn: MemberPageText = {
|
|
titleLine: {
|
|
main: {
|
|
index: '您好,',
|
|
login: '协会成员登录入口',
|
|
logout: '协会成员登出',
|
|
},
|
|
sub: {
|
|
index: '祝你满绩每一天',
|
|
login: '请使用 EVA 统一身份认证,登录后点击下方按钮以扫描二维码',
|
|
logout: '登出后须扫码重新登录!',
|
|
},
|
|
},
|
|
cardTitle: {
|
|
dutyInfo: '值班情况',
|
|
stepInfo: '维修步骤',
|
|
tipsInfo: '注意事项',
|
|
},
|
|
dutyCount: {
|
|
button: '更新',
|
|
text: '当前值班人数:',
|
|
},
|
|
stuidText: {
|
|
title: '学号',
|
|
placeholder: '与统一身份认证学号一致',
|
|
},
|
|
passwdText: {
|
|
title: '密码',
|
|
placeholder: '与 EVA 统一身份认证一致',
|
|
},
|
|
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';
|
|
case 'others':
|
|
return '其他值班时间,见通知';
|
|
}
|
|
},
|
|
inDutyCnt: (n) => '当前值班人数:' + n,
|
|
},
|
|
},
|
|
expandTitle: {
|
|
stepInfo: '查看维修步骤',
|
|
tipsInfo: '查看注意事项',
|
|
admin: '组长管理入口',
|
|
},
|
|
cardTips: {
|
|
dutyInfo: '提示:如果有事不能值班,请及时请假!',
|
|
stepInfo: '提示:维修完成请清点机主物品!',
|
|
tipsInfo: '',
|
|
},
|
|
extraInfo: {
|
|
dutyInfo: '',
|
|
stepInfo: '',
|
|
tipsInfo: '',
|
|
},
|
|
stepList: [
|
|
{ title: '机主线上填写工单,审核接取维修后加入 Oreo' },
|
|
{ title: '进行维修工作,认领工单,通过小程序与机主交流' },
|
|
{ title: '维修结束,清点机主物品,待机主取回' },
|
|
{ title: '机主取回机器确认无误后,修改工单状态' },
|
|
],
|
|
tipsList: [
|
|
{ title: '戴尔/外星人、Surface、苹果电脑不能拆机' },
|
|
{ title: '数据无价,请提醒机主随时做好数据备份' },
|
|
{ title: '离开 204 前清点好维修物资!' },
|
|
{ title: '螺丝上了吗?电源排线插了吗?' },
|
|
],
|
|
ticketList: {
|
|
hint: '七日内未完成工单',
|
|
title: '预填写工单列表',
|
|
note: '在这里查看所有的预填写工单!',
|
|
},
|
|
};
|
|
|
|
export const memberPageEnUs: MemberPageText = {
|
|
titleLine: {
|
|
main: {
|
|
index: 'Hi! ',
|
|
login: 'EVA Member Entry',
|
|
logout: 'EVA Member Logout',
|
|
},
|
|
sub: {
|
|
index: 'Have a great day!',
|
|
login:
|
|
'Please use EVA Auth, log in and click the button below to scan the QR code',
|
|
logout: 'After logging out, scan the code again to log back in!',
|
|
},
|
|
},
|
|
cardTitle: {
|
|
dutyInfo: 'Duty Situation',
|
|
stepInfo: 'Maintenance Steps',
|
|
tipsInfo: 'Tips',
|
|
},
|
|
dutyCount: {
|
|
button: 'Update',
|
|
text: 'The duty count: ',
|
|
},
|
|
stuidText: {
|
|
title: 'Student ID',
|
|
placeholder: 'Consistent with EVA Auth',
|
|
},
|
|
passwdText: {
|
|
title: 'Password',
|
|
placeholder: 'Consistent with EVA Auth',
|
|
},
|
|
dutyCard: {
|
|
offDuty: {
|
|
title: 'Off Duty',
|
|
reason: (s) => 'Off duty reason: ' + 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';
|
|
case 'others':
|
|
return 'Other duty hours, see notice';
|
|
}
|
|
},
|
|
inDutyCnt: (n) => 'EVA members on duty: ' + n,
|
|
},
|
|
},
|
|
expandTitle: {
|
|
stepInfo: 'Check for maintenance steps',
|
|
tipsInfo: 'Check for tips',
|
|
admin: 'Entry for admin',
|
|
},
|
|
cardTips: {
|
|
dutyInfo:
|
|
"Tips: If you can't be on duty, please ask for an excused absence!",
|
|
stepInfo: "Tips: Inventory owner's belongings after maintenance!",
|
|
tipsInfo: '',
|
|
},
|
|
extraInfo: {
|
|
dutyInfo: '',
|
|
stepInfo: '',
|
|
tipsInfo: '',
|
|
},
|
|
stepList: [
|
|
{ title: 'The owner fills out ticket online. Add it to Oreo after audit.' },
|
|
{ title: 'Repair, pick the ticket, and communicate with the owner online' },
|
|
{
|
|
title:
|
|
"Maintenance completed, inventory owner's belongings and await retrieving",
|
|
},
|
|
{ title: 'Modify the work order status after the owner retrieves.' },
|
|
],
|
|
tipsList: [
|
|
{ title: 'Dell/Alienware, Surface, Apple cannot be dissassembled.' },
|
|
{ title: 'Please remind the owner to backup data at any time!' },
|
|
{ title: '204 is a laboratory. Do not eat inside.' },
|
|
{ title: 'Are the screws on? Is the power cable plugged in?' },
|
|
],
|
|
ticketList: {
|
|
hint: 'Uncompleted tickets in 7 days',
|
|
title: 'Pre-filling ticket list',
|
|
note: 'Browse for all pre-filling tickets here!',
|
|
},
|
|
};
|