|
|
|
@ -495,9 +495,6 @@ class App extends Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let{mygetHelmetapi}=this.state;
|
|
|
|
|
// console.log("appappapp");
|
|
|
|
|
// console.log(mygetHelmetapi);
|
|
|
|
|
return (
|
|
|
|
|
<Provider store={store}>
|
|
|
|
|
<ConfigProvider locale={zhCN}>
|
|
|
|
@ -521,242 +518,13 @@ class App extends Component {
|
|
|
|
|
return (<ProjectIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
{/*题库*/}
|
|
|
|
|
<Route path="/topicbank/:username/:topicstype"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<Topicbank {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
{/*题库*/}
|
|
|
|
|
<Route path="/topicbank/:topicstype"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<Topicbank {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
{/*/!*众包创新*!/*/}
|
|
|
|
|
{/*<Route path={"/crowdsourcing"} component={ProjectPackages}/>*/}
|
|
|
|
|
{/*竞赛*/}
|
|
|
|
|
<Route path={"/competitions"}
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<NewCompetitions {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
{/*黑客松定制竞赛*/}
|
|
|
|
|
<Route
|
|
|
|
|
path={"/osshackathon"}
|
|
|
|
|
render={
|
|
|
|
|
(props)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Osshackathon {...this.props} {...props} {...this.state} />
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{/*认证*/}
|
|
|
|
|
<Route path="/account" component={AccountPage}/>
|
|
|
|
|
|
|
|
|
|
{/*403*/}
|
|
|
|
|
<Route path="/403" component={Shixunauthority}/>
|
|
|
|
|
|
|
|
|
|
<Route path="/500" component={http500}/>
|
|
|
|
|
|
|
|
|
|
{/*404*/}
|
|
|
|
|
<Route path="/nopage" component={Shixunnopage}/>
|
|
|
|
|
|
|
|
|
|
<Route path="/compatibility" component={CompatibilityPageLoadable}/>
|
|
|
|
|
<Route
|
|
|
|
|
path="/login"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<EducoderLogin {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path="/register"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<EducoderLogin {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path="/otherloginstart" component={Otherloginstart}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path={"/otherloginqq"} component={Otherloginsqq}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path="/otherlogin" component={Otherlogin}
|
|
|
|
|
/>
|
|
|
|
|
<Route path="/users/:username"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<InfosIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/banks"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
return (<BanksIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}></Route>
|
|
|
|
|
{/*<Route*/}
|
|
|
|
|
{/*path="/personalcompetit"*/}
|
|
|
|
|
{/*render={*/}
|
|
|
|
|
{/*(props) => (<PersonalCompetit {...this.props} {...props} {...this.state}></PersonalCompetit>)*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
<Route
|
|
|
|
|
path="/changepassword"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
|
|
|
|
|
return (<EducoderLogin {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
{/*<Route*/}
|
|
|
|
|
{/* path="/interesse" component={Interestpage}*/}
|
|
|
|
|
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
<Route path="/shixuns/new" component={Newshixuns}>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path="/colleges/:id/statistics"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<College {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}/>
|
|
|
|
|
{/* jupyter */}
|
|
|
|
|
<Route path="/tasks/:identifier/jupyter/"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
return (<JupyterTPI {...this.props} {...props} {...this.state}/>)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Route path="/tasks/:stageId" component={IndexWrapperComponent}/>
|
|
|
|
|
|
|
|
|
|
{/*<Route path="/shixuns/:shixunId" component={TPMIndexComponent}>*/}
|
|
|
|
|
{/*</Route>*/}
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns/:shixunId"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<TPMIndexComponent {...this.props} {...props} {...this.state}></TPMIndexComponent>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*列表页 实训项目列表*/}
|
|
|
|
|
{/*<Route path="/shixuns" component={TPMShixunsIndexComponent}/>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/shixuns"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<TPMShixunsIndexComponent {...this.props} {...props} {...this.state}></TPMShixunsIndexComponent>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*实训课程(原实训路径)*/}
|
|
|
|
|
<Route path="/paths" component={ShixunPaths}></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/search"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<SearchPage {...this.props} {...props} {...this.state}></SearchPage>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*课堂*/}
|
|
|
|
|
<Route path="/courses" component={CoursesIndex} {...this.props} {...this.state}></Route>
|
|
|
|
|
|
|
|
|
|
{/* <Route path="/forums" component={ForumsIndexComponent}>
|
|
|
|
|
</Route> */}
|
|
|
|
|
{/* 教学案例 */}
|
|
|
|
|
<Route path="/moop_cases"render={
|
|
|
|
|
(props) => (<MoopCases {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}/>
|
|
|
|
|
|
|
|
|
|
<Route path="/forums"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<ForumsIndexComponent {...this.props} {...props} {...this.state}></ForumsIndexComponent>)
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path="/comment" component={CommentComponent}/>
|
|
|
|
|
{/*<Route path="/testMaterial" component={TestMaterialDesignComponent}/>*/}
|
|
|
|
|
{/*<Route path="/test" component={TestIndex}/>*/}
|
|
|
|
|
{/*<Route path="/testCodeMirror" component={TestCodeMirrorComponent}/>*/}
|
|
|
|
|
{/*<Route path="/testRCComponent" component={TestComponent}/>*/}
|
|
|
|
|
{/*<Route path="/testUrlQuery" component={TestUrlQueryComponent}/>*/}
|
|
|
|
|
{/*<Route*/}
|
|
|
|
|
{/*path="/registration"*/}
|
|
|
|
|
{/*render={*/}
|
|
|
|
|
{/*(props) => (<Registration {...this.props} {...props} {...this.state}></Registration>)*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
|
|
|
|
|
<Route path="/messages"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<Messagerouting {...this.props} {...props} {...this.state}></Messagerouting>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/help/:type"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<Help {...this.props} {...props} {...this.state}></Help>)
|
|
|
|
|
}/>
|
|
|
|
|
<Route path="/ecs"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<Ecs {...this.props} {...props} {...this.state}></Ecs>)
|
|
|
|
|
}/>
|
|
|
|
|
|
|
|
|
|
<Route path="/problems/new/:id?"
|
|
|
|
|
render={
|
|
|
|
|
(props) => {
|
|
|
|
|
return (<NewOrEditTask {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Route
|
|
|
|
|
path="/problems/:id/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<NewOrEditTask {...this.props} {...props} {...this.state} />)
|
|
|
|
|
} />
|
|
|
|
|
<Route path="/myproblems/record_detail/:id"
|
|
|
|
|
<Route exact path="/"
|
|
|
|
|
// component={ShixunsHome}
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<RecordDetail {...this.props} {...props} {...this.state} />)
|
|
|
|
|
(props)=>(<ProjectIndex {...this.props} {...props} {...this.state}></ProjectIndex>)
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<Route path="/myproblems/:id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<StudentStudy {...this.props} {...props} {...this.state} />)
|
|
|
|
|
} />
|
|
|
|
|
|
|
|
|
|
<Route path="/problems"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Developer {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}/>
|
|
|
|
|
|
|
|
|
|
<Route exact path="/"
|
|
|
|
|
// component={ShixunsHome}
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<ShixunsHome {...this.props} {...props} {...this.state}></ShixunsHome>)
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
<Route component={Shixunnopage}/>
|
|
|
|
|
|
|
|
|
|
</Switch>
|
|
|
|
|