Skip to content

Commit

Permalink
feat: add task create time (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Apr 10, 2023
1 parent 302af55 commit dce7af9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/config/locale/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"value": "Value",
"continue": "Continue",
"update": "Update",
"prev": "Previous"
"prev": "Previous",
"createTime": "Create Time"
},
"doc": {
"welcome": "Welcome to",
Expand Down
3 changes: 2 additions & 1 deletion app/config/locale/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"value": "",
"continue": "继续",
"update": "更新",
"prev": "上一步"
"prev": "上一步",
"createTime": "创建时间"
},
"doc": {
"welcome": "欢迎使用",
Expand Down
8 changes: 8 additions & 0 deletions app/pages/Import/TaskList/TaskItem/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
color: @darkGray;
margin-bottom: 15px;
align-items: center;
.createTime {
font-weight: 600;
font-size: 14px;
color: #8697B0;
font-family: Roboto-Light, serif;
margin-right: 15px;
}
:global(.ant-btn-link) {
color: @darkGray;
font-weight: 800;
}
}
.progress {
Expand Down
11 changes: 7 additions & 4 deletions app/pages/Import/TaskList/TaskItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ const TaskItem = (props: IProps) => {
<div className={styles.taskItem}>
<div className={styles.row}>
<span>{intl.get('common.space')}: {space}</span>
{showConfigDownload && <Button type="link" size="small" onClick={() => onConfigDownload(id)}>
<Icon type="icon-studio-btn-download" />
{intl.get('import.downloadConfig')}
</Button>}
<div>
<span className={styles.createTime}>{intl.get('common.createTime')}: {dayjs(createTime).format('YYYY-MM-DD HH:mm:ss')}</span>
{showConfigDownload && <Button type="link" size="small" onClick={() => onConfigDownload(id)}>
<Icon type="icon-studio-btn-download" />
{intl.get('import.downloadConfig')}
</Button>}
</div>
</div>
<div className={styles.row}>
<div className={styles.progress}>
Expand Down

0 comments on commit dce7af9

Please sign in to comment.