dev_new_shixunsrepository
杨树明 5 years ago
parent 4746746c1a
commit f9c773271a

@ -17,10 +17,15 @@
color: rgba(51,51,51,1);
line-height: 40px;
}
.colorbe{
color:#bebebe
}
.borbotF4{
border-bottom: 1px solid #F4F4F4;
}
.padding16{
padding: 16px;
box-sizing: border-box;

@ -8,6 +8,7 @@ import RepositoryDirectories from './RepositoryDirectories';
import { ActionBtn , NoneData } from 'educoder';
import RepositoryCombinePath from './RepositoryCombinePath';
import RepositoryNoneData from './RepositoryNoneData';
import './Repository.css';
const $ = window.$;
@ -50,7 +51,7 @@ class Repository extends Component {
{ repositoryLoading ? <div style={{ minHeight: '500px'}}></div> :
<div className="mb10" id="collaborators_list_info">
<div className="clearfix edu-back-white">
<div className="padding16-20 clearfix">
<div className="padding16-20 clearfix borbotF4">
<div className="fl1 clearfix1 mr201">
<div className="repositorytitle">
<div className="fl font-12 color-grey-9 pr">
@ -144,7 +145,7 @@ class Repository extends Component {
</style>
{/* 用户、最近提交时间 */}
{
trees === undefined || trees === null ||trees.length===0? <NoneData></NoneData>:
trees === undefined || trees === null ||trees.length===0? <RepositoryNoneData></RepositoryNoneData>:
<div>
{commits===undefined?"":commits===null||commits.length===0?"":<div className="edu-back-skyblue padding10-20 clearfix">
<img alt={author.name} className="radius fl mr10"

@ -1,14 +1,14 @@
import React, { Component } from 'react';
import { getImageUrl , getUrl } from 'educoder';
class NoneData extends Component{
class RepositoryNoneData extends Component{
constructor(props) {
super(props)
}
render(){
const { style } = this.props;
return(
<div className="edu-tab-con-box clearfix edu-txt-center" style={ style || { width:"100%" }}>
<div className="mt50 clearfix edu-txt-center" style={ style || { width:"100%" }}>
<style>
{`
.edu-tab-con-box{
@ -20,12 +20,16 @@ class NoneData extends Component{
img.edu-nodata-img{
margin: 40px auto 20px;
}
.RepositoryNoneDataimg{
width: 90%;
height: 100%;
}
`}
</style>
<img className="edu-nodata-img mb20" src={getUrl("/images/educoder/RepositoryNoneData.png")}/>
<p className="edu-nodata-p mb20">暂时还没有相关数据哦</p>
<img className="RepositoryNoneDataimg mb30" src={getUrl("/images/educoder/RepositoryNoneData.png")}/>
<p className="edu-nodata-p mb50">暂时还没有相关数据哦</p>
</div>
)
}
}
export default NoneData;
export default RepositoryNoneData;
Loading…
Cancel
Save