|
|
|
@ -510,6 +510,10 @@ class CodeRepositoryView extends Component {
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
|
</ul>
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
|
{this.props.readRepoTimeout === true ? <div className="readRepoFailed">
|
|
|
|
|
代码加载失败,<a className="retry"
|
|
|
|
|
onClick={() => this.props.fetchRepositoryCode(this.props, null, null, true, true)}>重试</a>
|
|
|
|
|
</div> :
|
|
|
|
|
<div id="codetab_con_1" style={{display: 'block', flex: 'auto'}} style={ tabIndex === 0 ? {display: 'block'} : {display: 'none'} }>
|
|
|
|
|
{/* 没必要显示这个,注释掉了 */}
|
|
|
|
|
{/* { !isEditablePath &&
|
|
|
|
@ -526,7 +530,7 @@ class CodeRepositoryView extends Component {
|
|
|
|
|
{/* cm monaco 切换 */}
|
|
|
|
|
{/* <TPICodeMirror {...this.props} ></TPICodeMirror> */}
|
|
|
|
|
<TPIMonaco {...this.props}></TPIMonaco>
|
|
|
|
|
</div>
|
|
|
|
|
</div>}
|
|
|
|
|
<div id="codetab_con_81" className="undis -relative"
|
|
|
|
|
style={ { color: '#fff', display: tabIndex === STABLE_SSH_TAB_ID ? 'block' : 'none', 'marginLeft': '2px'} }>
|
|
|
|
|
{/* { tabIndex === STABLE_SSH_TAB_ID && this.state.sshData && <Webssh {...this.state.sshData} ></Webssh> } */}
|
|
|
|
|