forgeplus/public/react/build/static/js/220.8d2dd559.chunk.js

80 lines
23 KiB
JavaScript
Raw Normal View History

2020-03-09 00:40:16 +08:00
webpackJsonp([220],{
/***/ 1078:
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(1326);
if(typeof content === 'string') content = [[module.i, content, '']];
// Prepare cssTransformation
var transform;
var options = {"hmr":false}
options.transform = transform
// add the styles to the DOM
var update = __webpack_require__(300)(content, options);
if(content.locals) module.exports = content.locals;
/***/ }),
/***/ 1326:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(299)(true);
// imports
// module
exports.push([module.i, ".polllisthover:hover{-webkit-box-shadow:0 2px 6px rgba(51,51,51,.09);box-shadow:0 2px 6px rgba(51,51,51,.09);opacity:1;border-radius:2px}.workList_Item{display:-ms-flexbox;display:flex;background-color:#fff;margin-bottom:20px;padding-top:10px}p span{cursor:default}.mt-5{margin-top:-5px}.bankNav li{float:left;margin-right:20px}.bankNav li:last-child{margin-right:0}.bankNav li.active a{color:#fff!important;background-color:#4cacff}.bankNav li a{display:block;padding:0 10px;height:28px;line-height:28px;background-color:#f5f5f5;border-radius:36px;color:#666!important}.task_menu_ul{width:600px}.task_menu_ul .ant-menu-item,.task_menu_ul .ant-menu-submenu-title{padding:0;margin-right:30px;line-height:68px;font-size:16px}.ant-menu{color:#05101a}.task_menu_ul .ant-menu-horizontal{border-bottom:none}.task_menu_ul .ant-menu-horizontal>.ant-menu-item:hover{border-bottom:2px solid transparent}.task_menu_ul .ant-menu-horizontal>.ant-menu-item-selected{border-bottom:2px solid #4cacff!important}.sourceTag a{display:block;float:left;background-color:#e5f3ff;padding:0 10px;height:24px;line-height:24px;color:#4e7a9b;margin:5px 0 5px 10px}.sourceTag a.active{color:#fff;background-color:#4cacff}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/courses/css/busyWork.css"],"names":[],"mappings":"AACA,qBACE,gDAAoD,AAC5C,wCAA4C,AACpD,UAAW,AACX,iBAAmB,CACpB,AAED,eAEE,oBAAqB,AACrB,aAAc,AACd,sBAAuB,AACvB,mBAAoB,AACpB,gBAAkB,CACnB,AACD,OACE,cAAgB,CACjB,AACD,MAAO,eAAgB,CAAC,AAIxB,YACE,WAAY,AACZ,iBAAmB,CACpB,AACD,uBACE,cAAkB,CACnB,AACD,qBACE,qBAAsB,AACtB,wBAA0B,CAC3B,AACD,cACE,cAAe,AACf,eAAiB,AACjB,YAAa,AACb,iBAAkB,AAClB,yBAA0B,AAC1B,mBAAoB,AACpB,oBAAyB,CAC1B,AAID,cACE,WAAa,CACd,AAED,mEACE,UAAY,AACZ,kBAAmB,AACnB,iBAAkB,AAClB,cAAgB,CACjB,AACD,UACE,aAAe,CAChB,AACD,mCACE,kBAAoB,CACrB,AACD,wDACE,mCAAoC,CACrC,AACD,2DACE,yCAA4C,CAC7C,AAED,aACE,cAAe,AACf,WAAY,AACZ,yBAAyB,AACzB,eAAkB,AAClB,YAAa,AACb,iBAAkB,AAClB,cAAe,AACf,qBAAwB,CACzB,AACD,oBACE,WAAe,wBAAyB,CACzC","file":"busyWork.css","sourcesContent":["\n.polllisthover:hover {\n -webkit-box-shadow: 0px 2px 6px rgba(51,51,51,0.09);\n box-shadow: 0px 2px 6px rgba(51,51,51,0.09);\n opacity: 1;\n border-radius: 2px;\n}\n\n.workList_Item{\n /* padding:20px 30px; */\n display: -ms-flexbox;\n display: flex;\n background-color: #fff;\n margin-bottom: 20px;\n padding-top: 10px;\n}\np span{\n cursor: default;\n}\n.mt-5{ margin-top:-5px;}\n\n\n/* <20><><EFBFBD>ѡ<EFBFBD><D1A1>tab */\n.bankNav li{\n float: left;\n margin-right: 20px;\n}\n.bankNav li:last-child{\n margin-right: 0px;\n}\n.bankNav li.active a{\n color: #fff!important;\n background-color: #4CACFF;\n}\n.bankNav li a{\n display: block;\n padding:0px 10px;\n height: 28px;\n line-height: 28px;\n background-color: #F5F5F5;\n border-radius: 36px;\n color: #666666!important;\n}\n\n\n\n.task_menu_ul{\n width: 600px;\n}\n\n.task_menu_ul .ant-menu-item,.task_menu_ul .ant-menu-submenu-title{\n padding:0px;\n margin-right: 30px;\n line-height: 68px;\n font-size: 16px;\n}\n.ant-menu{\n color: #05101a;\n}\n.task_menu_ul .ant-menu-horizontal{\n border-bottom: none;\n}\n.task_menu_ul .ant-menu-horizontal > .ant-menu-item:hover{\n border-bottom:2px solid transparent;\n}\n.task_menu_ul .ant-menu-horizontal > .ant-menu-item-selected{\n border-bottom: 2px solid #4CACFF !important;\n}\n\n.sourceTag a{\n display: block;\n float: left;\n background-color:#E5F3FF;\n padding: 0px 10px;\n height: 24px;\n line-height: 24px;\n color: #4E7A9B;\n margin:5px 0px 5px 10px;\n}\n.sourceTag a.active{\n color: #FFFFFF;background-color:#4CACFF; \n}\n\n"],"sourceRoot":""}]);
// exports
/***/ }),
/***/ 1971:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return STATUS_UN_PUBLISH; });
/* unused harmony export STATUS_SUBMIT */
/* harmony export (immutable) */ __webpack_exports__["a"] = RouteHOC;
/* 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__);
var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};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 STATUS_UN_PUBLISH="未发布";// homework_status: ["提交中", "未开启补交"]
var STATUS_SUBMIT="提交中";// export const STATUS_UN_PUBLISH = "未发布"
// homework_status: ["提交中"] 未发布 未开启补交
function RouteHOC(){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.toCreateProject=function(){var url='/projects/new';if(window.location.port==3007){// window.location.href
url='/testbdweb.educoder.net/projects/new';}window.open(url,'_blank'// <- This is what makes it open in a new window.
);};_this.isGroup=function(){return window.location.pathname.indexOf('group_homeworks')!=-1;};_this.getModuleName=function(isChinese){var isGroup=_this.isGroup();if(isChinese){var chName=isGroup?'分组作业':'普通作业';return chName;}var secondName=isGroup?'group_homeworks':'common_homeworks';return secondName;};_this.getModuleType=function(){var isGroup=_this.isGroup();return isGroup?3:1;};_this.toDetailPage=function(_courseId,workId,topicId){if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var _topicId=_courseId.topicId;var _workId2=_courseId.workId;var courseId=_courseId.coursesId;_this.props.history.push("/courses/"+courseId+"/boards/"+_workId2+"/messages/"+_topicId);}else{_this.props.history.push("/courses/"+_courseId+"/boards/"+workId+"/messages/"+topicId);}};_this.toEditPage=function(_courseId,_workId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;_this.props.history.push("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId)+"/edit");}else{_this.props.history.push("/courses/"+_courseId+"/"+secondName+"/"+_workId+"/edit");}};_this.toWorkDetailPage=function(_courseId,_workId,_studentWorkId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;var studentWorkId=_courseId.studentWorkId;window.open("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId)+"/"+(_studentWorkId||studentWorkId)+"/appraise");}else{window.open("/courses/"+_courseId+"/"+secondName+"/"+_workId+"/"+_studentWorkId+"/appraise");}};_this.toWorkDetailPage2=function(e,_courseId,_workId,_studentWorkId){console.log("鼠标中键点击了");console.log(_studentWorkId);var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;var studentWorkId=_courseId.studentWorkId;window.open("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId)+"/"+(_studentWorkId||studentWorkId)+"/appraise");}else{window.open("/courses/"+_courseId+"/"+secondName+"/"+_workId+"/"+_studentWorkId+"/appraise");}};_this.toNewPage=function(courseId){var secondName=_this.getModuleName();_this.props.history.push("/courses/"+courseId.coursesId+"/"+secondName+"/"+courseId.category_id+"/new");};_this.toListPage=function(_courseId,_workId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;_this.props.history.push("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId));}else{_this.props.history.push("/courses/"+_courseId+"/"+secondName+(_workId?'/'+_workId:''));}};_this.toWorkPostPage=function(_courseId,_workId,isEdit,_studentWorkId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;var studentWorkId=_courseId.studentWorkId;_this.props.history.push("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId)+"/"+(isEdit?(_studentWorkId||studentWorkId)+"/post_edit":'post'));}else{_this.props.history.push("/courses/"+_courseId+"/"+secondName+"/"+_workId+"/"+(isEdit?_studentWorkId+"/post_edit":'post'));}};_this.toWorkListPage=function(_courseId,_workId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;_this.props.history.push("/courses/"+courseId+"/"+secondName+"/"+(_workId||workId)+"/list");}else{_this.props.history.push("/courses/"+_courseId+"/"+secondName+"/"+_workId+"/list");}};_this.toWorkAnswerPage=function(_courseId,_workId){var secondName=_this.getModuleName();if((typeof _courseId==="undefined"?"undefined":_typeof(_courseId))=="object"){var workId=_courseId.workId;var courseId=_courseId.coursesId;_this.props.his
// 是否是分组作业
_createClass(Wrapper,[{key:"render",value:function render(){var snackbarOpen=this.state.snackbarOpen;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(WrappedComponent,Object.assign({},this.props,{toDetailPage:this.toDetailPage,toEditPage:this.toEditPage,toNewPage:this.toNewPage,toListPage:this.toListPage,toWorkDetailPage:this.toWorkDetailPage,toWorkDetailPage2:this.toWorkDetailPage2,toWorkPostPage:this.toWorkPostPage,toWorkListPage:this.toWorkListPage,toWorkAnswerPage:this.toWorkAnswerPage,toWorkQuestionPage:this.toWorkQuestionPage,toWorkSettingPage:this.toWorkSettingPage,toCreateProject:this.toCreateProject,isGroup:this.isGroup,getModuleName:this.getModuleName,getModuleType:this.getModuleType})));}}]);return Wrapper;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);};}
/***/ }),
/***/ 4651:
/***/ (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_loadable__ = __webpack_require__(325);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_loadable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_loadable__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Loading__ = __webpack_require__(324);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_CNotificationHOC__ = __webpack_require__(334);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common__ = __webpack_require__(1971);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__css_busyWork_css__ = __webpack_require__(1078);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__css_busyWork_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__css_busyWork_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_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(46/* duplicate */).then(__webpack_require__.bind(null, 3134));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});//新建分组/普通作业
var NewWork=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(55/* duplicate */).then(__webpack_require__.bind(null, 3136));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkPost=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(56/* duplicate */).then(__webpack_require__.bind(null, 3142));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkSetting=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(49/* duplicate */).then(__webpack_require__.bind(null, 3137));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkList=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(47/* duplicate */).then(__webpack_require__.bind(null, 3138));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkQuestion=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(48/* duplicate */).then(__webpack_require__.bind(null, 3139));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkAnswer=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(53/* duplicate */).then(__webpack_require__.bind(null, 3140));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkAppraise=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(52/* duplicate */).then(__webpack_require__.bind(null, 3141));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWork=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(50/* duplicate */).then(__webpack_require__.bind(null, 2249));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CommonWorkDetailIndex=__WEBPACK_IMPORTED_MODULE_3_react_loadable___default()({loader:function loader(){return __webpack_require__.e/* import() */(54/* duplicate */).then(__webpack_require__.bind(null, 3609));},loading:__WEBPACK_IMPORTED_MODULE_4__Loading__["a" /* default */]});var CoursesWorkIndex=function(_Component){_inherits(CoursesWorkIndex,_Component);function CoursesWorkIndex(props){_classCallCheck(this,CoursesWorkIndex);return _possibleConstructorReturn(this,(CoursesWorkIndex.__proto__||Object.getPrototypeOf(CoursesWorkIndex)).call(this,props));}_createClass(CoursesWorkIndex,[{key:'render',value:function render(){var _this2=this;return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div',null,__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 */],{exact:true,path:'/courses/:coursesId/group_homeworks/:workId/setting',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CommonWorkDetailIndex,Object.assign({},_this2.props,props,_this2.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/group_homeworks/:workId/list',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CommonWorkDetailIndex,Object.assign({},_this2.props,props,_this2.state));}}),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2_react_router_dom__["e" /* Route */],{exact:true,path:'/courses/:coursesId/group_homeworks/:workId/question',render:function render(props){return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Com
/***/ })
});