|
@@ -85,41 +85,41 @@ class CaseShow extends Component {
|
|
|
}
|
|
}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div>
|
|
|
|
|
- <div className={'schema-name'}><FormattedMessage id='other developer case'/></div>
|
|
|
|
|
- <div className="caseAllShow">
|
|
|
|
|
- {
|
|
|
|
|
- this.state.examplesOthers.length === 0 ?
|
|
|
|
|
- <Spin/>
|
|
|
|
|
- :
|
|
|
|
|
- this.state.examplesOthers.map((item, index) => (
|
|
|
|
|
- <span key={index} style={{padding: '10px 0'}}>
|
|
|
|
|
- <Card
|
|
|
|
|
- key={index}
|
|
|
|
|
- style={{width: 300}}
|
|
|
|
|
- cover={<div className='cover-div'><img className='cover-img' src={item.img} alt={item.title + '' + item.description}/></div>}
|
|
|
|
|
- actions={[
|
|
|
|
|
- <span>已部署: {item.deployedNum}</span>,
|
|
|
|
|
- <span><Icon type="like" />: {item.like}</span>,
|
|
|
|
|
- <Button type="primary" onClick={() => {
|
|
|
|
|
- this.props.history.push({
|
|
|
|
|
- pathname: `/common/deploy-cloud-choose`,
|
|
|
|
|
- state: {caseID: item.id,}
|
|
|
|
|
- });
|
|
|
|
|
- }}><FormattedMessage id='step more'/></Button>
|
|
|
|
|
- ]}
|
|
|
|
|
- >
|
|
|
|
|
- <Meta
|
|
|
|
|
- avatar={<Avatar src={item.user_id.avatar}/>}
|
|
|
|
|
- title={item.title}
|
|
|
|
|
- description={item.description}
|
|
|
|
|
- />
|
|
|
|
|
- </Card>
|
|
|
|
|
- </span>
|
|
|
|
|
- ))
|
|
|
|
|
- }
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ {/*<div>*/}
|
|
|
|
|
+ {/*<div className={'schema-name'}><FormattedMessage id='other developer case'/></div>*/}
|
|
|
|
|
+ {/*<div className="caseAllShow">*/}
|
|
|
|
|
+ {/*{*/}
|
|
|
|
|
+ {/*this.state.examplesOthers.length === 0 ?*/}
|
|
|
|
|
+ {/*<Spin/>*/}
|
|
|
|
|
+ {/*:*/}
|
|
|
|
|
+ {/*this.state.examplesOthers.map((item, index) => (*/}
|
|
|
|
|
+ {/*<span key={index} style={{padding: '10px 0'}}>*/}
|
|
|
|
|
+ {/*<Card*/}
|
|
|
|
|
+ {/*key={index}*/}
|
|
|
|
|
+ {/*style={{width: 300}}*/}
|
|
|
|
|
+ {/*cover={<div className='cover-div'><img className='cover-img' src={item.img} alt={item.title + '' + item.description}/></div>}*/}
|
|
|
|
|
+ {/*actions={[*/}
|
|
|
|
|
+ {/*<span>已部署: {item.deployedNum}</span>,*/}
|
|
|
|
|
+ {/*<span><Icon type="like" />: {item.like}</span>,*/}
|
|
|
|
|
+ {/*<Button type="primary" onClick={() => {*/}
|
|
|
|
|
+ {/*this.props.history.push({*/}
|
|
|
|
|
+ {/*pathname: `/common/deploy-cloud-choose`,*/}
|
|
|
|
|
+ {/*state: {caseID: item.id,}*/}
|
|
|
|
|
+ {/*});*/}
|
|
|
|
|
+ {/*}}><FormattedMessage id='step more'/></Button>*/}
|
|
|
|
|
+ {/*]}*/}
|
|
|
|
|
+ {/*>*/}
|
|
|
|
|
+ {/*<Meta*/}
|
|
|
|
|
+ {/*avatar={<Avatar src={item.user_id.avatar}/>}*/}
|
|
|
|
|
+ {/*title={item.title}*/}
|
|
|
|
|
+ {/*description={item.description}*/}
|
|
|
|
|
+ {/*/>*/}
|
|
|
|
|
+ {/*</Card>*/}
|
|
|
|
|
+ {/*</span>*/}
|
|
|
|
|
+ {/*))*/}
|
|
|
|
|
+ {/*}*/}
|
|
|
|
|
+ {/*</div>*/}
|
|
|
|
|
+ {/*</div>*/}
|
|
|
</Content>
|
|
</Content>
|
|
|
</Layout>
|
|
</Layout>
|
|
|
</div>
|
|
</div>
|