parent
cc19ab6ccc
commit
eb53688bf6
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"files": {
|
"files": {
|
||||||
"main.css": "/static/xxqg/build/static/css/main.fc31f0e5.css",
|
"main.css": "/static/xxqg/build/static/css/main.fc31f0e5.css",
|
||||||
"main.js": "/static/xxqg/build/static/js/main.8e16deea.js",
|
"main.js": "/static/xxqg/build/static/js/main.84a3a5e3.js",
|
||||||
"static/js/312.600b1c1c.chunk.js": "/static/xxqg/build/static/js/312.600b1c1c.chunk.js",
|
"static/js/312.600b1c1c.chunk.js": "/static/xxqg/build/static/js/312.600b1c1c.chunk.js",
|
||||||
"static/js/4877.63f2a077.chunk.js": "/static/xxqg/build/static/js/4877.63f2a077.chunk.js",
|
"static/js/4877.63f2a077.chunk.js": "/static/xxqg/build/static/js/4877.63f2a077.chunk.js",
|
||||||
"static/js/1074.4c2739c5.chunk.js": "/static/xxqg/build/static/js/1074.4c2739c5.chunk.js",
|
"static/js/1074.4c2739c5.chunk.js": "/static/xxqg/build/static/js/1074.4c2739c5.chunk.js",
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
"static/media/codicon.ttf": "/static/xxqg/build/static/media/codicon.b797181c93b3755f4fa1.ttf",
|
"static/media/codicon.ttf": "/static/xxqg/build/static/media/codicon.b797181c93b3755f4fa1.ttf",
|
||||||
"index.html": "/static/xxqg/build/index.html",
|
"index.html": "/static/xxqg/build/index.html",
|
||||||
"main.fc31f0e5.css.map": "/static/xxqg/build/static/css/main.fc31f0e5.css.map",
|
"main.fc31f0e5.css.map": "/static/xxqg/build/static/css/main.fc31f0e5.css.map",
|
||||||
"main.8e16deea.js.map": "/static/xxqg/build/static/js/main.8e16deea.js.map",
|
"main.84a3a5e3.js.map": "/static/xxqg/build/static/js/main.84a3a5e3.js.map",
|
||||||
"312.600b1c1c.chunk.js.map": "/static/xxqg/build/static/js/312.600b1c1c.chunk.js.map",
|
"312.600b1c1c.chunk.js.map": "/static/xxqg/build/static/js/312.600b1c1c.chunk.js.map",
|
||||||
"4877.63f2a077.chunk.js.map": "/static/xxqg/build/static/js/4877.63f2a077.chunk.js.map",
|
"4877.63f2a077.chunk.js.map": "/static/xxqg/build/static/js/4877.63f2a077.chunk.js.map",
|
||||||
"1074.4c2739c5.chunk.js.map": "/static/xxqg/build/static/js/1074.4c2739c5.chunk.js.map",
|
"1074.4c2739c5.chunk.js.map": "/static/xxqg/build/static/js/1074.4c2739c5.chunk.js.map",
|
||||||
|
@ -175,6 +175,6 @@
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/css/main.fc31f0e5.css",
|
"static/css/main.fc31f0e5.css",
|
||||||
"static/js/main.8e16deea.js"
|
"static/js/main.84a3a5e3.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/xxqg/build/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/xxqg/build/logo192.png"/><link rel="manifest" href="/static/xxqg/build/manifest.json"/><title>Study XXQG</title><script defer="defer" src="/static/xxqg/build/static/js/main.8e16deea.js"></script><link href="/static/xxqg/build/static/css/main.fc31f0e5.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/xxqg/build/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/xxqg/build/logo192.png"/><link rel="manifest" href="/static/xxqg/build/manifest.json"/><title>Study XXQG</title><script defer="defer" src="/static/xxqg/build/static/js/main.84a3a5e3.js"></script><link href="/static/xxqg/build/static/css/main.fc31f0e5.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -15,6 +15,7 @@
|
||||||
"http-proxy-middleware": "^2.0.5",
|
"http-proxy-middleware": "^2.0.5",
|
||||||
"monaco-editor": "^0.34.0",
|
"monaco-editor": "^0.34.0",
|
||||||
"monaco-yaml": "^4.0.2",
|
"monaco-yaml": "^4.0.2",
|
||||||
|
"qrcode.react": "^3.1.0",
|
||||||
"react": "17.x",
|
"react": "17.x",
|
||||||
"react-dom": "17.x",
|
"react-dom": "17.x",
|
||||||
"react-monaco-editor": "^0.50.1",
|
"react-monaco-editor": "^0.50.1",
|
||||||
|
|
|
@ -168,6 +168,7 @@ function App(props: any, states: any) {
|
||||||
let navigate = useNavigate();
|
let navigate = useNavigate();
|
||||||
let location = useLocation();
|
let location = useLocation();
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
checkToken().then((t) => {
|
checkToken().then((t) => {
|
||||||
console.log(t)
|
console.log(t)
|
||||||
|
|
|
@ -84,6 +84,19 @@ class AddUser extends Component<any, any>{
|
||||||
<h2 style={{margin:10,color:"red",display:this.isWechat()}}>当前环境为微信环境,请点击右上角在浏览器中打开</h2>
|
<h2 style={{margin:10,color:"red",display:this.isWechat()}}>当前环境为微信环境,请点击右上角在浏览器中打开</h2>
|
||||||
<Button onClick={this.click} color={"primary"} style={{marginRight:10,marginTop:10,marginBottom:10}} block>生成链接</Button>
|
<Button onClick={this.click} color={"primary"} style={{marginRight:10,marginTop:10,marginBottom:10}} block>生成链接</Button>
|
||||||
<span>{this.state.link}</span>
|
<span>{this.state.link}</span>
|
||||||
|
{/*<QRCode*/}
|
||||||
|
{/* id="qrCode"*/}
|
||||||
|
{/* value={this.state.img}*/}
|
||||||
|
{/* size={400} // 二维码的大小*/}
|
||||||
|
{/* fgColor="#000000" // 二维码的颜色*/}
|
||||||
|
{/* style={{ margin: 'auto' ,display:this.state.img === "你还未获取登录链接" ? "none" : "block"}}*/}
|
||||||
|
{/* imageSettings={{ // 二维码中间的logo图片*/}
|
||||||
|
{/* src: qr,*/}
|
||||||
|
{/* height: 100,*/}
|
||||||
|
{/* width: 100,*/}
|
||||||
|
{/* excavate: true, // 中间图片所在的位置是否镂空*/}
|
||||||
|
{/* }}*/}
|
||||||
|
{/*/>*/}
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@ class Config extends Component<any, any>{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
editorDidMount = (editor:any, monaco:any) => {
|
editorDidMount = (editor:any, monaco:any) => {
|
||||||
console.log('editorDidMount', editor);
|
|
||||||
editor.focus();
|
editor.focus();
|
||||||
}
|
}
|
||||||
onChange = (newValue:any, e:any)=> {
|
onChange = (newValue:any, e:any)=> {
|
||||||
|
@ -41,7 +40,8 @@ class Config extends Component<any, any>{
|
||||||
if (resp.code === 200){
|
if (resp.code === 200){
|
||||||
Toast.show("保存成功")
|
Toast.show("保存成功")
|
||||||
}else {
|
}else {
|
||||||
Dialog.show({content:resp.err})
|
console.log(resp)
|
||||||
|
Dialog.show({content:"配置提交失败"+resp.error,closeOnMaskClick:true,closeOnAction:true})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ class Users extends Component<any, any>{
|
||||||
|
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
Dialog.show({content:data.error})
|
Dialog.show({content:data.error,closeOnMaskClick:true,closeOnAction:true})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import axios, {AxiosInstance, AxiosRequestConfig} from "axios";
|
import axios, {AxiosInstance, AxiosRequestConfig} from "axios";
|
||||||
|
import {useNavigate} from "react-router-dom";
|
||||||
|
|
||||||
type TAxiosOption = {
|
type TAxiosOption = {
|
||||||
baseURL: string;
|
baseURL: string;
|
||||||
|
@ -23,7 +24,16 @@ class Http {
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
},()=>{
|
},()=>{
|
||||||
|
console.log("请求异常")
|
||||||
|
})
|
||||||
|
this.service.interceptors.response.use((value)=>{
|
||||||
|
console.log(value.data)
|
||||||
|
return value
|
||||||
|
},(error)=>{
|
||||||
|
console.log(error.message)
|
||||||
|
if (error.message === "Request failed with status code 401"){
|
||||||
|
window.location.hash = "/login"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7103,6 +7103,11 @@ q@^1.1.2:
|
||||||
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
|
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
|
||||||
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
|
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
|
||||||
|
|
||||||
|
qrcode.react@^3.1.0:
|
||||||
|
version "3.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/qrcode.react/-/qrcode.react-3.1.0.tgz#5c91ddc0340f768316fbdb8fff2765134c2aecd8"
|
||||||
|
integrity sha512-oyF+Urr3oAMUG/OiOuONL3HXM+53wvuH3mtIWQrYmsXoAq0DkvZp2RYUWFSMFtbdOpuS++9v+WAkzNVkMlNW6Q==
|
||||||
|
|
||||||
qs@6.9.7:
|
qs@6.9.7:
|
||||||
version "6.9.7"
|
version "6.9.7"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe"
|
||||||
|
|
Loading…
Reference in New Issue