|
|
|
@ -98,7 +98,7 @@ const UpdateMerge = Loadable({
|
|
|
|
|
loader: () => import('../Merge/UpdateMerge'),
|
|
|
|
|
loading: Loading,
|
|
|
|
|
})
|
|
|
|
|
//版本发布
|
|
|
|
|
//版本发布
|
|
|
|
|
const VersionIndex = Loadable({
|
|
|
|
|
loader: () => import('../Version/version'),
|
|
|
|
|
loading: Loading,
|
|
|
|
@ -133,8 +133,8 @@ class Detail extends Component{
|
|
|
|
|
isReporter:false,
|
|
|
|
|
isDeveloper:false,
|
|
|
|
|
project_id:undefined,
|
|
|
|
|
watchers_count:undefined ,
|
|
|
|
|
praises_count:undefined ,
|
|
|
|
|
watchers_count:undefined ,
|
|
|
|
|
praises_count:undefined ,
|
|
|
|
|
forked_count:undefined,
|
|
|
|
|
http_url: undefined,
|
|
|
|
|
author:undefined,
|
|
|
|
@ -222,7 +222,7 @@ class Detail extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 点赞和取消点赞
|
|
|
|
|
pariseFunc=(flag)=>{
|
|
|
|
|
const { project_id } = this.state;
|
|
|
|
@ -286,7 +286,7 @@ class Detail extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { projectDetail , watchers_count , praises_count , forked_count , project_id } = this.state;
|
|
|
|
|
const url = this.props.history.location.pathname;
|
|
|
|
|
const urlFlag = (url.split("/").length === 3);
|
|
|
|
@ -300,8 +300,10 @@ class Detail extends Component{
|
|
|
|
|
<div className="f-wrap-between mb20">
|
|
|
|
|
<p className="font-18 color-white df flex-1 lineH2 mt15" style={{alignItems:"center"}}>
|
|
|
|
|
{projectDetail && projectDetail.author && projectDetail.author.name}
|
|
|
|
|
<span className="ml5 mr5">|</span>
|
|
|
|
|
<span className="hide-1 flex-1">{ projectDetail && projectDetail.identifier }</span>
|
|
|
|
|
<span className="ml5 mr5">/</span>
|
|
|
|
|
<span className="hide-1 flex-1">
|
|
|
|
|
<Link to={`/projects/${projectsId}/coder`} className="color-white">{ projectDetail && projectDetail.identifier }</Link>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="f-wrap-between">
|
|
|
|
@ -399,7 +401,7 @@ class Detail extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 新建工单 */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/projects/:projectsId/orders/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<OrderNew {...this.props} {...props} {...this.state}/>)
|
|
|
|
@ -419,7 +421,7 @@ class Detail extends Component{
|
|
|
|
|
(props) => (<OrdercopyDetail {...this.props} {...props} {...this.state}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 动态 */}
|
|
|
|
|
<Route path="/projects/:projectsId/trends"
|
|
|
|
|
render={
|
|
|
|
@ -434,7 +436,7 @@ class Detail extends Component{
|
|
|
|
|
(props) => (<OrderIndex {...this.props} {...props} {...this.state}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/projects/:projectsId/merge/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CreateMerge {...this.props} {...props} {...this.state}/>)
|
|
|
|
@ -499,4 +501,4 @@ class Detail extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Detail;
|
|
|
|
|
export default Detail;
|
|
|
|
|