forked from jasder/forgeplus
166 lines
46 KiB
JavaScript
166 lines
46 KiB
JavaScript
webpackJsonp([35],{
|
|
|
|
/***/ 1674:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (immutable) */ __webpack_exports__["a"] = ImageLayerOfCommentHOC;
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ImageLayer__ = __webpack_require__(359);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_educoder__ = __webpack_require__(5);
|
|
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var $=window.$;function ImageLayerOfCommentHOC(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function wrap(WrappedComponent){return function(_Component){_inherits(Wrapper,_Component);function Wrapper(props){_classCallCheck(this,Wrapper);var _this=_possibleConstructorReturn(this,(Wrapper.__proto__||Object.getPrototypeOf(Wrapper)).call(this,props));_this.onDelegateClick=function(event){var imageSrc=event.target.src||event.target.getAttribute('src')||event.target.getAttribute('href');// 判断imageSrc是否是图片
|
|
var fileName=event.target.innerHTML.trim();if(Object(__WEBPACK_IMPORTED_MODULE_2_educoder__["Z" /* isImageExtension */])(imageSrc.trim())||Object(__WEBPACK_IMPORTED_MODULE_2_educoder__["Z" /* isImageExtension */])(fileName)||event.target.tagName=='IMG'){// 非回复里的头像图片; 非emoticons
|
|
if(imageSrc.indexOf('/images/avatars/User')===-1&&imageSrc.indexOf('kindeditor/plugins/emoticons')===-1){_this.setState({showImage:true,imageSrc:imageSrc});}event.stopPropagation();event.preventDefault&&event.preventDefault();event.originalEvent.preventDefault();// event.originalEvent.stopPropagation()
|
|
// event.originalEvent.cancelBubble = true
|
|
return false;}};_this.onImageLayerClose=function(){_this.setState({showImage:false,imageSrc:''});};_this.MdifHasAnchorJustScorll=function(){//mdhash滚动
|
|
var anchor=decodeURI(_this.props.location.hash).replace('#','');// 对应id的话, 滚动到相应位置
|
|
if(!!anchor){var anchorElement=document.getElementsByName(anchor);if(anchorElement){if(anchorElement.length!=0){anchorElement[anchorElement.length-1].scrollIntoView();}}}};_this.state={showImage:false,imageSrc:''};return _this;}_createClass(Wrapper,[{key:'componentDidMount',// jQuery._data( $('.newMain')[0], "events" )
|
|
value:function componentDidMount(){var _this2=this;this.props.wrappedComponentRef&&this.props.wrappedComponentRef(this.refs['wrappedComponentRef']);// commentsDelegateParent #game_left_contents #tab_con_4
|
|
setTimeout(function(){$(options.parentSelector||".commentsDelegateParent").delegate(options.imgSelector||".J_Comment_Reply .comment_content img, .J_Comment_Reply .childrenCommentsView img","click",_this2.onDelegateClick);},1200);}},{key:'componentWillUnmount',value:function componentWillUnmount(){$(options.parentSelector||".commentsDelegateParent",'click',this.onDelegateClick);}},{key:'render',value:function render(){this.MdifHasAnchorJustScorll();return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__ImageLayer__["a" /* default */],Object.assign({},this.state,{onImageLayerClose:this.onImageLayerClose})),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedComponent,Object.assign({},this.props,{ref:'wrappedComponentRef'})));}}]);return Wrapper;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);};}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 827:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_educoder__ = __webpack_require__(5);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_router_dom__ = __webpack_require__(48);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_router__ = __webpack_require__(78);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_loadable__ = __webpack_require__(325);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_loadable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_loadable__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Loading__ = __webpack_require__(324);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_axios__ = __webpack_require__(8);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_axios__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__tpm_TPMIndexHOC__ = __webpack_require__(323);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__common_CNotificationHOC__ = __webpack_require__(334);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__page_layers_ImageLayerOfCommentHOC__ = __webpack_require__(1674);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_Courses_css__ = __webpack_require__(312);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__css_Courses_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__css_Courses_css__);
|
|
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}//引入对应跳转的组件
|
|
var ListPageIndex=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(46/* duplicate */).then(__webpack_require__.bind(null, 3134));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//课堂首页
|
|
var CoursesHome=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(147).then(__webpack_require__.bind(null, 4585));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//课堂详情页
|
|
var CoursesDetail=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(64).then(__webpack_require__.bind(null, 4594));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});// 课堂讨论
|
|
var BoardIndex=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(279).then(__webpack_require__.bind(null, 4595));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GraduationTopics=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(176).then(__webpack_require__.bind(null, 3035));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GraduationTopicsDetail=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(154).then(__webpack_require__.bind(null, 4601));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GraduateTopicPostWorksNew=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(105).then(__webpack_require__.bind(null, 4607));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GraduateTopicNew=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(102).then(__webpack_require__.bind(null, 4608));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GraduationTasks=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(69).then(__webpack_require__.bind(null, 3294));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});// 资源
|
|
var Resourcelist=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(89).then(__webpack_require__.bind(null, 3274));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//新建实训
|
|
var WrappedCoursesNewApp=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(115).then(__webpack_require__.bind(null, 2392));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//新建精品课堂
|
|
var WrappedCoursesNewAppGoldclass=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(117).then(__webpack_require__.bind(null, 4609));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var ShixunHomeworkPage=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(66).then(__webpack_require__.bind(null, 4610));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训作业
|
|
var ShixunHomework=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(136).then(__webpack_require__.bind(null, 3032));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训作业设置
|
|
var Trainingjobsetting=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(150).then(__webpack_require__.bind(null, 3300));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训作业列表教师
|
|
// //实训作业列表学生未完成的
|
|
// const Studentnotcompleted= Loadable({
|
|
// loader: () => import('./shixunHomework/Listofworksstudentone'),
|
|
// loading: Loading,
|
|
// })
|
|
//实训作业列表完成的
|
|
var Studenthascompleted=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(79).then(__webpack_require__.bind(null, 3296));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训作业提交总结
|
|
var CommitSummary=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(141).then(__webpack_require__.bind(null, 4612));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训作业设置
|
|
var Workquestionandanswer=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(78).then(__webpack_require__.bind(null, 3040));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训报告
|
|
var ShixunWorkReport=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(60).then(__webpack_require__.bind(null, 4616));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训查重
|
|
var ShixunStudentWork=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(83).then(__webpack_require__.bind(null, 3302));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//实训查重详情
|
|
var ShixunWorkDetails=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(62).then(__webpack_require__.bind(null, 4626));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//问卷
|
|
var Poll=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(145).then(__webpack_require__.bind(null, 3031));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//问卷新建
|
|
var PollNew=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(113).then(__webpack_require__.bind(null, 4628));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//问卷答题
|
|
var PollInfo=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(209).then(__webpack_require__.bind(null, 4629));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//问卷详情
|
|
var PollDetail=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(74).then(__webpack_require__.bind(null, 4630));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//试卷
|
|
var Exercise=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(146).then(__webpack_require__.bind(null, 2393));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var Testpapersettinghomepage=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(67).then(__webpack_require__.bind(null, 4636));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var ExerciseNew=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(76).then(__webpack_require__.bind(null, 4642));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var ExerciseReviewAndAnswer=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(111).then(__webpack_require__.bind(null, 4643));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//学生列表
|
|
var Studentshavecompletedthelist=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(123).then(__webpack_require__.bind(null, 3308));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//教师列表
|
|
var TeacherList=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(77).then(__webpack_require__.bind(null, 3023));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//学生列表
|
|
var StudentsList=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(70).then(__webpack_require__.bind(null, 3273));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//普通作业
|
|
var CommonWork=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(221).then(__webpack_require__.bind(null, 4650));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var GroupWork=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(220).then(__webpack_require__.bind(null, 4651));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//
|
|
// //分组作业
|
|
// const GroupWork= Loadable({
|
|
// loader: () => import('./busyWork/GroupWork'),
|
|
// loading: Loading,
|
|
// })
|
|
//毕设任务列表新建
|
|
var GraduationTaskseditApp=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(108).then(__webpack_require__.bind(null, 4652));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//毕设任务列表编辑
|
|
var GraduationTasksnewApp=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(107).then(__webpack_require__.bind(null, 4653));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//毕设任务列表设置
|
|
var GraduationTasksquestions=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(132).then(__webpack_require__.bind(null, 3388));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//毕设任务列表
|
|
var GraduationTaskssettinglist=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(73).then(__webpack_require__.bind(null, 4654));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//毕业任务设置
|
|
var GraduationTaskssetting=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(118).then(__webpack_require__.bind(null, 3390));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});// 评阅列表
|
|
var GraduationTasksappraise=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(125).then(__webpack_require__.bind(null, 4660));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//创建作品
|
|
var GraduationTasksSubmitnewApp=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(109).then(__webpack_require__.bind(null, 4664));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//修改作品
|
|
var GraduationTasksSubmiteditApp=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(110).then(__webpack_require__.bind(null, 4665));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});//排序
|
|
var Ordering=__WEBPACK_IMPORTED_MODULE_4_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(160).then(__webpack_require__.bind(null, 4666));},loading:__WEBPACK_IMPORTED_MODULE_5__Loading__["a" /* default */]});var CoursesIndex=function(_Component){_inherits(CoursesIndex,_Component);function CoursesIndex(props){_classCallCheck(this,CoursesIndex);var _this=_possibleConstructorReturn(this,(CoursesIndex.__proto__||Object.getPrototypeOf(CoursesIndex)).call(this,props));_this.coursesidsfun=function(id,type){_this.setState({coursesids:id,coursesidtype:type});};_this.updataleftNav=function(){var query=_this.props.location.pathname;var isaloadtype=_this.state.isaloadtype;var types=isaloadtype===false?true:false;var type=query.split('/');var id=parseInt(type[2]);if(isNaN(id)){return;}var querys=_this.props.location.search;var dataqueryss={};try{var foqus=_this.foo(querys);if(JSON.stringify(foqus)==="{}"){_this.setState({dataquerys:{}});}else{_this.setState({dataquerys:foqus});dataqueryss=foqus;}}catch(e){_this.setState({dataquerys:{}});}// let id=this.props.match.params.coursesId;
|
|
var url="/courses/"+id+"/left_banner.json";__WEBPACK_IMPORTED_MODULE_6_axios___default.a.get(url,{params:dataqueryss}).then(function(response){if(response!=undefined){if(response.data&&response.data){_this.setState({course_modules:response.data.course_modules,hidden_modules:response.data.hidden_modules,is_teacher:response.data.is_teacher,isaloadtype:types});_this.locationNav(response.data.course_modules);}}});};_this.foo=function(url){var json={};var regExp=/[\?\&](\w+)(=?)(\w*)/g;var arr;do{arr=regExp.exec(url);// console.log(arr); // arr = [完整的字符串, key, 等号或'', value或'']
|
|
if(arr){var key=arr[1];var value=arr[3];// arr[2] === ''时, value = undefined
|
|
if(!arr[2])value=undefined;json[key]=value;}}while(arr);return json;};_this.locationNav=function(list){if(list){var url=_this.props.location.pathname;var type=url.split('/');var filesId=parseInt(type[4]);// let urls=this.props.match.url
|
|
var lists=list;lists.forEach(function(item,index){if(url===item.category_url){_this.setState({indexs:index,mainurl:item.category_url});_this.coursesidsfun(item.id,"node");}else{if(item.second_category!=undefined&&item.second_category.length!=0){item.second_category.forEach(function(iem,key){if(url===iem.second_category_url){if(parseInt(filesId)===iem.category_id||parseInt(filesId)===item.id){_this.setState({indexs:index,url:url,mainurl:item.category_url});}_this.coursesidsfun(item.id,"child");}});}}});}};_this.unlocationNavfun=function(val){_this.setState({indexs:val});};_this.state={coursesids:undefined,coursesidsfun:_this.coursesidsfun,updataleftNavfun:_this.updataleftNav,course_modules:undefined,hidden_modules:[],is_teacher:false,isaloadtype:true,coursesidtype:undefined,locationNavfun:_this.locationNav,unlocationNavfun:_this.unlocationNavfun};return _this;}_createClass(CoursesIndex,[{key:'componentDidMount',value:function componentDidMount(){var _this2=this;// this.updataleftNav()
|
|
this.historyArray=[window.location.pathname];this.props.history.listen(function(location){_this2.historyArray.unshift(window.location.pathname);_this2.historyArray.length=2;//Do your stuff here
|
|
});}//更新左边课堂导航
|
|
},{key:'render',// // 老师、管理员等
|
|
// isAdmin = () => {
|
|
// return this.state.coursedata && this.state.coursedata.course_identity < 4
|
|
// }
|
|
// // 学生
|
|
// isStudent = () => {
|
|
// return this.state.coursedata && this.state.coursedata.course_identity === 4
|
|
// }
|
|
// isAdminOrStudent = () => {
|
|
// return this.state.coursedata && this.state.coursedata.course_identity <= 4
|
|
// }
|
|
// // 非课堂成员
|
|
// isNotMember = () => {
|
|
// return this.state.coursedata && this.state.coursedata.course_identity === 5
|
|
// }
|
|
// isCourseidentity = () => {
|
|
//
|
|
// if(this.state.coursedata&&this.state.coursedata.course_identity < 4){
|
|
// return "isAdmin"
|
|
// // 老师、管理员等
|
|
// }else if(this.state.coursedata&&this.state.coursedata.course_identity === 4){
|
|
// return "isStudent"
|
|
// // 学生
|
|
// }else if(this.state.coursedata&&this.state.coursedata.course_identity === 5){
|
|
// return "isNotMember"
|
|
// // 非课堂成员
|
|
// }
|
|
//
|
|
// }
|
|
// componentDidMount(){
|
|
// // console.log(this.props.location.pathname)
|
|
// let query=this.props.location.pathname;
|
|
// const type = query.split('/');
|
|
// if (!type[2]) {
|
|
// return;
|
|
// }
|
|
// let id=parseInt(type[2])
|
|
//
|
|
// let url="/courses/"+id+"/top_banner.json"
|
|
// axios.get(url).then((result)=>{
|
|
// if(result.status===200){
|
|
// let data=result.data;
|
|
// this.setState({
|
|
// coursedata:data
|
|
// })
|
|
//
|
|
// // console.log(data)
|
|
// }
|
|
// }).catch((error)=>{
|
|
// console.log(error);
|
|
// })
|
|
// }
|
|
value:function render(){var _this3=this;var common={previousPathName:this.historyArray&&this.historyArray[1]// isAdmin: this.isAdmin,
|
|
// isStudent: this.isStudent,
|
|
// isAdminOrStudent: this.isAdminOrStudent,
|
|
// isNotMember: this.isNotMember,
|
|
// isCourseidentity:this.isCourseidentity
|
|
// const commons = {
|
|
// admind: this.props.user,
|
|
// // isAdminOrStudent: this.isAdminOrStudent,
|
|
//
|
|
// // isNotMember: this.isNotMember,
|
|
// // isCourseidentity:this.isCourseidentity
|
|
// }
|
|
// console.log("commonscommons")
|
|
// console.log(commons)
|
|
};return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["f" /* Switch */],this.props,__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/ordering/:ordering_type/:main_id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Ordering,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/course_videos',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/file/:Id',exact:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/files/:main_id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/boards/:boardId',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/boards/:boardId',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(BoardIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_topics/postwork/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduateTopicPostWorksNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_topics/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduateTopicNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_topics/:topicId/edit',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduateTopicNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:course_id/graduation_topics/:graduation_topic_id/detail',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTopicsDetail,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_topics/:Id',exact:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/appraise',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTasksappraise,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/works/:task_Id/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTasksSubmitnewApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/works/:work_Id/edit',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTasksSubmiteditApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/detail/:task_Id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTaskssettinglist,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/edit',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTaskseditApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:category_id/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GraduationTasksnewApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/graduation_tasks/:Id',exact:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/teachers',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/students',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/course_groups/:course_group_id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/course_groups',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/common_homeworks/:category_id',exact:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/group_homeworks/:category_id',exact:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/common_homeworks/',strict:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CommonWork,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/group_homeworks/',strict:true,render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(GroupWork,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/polls/:pollId/users/:login',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(PollInfo,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/polls/:pollId/detail',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(PollDetail,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/polls/:pollid/:news',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(PollNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/polls/:Id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/exercises/:Id/users/:userId',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ExerciseReviewAndAnswer,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/exercises/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ExerciseNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/exercises/:Id/edit',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ExerciseNew,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/exercises/:Id/student_exercise_list',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Testpapersettinghomepage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/exercises/:Id/Studentshavecompletedthelist',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Studentshavecompletedthelist,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/exercises/:Id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/review_detail/:userid',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunWorkDetails,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/review_detail/:userid',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunWorkDetails,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/student_work',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/student_work',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/shixun_work_report',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunWorkReport,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/shixun_work_report',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunWorkReport,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/list',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/list',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/Page',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/settings',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/settings',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:id/commitsummary/:homeworkid',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CommitSummary,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:id/commitsummary/:homeworkid',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CommitSummary,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:homeworkid/questions',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:homeworkid/questions',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ShixunHomeworkPage,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/new',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedCoursesNewApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/news/:subjectid/newgold/:id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedCoursesNewAppGoldclass,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/newgolds/settings',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedCoursesNewAppGoldclass,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/settings',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedCoursesNewApp,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homework/:category_id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/shixun_homeworks/:main_id',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId/statistics',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses/:coursesId',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ListPageIndex,Object.assign({},_this3.props,props,_this3.state,common));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{path:'/courses',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CoursesHome,Object.assign({},_this3.props,props,_this3.state,common));}}));}}]);return CoursesIndex;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_3_react_router__["b" /* withRouter */])(Object(__WEBPACK_IMPORTED_MODULE_9__page_layers_ImageLayerOfCommentHOC__["a" /* ImageLayerOfCommentHOC */])({imgSelector:'.imageLayerParent img, .imageLayerParent .imageTarget',parentSelector:'.newMain'})(Object(__WEBPACK_IMPORTED_MODULE_8__common_CNotificationHOC__["a" /* CNotificationHOC */])()(Object(__WEBPACK_IMPORTED_MODULE_1_educoder__["w" /* SnackbarHOC */])()(Object(__WEBPACK_IMPORTED_MODULE_7__tpm_TPMIndexHOC__["a" /* TPMIndexHOC */])(CoursesIndex))))));
|
|
|
|
/***/ })
|
|
|
|
}); |