|
|
|
@ -135,24 +135,6 @@ class TPMIndex extends Component {
|
|
|
|
|
let getnewTPMsettings = this.props.user && this.props.user.user_id + 'newTPMsettings';
|
|
|
|
|
let newTPMsettings = window.localStorage.getItem(getnewTPMsettings)
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
|
// console.log('props', this.props);
|
|
|
|
|
// let collaborators = `/shixuns/` + id + `/propaedeutics.json`;
|
|
|
|
|
//
|
|
|
|
|
// axios.get(collaborators).then((response) => {
|
|
|
|
|
// if (response.status === 200) {
|
|
|
|
|
// if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
|
|
|
|
|
//
|
|
|
|
|
// }else{
|
|
|
|
|
// this.setState({
|
|
|
|
|
// PropaedeuticsList: response.data,
|
|
|
|
|
// shixunId: id
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }).catch((error) => {
|
|
|
|
|
// console.log(error)
|
|
|
|
|
// });
|
|
|
|
|
let Url = `/shixuns/` + id + `.json`;
|
|
|
|
|
axios.get(Url).then((response) => {
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
@ -385,21 +367,6 @@ class TPMIndex extends Component {
|
|
|
|
|
{this.state.is_jupyter === false ? <Menu.Item key="8" className={"competitionmr50"}>
|
|
|
|
|
<span className={"tpmbannernavstyler"}>排行榜</span>
|
|
|
|
|
</Menu.Item> : ""}
|
|
|
|
|
{/*{this.state.identity >4||this.state.identity===undefined ? "":this.state.openknows===true?<span>*/}
|
|
|
|
|
{/* <Popover*/}
|
|
|
|
|
{/* content={*/}
|
|
|
|
|
{/* <pre className={"bannerpd201"}>*/}
|
|
|
|
|
{/* <div>更多设置在这里,点击“配置”看一看~</div>*/}
|
|
|
|
|
{/* <div className={"wechatcenter mt15"}><Button type="primary" onClick={this.openknow} >我知道了</Button></div>*/}
|
|
|
|
|
{/* </pre>*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* trigger="click"*/}
|
|
|
|
|
{/* placement="top"*/}
|
|
|
|
|
{/* visible={this.state.openknows}*/}
|
|
|
|
|
{/* >*/}
|
|
|
|
|
{/* </Popover>*/}
|
|
|
|
|
{/*</span>:""}*/}
|
|
|
|
|
|
|
|
|
|
{this.state.identity > 4 || this.state.identity === undefined ? "" :
|
|
|
|
|
<Menu.Item key="9" className={"competitionmr50"}>
|
|
|
|
|
<span className={"tpmbannernavstyler"}>配置</span>
|
|
|
|
@ -417,14 +384,6 @@ class TPMIndex extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
{/*筛选*/}
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/* tpmindexjupyterbool===false?*/}
|
|
|
|
|
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/* */}
|
|
|
|
|
|
|
|
|
|
<Switch {...this.props}>
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId/repository/:repoId/commits" render={
|
|
|
|
|