pre_develop
hjm 6 years ago
parent b426ee47a0
commit 0d2310c8bb

@ -182,6 +182,8 @@ class Index extends Component {
myshixun={context.myshixun} myshixun={context.myshixun}
shixun={context.shixun} shixun={context.shixun}
vnc_url={context.vnc_url} vnc_url={context.vnc_url}
zip_path={context.zip_path}
loading={context.loading} loading={context.loading}
discusses_count={context.discusses_count} discusses_count={context.discusses_count}

@ -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, myshixun_manager } = this.props; , showSettingDrawer, hide_code, myshixun_manager, zip_path } = this.props;
// onRequestChange={(drawerOpen) => showFilesDrawer(drawerOpen)} // onRequestChange={(drawerOpen) => showFilesDrawer(drawerOpen)}
/* /*
@ -410,9 +410,9 @@ class CodeRepositoryView extends Component {
</a> </a>
</Tooltip> } </Tooltip> }
{/* onClick={showFilesDrawer.bind(this, true)} */} {/* onClick={showFilesDrawer.bind(this, true)} target='_blank'*/}
{ myshixun_manager == true && <Tooltip title={ "下载代码"} disableFocusListener={true}> { myshixun_manager == true && <Tooltip title={ "下载代码"} disableFocusListener={true}>
<a href={shixun.zip_path || `/myshixuns/${myshixun.identifier}/archive`} className="iconButton" target='_blank'> <a href={zip_path || `/myshixuns/${myshixun.identifier}/archive`} className="iconButton" >
<i className="iconfont icon-xiazai1 font-18 "></i> <i className="iconfont icon-xiazai1 font-18 "></i>
</a> </a>
</Tooltip> } </Tooltip> }

Loading…
Cancel
Save