下载
pre_develop
hjm 6 years ago
parent 32ebe7f9fe
commit 3b28815ba7

File diff suppressed because one or more lines are too long

@ -267,6 +267,14 @@ class MainContentContainer extends Component {
// this._cancel = null;
}
const that = this;
// test
// const _code = '"#include<math.h>\n\n// \u6c42n\u7684\u7b97\u672f\u5e73\u65b9\u6839\ndouble SquareRoot(float n)\n{\n // \u8bf7\u5728\u6b64\u6dfb\u52a0\u4ee3\u7801\uff0c\u8865\u5168\u51fd\u6570SquareRoot\n /********** Begin *********/\n\n\n /********** End **********/\n}"'
// this.oldRepositoryCode = _code;
// this.updateRepositoryCode(_code, updateCodeMirror)
// return
this.setState({ gameBuilding: false, codeLoading: true });
axios.get(fetchRepoCodeUrl, {
withCredentials: true,

@ -296,7 +296,7 @@ class CodeRepositoryView extends Component {
const { repositoryCode, onRepositoryCodeUpdate, showFilesDrawer, drawerOpen, loadingFirstRepoFiles
, challenge, evaluateViewExpanded, onRepositoryViewExpand, codeStatus ,
showResetCodeDialog, showResetPassedCodeDialog, tabIndex, tabIndexChange, game, shixun, isEditablePath, currentPath
, showSettingDrawer, hide_code } = this.props;
, showSettingDrawer, hide_code, myshixun_manager } = this.props;
// onRequestChange={(drawerOpen) => showFilesDrawer(drawerOpen)}
/*
@ -402,12 +402,21 @@ class CodeRepositoryView extends Component {
</React.Fragment>
}
{ !shixun.code_hidden && tabIndex === 0 && <Tooltip title={ "文件目录"} disableFocusListener={true}>
<a href="javascript:void(0)" className="iconButton" onClick={showFilesDrawer.bind(this, true)} >
<i className="iconfont icon-wenjian font-18 "></i>
</a>
</Tooltip> }
{/* onClick={showFilesDrawer.bind(this, true)} */}
{ myshixun_manager == true && <Tooltip title={ "下载代码"} disableFocusListener={true}>
<a href={`/myshixuns/${myshixun.identifier}/archive`} className="iconButton" target='_blank'>
<i className="iconfont icon-xiazai1 font-18 "></i>
</a>
</Tooltip> }
<span id="return_last_code">
</span>

Loading…
Cancel
Save