| | |
| | | import React, {Component} from 'react' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Modal, notification, Timeline, Icon, Button, Typography } from 'antd' |
| | | import { Modal, notification, Timeline, Button, Typography } from 'antd' |
| | | import { ClockCircleOutlined, SyncOutlined, WarningOutlined, CheckCircleOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import Api from '@/api' |
| | |
| | | > |
| | | <Timeline> |
| | | {versions && versions.map(item => { |
| | | let icon = <Icon type="clock-circle-o" style={{ fontSize: '16px' }} /> |
| | | let icon = <ClockCircleOutlined style={{ fontSize: '16px' }} /> |
| | | if (item.status === 'loading') { |
| | | icon = <Icon type="sync" spin style={{ fontSize: '16px' }} /> |
| | | icon = <SyncOutlined spin style={{ fontSize: '16px' }} /> |
| | | } else if (item.status === 'done') { |
| | | if (item.warning) { |
| | | icon = <Icon type="warning" style={{ fontSize: '16px', color: 'orange' }}/> |
| | | icon = <WarningOutlined style={{ fontSize: '16px', color: 'orange' }}/> |
| | | } else { |
| | | icon = <Icon type="check-circle" style={{ fontSize: '16px', color: '#52c41a' }} /> |
| | | icon = <CheckCircleOutlined style={{ fontSize: '16px', color: '#52c41a' }} /> |
| | | } |
| | | } |
| | | return ( |