You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p6tsc84h5/static/js/21.74d0486c.chunk.js

1 line
12 KiB

webpackJsonp([21],{1611:function(e,n,t){var A=t(2998);"string"==typeof A&&(A=[[e.i,A,""]]);var i={hmr:!1,transform:void 0};t(289)(A,i);A.locals&&(e.exports=A.locals)},2998:function(e,n,t){(e.exports=t(288)(!0)).push([e.i,'.winput-300-35{width:300px;height:35px;padding:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.library_nav li{float:left;cursor:pointer;margin-right:30px;position:relative;color:#05101a;height:40px;line-height:20px;font-size:16px}.library_nav li.active a,.library_nav li:hover a{color:#4cacff!important}.library_list{margin-bottom:30px}.library_list_item:hover{-webkit-box-shadow:0 4px 8px hsla(0,0%,62%,.16);box-shadow:0 4px 8px hsla(0,0%,62%,.16)}.library_list_item{background:#fff;padding:20px 30px;margin-bottom:30px;display:-ms-flexbox;display:flex}.library_list_item .library_l_name{max-width:600px;float:left}.edu-activity-red{background-color:#fc2b6a;border:1px solid #fc2b6a}.edu-activity-green,.edu-activity-red{color:#fff!important;cursor:pointer;line-height:17px}.edu-activity-green{background-color:green;border:1px solid green}.edu-activity-orange{background-color:#ff6800;border:1px solid #ff6800}.edu-activity-blue,.edu-activity-orange{color:#fff!important;cursor:pointer;line-height:17px}.edu-activity-blue{background-color:#4cacff;border:1px solid #4cacff}.edu-activity-orange-sub{background-color:#ff781b;border:1px solid #ff6800}.edu-activity-36c53c-sub,.edu-activity-orange-sub{color:#fff!important;cursor:pointer;line-height:17px}.edu-activity-36c53c-sub{background-color:#36c53c;border:1px solid #36c53c}.pointsBtn{width:70px;height:70px;background-color:#4cacff;border-radius:50%;color:#fff;text-align:center;margin:0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 0;cursor:pointer;line-height:22px;padding-top:12px}.pointedBtn{background:#bcd1e3;cursor:default}.pointsBtn span{display:block}.upload_Title{position:relative;margin-right:20px;float:left;line-height:35px;font-size:16px;color:rgba(0,0,0,.85);text-align:center}.upload_Title.must:before{display:inline-block;margin-right:4px;color:#f5222d;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.upload_Title:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.libraries_tab li{width:120px;height:35px;line-height:33px;border-radius:18px;border:1px solid #4c98ff;color:#4c98ff;cursor:pointer;margin-right:30px;float:left;text-align:center}.libraries_tab li.active{background:#4c98ff;color:#fff}.librariesField .ant-upload{width:100%;background:#f2f9ff;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;display:-webkit-flex;text-align:center;height:120px!important;border-radius:4px;border:1px dashed #4cacff!important;display:block;cursor:pointer}.librariesField .ant-upload.ant-upload-drag{border:none!important}.uploadImage .ant-upload.ant-upload-select-picture-card{width:120px;height:90px}.uploadImage .ant-upload.ant-upload-select-picture-card>.ant-upload{padding:0!important}.successPage{-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;display:-webkit-flex;height:570px;text-align:center;margin-bottom:50px}.changebtn{width:166px;font-size:16px;height:45px;line-height:45px}',"",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/moop_cases/css/moopCases.css"],names:[],mappings:"AAAA,eACE,YAAa,AACb,YAAa,AACb,YAAa,AACb,8BAA+B,AACvB,qBAAuB,CAChC,AACD,gBACE,WAAY,AACZ,eAAgB,AAChB,kBAAmB,AACnB,kBAAmB,AACnB,cAAe,AACf,YAAa,AACb,iBAAkB,AAClB,cAAgB,CACjB,AACD,iDACE,uBAAyB,CAC1B,AACD,cACE,kBAAoB,CACrB,AACD,yBACE,gDAAuD,AAC/C,uCAA+C,CACxD,AACD,mBACE,gBAAiB,AACjB,kBAAmB,AACnB,mBAAoB,AACpB,oBAAqB,AACrB,YAAc,CACf,AACD,mCACE,gBAAiB,AACjB,UAAY,CACb,AAED,kBACE,yBAA0B,AAG1B,wBAA0B,CAE3B,AACD,sCALE,qBAAsB,AACtB,eAAgB,A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4CACE,qBAAsB,CACvB,AACD,wDACE,YAAY,AACZ,WAAa,CACd,AACD,oEACE,mBAAsB,CACvB,AACD,aACE,qBAAsB,AAClB,uBAAwB,AAC5B,sBAAuB,AACnB,mBAAoB,AACxB,qBAAsB,AACtB,aAAc,AACd,kBAAmB,AACnB,kBAAoB,CACrB,AACD,WACE,YAAY,AACZ,eAAgB,AAChB,YAAa,AACb,gBAAkB,CACnB",file:"moopCases.css",sourcesContent:[".winput-300-35{\n width: 300px;\n height: 35px;\n padding: 5px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.library_nav li {\n float: left;\n cursor: pointer;\n margin-right: 30px;\n position: relative;\n color: #05101A;\n height: 40px;\n line-height: 20px;\n font-size: 16px;\n}\n.library_nav li.active a, .library_nav li:hover a{\n color: #4cacff!important;\n}\n.library_list {\n margin-bottom: 30px;\n}\n.library_list_item:hover {\n -webkit-box-shadow: 0px 4px 8px rgba(158,158,158,0.16);\n box-shadow: 0px 4px 8px rgba(158,158,158,0.16);\n}\n.library_list_item {\n background: #fff;\n padding: 20px 30px;\n margin-bottom: 30px;\n display: -ms-flexbox;\n display: flex;\n}\n.library_list_item .library_l_name {\n max-width: 600px;\n float: left;\n}\n\n.edu-activity-red {\n background-color: #FC2B6A;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid #FC2B6A;\n line-height: 17px;\n}\n.edu-activity-green {\n background-color: green;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid green;\n line-height: 17px;\n}\n.edu-activity-orange {\n background-color: #ff6800;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid #ff6800;\n line-height: 17px;\n}\n.edu-activity-blue {\n background-color: #4CACFF;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid #4CACFF;\n line-height: 17px;\n}\n.edu-activity-orange-sub {\n background-color: #FF781B;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid #ff6800;\n line-height: 17px;\n}\n.edu-activity-36c53c-sub {\n background-color: #36c53c;\n color: #fff!important;\n cursor: pointer;\n border: 1px solid #36c53c;\n line-height: 17px;\n}\n.pointsBtn {\n width: 70px;\n height: 70px;\n background-color: #4cacff;\n border-radius: 50%;\n color: #fff;\n text-align: center;\n margin: 0 auto;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 2px 0;\n cursor: pointer;\n line-height: 22px;\n padding-top: 12px;\n}\n.pointedBtn{\n background: #BCD1E3;\n cursor: default\n}\n.pointsBtn span{\n display: block;\n}\n.upload_Title {\n position: relative;\n margin-right: 20px;\n float: left;\n line-height: 35px;\n font-size: 16px;\n /*width: 56px;*/\n color:rgba(0, 0, 0, 0.85);\n text-align: center\n}\n.upload_Title.must:before {\n display: inline-block;\n margin-right: 4px;\n color: #f5222d;\n font-size: 14px;\n font-family: SimSun, sans-serif;\n line-height: 1;\n content: '*';\n}\n.upload_Title:after{\n content: ':';\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n}\n.libraries_tab li {\n width: 120px;\n height: 35px;\n line-height: 33px;\n border-radius: 18px;\n border: 1px solid #4C98FF;\n color: #4C98FF;\n cursor: pointer;\n margin-right: 30px;\n float: left;\n text-align: center;\n}\n.libraries_tab li.active {\n background: #4C98FF;\n color: #fff;\n}\n.librariesField .ant-upload{\n width: 100%;\n background: #F2F9FF;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-flex;\n text-align: center;\n height: 120px!important;\n border-radius: 4px;\n border: 1px dashed #4cacff!important;\n display: block;\n cursor: pointer;\n}\n.librariesField .ant-upload.ant-upload-drag{\n border:none!important;\n}\n.uploadImage .ant-upload.ant-upload-select-picture-card{\n width:120px;\n height: 90px;\n}\n.uploadImage .ant-upload.ant-upload-select-picture-card > .ant-upload{\n padding:0px!important;\n}\n.successPage {\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-flex;\n height: 570px;\n text-align: center;\n margin-bottom: 50px;\n}\n.changebtn {\n width:166px;\n font-size: 16px;\n height: 45px;\n line-height: 45px;\n}"],sourceRoot:""}])},786:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var A=t(0),i=t.n(A),r=t(1611),o=(t.n(r),t(301)),a=(t.n(o),t(5)),c=t(314),l=t(323),p=t(45),s=t(316),B=t(317),d=t.n(B),u=t(12),C=t.n(u),f=function(e,n,t){return n&&g(e.prototype,n),t&&g(e,t),e};function g(e,n){for(var t=0;t<n.length;t++){var A=n[t];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(e,A.key,A)}}var b=d()({loader:function(){return t.e(151).then(t.bind(null,4272))},loading:s.a}),x=d()({loader:function(){return t.e(188).then(t.bind(null,2332))},loading:s.a}),h=d()({loader:function(){return t.e(76).then(t.bind(null,4275))},loading:s.a}),m=d()({loader:function(){return t.e(187).then(t.bind(null,4276))},loading:s.a}),y=(function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(k,A.Component),f(k,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var n=this;return i.a.createElement("div",{className:"newMain"},i.a.createElement(p.e,this.props,i.a.createElement(p.d,{exact:!0,path:"/moop_cases",render:function(e){return i.a.createElement(b,Object.assign({},n.props,e,n.state))}}),i.a.createElement(p.d,{exact:!0,path:"/moop_cases/new",render:function(e){return i.a.createElement(h,Object.assign({},n.props,e,n.state))}}),i.a.createElement(p.d,{exact:!0,path:"/moop_cases/:caseID",render:function(e){return i.a.createElement(x,Object.assign({},n.props,e,n.state,{getDetail:n.getDetail,praisePoint:n.praisePoint}))}}),i.a.createElement(p.d,{exact:!0,path:"/moop_cases/:caseID/edit",render:function(e){return i.a.createElement(h,Object.assign({},n.props,e,n.state,{getDetail:n.getDetail}))}}),i.a.createElement(p.d,{exact:!0,path:"/moop_cases/:caseID/publish_success",render:function(e){return i.a.createElement(m,Object.assign({},n.props,e,n.state,{getDetail:n.getDetail}))}})))}}]),k);function k(e){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,k);var t=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,e));return t.getDetail=function(e){var n="/libraries/"+e+".json";C.a.get(n).then(function(e){e&&(t.setState({CaseDetail:e.data,praise_count:e.data.praise_count,cover:e.data.cover,creator:e.data.creator,operation:e.data.operation,user_praised:e.data.operation.user_praised,tags:e.data.tags,attachments:e.data.attachments}),window.document.title=e.data.title)}).catch(function(e){console.log(e)})},t.praisePoint=function(e){var n=t.state.praise_count;C.a.post("/praise_tread/like.json",{object_id:e,object_type:"library"}).then(function(e){e&&t.setState({praise_count:parseInt(n)+1,user_praised:!0})}).catch(function(e){console.log(e)})},t.state={praise_count:0,CaseDetail:void 0,cover:void 0,creator:void 0,operation:void 0,tags:void 0,attachments:void 0,user_praised:!0},t}n.default=Object(l.a)()(Object(a.w)()(Object(c.a)(y)))}});