|
|
|
@ -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,11 +402,20 @@ 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>
|
|
|
|
|