update monaco-editor

dev_aliyun2
harry 5 years ago
parent afadd23dfd
commit 29d4501aab

@ -1,116 +1,114 @@
import React,{ Component } from "react"; import React, { Component } from "react";
import { Input,Checkbox,Table, Pagination, Modal,Menu, Tooltip,Spin,Button,Form,Icon,message,Progress,notification} from "antd"; import { Modal, Spin, Button, Form, Icon, message, Progress, notification } from "antd";
import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder';
import './myelearning.css' import './myelearning.css'
import axios from 'axios'; import axios from 'axios';
import YslDetailCards from "./YslDetailCards.js"; import YslDetailCards from "./YslDetailCards.js";
import Jointheclass from '../../modals/Jointheclass'; import Jointheclass from '../../modals/Jointheclass';
import LoginDialog from "../../login/LoginDialog"; import LoginDialog from "../../login/LoginDialog";
import NoneData from '../../../modules/courses/coursesPublic/NoneData'
//在线学习 //在线学习
class Elearning extends Component{ class Elearning extends Component {
constructor(props){ constructor(props) {
super(props); super(props);
this.state={ this.state = {
description:"", //简介 description: "", //简介
isSpin:true, isSpin: true,
start_learning:undefined, //是否要开始学习 没开始学习 点击第一个是开始学习 就是学习下面的从第一个开始 start_learning: undefined, //是否要开始学习 没开始学习 点击第一个是开始学习 就是学习下面的从第一个开始
learned:0, //学习进度 learned: 0, //学习进度
last_shixun:"", //上次学习的实训 last_shixun: "", //上次学习的实训
stages:[], //实践课程的章节 stages: [], //实践课程的章节
yslJointhe:false, yslJointhe: false,
shixunsreplace:false, shixunsreplace: false,
hidestartshixunsreplacevalue:"", hidestartshixunsreplacevalue: "",
shixunsmessage:"", shixunsmessage: "",
startshixunCombattype:false, startshixunCombattype: false,
isSpins:false, isSpins: false,
userlogin:"", userlogin: "",
isRender:false, isRender: false,
subject_id:0, subject_id: 0,
myupdataleftNavs:this.myupdataleftNav myupdataleftNavs: this.myupdataleftNav
} }
} }
componentDidMount() { componentDidMount() {
// 记得删除退出课堂 // 记得删除退出课堂
// console.log("在线学习"); // console.log("在线学习");
// console.log("获取到数据"); // console.log("获取到数据");
// console.log(this.props); // console.log(this.props);
this.getdata(); this.getdata();
} }
getdata=()=>{ getdata = () => {
console.log("更新了数据了"); console.log("更新了数据了");
let url = `/courses/${this.props.match.params.coursesId}/online_learning.json`; let url = `/courses/${this.props.match.params.coursesId}/online_learning.json`;
// // // //
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response){ if (response) {
if(response.data){ if (response.data) {
// console.log("获取到到数据"); // console.log("获取到到数据");
// console.log(response); // console.log(response);
this.setState({ this.setState({
description: response.data.description, description: response.data.description,
start_learning:response.data.start_learning, start_learning: response.data.start_learning,
learned:response.data.learned, learned: response.data.learned,
last_shixun:response.data.last_shixun, last_shixun: response.data.last_shixun,
stages:response.data.stages, stages: response.data.stages,
subject_id:response.data.subject_id, subject_id: response.data.subject_id,
}); });
} }
} }
this.setState({ this.setState({
isSpin:false, isSpin: false,
}) })
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);
this.setState({ this.setState({
isSpin:false, isSpin: false,
}) })
}); });
try { try {
if(this.props.current_user!==undefined){ if (this.props.current_user !== undefined) {
this.setState({ this.setState({
userlogin :this.props.current_user.login, userlogin: this.props.current_user.login,
}) })
} }
}catch (e) { } catch (e) {
console.log("12312312312") console.log("12312312312")
console.log(e); console.log(e);
} }
} }
componentDidUpdate = (prevProps) => { componentDidUpdate = (prevProps) => {
console.log("componentDidUpdate"); console.log("componentDidUpdate");
// console.log(prevProps); // console.log(prevProps);
// console.log(this.props); // console.log(this.props);
if(prevProps.current_user!=this.props.current_user){ if (prevProps.current_user != this.props.current_user) {
if(this.props.current_user!==undefined){ if (this.props.current_user !== undefined) {
// console.log(this.props.current_user.login); // console.log(this.props.current_user.login);
// console.log(prevProps.current_user.login); // console.log(prevProps.current_user.login);
this.setState({ this.setState({
userlogin :this.props.current_user.login, userlogin: this.props.current_user.login,
}) })
} }
} }
if(prevProps.yslElearning===this.props.yslElearning) { if (prevProps.yslElearning === this.props.yslElearning) {
if(prevProps.yslElearning===true && this.props.yslElearning===true){ if (prevProps.yslElearning === true && this.props.yslElearning === true) {
// console.log("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); // console.log("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
// console.log(prevProps.yslElearning); // console.log(prevProps.yslElearning);
// console.log(this.props.yslElearning); // console.log(this.props.yslElearning);
this.getdata(); this.getdata();
this.props.comyslElearning(false); this.props.comyslElearning(false);
}
} }
}
} }
//开始学习 //开始学习
Startlearning=()=>{ Startlearning = () => {
let {userlogin} = this.state; let { userlogin } = this.state;
console.log("userlogin"); console.log("userlogin");
console.log(userlogin); console.log(userlogin);
if (userlogin === undefined) { if (userlogin === undefined) {
@ -125,38 +123,38 @@ class Elearning extends Component{
}) })
return; return;
} }
if(this.props.isNotMember()===true){ if (this.props.isNotMember() === true) {
this.setState({ this.setState({
yslJointhe:true yslJointhe: true
}) })
}else { } else {
let {stages}=this.state; let { stages } = this.state;
if(stages.length>0){ if (stages.length > 0) {
var stagesdatas=[]; var stagesdatas = [];
for(var i=0;i<stages.length;i++){ for (var i = 0; i < stages.length; i++) {
for(var ki=0;ki<stages[i].shixuns_list.length;ki++){ for (var ki = 0; ki < stages[i].shixuns_list.length; ki++) {
if(stages[i].shixuns_list[ki].shixun_status !=="暂未公开"){ if (stages[i].shixuns_list[ki].shixun_status !== "暂未公开") {
var id=stages[i].shixuns_list[ki].identifier; var id = stages[i].shixuns_list[ki].identifier;
console.log(id); console.log(id);
stagesdatas.push(id); stagesdatas.push(id);
} }
} }
} }
console.log(stagesdatas[0]); console.log(stagesdatas[0]);
if(stagesdatas.length>0){ if (stagesdatas.length > 0) {
this.kaishishixun(stagesdatas[0]); this.kaishishixun(stagesdatas[0]);
}else { } else {
notification.open({ notification.open({
message:"提示", message: "提示",
description: "实训暂未公开!" description: "实训暂未公开!"
}); });
} }
console.log("这是"+i); console.log("这是" + i);
} }
} }
}; };
kaishishixun=(id)=>{ kaishishixun = (id) => {
let url = "/shixuns/" + id + "/shixun_exec.json"; let url = "/shixuns/" + id + "/shixun_exec.json";
axios.get(url).then((response) => { axios.get(url).then((response) => {
console.log("精品课堂开发学习"); console.log("精品课堂开发学习");
@ -165,19 +163,19 @@ class Elearning extends Component{
if (response.data.status === -2) { if (response.data.status === -2) {
this.setState({ this.setState({
shixunsreplaces:true, shixunsreplaces: true,
hidestartshixunsreplacevalues:response.data.message+".json" hidestartshixunsreplacevalues: response.data.message + ".json"
}) })
} else if (response.data.status === -1) { } else if (response.data.status === -1) {
console.log(response) console.log(response)
}else if(response.data.status===-3){ } else if (response.data.status === -3) {
this.setState({ this.setState({
shixunsmessages:response.data.message, shixunsmessages: response.data.message,
startshixunCombattypes:true, startshixunCombattypes: true,
}) })
} else { } else {
console.log("开始学习了"); console.log("开始学习了");
window.open("/tasks/" + response.data.game_identifier,'_blank'); window.open("/tasks/" + response.data.game_identifier, '_blank');
//这个是传过来 调用刷新 //这个是传过来 调用刷新
this.Myreload(); this.Myreload();
// window.location.href = path // window.location.href = path
@ -189,60 +187,61 @@ class Elearning extends Component{
}); });
} }
Startlearningtwo=()=>{ Startlearningtwo = () => {
this.setState({ this.setState({
yslJointhe:true yslJointhe: true
}) })
}; };
ysljoinmodalCancel=()=>{ ysljoinmodalCancel = () => {
this.setState({ this.setState({
yslJointhe:false yslJointhe: false
}) })
}; };
ysljoinmodalCanceltwo=()=>{ ysljoinmodalCanceltwo = () => {
this.setState({ this.setState({
yslJointhe:false yslJointhe: false
}) })
window.location.reload(); window.location.reload();
}; };
Myreload = ()=>{ Myreload = () => {
window.location.reload(); window.location.reload();
}; };
hidestartshixunsreplace=(url)=>{ hidestartshixunsreplace = (url) => {
this.setState({ this.setState({
isSpins:true, isSpins: true,
}) })
axios.get(url).then((response) => { axios.get(url).then((response) => {
// debugger // debugger
if(response.status===200){ if (response.status === 200) {
// let path="/shixuns/"+response.data.shixun_identifier+"/challenges"; // let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
// this.props.history.push(path); // this.props.history.push(path);
message.success('重置成功,正在进入实训!'); message.success('重置成功,正在进入实训!');
this.startgameid(response.data.shixun_identifier); this.startgameid(response.data.shixun_identifier);
this.setState({ this.setState({
shixunsreplaces:false, shixunsreplaces: false,
isSpins:false, isSpins: false,
}) })
// message.success('重置成功,正在进入实训!'); // message.success('重置成功,正在进入实训!');
// this.startshixunCombat(); // this.startshixunCombat();
}} }
}
).catch((error) => { ).catch((error) => {
this.setState({ this.setState({
isSpins:false, isSpins: false,
shixunsreplaces:false, shixunsreplaces: false,
}) })
}); });
}; };
startgameid=(id)=>{ startgameid = (id) => {
if(this.props.isNotMember()===true){ if (this.props.isNotMember() === true) {
//这个是外部传过来的 //这个是外部传过来的
this.Startlearningtwo(); this.Startlearningtwo();
return return
} }
let url = "/shixuns/" + id + "/shixun_exec.json"; let url = "/shixuns/" + id + "/shixun_exec.json";
@ -251,19 +250,19 @@ class Elearning extends Component{
if (response.data.status === -2) { if (response.data.status === -2) {
this.setState({ this.setState({
shixunsreplaces:true, shixunsreplaces: true,
hidestartshixunsreplacevalues:response.data.message+".json" hidestartshixunsreplacevalues: response.data.message + ".json"
}) })
} else if (response.data.status === -1) { } else if (response.data.status === -1) {
console.log(response) console.log(response)
}else if(response.data.status===-3){ } else if (response.data.status === -3) {
this.setState({ this.setState({
shixunsmessages:response.data.message, shixunsmessages: response.data.message,
startshixunCombattypes:true, startshixunCombattypes: true,
}) })
} else { } else {
console.log("开始学习了"); console.log("开始学习了");
window.open("/tasks/" + response.data.game_identifier,'_blank'); window.open("/tasks/" + response.data.game_identifier, '_blank');
//这个是传过来 调用刷新 //这个是传过来 调用刷新
this.Myreload(); this.Myreload();
// window.location.href = path // window.location.href = path
@ -275,40 +274,40 @@ class Elearning extends Component{
}); });
}; };
hidestartshixunCombattype=()=>{ hidestartshixunCombattype = () => {
this.setState({ this.setState({
startshixunCombattypes:false startshixunCombattypes: false
}) })
}; };
Modifyloginvalue=()=>{ Modifyloginvalue = () => {
this.setState({ this.setState({
isRender:false, isRender: false,
}) })
}; };
Tojoinclass=()=> { Tojoinclass = () => {
this.setState({ this.setState({
isRender: true isRender: true
}) })
}; };
myupdataleftNav=()=>{ myupdataleftNav = () => {
this.props.updataleftNavfun(); this.props.updataleftNavfun();
} }
render(){ render() {
console.log("Elearning++++++++"); console.log("Elearning++++++++");
// console.log(this.props.Chapterupdate); // console.log(this.props.Chapterupdate);
let{description,whethertoedit,isSpin,start_learning,hidestartshixunsreplacevalues,learned,last_shixun,stages,isRender} =this.state; let { description, whethertoedit, isSpin, start_learning, hidestartshixunsreplacevalues, learned, last_shixun, stages, isRender } = this.state;
const isNotMembers=this.props.isNotMember();//非课堂成员 const isNotMembers = this.props.isNotMember();//非课堂成员
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />; const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
return( return (
<React.Fragment > <React.Fragment >
<div id={"zhudiv"}> <div id={"zhudiv"}>
{isRender===true?<LoginDialog {isRender === true ? <LoginDialog
Modifyloginvalue={()=>this.Modifyloginvalue()} Modifyloginvalue={() => this.Modifyloginvalue()}
{...this.props} {...this.props}
{...this.state} {...this.state}
/>:""} /> : ""}
<Jointheclass {...this.props} {...this.state} ysljoinmodalCancel={()=>this.ysljoinmodalCancel()} ysljoinmodalCanceltwo={()=>this.ysljoinmodalCanceltwo()}></Jointheclass> <Jointheclass {...this.props} {...this.state} ysljoinmodalCancel={() => this.ysljoinmodalCancel()} ysljoinmodalCanceltwo={() => this.ysljoinmodalCanceltwo()}></Jointheclass>
<Modal <Modal
keyboard={false} keyboard={false}
title="提示" title="提示"
@ -322,8 +321,8 @@ class Elearning extends Component{
<div className="task-popup-submit clearfix"> <div className="task-popup-submit clearfix">
{/*<a onClick={this.hidestartshixunCombattype} className="task-btn fl">取消</a>*/} {/*<a onClick={this.hidestartshixunCombattype} className="task-btn fl">取消</a>*/}
<a className="task-btn task-btn-orange fr" <a className="task-btn task-btn-orange fr"
style={{marginRight:'51px'}} style={{ marginRight: '51px' }}
onClick={this.hidestartshixunCombattype}>知道了</a> onClick={this.hidestartshixunCombattype}>知道了</a>
</div> </div>
{/*<p className="inviteTipbtn with100 fl">*/} {/*<p className="inviteTipbtn with100 fl">*/}
{/*<a onClick={this.hidestartshixunCombattype}>知道了</a>*/} {/*<a onClick={this.hidestartshixunCombattype}>知道了</a>*/}
@ -342,36 +341,36 @@ class Elearning extends Component{
</div> </div>
<div className="task-popup-submit clearfix"> <div className="task-popup-submit clearfix">
<a className="task-btn task-btn-orange fr" <a className="task-btn task-btn-orange fr"
style={{marginRight:'51px'}} style={{ marginRight: '51px' }}
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalues)}>知道了</a> onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalues)}>知道了</a>
</div> </div>
</Spin> </Spin>
</Modal> </Modal>
<div className="edu-back-white"> <div className="edu-back-white">
{ {
this.props.isAdmin()===true?"": this.props.isAdmin() === true ? "" :
<div> <div>
{ {
start_learning===undefined?"":start_learning===false? start_learning === undefined ? "" : start_learning === false ?
<div className="clearfix padding30 bor-bottom-greyE" style={{textAlign: "center"}}> <div className="clearfix padding30 bor-bottom-greyE" style={{ textAlign: "center" }}>
<div style={{height: '40px',textAlign: "center"}}> <div style={{ height: '40px', textAlign: "center" }}>
<span className=" fl color-dark-21 " style={{height: '40px', textAlign: "center",fontSize:"19px"}}>还未开始学习</span> <span className=" fl color-dark-21 " style={{ height: '40px', textAlign: "center", fontSize: "19px" }}>还未开始学习</span>
<Button className="ant-btn defalutSubmitbtn ant-btn-primary colorblue font-16 fr" onClick={()=>this.Startlearning()}> <Button className="ant-btn defalutSubmitbtn ant-btn-primary colorblue font-16 fr" onClick={() => this.Startlearning()}>
<span>开始学习</span></Button> <span>开始学习</span></Button>
</div> </div>
</div> </div>
: :
<div className="clearfix padding30 bor-bottom-greyE" style={{textAlign: "center"}}> <div className="clearfix padding30 bor-bottom-greyE" style={{ textAlign: "center" }}>
<div style={{height: '40px',textAlign: "left"}}> <div style={{ height: '40px', textAlign: "left" }}>
<span className=" color-dark-21 " style={{height: '40px', textAlign: "center",fontSize:"19px",color:"#05101A"}}>已学{learned}%</span> <span className=" color-dark-21 " style={{ height: '40px', textAlign: "center", fontSize: "19px", color: "#05101A" }}>已学{learned}%</span>
</div> </div>
<div style={{marginTop:"7px",width:"401px"}}> <div style={{ marginTop: "7px", width: "401px" }}>
<Progress percent={learned} showInfo={false} /> <Progress percent={learned} showInfo={false} />
</div> </div>
<div style={{marginTop:"7px",textAlign: "left"}}> <div style={{ marginTop: "7px", textAlign: "left" }}>
<span className="font-16">上次学习内容</span><span style={{color:"#4CADFF",marginLeft:"25px"}}>{last_shixun}</span> <span className="font-16">上次学习内容</span><span style={{ color: "#4CADFF", marginLeft: "25px" }}>{last_shixun}</span>
</div> </div>
@ -380,30 +379,30 @@ class Elearning extends Component{
</div> </div>
} }
{/*简介*/} {/*简介*/}
{/*<div className="clearfix pl30 pr30" style={{paddingBottom:"22px"}}>*/} {/*<div className="clearfix pl30 pr30" style={{paddingBottom:"22px"}}>*/}
{/* <div style={{textAlign: "left",marginTop:"10px",paddingBottom: "10px"}}>*/} {/* <div style={{textAlign: "left",marginTop:"10px",paddingBottom: "10px"}}>*/}
{/* <span className=" color-dark-21 " style={{textAlign: "center",fontSize:"19px"}}>简介</span>*/} {/* <span className=" color-dark-21 " style={{textAlign: "center",fontSize:"19px"}}>简介</span>*/}
{/* </div>*/} {/* </div>*/}
{/* <div className="edu-back-white new_li editormd-html-preview " >*/} {/* <div className="edu-back-white new_li editormd-html-preview " >*/}
{/* <p className="markdown-body fonttext " dangerouslySetInnerHTML={{__html: markdownToHTML(description).replace(/▁/g,"▁▁▁")}}>*/} {/* <p className="markdown-body fonttext " dangerouslySetInnerHTML={{__html: markdownToHTML(description).replace(/▁/g,"▁▁▁")}}>*/}
{/* </p>*/} {/* </p>*/}
{/* </div>*/} {/* </div>*/}
{/*</div>*/} {/*</div>*/}
</div> </div>
<Spin size="large" spinning={isSpin} id={"cdiv"}> <Spin size="large" spinning={isSpin} id={"cdiv"}>
<div className=" clearfix" style={this.props.isAdmin()===true?{marginTop:"0px"}:{marginTop:"20px"}}> <div className=" clearfix" style={this.props.isAdmin() === true ? { marginTop: "0px" } : { marginTop: "20px" }}>
<div> <div>
{/*开始学习*/} {/*开始学习*/}
<YslDetailCards {...this.state} {...this.props} Startlearningtwo={()=>this.Startlearningtwo()} Myreload={()=>this.Myreload()} Tojoinclass={()=>this.Tojoinclass()} getPathCardsList={()=>this.getdata()} ></YslDetailCards> <YslDetailCards {...this.state} {...this.props} Startlearningtwo={() => this.Startlearningtwo()} Myreload={() => this.Myreload()} Tojoinclass={() => this.Tojoinclass()} getPathCardsList={() => this.getdata()} ></YslDetailCards>
</div> </div>
</div> </div>

@ -478,17 +478,16 @@ class LoginDialog extends Component {
} }
render() { render() {
let { qqlogin, login, isGoing, isGoingValue, disabled, bottonclass, Phonenumberisnotco, let { login, isGoing, isGoingValue, disabled, Phonenumberisnotco,
dialogBox, isRender, weixinlogin } = this.state; dialogBox, isRender, weixinlogin } = this.state;
if (isRender === undefined) { if (isRender === undefined) {
isRender = false isRender = false
} }
return ( return (
<Modal visible={isRender} id="DialogID" <Modal visible={isRender} id="DialogID"
className="zindextest" className="zindextest"
onClose={() => this.handleDialogClose()} onCancel={() => this.handleDialogClose()}
footer={null}
> >
<Notcompletedysl <Notcompletedysl
modalsType={this.state.MyEduCoderModals} modalsType={this.state.MyEduCoderModals}

@ -163,7 +163,7 @@ class MainContent extends Component {
<div style={{ display: (codeLoading ? 'block' : 'none'), textAlign: 'center' }}> <div style={{ display: (codeLoading ? 'block' : 'none'), textAlign: 'center' }}>
<span style={{ color: '#ddd', display: 'block' }}>正在加载中请稍后...</span> <span style={{ color: '#ddd', display: 'block' }}>正在加载中请稍后...</span>
</div> </div>
<div style={{ display: (codeLoading ? 'none' : 'block') }}> <div style={{ display: (codeLoading ? 'none' : 'block'), height: '100%' }}>
<CodeRepositoryViewContainer {...this.props} ></CodeRepositoryViewContainer> <CodeRepositoryViewContainer {...this.props} ></CodeRepositoryViewContainer>
</div> </div>
</React.Fragment> </React.Fragment>

@ -68,7 +68,7 @@ class TPIMonaco extends Component {
render() { render() {
const { repositoryCode, showSettingDrawer, shixun, isEditablePath, settingDrawerOpen, mirror_name } = this.props; const { repositoryCode, showSettingDrawer, shixun, isEditablePath, settingDrawerOpen, mirror_name, onRepositoryCodeUpdate } = this.props;
const { cmFontSize, cmCodeMode } = this.state const { cmFontSize, cmCodeMode } = this.state
const editorOptions = { const editorOptions = {
value: repositoryCode, value: repositoryCode,

@ -78,6 +78,23 @@ export default ({
const editor = useRef({}) const editor = useRef({})
const [init, setInit] = useState(false) const [init, setInit] = useState(false)
function onLayout() {
if (window.ResizeObserver) {
const ro = new window.ResizeObserver(entries => {
for (let entry of entries) {
if (entry.target.offsetHeight > 0) {
editor.current.instance.layout()
}
}
})
ro.observe(editorEl.current.parentElement)
} else {
setTimeout(() => {
editor.current.instance.layout()
}, 100);
}
}
useEffect(() => { useEffect(() => {
editor.current.instance = monaco.editor.create( editor.current.instance = monaco.editor.create(
editorEl.current, { editorEl.current, {
@ -98,6 +115,7 @@ export default ({
const resizeHandler = debounce(() => { editor.current.instance.layout() }, 100) const resizeHandler = debounce(() => { editor.current.instance.layout() }, 100)
window.addEventListener('resize', resizeHandler) window.addEventListener('resize', resizeHandler)
onLayout()
return () => { return () => {
const el = editor.current.instance const el = editor.current.instance
el.dispose() el.dispose()

@ -479,7 +479,7 @@ class CodeRepositoryView extends Component {
</ul> </ul>
<div className="cl"></div> <div className="cl"></div>
<div id="codetab_con_1" style={{ display: 'block', flex: 'auto' }} style={tabIndex === 0 ? { display: 'block' } : { display: 'none' }}> <div id="codetab_con_1" style={{ display: tabIndex === 0 ? 'block' : 'none', flex: 'auto', height: '100%' }} >
{this.props.readRepoTimeout === true ? <div className="readRepoFailed"> {this.props.readRepoTimeout === true ? <div className="readRepoFailed">
代码加载失败<a className="retry" 代码加载失败<a className="retry"
onClick={() => this.props.fetchRepositoryCode(this.props, null, null, true, true)}>重试</a> onClick={() => this.props.fetchRepositoryCode(this.props, null, null, true, true)}>重试</a>
@ -508,7 +508,7 @@ class CodeRepositoryView extends Component {
style={{ color: '#fff', display: tabIndex === 84 ? 'block' : 'none', 'marginLeft': '2px', 'paddingBottom': '30px' }}> style={{ color: '#fff', display: tabIndex === 84 ? 'block' : 'none', 'marginLeft': '2px', 'paddingBottom': '30px' }}>
</div> </div>
<div id="codetab_con_3" className="undis -relative" style={{ display: 'none' }}></div> <div id="codetab_con_3" className="undis -relative" style={{ display: 'none' }}></div>
</React.Fragment> </React.Fragment >
); );
} }
} }

Loading…
Cancel
Save