ssh-初步

This commit is contained in:
caishi 2021-04-08 17:44:31 +08:00
parent 78aba67917
commit 80cae93045
4 changed files with 59 additions and 36 deletions

View File

@ -32,7 +32,7 @@ export function initAxiosInterceptors(props) {
// 判断网络是否连接
initOnlineOfflineListener();
var proxy = "https://testforgeplus.trustie.net";
var proxy = "https://forgeplus.trustie.net";
//响应前的设置
axios.interceptors.request.use(
config => {

View File

@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import { Spin } from "antd";
import { Spin , Menu } from "antd";
import { FlexAJ, AlignCenter } from "../Component/layout";
import axios from "axios";
@ -17,6 +17,8 @@ export default ({
const [spining, setSpining] = useState(true);
const [stage, setStage] = useState(undefined);
const [step, setStep] = useState(undefined);
const [nav, setNav] = useState("0");
useEffect(() => {
setSpining(rightSpin);
}, [rightSpin]);
@ -66,6 +68,12 @@ export default ({
}
return (
<Spin spinning={spining}>
{/* <Menu className="devopsNav" onClick={(e)=>{setNav(e.key)}} selectedKeys={[nav]} mode="horizontal">
<Menu.Item key={'0'} value="0">文件</Menu.Item>
<Menu.Item key={'1'} value="1">命令行</Menu.Item>
</Menu> */}
{
nav === "0" &&
<div className="rightMainContent">
{data && data.status !== "error" ? (
<div>
@ -102,6 +110,8 @@ export default ({
<div style={{ color: "red" }}>error:{data && data.error}</div>
)}
</div>
}
</Spin>
);
};

View File

@ -194,6 +194,18 @@
&.rightSection{
width:100%;
background-color: #081930;
.devopsNav{
background-color: #111c24;
border-bottom: none;
.ant-menu-item{
color: #ccc;
padding:0px;
margin:0px 20px!important;
}
.ant-menu-item.ant-menu-item-selected{
color: #1890ff;
}
}
.rightMainContent{
padding:24px 30px;
height:100vh;

View File

@ -217,6 +217,7 @@ function CoderDepot(props){
</Menu>
</div>
)
// website
function okUpdate(d,w,l){
const url = `/${owner}/${projectsId}.json`;
axios.put(url,{