ssh-初步
This commit is contained in:
parent
78aba67917
commit
80cae93045
|
@ -32,7 +32,7 @@ export function initAxiosInterceptors(props) {
|
||||||
// 判断网络是否连接
|
// 判断网络是否连接
|
||||||
initOnlineOfflineListener();
|
initOnlineOfflineListener();
|
||||||
|
|
||||||
var proxy = "https://testforgeplus.trustie.net";
|
var proxy = "https://forgeplus.trustie.net";
|
||||||
//响应前的设置
|
//响应前的设置
|
||||||
axios.interceptors.request.use(
|
axios.interceptors.request.use(
|
||||||
config => {
|
config => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Spin } from "antd";
|
import { Spin , Menu } from "antd";
|
||||||
import { FlexAJ, AlignCenter } from "../Component/layout";
|
import { FlexAJ, AlignCenter } from "../Component/layout";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ export default ({
|
||||||
const [spining, setSpining] = useState(true);
|
const [spining, setSpining] = useState(true);
|
||||||
const [stage, setStage] = useState(undefined);
|
const [stage, setStage] = useState(undefined);
|
||||||
const [step, setStep] = useState(undefined);
|
const [step, setStep] = useState(undefined);
|
||||||
|
const [nav, setNav] = useState("0");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setSpining(rightSpin);
|
setSpining(rightSpin);
|
||||||
}, [rightSpin]);
|
}, [rightSpin]);
|
||||||
|
@ -66,6 +68,12 @@ export default ({
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Spin spinning={spining}>
|
<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">
|
<div className="rightMainContent">
|
||||||
{data && data.status !== "error" ? (
|
{data && data.status !== "error" ? (
|
||||||
<div>
|
<div>
|
||||||
|
@ -102,6 +110,8 @@ export default ({
|
||||||
<div style={{ color: "red" }}>error:{data && data.error}</div>
|
<div style={{ color: "red" }}>error:{data && data.error}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
</Spin>
|
</Spin>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -194,6 +194,18 @@
|
||||||
&.rightSection{
|
&.rightSection{
|
||||||
width:100%;
|
width:100%;
|
||||||
background-color: #081930;
|
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{
|
.rightMainContent{
|
||||||
padding:24px 30px;
|
padding:24px 30px;
|
||||||
height:100vh;
|
height:100vh;
|
||||||
|
|
|
@ -217,6 +217,7 @@ function CoderDepot(props){
|
||||||
</Menu>
|
</Menu>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
// 确认修改简介、website、实践课程链接
|
||||||
function okUpdate(d,w,l){
|
function okUpdate(d,w,l){
|
||||||
const url = `/${owner}/${projectsId}.json`;
|
const url = `/${owner}/${projectsId}.json`;
|
||||||
axios.put(url,{
|
axios.put(url,{
|
||||||
|
|
Loading…
Reference in New Issue