|
|
|
@ -31,7 +31,9 @@ function jsCopy(){
|
|
|
|
|
class Repository extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state={
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
}
|
|
|
|
@ -41,7 +43,8 @@ class Repository extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let { match, author, git_url, lastest_commit, trees, commits,repositoryLoading, pathArray , TPMRightSectionData } = this.props;
|
|
|
|
|
let { match, author, git_url, lastest_commit,repositoryLoading, commits,trees,pathArray , TPMRightSectionData } = this.props;
|
|
|
|
|
|
|
|
|
|
if (!author) {
|
|
|
|
|
author = {}
|
|
|
|
|
}
|
|
|
|
@ -174,9 +177,9 @@ class Repository extends Component {
|
|
|
|
|
</style>
|
|
|
|
|
{/* 用户、最近提交时间 */}
|
|
|
|
|
{
|
|
|
|
|
trees === undefined || trees === null ? <NoneData></NoneData>:
|
|
|
|
|
trees === undefined || trees === null ||trees.length===0? <NoneData></NoneData>:
|
|
|
|
|
<div>
|
|
|
|
|
<div className="edu-back-skyblue padding10-20 clearfix">
|
|
|
|
|
{commits===undefined?"":commits===null||commits.length===0?"":<div className="edu-back-skyblue padding10-20 clearfix">
|
|
|
|
|
<img alt={author.name} className="radius fl mr10"
|
|
|
|
|
height="30"
|
|
|
|
|
src={getImageUrl(`images/`+commits[0].author.image_url)}
|
|
|
|
@ -193,7 +196,7 @@ class Repository extends Component {
|
|
|
|
|
<i className="iconfont icon-tijiaojilu font-18 fl mr5"></i>
|
|
|
|
|
<span className="fl mt2">提交记录</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
<div className="padding20" style={{minHeight: '372px'}}>
|
|
|
|
|
<div className="bor-grey-e">
|
|
|
|
@ -201,7 +204,7 @@ class Repository extends Component {
|
|
|
|
|
<RepositoryDirectories {...this.props}></RepositoryDirectories>
|
|
|
|
|
|
|
|
|
|
<div className="versionFileList">
|
|
|
|
|
{trees.map((item, index) => {
|
|
|
|
|
{ trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<li id={`file${index}`} key={index} className=" file padding5-10">
|
|
|
|
|
<span style={{marginLeft: '0px'}} className="task-hide">
|
|
|
|
|