diff --git a/index.html b/index.html index 1e41def1bc..90f19542bb 100644 --- a/index.html +++ b/index.html @@ -87,6 +87,6 @@ gtag('config', 'UA-198293321-1'); --> - + diff --git a/p__Classrooms__Lists__CommonHomework__Add__index.d122a726.async.js b/p__Classrooms__Lists__CommonHomework__Add__index.d122a726.async.js new file mode 100644 index 0000000000..9825664e21 --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__Add__index.d122a726.async.js @@ -0,0 +1,15 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[50,6],{"500L":function(be,H,a){"use strict";a.d(H,"a",function(){return Q});var he=a("DZo9"),oe=a("8z0m"),pe=a("+L6B"),ne=a("2/Rp"),se=a("2qtc"),D=a("kLXV"),f=a("9og8"),ee=a("k1fw"),ae=a("oBTY"),P=a("miYZ"),T=a("tsqr"),A=a("tJVT"),U=a("q1tI"),$=a.n(U),ce=a("m3rI"),Ee=a("wzkS"),z=a("y5JW");function Y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return I};var I={},J=Object.prototype,M=J.hasOwnProperty,te=Object.defineProperty||function(o,e,r){o[e]=r.value},w=typeof Symbol=="function"?Symbol:{},N=w.iterator||"@@iterator",F=w.asyncIterator||"@@asyncIterator",Z=w.toStringTag||"@@toStringTag";function L(o,e,r){return Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),o[e]}try{L({},"")}catch(o){L=function(r,_,n){return r[_]=n}}function ie(o,e,r,_){var n=e&&e.prototype instanceof x?e:x,t=Object.create(n.prototype),s=new d(_||[]);return te(t,"_invoke",{value:v(o,r,s)}),t}function X(o,e,r){try{return{type:"normal",arg:o.call(e,r)}}catch(_){return{type:"throw",arg:_}}}I.wrap=ie;var R={};function x(){}function G(){}function re(){}var k={};L(k,N,function(){return this});var C=Object.getPrototypeOf,O=C&&C(C(i([])));O&&O!==J&&M.call(O,N)&&(k=O);var c=re.prototype=x.prototype=Object.create(k);function u(o){["next","throw","return"].forEach(function(e){L(o,e,function(r){return this._invoke(e,r)})})}function m(o,e){function r(n,t,s,E){var h=X(o[n],o,t);if(h.type!=="throw"){var g=h.arg,V=g.value;return V&&typeof V=="object"&&M.call(V,"__await")?e.resolve(V.__await).then(function(q){r("next",q,s,E)},function(q){r("throw",q,s,E)}):e.resolve(V).then(function(q){g.value=q,s(g)},function(q){return r("throw",q,s,E)})}E(h.arg)}var _;te(this,"_invoke",{value:function(t,s){function E(){return new e(function(h,g){r(t,s,h,g)})}return _=_?_.then(E,E):E()}})}function v(o,e,r){var _="suspendedStart";return function(n,t){if(_==="executing")throw new Error("Generator is already running");if(_==="completed"){if(n==="throw")throw t;return l()}for(r.method=n,r.arg=t;;){var s=r.delegate;if(s){var E=y(s,r);if(E){if(E===R)continue;return E}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(_==="suspendedStart")throw _="completed",r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);_="executing";var h=X(o,e,r);if(h.type==="normal"){if(_=r.done?"completed":"suspendedYield",h.arg===R)continue;return{value:h.arg,done:r.done}}h.type==="throw"&&(_="completed",r.method="throw",r.arg=h.arg)}}}function y(o,e){var r=e.method,_=o.iterator[r];if(_===void 0)return e.delegate=null,r==="throw"&&o.iterator.return&&(e.method="return",e.arg=void 0,y(o,e),e.method==="throw")||r!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),R;var n=X(_,o.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,R;var t=n.arg;return t?t.done?(e[o.resultName]=t.value,e.next=o.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,R):t:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,R)}function b(o){var e={tryLoc:o[0]};1 in o&&(e.catchLoc=o[1]),2 in o&&(e.finallyLoc=o[2],e.afterLoc=o[3]),this.tryEntries.push(e)}function j(o){var e=o.completion||{};e.type="normal",delete e.arg,o.completion=e}function d(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(b,this),this.reset(!0)}function i(o){if(o){var e=o[N];if(e)return e.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var r=-1,_=function n(){for(;++r=0;--n){var t=this.tryEntries[n],s=t.completion;if(t.tryLoc==="root")return _("end");if(t.tryLoc<=this.prev){var E=M.call(t,"catchLoc"),h=M.call(t,"finallyLoc");if(E&&h){if(this.prev=0;--_){var n=this.tryEntries[_];if(n.tryLoc<=this.prev&&M.call(n,"finallyLoc")&&this.prev=0;--r){var _=this.tryEntries[r];if(_.finallyLoc===e)return this.complete(_.completion,_.afterLoc),j(_),R}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var _=this.tryEntries[r];if(_.tryLoc===e){var n=_.completion;if(n.type==="throw"){var t=n.arg;j(_)}return t}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,_){return this.delegate={iterator:i(e),resultName:r,nextLoc:_},this.method==="next"&&(this.arg=void 0),R}},I}function Q(I){var J=[];return I&&I.length>0&&(J=I.map(function(M){return{uid:M.id,id:M.id,name:M.title+z.c+M.filesize,url:M.url,filesize:M.filesize,status:"done",response:{id:M.id}}})),J}H.b=function(I){var J=I.value,M=I.onChange,te=I.className,w=I.maxSize,N=w===void 0?150:w,F=I.title,Z=F===void 0?"\u4E0A\u4F20\u9644\u4EF6":F,L=I.showRemoveModal,ie=L===void 0?!1:L,X=I.accept,R=X===void 0?"":X,x=I.number,G=x===void 0?1e3:x,re=Object(U.useState)(!1),k=Object(A.a)(re,2),C=k[0],O=k[1],c=Object(U.useState)([]),u=Object(A.a)(c,2),m=u[0],v=u[1],y={multiple:!0,disabled:C,accept:R,withCredentials:!0,fileList:J,beforeUpload:function(d,i){var l=d.size/1024/1024;return m.concat(i).length>G?(T.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(G,"\u4E2A\u6587\u4EF6")),!1):l=G?O(!0):O(!1),v(Object(ae.a)(i)),i=i.map(function(l){var o;if(l==null||((o=l.response)===null||o===void 0)?void 0:o.id){var e;l.url="/api/attachments/".concat(l==null||((e=l.response)===null||e===void 0)?void 0:e.id)}return l.name.indexOf(z.c)===-1&&(l.name="".concat(l.name).concat(z.c).concat(Object(z.a)(l.size))),Object(ee.a)({},l)}),console.log("info:",d),M(i)},onRemove:function(){var j=Object(f.a)(Y().mark(function i(l){var o;return Y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=function(){var _=Object(f.a)(Y().mark(function n(){var t,s;return Y().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(t=l.response?l.response.id:l.id,!t){h.next=8;break}return h.next=4,Object(Ee.d)(l.response?l.response.id:l.uid);case 4:return s=h.sent,h.abrupt("return",s);case 8:return h.abrupt("return",!0);case 9:case"end":return h.stop()}},n)}));return function(){return _.apply(this,arguments)}}(),!ie){r.next=5;break}return r.abrupt("return",new Promise(function(_,n){D.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:$.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var t=Object(f.a)(Y().mark(function E(){var h;return Y().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,o();case 2:h=V.sent,T.b.success("\u5220\u9664\u6210\u529F"),_(!0);case 5:case"end":return V.stop()}},E)}));function s(){return t.apply(this,arguments)}return s}(),onCancel:function(){return _(!1)}})}));case 5:return r.next=7,o();case 7:return r.abrupt("return",r.sent);case 8:case"end":return r.stop()}},i)}));function d(i){return j.apply(this,arguments)}return d}()};function b(j){j.preventDefault(),j.stopPropagation()}return $.a.createElement("div",{className:"multi-upload ".concat(te||"")},$.a.createElement(oe.a,y,$.a.createElement(ne.a,{disabled:C,type:"primary",ghost:!0},Z),$.a.createElement("span",{onClick:b,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",N,"M) ")))}},"7ahc":function(be,H,a){"use strict";a.d(H,"a",function(){return J});var he=a("k1fw"),oe=a("0Owb"),pe=a("+L6B"),ne=a("2/Rp"),se=a("y8nQ"),D=a("Vl3Y"),f=a("tJVT"),ee=a("OaEy"),ae=a("2fM7"),P=a("q1tI"),T=a.n(P),A=a("VrN/"),U=a.n(A),$=a("p77/"),ce=a.n($),Ee=a("c5Ni"),z=a.n(Ee),Y=ae.a.Option,Q={labelCol:{span:4},wrapperCol:{span:20}},I={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};H.b=function(M){var te=M.callback,w=M.onCancel,N=Object(P.useState)("python"),F=Object(f.a)(N,2),Z=F[0],L=F[1];function ie(R){L(I[R][1])}function X(R){te(R)}return T.a.createElement(D.a,Object(oe.a)({},Q,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:X}),T.a.createElement(D.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},T.a.createElement(ae.a,{onChange:ie},Object.keys(I).map(function(R){return T.a.createElement(Y,{key:R,value:R},I[R][0])}))),T.a.createElement(D.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},T.a.createElement(J,{mode:Z})),T.a.createElement("div",{className:"flex-container flex-end"},T.a.createElement(ne.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.a.createElement(ne.a,{type:"ghost",onClick:w},"\u53D6\u6D88")))};function J(M){var te=M.value,w=M.onChange,N=M.mode,F=M.options,Z=F===void 0?{}:F,L=Object(P.useRef)(),ie=Object(P.useState)(),X=Object(f.a)(ie,2),R=X[0],x=X[1];return Object(P.useEffect)(function(){if(R){var G=function(k){var C=k.getValue();w&&w(C)};return R.on("change",G),function(){R.off("change",G)}}},[R,w]),Object(P.useEffect)(function(){R&&R.setOption("mode",N)},[R,N]),Object(P.useEffect)(function(){R&&((te!==R.getValue()||te==="")&&setTimeout(function(){R.setValue(te||" ")},300))},[R,te]),Object(P.useEffect)(function(){if(L.current&&!R){var G=U.a.fromTextArea(L.current,Object(he.a)({mode:N,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Z));x(G)}},[L.current,R]),T.a.createElement("div",{className:"my-codemirror-container"},T.a.createElement("textarea",{ref:L}))}},"9Bee":function(be,H,a){"use strict";var he=a("k1fw"),oe=a("q1tI"),pe=a.n(oe),ne=a("vg9a"),se=a("tJVT"),D=a("DlQD"),f=a.n(D),ee=a("rUJ1");function ae(C,O){var c=C.match(/^(\s+)(?:```)/);if(c===null)return O;var u=c[1];return O.split(` +`).map(function(m){var v=m.match(/^\s+/);if(v===null)return m;var y=Object(se.a)(v,1),b=y[0];return b.length>=u.length?m.slice(u.length):m}).join(` +`)}var P=[],T=["