forked from jasder/forgeplus
74 lines
12 KiB
JavaScript
74 lines
12 KiB
JavaScript
|
webpackJsonp([222],{
|
||
|
|
||
|
/***/ 4510:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css__ = __webpack_require__(76);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_spin__ = __webpack_require__(77);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_spin__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_pagination_style_css__ = __webpack_require__(901);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_pagination_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_pagination__ = __webpack_require__(903);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_pagination__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_tooltip_style_css__ = __webpack_require__(173);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_tooltip_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip__ = __webpack_require__(172);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_router_dom__ = __webpack_require__(48);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__icedesign_base__ = __webpack_require__(2491);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__icedesign_base___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__icedesign_base__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios__ = __webpack_require__(8);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_axios__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_educoder__ = __webpack_require__(5);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__shixunCss_fork_css__ = __webpack_require__(4511);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__shixunCss_fork_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__shixunCss_fork_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 _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}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;}// import "antd/dist/antd.css";
|
||
|
var origin=Object(__WEBPACK_IMPORTED_MODULE_10_educoder__["U" /* getUrl */])();var path=Object(__WEBPACK_IMPORTED_MODULE_10_educoder__["U" /* getUrl */])("/editormd/lib/");var $=window.$;var timeout=void 0;var currentValue=void 0;var TPMFork_listComponent=function(_Component){_inherits(TPMFork_listComponent,_Component);function TPMFork_listComponent(props){_classCallCheck(this,TPMFork_listComponent);var _this=_possibleConstructorReturn(this,(TPMFork_listComponent.__proto__||Object.getPrototypeOf(TPMFork_listComponent)).call(this,props));_this.TPMForkonChange=function(pageNumber){var id=_this.props.match.params.shixunId;_this.setState({Forkvisible:true});var Url="/shixuns/"+id+"/fork_list.json";__WEBPACK_IMPORTED_MODULE_9_axios___default.a.get(Url,{params:{page:pageNumber,limit:8}}).then(function(response){_this.setState({shixunsID:id,shixuns:response.data.shixuns,total_count:response.data.total_count,Forkvisible:false,Forkcurrent:pageNumber});}).catch(function(error){console.log(error);});};_this.state={shixuns:undefined,total_count:0,shixunsID:undefined,Forkvisible:true,Forkcurrent:1};return _this;}_createClass(TPMFork_listComponent,[{key:'componentDidMount',value:function componentDidMount(){var _this2=this;var id=this.props.match.params.shixunId;var Url="/shixuns/"+id+"/fork_list.json";__WEBPACK_IMPORTED_MODULE_9_axios___default.a.get(Url,{params:{page:1,limit:8}}).then(function(response){_this2.setState({shixunsID:id,shixuns:response.data.shixuns,total_count:response.data.total_count,Forkvisible:false});}).catch(function(error){console.log(error);});}},{key:'render',value:function render(){var _state=this.state,shixuns=_state.shixuns,total_count=_state.total_count,shixunsID=_state.shixunsID,Forkvisible=_state.Forkvisible,Forkcurrent=_state.Forkcurrent;var MyRate=function MyRate(_ref){var defaultValue=_ref.defaultValue,rest=_objectWithoutProperties(_ref,['defaultValue']);var myValue=defaultValue;// console.log(myValue-Math.floor(myValue))
|
||
|
// if (myValue < Math.ceil(myValue)) {
|
||
|
// myValue = Math.floor(myValue) + 0.5;
|
||
|
// }
|
||
|
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__icedesign_base__["Rating"],Object.assign({},rest,{value:myValue}));};return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'educontent mb20'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'edu-back-white padding20 clearfix mt30'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span',{className:'fl font-16'},'Fork\u5B9E\u8BAD\u5217\u8868'),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a',{href:"/shixuns/"+shixunsID+"/challenges",className:'font-16 color-grey-9 fr'},'\u8FD4\u56DE')),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('style',null,'\n\t\t\t\t\t\t\t.taglistleft{\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tleft: 10px;\n\t\t\t\t\t\t\t\tbottom: 118px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t'),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_spin___default.a,{spinning:Forkvisible,size:'large',style:{marginTop:'15%'}},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'mt30 square-list clearfix mh320'},shixuns===undefined?" ":shixuns.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'square-Item',key:key,id:item.id},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'tag-green taglistleft'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span',{className:'tag-name'},' ',item.tag_name)),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:item.power===false?"closeSquare":"none"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('img',{src:Object(__WEBPACK_IMPORTED_MODULE_10_educoder__["M" /* getImageUrl */])("images/educoder/icon/lockclose.svg"),className:'mt80 mb25'}),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('p',{className:'font-14 color-white'},'\u975E\u8BD5\u7528\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743')),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a',{href:"/shixuns/"+item.identifier+"/challenges",className:'square-img',target:'_blank'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('img',{src:'/'+item.pic})),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div',{className:'square-main'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('p',{className:'task-hide'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a',{href:"/shixuns/"+item.identifier+"/challenges",target:'_blank',className:'justify color-grey-name'},item.name)),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('p',{className:'clearfix mt8 ml-3'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span',{className:'rateYoStar fl',style:{padding:'0px',height:'20px',lineHeight:'19px',cursor:'default'},title:''},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(MyRate,{key:key,allowHalf:true,defaultValue:item.score_info===null?5:item.score_info,disabled:true})),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span',{className:'fl ml25 font-12 color-grey-9 lineh-12 mt4'},item.score_info===null?"5分":item.score_info+"分")),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('p',{className:'clearfix mt8 font-12 color-grey-B4'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{placement:'bottom',title:"关卡"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span',{className:'mr10 fl squareIconSpan'},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('i',{className:'iconfont icon-shixunguanqia fl mr3'}),item.challenges_count)),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_tooltip___default.a,{placement:'bottom',title:"学习人数"},__WEBPACK_IMPORTED_MODULE_6_react___
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4511:
|
||
|
/***/ (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__(4512);
|
||
|
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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4512:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(299)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ml105{margin-left:15%}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/tpm/TPMFork/shixunCss/fork.css"],"names":[],"mappings":"AAAA,OACI,eAAiB,CACpB","file":"fork.css","sourcesContent":[".ml105 {\r\n margin-left: 15%;\r\n}"],"sourceRoot":""}]);
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
});
|