添加一个数据空白页面lqx

forge
lqx 5 years ago
parent 947cb4302d
commit cb5b4b56d4

@ -104,7 +104,7 @@
"wrap-md-editor": "^0.2.20"
},
"scripts": {
"start": "node --max_old_space_size=15360 scripts/start.js",
"start": "node --max_old_space_size=20000 scripts/start.js",
"build": "node --max_old_space_size=15360 scripts/build.js",
"concat": "node scripts/concat.js",
"gen_stats": "NODE_ENV=production webpack --profile --config=./config/webpack.config.prod.js --json > stats.json",

@ -45,7 +45,8 @@ export function initAxiosInterceptors(props) {
// https://github.com/axios/axios/issues/1497
// TODO 读取到package.json中的配置
var proxy = "http://localhost:3000"
var proxy = "http://123.59.135.93:56666"
//var proxy = "http://localhost:3000"
// proxy = "http://testbdweb.trustie.net"
// proxy = "http://testbdweb.educoder.net"
// proxy = "https://testeduplus2.educoder.net"

@ -3,7 +3,8 @@ import { Route , Switch , Link} from 'react-router-dom';
import Loadable from 'react-loadable';
import Loading from '../../Loading';
/*空数据页面 */
import NullData from './NullData';
import axios from 'axios';

@ -0,0 +1,58 @@
import React, { Component } from 'react';
import "../Branch/branch.css"
class NullData extends Component {
render() {
return (
<div className="null_data_box">
<h4 className="title">快速帮助</h4>
<div className="bottom">
<div className="item">
<h3 className="item_title">克隆当前仓库<small>不知道如何克隆查看<a href="https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository">帮助</a></small></h3>
<div className="gitAddressClone">
<span >HTTP</span>
<input type="text" id="copy_rep_content" />
<span><i className="iconfont icon-fuzhi"></i></span>
</div>
</div>
<div className="item">
<h3 className="item_title">从命令行创建一个新的仓库</h3>
<div className="Markdown">
<pre>
<code>
touch README.md<br/>
git init<br/>
git add README.md<br/>
git commit -m "first commit"<br/>
git remote add origin
<span className="clone-url"></span> <br/>
git push -u origin master
</code>
</pre>
</div>
</div>
<div className="item">
<h3 className="item_title">从命令行推送已创建的仓库</h3>
<div className="Markdown">
<pre>
<code>
git remote add origin
<span className="clone-url"></span><br/>
git push -u origin master
</code>
</pre>
</div>
</div>
</div>
</div>
);
};
}
export default NullData;

@ -429,3 +429,45 @@ body,#root{
width: 100%;
}
}
.null_data_box{
width: 100%;
border: 1px solid #d4d4d5;
border-radius:3px ;
}
.title{
font-weight: bold;
background: #f4f4f4;
padding: 10px 15px;
box-sizing: border-box;
border-bottom: 1px solid #d4d4d5;
}
.item_title{
font-size:18px;
font-weight: bold;
margin-bottom: 15px;
}
.item{
padding: 15px;
border-bottom: 1px solid #dededf;
}
.item:last-child{
border-bottom:none;
}
.gitAddressClone{
margin: 0 !important;
}
.item_title small{
font-weight: 400;
margin-left: 10px;
}
.item_title small a{
color: #4183c6;
}
.Markdown{
background: #f7f7f7;
padding: 10px 20px;
}
.item .gitAddressClone input:focus{
border: 1px solid #2185d0;
}
Loading…
Cancel
Save