Merge branch 'pre_develop_dev' of https://git.trustie.net/Gitlink/forgeplus-react into pre_develop_dev
This commit is contained in:
commit
7130a05b23
|
@ -85,7 +85,7 @@ export default (props) => {
|
||||||
<div className="f-wrap-between">
|
<div className="f-wrap-between">
|
||||||
<div>
|
<div>
|
||||||
{commit && commit.message &&
|
{commit && commit.message &&
|
||||||
<pre className="task-hide">{commit.message}</pre>
|
<div dangerouslySetInnerHTML={{__html:commit.message.replaceAll('\n\n','<br/>').replaceAll('\n\r','<br/>').replaceAll('\n','<br/>')}} className="task-hide"></div>
|
||||||
}
|
}
|
||||||
<Link to={`/${owner}/${projectsId}/tree/${truncateCommitId(sha)}`}><i className="iconfont icon-fenzhi2 font-18"></i>{data.branch}</Link>
|
<Link to={`/${owner}/${projectsId}/tree/${truncateCommitId(sha)}`}><i className="iconfont icon-fenzhi2 font-18"></i>{data.branch}</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { truncateCommitId } from '../../common/util';
|
||||||
import './Index.scss';
|
import './Index.scss';
|
||||||
import Tree from '../img/tree.png'
|
import Tree from '../img/tree.png'
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import Loading from '../../../Loading';
|
||||||
|
|
||||||
function Tags(props) {
|
function Tags(props) {
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ function Tags(props) {
|
||||||
return (
|
return (
|
||||||
<Tooltip placement="top" title={`最后提交日期:${item.created_at_unix ? moment(item.created_at_unix*1000).format('YYYY-MM-DD'):''}`}>
|
<Tooltip placement="top" title={`最后提交日期:${item.created_at_unix ? moment(item.created_at_unix*1000).format('YYYY-MM-DD'):''}`}>
|
||||||
<img src={Tree} alt="提交ID" width="22px" className="mr4"/>
|
<img src={Tree} alt="提交ID" width="22px" className="mr4"/>
|
||||||
<Link className="hover color-blue" to={`/${owner}/${projectsId}/commits/${truncateCommitId(`${item.commit && item.commit.sha}`)}`}>{truncateCommitId(item.commit && item.commit.sha)}</Link>
|
<Link className="hover color-blue" to={`/${owner}/${projectsId}/commits/${truncateCommitId(`${item.id}`)}`}>{truncateCommitId(item.id)}</Link>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
tr th{
|
tr th{
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding:5px 0px;
|
padding:5px 0px;
|
||||||
|
width: 172px;
|
||||||
.ant-table-column-title{
|
.ant-table-column-title{
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
@ -20,6 +21,9 @@
|
||||||
padding:0px;
|
padding:0px;
|
||||||
height: 69px;
|
height: 69px;
|
||||||
line-height: 69px;
|
line-height: 69px;
|
||||||
|
div{
|
||||||
|
padding-left: 69px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:last-child{
|
&:last-child{
|
||||||
td{
|
td{
|
||||||
|
|
|
@ -15,10 +15,9 @@ function version(props) {
|
||||||
const [ releases , setReleases ] = useState(undefined);
|
const [ releases , setReleases ] = useState(undefined);
|
||||||
const [ isSpin , setIsSpin ] = useState(true);
|
const [ isSpin , setIsSpin ] = useState(true);
|
||||||
const { projectsId ,owner } = props.match.params;
|
const { projectsId ,owner } = props.match.params;
|
||||||
const { isManager, isDeveloper, location , user } = props;
|
const { location } = props;
|
||||||
const type = props.projectDetail && props.projectDetail.type;
|
const type = props.projectDetail && props.projectDetail.type;
|
||||||
const turnFromNew = location && location.query && location.query.turnFromNew;
|
const turnFromNew = location && location.query && location.query.turnFromNew;
|
||||||
const current_user_login = user && user.login;
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
getIssueList();
|
getIssueList();
|
||||||
},[])
|
},[])
|
||||||
|
@ -34,7 +33,6 @@ function version(props) {
|
||||||
setReleases(result.data.releases);
|
setReleases(result.data.releases);
|
||||||
setIsSpin(false);
|
setIsSpin(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
|
@ -130,6 +128,8 @@ function version(props) {
|
||||||
addFunc={addFunc}
|
addFunc={addFunc}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
} else{
|
||||||
|
return (<div></div>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React ,{useEffect,useRef,useState } from 'react';
|
import React ,{useEffect,useState } from 'react';
|
||||||
import { truncateCommitId } from '../common/util';
|
import { truncateCommitId } from '../common/util';
|
||||||
import { AlignCenter , FlexAJ } from '../Component/layout';
|
import { AlignCenter , FlexAJ } from '../Component/layout';
|
||||||
import { Button, Tooltip,Progress, Popover, Anchor } from 'antd';
|
import { Tooltip,Progress } from 'antd';
|
||||||
import './merge.css';
|
import './merge.css';
|
||||||
import './Index.scss';
|
import './Index.scss';
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@ function Files({ data,history,owner,projectsId , parentsSha }){
|
||||||
}
|
}
|
||||||
},[data]);
|
},[data]);
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
document.addEventListener('click',()=>{setIsOpen(false)})
|
||||||
|
})
|
||||||
|
|
||||||
function showDown(flag,index,isBin){
|
function showDown(flag,index,isBin){
|
||||||
if(!isBin){
|
if(!isBin){
|
||||||
var lists = files.concat();
|
var lists = files.concat();
|
||||||
|
@ -63,7 +67,7 @@ function Files({ data,history,owner,projectsId , parentsSha }){
|
||||||
)
|
)
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<div>
|
<div onClick={(e)=>{e.nativeEvent.stopImmediatePropagation()}}>
|
||||||
<AlignCenter className="color-grey-9" style={{position:'relative'}}>
|
<AlignCenter className="color-grey-9" style={{position:'relative'}}>
|
||||||
<div onClick={()=>{setIsOpen(!isOpen)}}>
|
<div onClick={()=>{setIsOpen(!isOpen)}}>
|
||||||
<i className={`iconfont mr5 ${isOpen? "font-18 icon-sanjiaoxing-down":"font-16 icon-triangle"}`}></i>
|
<i className={`iconfont mr5 ${isOpen? "font-18 icon-sanjiaoxing-down":"font-16 icon-triangle"}`}></i>
|
||||||
|
|
|
@ -19,7 +19,6 @@ function List(props){
|
||||||
const [ search , setSearch ] = useState(undefined);
|
const [ search , setSearch ] = useState(undefined);
|
||||||
const [ page , setPage ] = useState(1);
|
const [ page , setPage ] = useState(1);
|
||||||
const [ sortBy , setSortBy ] = useState("updated_on");
|
const [ sortBy , setSortBy ] = useState("updated_on");
|
||||||
const [ sortDirection , setSortDirection ] = useState("asc");
|
|
||||||
|
|
||||||
const OIdentifier = props.match.params.OIdentifier;
|
const OIdentifier = props.match.params.OIdentifier;
|
||||||
const organizeDetail = props.organizeDetail;
|
const organizeDetail = props.organizeDetail;
|
||||||
|
@ -37,7 +36,7 @@ function List(props){
|
||||||
params:{
|
params:{
|
||||||
search,page,limit,
|
search,page,limit,
|
||||||
sort_by:sortBy,
|
sort_by:sortBy,
|
||||||
sort_direction:sortDirection
|
sort_direction:"desc"
|
||||||
}
|
}
|
||||||
}).then(result=>{
|
}).then(result=>{
|
||||||
if(result && result.data){
|
if(result && result.data){
|
||||||
|
|
Loading…
Reference in New Issue