This commit is contained in:
caishi 2021-12-15 09:31:43 +08:00
parent 21078af26f
commit e25de315f8
5 changed files with 2 additions and 65 deletions

View File

@ -5,7 +5,7 @@ const Nav = styled.div`{
background-color:#fff;
padding:20px 30px;
border-bottom:1px solid #eee;
font-size:16px;
font-size:18px;
color:#333;
display:flex;
justify-content: space-between;

View File

@ -29,14 +29,6 @@ const CoderRootVersion = Loadable({
loader: () => import('./version/Index'),
loading: Loading,
})
// const CoderRootVersionNew = Loadable({
// loader: () => import('./version/New'),
// loading: Loading,
// })
// const CoderRootVersionUpdate = Loadable({
// loader: () => import('./version/New'),
// loading: Loading,
// })
const Diff = Loadable({
loader: () => import('./Diff'),
loading: Loading,
@ -50,37 +42,6 @@ class CoderRootIndex extends Component{
}
}
// componentDidMount=()=>{
// this.Init();
// }
// componentDidUpdate=(prevProps)=>{
// const { location } = this.props;
// const prevlocation = prevProps && prevProps.location;
// if (location !== prevlocation) {
// this.Init();
// }
// }
// Init=()=>{
// const { branchName } = this.props.match.params;
// const { defaultBranch } = this.props;
// this.getTopCount(branchName || defaultBranch);
// }
// 获取<Top />组件里要显示的数据
// getTopCount=(branch)=>{
// const { projectsId , owner } = this.props.match.params;
// const url = `/${owner}/${projectsId}/top_counts.json`;
// axios.get(url,{params:{
// ref:branch
// }}).then(result=>{
// if(result){
// this.setState({
// coderCount:result.data
// })
// }
// }).catch(error=>{console.log(error);})
// }
render(){
return(
<div className="coderSubPage">

View File

@ -11,15 +11,6 @@ import Tree from '../img/tree.png';
import Axios from 'axios';
function turnbar(str){
// const s = '!@/:"<>|%$¥';
// for(var i=0;i<s.length;i++){
// let s1 = s[i];
// if(str.indexOf(s1) > -1){
// return Base64.encode(str);
// }else{
// continue;
// }
// }
if(str && str.length>0 && str.indexOf("/")>-1){
return str.replaceAll('/','%2F');
}

View File

@ -42,21 +42,6 @@
.but25{height: 32px; }
}
// button {
// color: #333333;
// background: #FAFBFC;
// border: 1px solid #D0D0D0;
// border-radius: 4px;
// height: 32px;
// }
// button:hover {
// background: #F3F4F6;
// }
// button:active {
// background: #EBECF0;
// }
.deleteBut{
color: #DF0002;
}

View File

@ -54,7 +54,7 @@ function SSH(props) {
<div>
<DeleteBox visible={visible} onCancel={()=>setVisible(false)} onSuccess={onSuccess}/>
<SSHDetail visible={visibleDesc} onCancel={()=>setVisibleDesc(false)} desc={content}/>
<div className="sshHead">
<div className="sshHead" style={{paddingBottom:'10px'}}>
<span className="text-shadow07">SSH密钥</span>
<button type="primary" size="large" onClick={()=>props.history.push('/settings/SSH/new')} className="but25">添加SSH密钥</button>
</div>