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.
2 lines
16 KiB
2 lines
16 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{"2tKv":function(A,P,r){A.exports=r.p+"static/Code.584c4f34.png"},BLHT:function(A,P,r){A.exports={flex_box_center:"flex_box_center___tGua6",flex_space_between:"flex_space_between___sLRzb",flex_box_vertical_center:"flex_box_vertical_center___3RJH-",flex_box_center_end:"flex_box_center_end___2FaoL",flex_box_column:"flex_box_column____9_T2",footer:"footer___3QRzm",fastLink:"fastLink___MJhMZ",cooperation:"cooperation___208jm",copyright:"copyright___27kZ0"}},CAjq:function(A,P,r){A.exports=r.p+"static/qqCode.a1502573.png"},H8y1:function(A,P,r){"use strict";r.r(P);var Te=r("GNNt"),q=r("wEI+"),ee=r("PpiC"),T=r("q1tI"),n=r.n(T),te=r("+Gva"),ne=r("ruvs"),B=r("9kvl"),oe=r("wd/R"),w=r.n(oe),re=r("BLHT"),Q=r.n(re),ae=function(l){var E,a,x,b,y,c,S=l.user,_=l.globalSetting;return n.a.createElement("div",{className:Q.a.footer,style:{height:(_==null||((E=_.setting)===null||E===void 0)?void 0:E.main_site)?"":"80px",lineHeight:(_==null||((a=_.setting)===null||a===void 0)?void 0:a.main_site)?"":"80px"}},(_==null||((x=_.setting)===null||x===void 0)?void 0:x.main_site)&&n.a.createElement("aside",{className:Q.a.fastLink},n.a.createElement("a",{target:"_blank",href:"/"},"\u7F51\u7AD9\u9996\u9875"),!(_==null||((b=_.setting)===null||b===void 0)?void 0:b.is_local)&&n.a.createElement("a",{target:"_blank",href:"/help/about_us"},"\u5173\u4E8E\u6211\u4EEC"),n.a.createElement("a",{target:"_blank",href:"/help/contact_us"},"\u8054\u7CFB\u6211\u4EEC"),n.a.createElement("a",{target:"_blank",href:"/help/cooperatives"},"\u5408\u4F5C\u4F19\u4F34"),n.a.createElement("a",{target:"_blank",href:"/help/agreement"},"\u670D\u52A1\u534F\u8BAE"),n.a.createElement("a",{target:"_blank",href:"/help/help_center"},"\u5E2E\u52A9\u4E2D\u5FC3"),n.a.createElement("a",{target:"_blank",href:"/help/feedback"},"\u610F\u89C1\u53CD\u9988")),((y=_.setting)===null||y===void 0?void 0:y.footer)?n.a.createElement("div",{dangerouslySetInnerHTML:{__html:(c=_.setting)===null||c===void 0?void 0:c.footer}}):n.a.createElement("div",null,n.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},n.a.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",w()().year(),"\xA0EduCoder",n.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6E58ICP\u590717009477\u53F7"),n.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},n.a.createElement("img",{className:"vertical4",src:r("d5bv")}),"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7"),n.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",n.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6E56\u5357\u667A\u64CE\u79D1\u6280\u6709\u9650\u516C\u53F8"))))},ue=ae,we=r("2qtc"),G=r("kLXV"),k=r("tJVT"),le=r("NaGD"),ie=r.n(le),se=r("m3rI"),ce=r("1vsH"),de=r("CAjq"),Ee=r.n(de),me=function(l){var E,a,x=l.user,b=l.globalSetting,y=Object(T.useState)(!1),c=Object(k.a)(y,2),S=c[0],_=c[1];Object(T.useEffect)(function(){return window.addEventListener("click",N),function(){window.removeEventListener("click",N)}},[]);var F=function(){var m=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(m){_(!0);return}var p="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(ce.I)(p)},O=function(m,p){if(m.className===p)return m;for(var R=0,v=m;v=v.parentNode;R++){if(v.className===p)return v;if(v==document.documentElement)return!1}},N=function(m){var p,R,v;(m==null?void 0:m.target)&&((m==null||((p=m.target)===null||p===void 0)?void 0:p.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||(m==null||((R=m.target)===null||R===void 0||((v=R.nextElementSibling)===null||v===void 0))?void 0:v.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&(O(m.target,"module-introduce")&&F())};return n.a.createElement(n.a.Fragment,null,n.a.createElement(G.a,{centered:!0,destroyOnClose:!0,visible:S,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return _(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),n.a.createElement("img",{src:Ee.a,width:200,height:200}))),n.a.createElement("div",{className:ie.a.newFooter,dangerouslySetInnerHTML:{__html:(E=b.setting)===null||E===void 0||((a=E.footer)===null||a===void 0)?void 0:a.replaceAll("/api/attachments/",se.a.IMG_SERVER+"/api/attachments/")}}))},fe=me,_e=function(l){var E=l.user,a=l.globalSetting,x=l.loading,b=l.dispatch;if(a.showFooter&&a.showHeaderFooter){var y,c;return n.a.createElement("section",null,(a==null||((y=a.setting)===null||y===void 0)?void 0:y.main_site)&&!(a==null||((c=a.setting)===null||c===void 0)?void 0:c.is_local)?n.a.createElement(fe,{user:E,globalSetting:a}):n.a.createElement(ue,{user:E,globalSetting:a}))}else return n.a.createElement(n.a.Fragment,null," ")},ve=Object(B.a)(function(d){var l=d.user,E=d.loading,a=d.globalSetting;return{user:l,globalSetting:a,loading:E.models.index}})(_e),he=r("iHkK"),ge=r.n(he),pe=function(l){var E=l.globalSetting,a=l.loading,x=l.user,b=l.dispatch;return n.a.createElement("div",{className:ge.a.sideBar})},xe=Object(B.a)(function(d){var l=d.loading,E=d.globalSetting,a=d.user;return{globalSetting:E,user:a,loading:l.models.index}})(pe),Me=r("+L6B"),V=r("2/Rp"),ye=r("9og8");function H(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */H=function(){return d};var d={},l=Object.prototype,E=l.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},x=a.iterator||"@@iterator",b=a.asyncIterator||"@@asyncIterator",y=a.toStringTag||"@@toStringTag";function c(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(o,u,i){return o[u]=i}}function S(t,e,o,u){var i=e&&e.prototype instanceof O?e:O,s=Object.create(i.prototype),h=new $(u||[]);return s._invoke=function(U,D,f){var L="suspendedStart";return function(C,K){if(L==="executing")throw new Error("Generator is already running");if(L==="completed"){if(C==="throw")throw K;return W()}for(f.method=C,f.arg=K;;){var Z=f.delegate;if(Z){var z=X(Z,f);if(z){if(z===F)continue;return z}}if(f.method==="next")f.sent=f._sent=f.arg;else if(f.method==="throw"){if(L==="suspendedStart")throw L="completed",f.arg;f.dispatchException(f.arg)}else f.method==="return"&&f.abrupt("return",f.arg);L="executing";var I=_(U,D,f);if(I.type==="normal"){if(L=f.done?"completed":"suspendedYield",I.arg===F)continue;return{value:I.arg,done:f.done}}I.type==="throw"&&(L="completed",f.method="throw",f.arg=I.arg)}}}(t,o,h),s}function _(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(u){return{type:"throw",arg:u}}}d.wrap=S;var F={};function O(){}function N(){}function g(){}var m={};c(m,x,function(){return this});var p=Object.getPrototypeOf,R=p&&p(p(J([])));R&&R!==l&&E.call(R,x)&&(m=R);var v=g.prototype=O.prototype=Object.create(m);function j(t){["next","throw","return"].forEach(function(e){c(t,e,function(o){return this._invoke(e,o)})})}function M(t,e){function o(i,s,h,U){var D=_(t[i],t,s);if(D.type!=="throw"){var f=D.arg,L=f.value;return L&&typeof L=="object"&&E.call(L,"__await")?e.resolve(L.__await).then(function(C){o("next",C,h,U)},function(C){o("throw",C,h,U)}):e.resolve(L).then(function(C){f.value=C,h(f)},function(C){return o("throw",C,h,U)})}U(D.arg)}var u;this._invoke=function(i,s){function h(){return new e(function(U,D){o(i,s,U,D)})}return u=u?u.then(h,h):h()}}function X(t,e){var o=t.iterator[e.method];if(o===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,X(t,e),e.method==="throw"))return F;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return F}var u=_(o,t.iterator,e.arg);if(u.type==="throw")return e.method="throw",e.arg=u.arg,e.delegate=null,F;var i=u.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,F):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,F)}function Se(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Y(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Se,this),this.reset(!0)}function J(t){if(t){var e=t[x];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var o=-1,u=function i(){for(;++o<t.length;)if(E.call(t,o))return i.value=t[o],i.done=!1,i;return i.value=void 0,i.done=!0,i};return u.next=u}}return{next:W}}function W(){return{value:void 0,done:!0}}return N.prototype=g,c(v,"constructor",g),c(g,"constructor",N),N.displayName=c(g,y,"GeneratorFunction"),d.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===N||(e.displayName||e.name)==="GeneratorFunction")},d.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,y,"GeneratorFunction")),t.prototype=Object.create(v),t},d.awrap=function(t){return{__await:t}},j(M.prototype),c(M.prototype,b,function(){return this}),d.AsyncIterator=M,d.async=function(t,e,o,u,i){i===void 0&&(i=Promise);var s=new M(S(t,e,o,u),i);return d.isGeneratorFunction(e)?s:s.next().then(function(h){return h.done?h.value:s.next()})},j(v),c(v,y,"Generator"),c(v,x,function(){return this}),c(v,"toString",function(){return"[object Generator]"}),d.keys=function(t){var e=[];for(var o in t)e.push(o);return e.reverse(),function u(){for(;e.length;){var i=e.pop();if(i in t)return u.value=i,u.done=!1,u}return u.done=!0,u}},d.values=J,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Y),!e)for(var o in this)o.charAt(0)==="t"&&E.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var o=this;function u(f,L){return h.type="throw",h.arg=e,o.next=f,L&&(o.method="next",o.arg=void 0),!!L}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],h=s.completion;if(s.tryLoc==="root")return u("end");if(s.tryLoc<=this.prev){var U=E.call(s,"catchLoc"),D=E.call(s,"finallyLoc");if(U&&D){if(this.prev<s.catchLoc)return u(s.catchLoc,!0);if(this.prev<s.finallyLoc)return u(s.finallyLoc)}else if(U){if(this.prev<s.catchLoc)return u(s.catchLoc,!0)}else{if(!D)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return u(s.finallyLoc)}}}},abrupt:function(e,o){for(var u=this.tryEntries.length-1;u>=0;--u){var i=this.tryEntries[u];if(i.tryLoc<=this.prev&&E.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&(e==="break"||e==="continue")&&s.tryLoc<=o&&o<=s.finallyLoc&&(s=null);var h=s?s.completion:{};return h.type=e,h.arg=o,s?(this.method="next",this.next=s.finallyLoc,F):this.complete(h)},complete:function(e,o){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&o&&(this.next=o),F},finish:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o];if(u.finallyLoc===e)return this.complete(u.completion,u.afterLoc),Y(u),F}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o];if(u.tryLoc===e){var i=u.completion;if(i.type==="throw"){var s=i.arg;Y(u)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,u){return this.delegate={iterator:J(e),resultName:o,nextLoc:u},this.method==="next"&&(this.arg=void 0),F}},d}var Le=function(l){var E=l.user,a=l.dispatch,x=l.classroomList;return n.a.createElement(G.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:x.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:function(){a({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("div",null,n.a.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),n.a.createElement("br",null),n.a.createElement("div",{style:{textAlign:"end"}},n.a.createElement(V.a,{type:"primary",onClick:Object(ye.a)(H().mark(function b(){return H().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:a({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return c.stop()}},b)}))},"\u77E5\u9053\u4E86"))))},be=Object(B.a)(function(d){var l=d.user,E=d.classroomList;return{user:l,classroomList:E}})(Le),Be=r("14J3"),Fe=r("BMrR"),je=r("sRBo"),Re=r("kaz8"),Ae=r("2tKv"),Ue=r.n(Ae),De=function(l){var E,a=l.user,x=Object(T.useState)(!1),b=Object(k.a)(x,2),y=b[0],c=b[1],S=Object(T.useState)(""),_=Object(k.a)(S,2),F=_[0],O=_[1];Object(T.useEffect)(function(){var g,m,p=localStorage.getItem("extension-modal");if(!(a==null||((g=a.userInfo)===null||g===void 0)?void 0:g.login)||!p)return;var R=w()(),v="".concat(a==null||((m=a.userInfo)===null||m===void 0)?void 0:m.login,"-extend-date"),j=localStorage.getItem(v);if(j)if(R<=w()(j))c(!1);else{c(!0),localStorage.removeItem(v),localStorage.removeItem("extension-modal");var M=w()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");O(M)}else{c(!0),localStorage.removeItem("extension-modal");var X=w()(localStorage.getItem("extension-date")).format("YYYY\u5E74MM\u6708DD\u65E5");O(X)}return function(){c(!1)}},[a==null||((E=a.userInfo)===null||E===void 0)?void 0:E.login]);var N=function(m){var p,R="".concat(a==null||((p=a.userInfo)===null||p===void 0)?void 0:p.login,"-extend-date"),v=w()().endOf("day").format("YYYY-MM-DD HH:mm:ss");m.target.checked?localStorage.setItem(R,v):localStorage.removeItem(R)};return n.a.createElement(G.a,{title:"\u6E29\u99A8\u63D0\u793A",visible:y,zIndex:9999,centered:!0,width:594,onCancel:function(){c(!1)},footer:n.a.createElement(Fe.a,{align:"middle",justify:"space-between"},n.a.createElement(Re.a,{onChange:N},"\u4ECA\u65E5\u4E0D\u518D\u63D0\u9192"),n.a.createElement(V.a,{onClick:function(){c(!1)},style:{borderRadius:4},type:"primary"}," \u5173\u95ED"))},n.a.createElement("div",{className:"font14",style:{paddingLeft:16}},n.a.createElement("div",null,"\u8001\u5E08\u60A8\u597D\uFF01"),n.a.createElement("div",{style:{textIndent:28}},"\u611F\u8C22\u60A8\u5BF9\u5934\u6B4C\u5E73\u53F0\u7684\u8BA4\u53EF\u4E0E\u652F\u6301\uFF01\u6839\u636E\u5E73\u53F0",n.a.createElement("a",{href:"https://www.educoder.net/help/agreement",target:"_blank"},"\u670D\u52A1\u534F\u8BAE"),"\uFF0C\u8D35\u5355\u4F4D\u514D\u8D39\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5C06\u9650\u5236\u5BF9\u76F8\u5173\u529F\u80FD\u548C\u8D44\u6E90\u7684\u4F7F\u7528\u3002"),n.a.createElement("div",{style:{textIndent:28}},"\u8BF7\u60A8\u6DFB\u52A0\u4EE5\u4E0B\u5FAE\u4FE1\u5BA2\u670D\uFF0C\u534F\u52A9\u60A8\u5B8C\u6210\u540E\u7EED\u4F7F\u7528\u53CA\u7533\u8BF7\u6D41\u7A0B\uFF0C\u611F\u8C22\u652F\u6301\u4E0E\u7406\u89E3\u3002"),n.a.createElement("img",{style:{margin:"8px auto",display:"block"},width:160,src:Ue.a,alt:"\u4E8C\u7EF4\u7801"}),n.a.createElement("div",{style:{textAlign:"right"}},"\u5934\u6B4C\u8FD0\u8425\u4E2D\u5FC3"),n.a.createElement("div",{style:{textAlign:"right"}},F)))},Ce=Object(B.a)(function(d){var l=d.user;return{user:l}})(De),Ne=r("H4Hi"),Pe=r.n(Ne),Oe=function(l){var E=l.loading,a=l.children,x=Object(ee.a)(l,["loading","children"]);return n.a.createElement(q.a,{locale:te.default},n.a.createElement(ne.a,x),n.a.createElement("section",{className:Pe.a.layoutMainClass},a),n.a.createElement(xe,null),n.a.createElement(ve,null),n.a.createElement(be,null),n.a.createElement(Ce,null))},Ie=P.default=Object(B.a)(function(d){var l=d.loading;return{loading:l}})(Oe)},NaGD:function(A,P,r){A.exports={flex_box_center:"flex_box_center___VTqUm",flex_space_between:"flex_space_between___3f-Ja",flex_box_vertical_center:"flex_box_vertical_center___u4Jjr",flex_box_center_end:"flex_box_center_end___1QKJE",flex_box_column:"flex_box_column___1OBJc",newFooter:"newFooter___UNzWw"}},d5bv:function(A,P,r){A.exports=r.p+"static/beian.0c577066.png"},iHkK:function(A,P,r){A.exports={sideBar:"sideBar___DNWGT",wrap:"wrap___2rWVP",backTop:"backTop___3cAkP",ul:"ul___Bsaot"}}}]);
|