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