forked from Gitlink/forgeplus-react
upload
This commit is contained in:
parent
79c943d31b
commit
d1232be557
|
@ -261,10 +261,8 @@ class App extends Component {
|
||||||
}
|
}
|
||||||
}>
|
}>
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
{/*403*/}
|
{/*403*/}
|
||||||
<Route path="/403" component={Shixunauthority} />
|
<Route path="/403" component={Shixunauthority} />
|
||||||
|
|
||||||
<Route path="/500" component={http500} />
|
<Route path="/500" component={http500} />
|
||||||
<Route path={"/organize"}
|
<Route path={"/organize"}
|
||||||
render={
|
render={
|
||||||
|
|
|
@ -58,8 +58,8 @@ export function initAxiosInterceptors(props) {
|
||||||
initOnlineOfflineListener()
|
initOnlineOfflineListener()
|
||||||
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation
|
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation
|
||||||
var
|
var
|
||||||
proxy = "http://localhost:3000"
|
// proxy = "http://localhost:3000"
|
||||||
// proxy = "https://testforgeplus.trustie.net"
|
proxy = "https://testforgeplus.trustie.net"
|
||||||
|
|
||||||
const requestMap = {};
|
const requestMap = {};
|
||||||
window.setfalseInRequestMap = function (keyName) {
|
window.setfalseInRequestMap = function (keyName) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default ({ id , permission , calbackFunc , confirm }) => {
|
||||||
// 置顶、取消置顶
|
// 置顶、取消置顶
|
||||||
function changeSticky(s){
|
function changeSticky(s){
|
||||||
let sticky = s ? 0 : 1;//1为置顶,0为取消置顶
|
let sticky = s ? 0 : 1;//1为置顶,0为取消置顶
|
||||||
const url = `/memos/${id}/set-top-or-down.json`;
|
const url = `/memos/${id}/set_top_or_down.json`;
|
||||||
axios.get(url,{
|
axios.get(url,{
|
||||||
params:{
|
params:{
|
||||||
sticky
|
sticky
|
||||||
|
|
|
@ -147,8 +147,18 @@
|
||||||
border:none!important;
|
border:none!important;
|
||||||
text-align: left!important;
|
text-align: left!important;
|
||||||
background-color: #fff!important;
|
background-color: #fff!important;
|
||||||
height: 20px!important;
|
.ant-upload-drag-container{
|
||||||
line-height: 20px!important;
|
i{
|
||||||
|
font-size: 50px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
display: flex!important;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
border:1px dashed #eee;
|
||||||
|
padding:15px 0px;
|
||||||
|
}
|
||||||
.ant-upload{
|
.ant-upload{
|
||||||
padding:0px!important;
|
padding:0px!important;
|
||||||
}
|
}
|
||||||
|
@ -172,9 +182,12 @@
|
||||||
.headerInfoLeft{
|
.headerInfoLeft{
|
||||||
display:flex;
|
display:flex;
|
||||||
flex:1;
|
flex:1;
|
||||||
align-items:flex-start;
|
align-items:center;
|
||||||
width:0;
|
width:0;
|
||||||
}
|
}
|
||||||
|
.tag{
|
||||||
|
margin-top:0px!important;
|
||||||
|
}
|
||||||
.originalTag{
|
.originalTag{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 50px;
|
right: 50px;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState } from "react";
|
||||||
import { getUrl } from "educoder";
|
import { getUrl } from "educoder";
|
||||||
import { Button, message } from "antd";
|
import { Button, message } from "antd";
|
||||||
import MDEditor from "../../modules/tpm/challengesnew/tpm-md-editor";
|
import MDEditor from "../../modules/tpm/challengesnew/tpm-md-editor";
|
||||||
|
|
|
@ -1,37 +1,26 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
|
|
||||||
|
|
||||||
import Loading from '../../Loading';
|
|
||||||
|
|
||||||
import Loadable from 'react-loadable';
|
|
||||||
|
|
||||||
import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
|
import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
|
||||||
|
import { SnackbarHOC, getImageUrl } from 'educoder';
|
||||||
import { SnackbarHOC,getImageUrl } from 'educoder';
|
|
||||||
|
|
||||||
class Shixunnopage extends Component {
|
class Shixunnopage extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="newMain clearfix">
|
<div className="newMain clearfix">
|
||||||
<div className=" edu-txt-center mt60 mb60">
|
<div className=" edu-txt-center mt60 mb60">
|
||||||
{/*mt100 mb100*/}
|
{/*mt100 mb100*/}
|
||||||
<img src={getImageUrl("images/warn/pic_500.jpg")} />
|
<img src={getImageUrl("images/warn/pic_500.jpg")} alt="" />
|
||||||
<p className="font-18 mt40">
|
<p className="font-18 mt40">
|
||||||
您可以稍后尝试 <a href="/"
|
您可以稍后尝试 <a href="/"
|
||||||
className="color-blue">返回首页</a>
|
className="color-blue">返回首页</a>
|
||||||
,或者
|
,或者
|
||||||
<a target="_blank"
|
<a target="_blank"
|
||||||
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"
|
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"
|
||||||
className="color-blue">QQ反馈>></a>
|
className="color-blue">QQ反馈>></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{/*<div style="clear:both;"></div>*/}
|
|
||||||
{/*<div id="ajax-indicator" style="display:none;"><span>载入中...</span></div>*/}
|
|
||||||
{/*<div id="ajax-modal" style="display:none;"></div>*/}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SnackbarHOC() (TPMIndexHOC ( Shixunnopage ));
|
export default SnackbarHOC()(TPMIndexHOC(Shixunnopage));
|
||||||
|
|
Loading…
Reference in New Issue