Auto Submit

local_educoder
autosubmit 2 years ago
parent b2c1b194c5
commit e916d30842

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -29,4 +29,4 @@
`;for(let _t=0;_t<xi;_t++){let Qn=[],qn=[];for(let ei=0;ei<Xn;ei++)_t===1&&qn.push(mi[Ai]),Qn.push(" ");_t===1&&(Dn+=`| ${qn.join(" | ")} |
`),Dn+=`| ${Qn.join(Xn===1?"":" | ")} |
`}return ne.replaceSelection(Dn+`
`),ne.focus();default:throw new Error}},[ne,we]),bi=(0,a.useMemo)(()=>{switch(we){case rn:return a.createElement(qt,{callback:xt,onCancel:Ft});case ln:return a.createElement(pn.Z,{callback:xt,onCancel:Ft});case an:return a.createElement(vn,{callback:xt,onCancel:Ft});case Tt:return a.createElement(On,{callback:xt,onCancel:Ft});case sn:return a.createElement(ai,{callback:xt,onCancel:Ft});case"maths-latex":return a.createElement(ci,{showSaveButton:!0,callback:xt});case"inline-latex":return a.createElement(di.Z,{showSaveButton:!0,callback:xt});default:return null}},[we]);function Ft(){Qe("")}(0,a.useEffect)(()=>{if(Bn.current){let ge=function(gt){ze=!0,et=gt.pageY},ue=function(){ze=!1},he=function(gt){if(ze){let ut=gt.pageY-et;ut<0&&(ut=0),ut>300&&(ut=300);let ct=ae+ut+"px";kt(ct)}},fe=Bn.current,ze=!1,et=0;return fe.addEventListener("mousedown",ge),document.addEventListener("mousemove",he),document.addEventListener("mouseup",ue),()=>{fe.removeEventListener("mousedown",ge),document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",ue)}}},[ne,Bn]),(0,a.useEffect)(()=>{kt(ae)},[ae]);const Ei=Wn(E),Si=Wn(wt),Bi={width:Ei,height:Si},Ni=(0,a.useMemo)(()=>{if(it){let ge=new Date(it),ue=ge.getHours(),he=ge.getMinutes(),fe=ge.getSeconds();return ue=ue<10?"0"+ue:ue,he=he<10?"0"+he:he,fe=fe<10?"0"+fe:fe,`${ue}:${he}:${fe}`}return 0},[it]),ki=ge=>{const ue=[];if(Ct){let he=-1;ge=ge.replace(/(@▁▁@|@▁@)/g,function(fe,ze,et){ue.push({multiLine:fe!==In})})}return ue};function Gi(){window.sessionStorage.removeItem(nt),Yt(!1),mt(0)}function Ri(){Yt(!1),mt(0),ne.setValue(window.sessionStorage.getItem(nt))}(0,a.useEffect)(()=>{if(xn[we]&&we!==Wt&&we!==Tt){const ge=document.getElementsByClassName("ant-modal")[0],ue=window.innerWidth/2-ge.offsetWidth/2,he=window.innerHeight/2-ge.offsetHeight/2;Zn(ue),Kn(he)}},[we]);const _i=ge=>{ge.preventDefault();const ue=ge.clientX-Vn,he=ge.clientY-Un;document.body.onmousemove=fe=>{let ze=fe.clientX-ue,et=fe.clientY-he;const gt=document.getElementsByClassName("ant-modal")[0],ut=window.innerWidth-gt.offsetWidth,ct=window.innerHeight-gt.offsetHeight;ze=Math.max(0,Math.min(ze,ut)),et=Math.max(0,Math.min(et,ct)),Ti(fe.clientX,fe.clientY,ue,he)&&(Zn(ze),Kn(et))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ti=(ge,ue,he,fe)=>{const ze=document.body.clientHeight,et=document.body.clientWidth;return ge<20&&he>ge||ge>et-20&&he<ge||ue<20&&fe>ue||ue>ze-20&&fe<ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return a.createElement(a.Fragment,null,a.createElement("div",{className:"markdown-editor-wrapper",ref:An},a.createElement("div",{className:`markdown-editor-container ${Zt} ${Pt?"on-preview":""} ${me?"mini":""} ${ve?"full-screen":""}`,style:Bi},a.createElement(bt,{insertTemp:Pe,watch:Pt,fullScreen:ve,showNullButton:Ze,showNullProgramButton:Ct,onActionCallback:Jn,hidetoolBar:un,extraUse:Sn}),a.createElement("div",{className:"markdown-editor-body"},a.createElement("div",{className:"codemirror-container"},a.createElement("textarea",{ref:Jt,placeholder:dn})),Pt?a.createElement("div",{ref:kn,className:"preview-container"},je==="stex"&&a.createElement(Se,{value:Kt}),je!=="stex"&&a.createElement(Ne.Z,{disabledFill:vt,showProgramFill:Ct,value:Kt})):null))),Bt?a.createElement("a",{ref:Bn,className:"editor-resize"}):null,we===Wt&&a.createElement(nn,{callback:xt,onCancel:Ft}),we===Tt&&a.createElement(On,{callback:xt,onCancel:Ft}),a.createElement(Et.Z,null,xn[we]&&we!==Wt&&we!==Tt?a.createElement(Mn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Vn,top:Un},title:a.createElement("div",{style:{cursor:"move"},onMouseDown:_i},xn[we]),open:!0,onCancel:Ft,footer:null,destroyOnClose:!0,width:we===Tt?"1200px":null,height:we===Tt?"80vh":null,className:"markdown-popup-form"},bi):null))}},38134:function(se,De,z){"use strict";z.d(De,{Z:function(){return Fe}});var a=z(59301),Oe=z(4676);class Fe extends a.Component{constructor(te){super(te);const de=window.document;this.node=de.createElement("div"),de.body.appendChild(this.node)}render(){const{children:te}=this.props;return(0,Oe.createPortal)(te,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},11142:function(se,De,z){"use strict";z.d(De,{Z:function(){return Oe}});var a=z(59301);function Oe(Fe,Te){const te=(0,a.useRef)();(0,a.useEffect)(()=>{te.current=Fe}),(0,a.useEffect)(()=>{function de(){te.current()}if(Te!==null){let Ae=setInterval(de,Te);return()=>clearInterval(Ae)}},[Te])}}}]);
`),ne.focus();default:throw new Error}},[ne,we]),bi=(0,a.useMemo)(()=>{switch(we){case rn:return a.createElement(qt,{callback:xt,onCancel:Ft});case ln:return a.createElement(pn.Z,{callback:xt,onCancel:Ft});case an:return a.createElement(vn,{callback:xt,onCancel:Ft});case Tt:return a.createElement(On,{callback:xt,onCancel:Ft});case sn:return a.createElement(ai,{callback:xt,onCancel:Ft});case"maths-latex":return a.createElement(ci,{showSaveButton:!0,callback:xt});case"inline-latex":return a.createElement(di.Z,{showSaveButton:!0,callback:xt});default:return null}},[we]);function Ft(){Qe("")}(0,a.useEffect)(()=>{if(Bn.current){let ge=function(gt){ze=!0,et=gt.pageY},ue=function(){ze=!1},he=function(gt){if(ze){let ut=gt.pageY-et;ut<0&&(ut=0),ut>300&&(ut=300);let ct=ae+ut+"px";kt(ct)}},fe=Bn.current,ze=!1,et=0;return fe.addEventListener("mousedown",ge),document.addEventListener("mousemove",he),document.addEventListener("mouseup",ue),()=>{fe.removeEventListener("mousedown",ge),document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",ue)}}},[ne,Bn]),(0,a.useEffect)(()=>{kt(ae)},[ae]);const Ei=Wn(E),Si=Wn(wt),Bi={width:Ei,height:Si},Ni=(0,a.useMemo)(()=>{if(it){let ge=new Date(it),ue=ge.getHours(),he=ge.getMinutes(),fe=ge.getSeconds();return ue=ue<10?"0"+ue:ue,he=he<10?"0"+he:he,fe=fe<10?"0"+fe:fe,`${ue}:${he}:${fe}`}return 0},[it]),ki=ge=>{const ue=[];if(Ct){let he=-1;ge=ge.replace(/(@▁▁@|@▁@)/g,function(fe,ze,et){ue.push({multiLine:fe!==In})})}return ue};function Gi(){window.sessionStorage.removeItem(nt),Yt(!1),mt(0)}function Ri(){Yt(!1),mt(0),ne.setValue(window.sessionStorage.getItem(nt))}(0,a.useEffect)(()=>{xn[we]&&we!==Wt&&we!==Tt&&setTimeout(()=>{const ge=document.getElementsByClassName("markdown-popup-form")[0],ue=window.innerWidth/2-ge.offsetWidth/2,he=window.innerHeight/2-ge.offsetHeight/2;Zn(ue),Kn(he)},0)},[we]);const _i=ge=>{ge.preventDefault();const ue=ge.clientX-Vn,he=ge.clientY-Un;document.body.onmousemove=fe=>{let ze=fe.clientX-ue,et=fe.clientY-he;const gt=document.getElementsByClassName("markdown-popup-form")[0],ut=window.innerWidth-gt.offsetWidth,ct=window.innerHeight-gt.offsetHeight;ze=Math.max(0,Math.min(ze,ut)),et=Math.max(0,Math.min(et,ct)),Ti(fe.clientX,fe.clientY,ue,he)&&(Zn(ze),Kn(et))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ti=(ge,ue,he,fe)=>{const ze=document.body.clientHeight,et=document.body.clientWidth;return ge<20&&he>ge||ge>et-20&&he<ge||ue<20&&fe>ue||ue>ze-20&&fe<ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return a.createElement(a.Fragment,null,a.createElement("div",{className:"markdown-editor-wrapper",ref:An},a.createElement("div",{className:`markdown-editor-container ${Zt} ${Pt?"on-preview":""} ${me?"mini":""} ${ve?"full-screen":""}`,style:Bi},a.createElement(bt,{insertTemp:Pe,watch:Pt,fullScreen:ve,showNullButton:Ze,showNullProgramButton:Ct,onActionCallback:Jn,hidetoolBar:un,extraUse:Sn}),a.createElement("div",{className:"markdown-editor-body"},a.createElement("div",{className:"codemirror-container"},a.createElement("textarea",{ref:Jt,placeholder:dn})),Pt?a.createElement("div",{ref:kn,className:"preview-container"},je==="stex"&&a.createElement(Se,{value:Kt}),je!=="stex"&&a.createElement(Ne.Z,{disabledFill:vt,showProgramFill:Ct,value:Kt})):null))),Bt?a.createElement("a",{ref:Bn,className:"editor-resize"}):null,we===Wt&&a.createElement(nn,{callback:xt,onCancel:Ft}),we===Tt&&a.createElement(On,{callback:xt,onCancel:Ft}),a.createElement(Et.Z,null,xn[we]&&we!==Wt&&we!==Tt?a.createElement(Mn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Vn,top:Un},title:a.createElement("div",{style:{cursor:"move"},onMouseDown:_i},xn[we]),open:!0,onCancel:Ft,footer:null,destroyOnClose:!0,width:we===Tt?"1200px":null,height:we===Tt?"80vh":null,className:"markdown-popup-form"},bi):null))}},38134:function(se,De,z){"use strict";z.d(De,{Z:function(){return Fe}});var a=z(59301),Oe=z(4676);class Fe extends a.Component{constructor(te){super(te);const de=window.document;this.node=de.createElement("div"),de.body.appendChild(this.node)}render(){const{children:te}=this.props;return(0,Oe.createPortal)(te,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},11142:function(se,De,z){"use strict";z.d(De,{Z:function(){return Oe}});var a=z(59301);function Oe(Fe,Te){const te=(0,a.useRef)();(0,a.useEffect)(()=>{te.current=Fe}),(0,a.useEffect)(()=>{function de(){te.current()}if(Te!==null){let Ae=setInterval(de,Te);return()=>clearInterval(Ae)}},[Te])}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
.form___eXJya [class~=ant-col]{display:block;width:100%;text-align:left}.tabMenuContainer___uf5IP .ant-menu{background-color:transparent;border:0}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item{width:125px;height:38px;background:#f5f5f5;border-radius:4px 4px 0 0;border:0!important;margin:0 3px 0 0!important;text-align:center;font-size:14px}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item:after{display:none!important}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item-selected{background:#ffffff;box-shadow:0 -1px 2px #ededed}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item-selected .ant-menu-title-content>span{color:#3061d0!important}.tabMenuContainer___uf5IP .control___GheLs{display:flex;align-items:center}.tabMenuContainer___uf5IP .control___GheLs .iconH___Wzw_r{margin-right:10px;font-size:16px;color:#666}.tabMenuContainer___uf5IP .control___GheLs .iconH___Wzw_r:hover{color:#0152d9}.tabMenuContainer___uf5IP .control___GheLs .selectBtn___mfEnI{display:inline-block;padding:0 10px;height:30px;background:#0152d9;border-radius:4px;line-height:30px;text-align:center;color:#fff;cursor:default}.tabMenuContainer___uf5IP .control___GheLs .selectBtn___mfEnI>span:first-child{margin-right:3px;transform:scale(.7);display:inline-block}.flex_box_center___ZOntB{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___xCjmA{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___gyDc0{align-items:center;box-align:center}.flex_box_center_end___ytAb3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___KhTU7{flex-direction:column;box-orient:block-axis}.bg___JLZ_u{background:white}.menu___Fc6i8{position:relative;display:box;display:flex;align-items:center;box-align:center}.menu___Fc6i8 ul{flex:1 1}.menu___Fc6i8 ul li{height:74px;line-height:74px;margin:0 15px}.menu___Fc6i8>div span{margin-right:35px;color:#0152d9}.desc___gI7VF{padding:20px 0;font-size:16px;font-weight:700;color:#999}.otherLink___msxoY{position:absolute;left:0;top:30px;border-radius:0 100px 100px 0;background:#f9751a;height:30px;line-height:30px;padding:0 18px;text-align:center;color:#fff}.card___qCDxO>div{padding:0 15px 15px;background:white;margin-bottom:10px}.card___qCDxO>div>[class~=ant-col]{margin-top:15px}.supportPlatform___gN3jm h1{font-size:14px;color:#999;margin-top:30px}.supportPlatform___gN3jm div{display:box;display:flex;justify-content:space-between;-webkit-box-pack:justify;background-color:#fff;padding:25px 40px}.supportPlatform___gN3jm div dl dt img{height:20px}
.form___eXJya [class~=ant-col]{display:block;width:100%;text-align:left}.tabMenuContainer___uf5IP .ant-menu{background-color:transparent;border:0}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item{width:125px;height:38px;background:#f5f5f5;border-radius:4px 4px 0 0;border:0!important;margin:0 3px 0 0!important;text-align:center;font-size:14px}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item:after{display:none!important}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item-selected{background:#ffffff;box-shadow:0 -1px 2px #ededed}.tabMenuContainer___uf5IP .ant-menu .ant-menu-item-selected .ant-menu-title-content>span{color:#3061d0!important}.tabMenuContainer___uf5IP .control___GheLs{display:flex;align-items:center}.tabMenuContainer___uf5IP .control___GheLs .iconH___Wzw_r{margin-right:10px;font-size:16px;color:#666}.tabMenuContainer___uf5IP .control___GheLs .iconH___Wzw_r:hover{color:#0152d9}.tabMenuContainer___uf5IP .control___GheLs .selectBtn___mfEnI{display:inline-block;padding:0 10px;height:30px;background:#0152d9;border-radius:4px;line-height:30px;text-align:center;color:#fff;cursor:default}.tabMenuContainer___uf5IP .control___GheLs .selectBtn___mfEnI>span:first-child{margin-right:3px;transform:scale(.7);display:inline-block}.tabMenuContainer___uf5IP .control___GheLs .selectBtn1___rJF8S{display:inline-block;padding:0 12px;height:30px;background:#FAFBFC;border:1px solid #E7E7E7;border-radius:4px;line-height:30px;cursor:no-drop;text-align:center;color:silver}.tabMenuContainer___uf5IP .control___GheLs .selectBtn1___rJF8S>span:first-child{margin-right:3px;transform:scale(.7);display:inline-block}.flex_box_center___ZOntB{justify-content:center;align-items:center;-webkit-justify-content:center;box-align:center}.flex_space_between___xCjmA{justify-content:space-between;-webkit-box-pack:justify}.flex_box_vertical_center___gyDc0{align-items:center;box-align:center}.flex_box_center_end___ytAb3{justify-content:flex-end;align-items:center;-webkit-justify-content:flex-end;-webkit-align-items:center;-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end}.flex_box_column___KhTU7{flex-direction:column;box-orient:block-axis}.bg___JLZ_u{background:white}.menu___Fc6i8{position:relative;display:box;display:flex;align-items:center;box-align:center}.menu___Fc6i8 ul{flex:1 1}.menu___Fc6i8 ul li{height:74px;line-height:74px;margin:0 15px}.menu___Fc6i8>div span{margin-right:35px;color:#0152d9}.desc___gI7VF{padding:20px 0;font-size:16px;font-weight:700;color:#999}.otherLink___msxoY{position:absolute;left:0;top:30px;border-radius:0 100px 100px 0;background:#f9751a;height:30px;line-height:30px;padding:0 18px;text-align:center;color:#fff}.card___qCDxO>div{padding:0 15px 15px;background:white;margin-bottom:10px}.card___qCDxO>div>[class~=ant-col]{margin-top:15px}.supportPlatform___gN3jm h1{font-size:14px;color:#999;margin-top:30px}.supportPlatform___gN3jm div{display:box;display:flex;justify-content:space-between;-webkit-box-pack:justify;background-color:#fff;padding:25px 40px}.supportPlatform___gN3jm div dl dt img{height:20px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9215],{88016:function(A,f,s){s.r(f),s.d(f,{default:function(){return N}});var e=s(59301),p=s(63144),v=s(6848),F=s(14491),C=s(99232),b=s.n(C),c={bg:"bg___ks3pQ",header:"header___G1nJ1",line:"line___A32wf",main:"main___PK_qk",row:"row___pFIzK"},P=s(84015),E=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,O=(a,l)=>{var r={};for(var n in a)S.call(a,n)&&l.indexOf(n)<0&&(r[n]=a[n]);if(a!=null&&E)for(var n of E(a))l.indexOf(n)<0&&I.call(a,n)&&(r[n]=a[n]);return r},k=(a,l,r)=>new Promise((n,h)=>{var g=u=>{try{o(r.next(u))}catch(d){h(d)}},y=u=>{try{o(r.throw(u))}catch(d){h(d)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(g,y);o((r=r.apply(a,l)).next())});const w=a=>{var l=a,{shixunsDetail:r,globalSetting:n,user:h,dispatch:g}=l,y=O(l,["shixunsDetail","globalSetting","user","dispatch"]);const o=(0,p.useParams)(),[u,d]=(0,e.useState)(!0),[j,B]=(0,e.useState)(),[L,Y]=(0,e.useState)([]),[i,D]=(0,e.useState)({id:null,page:1,limit:10});(0,e.useEffect)(()=>{o.id&&(i.id=o.id,D(i),x(i))},[o.id]);const x=t=>k(void 0,null,function*(){const m=yield(0,P.At)(t);d(!0),setTimeout(()=>{m!=null&&m.shixuns&&(Y(m.shixuns||[]),B(m.total_count),d(!1))},0)}),K=t=>{i.page=t,D(i),x(i)},_=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",render:(t,m,z)=>i.limit*(i.page-1)+z+1},{title:"\u590D\u5236\u8005",ellipsis:!0,dataIndex:"username",key:"username"},{title:"\u540D\u79F0",ellipsis:!0,width:300,dataIndex:"name",key:"name",render:t=>e.createElement(v.Z,{title:t},e.createElement("span",null,t))},{title:"\u5B66\u6821/\u5355\u4F4D",ellipsis:!0,dataIndex:"school_name",key:"school_name",render:(t,m)=>t==="***"?e.createElement(v.Z,{title:"\u672C\u5355\u4F4D\u4E0D\u5BF9\u5916\u516C\u5F00"},e.createElement("span",null,t)):t},{title:"\u590D\u5236\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:t=>b()(t).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",dataIndex:"identifier",key:"identifier",render:t=>e.createElement("a",{href:`/shixuns/${t}/challenges`},"\u67E5\u770B\u8BE6\u60C5")}];return e.createElement("section",{className:c.bg},e.createElement("header",{className:c.header},e.createElement("span",{className:"ml10"},"\u5B9E\u8DF5\u9879\u76EE\u590D\u5236\u5217\u8868"),e.createElement("a",{className:"mr10",href:`/shixuns/${o.id}/challenges`},"\u8FD4\u56DE")),e.createElement("div",{className:c.line}),e.createElement("main",{className:c.main},e.createElement(F.default,{loading:u,dataSource:L,rowKey:t=>t.id,columns:_,rowClassName:c.row,bordered:!1,pagination:{pageSize:10,total:j,current:i.page,onChange:K,showQuickJumper:!0,position:["bottomCenter"]}})))};var N=(0,p.connect)(({shixunsDetail:a,globalSetting:l,user:r})=>({shixunsDetail:a,globalSetting:l,user:r}))(w)}}]);
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9215],{88016:function(J,p,l){l.r(p),l.d(p,{default:function(){return N}});var c=l(59301),v=l(63144),y=l(6848),C=l(14491),P=l(99232),b=l.n(P),f={bg:"bg___ks3pQ",header:"header___G1nJ1",line:"line___A32wf",main:"main___PK_qk",row:"row___pFIzK"},S=l(84015),n=l(59301),E=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,k=(t,i)=>{var r={};for(var a in t)I.call(t,a)&&i.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&E)for(var a of E(t))i.indexOf(a)<0&&O.call(t,a)&&(r[a]=t[a]);return r},w=(t,i,r)=>new Promise((a,h)=>{var g=u=>{try{d(r.next(u))}catch(m){h(m)}},D=u=>{try{d(r.throw(u))}catch(m){h(m)}},d=u=>u.done?a(u.value):Promise.resolve(u.value).then(g,D);d((r=r.apply(t,i)).next())});const j=t=>{var i=t,{shixunsDetail:r,globalSetting:a,user:h,dispatch:g}=i,D=k(i,["shixunsDetail","globalSetting","user","dispatch"]);const d=(0,v.useParams)(),[u,m]=(0,c.useState)(!0),[B,L]=(0,c.useState)(),[Y,K]=(0,c.useState)([]),[s,x]=(0,c.useState)({id:null,page:1,limit:10});(0,c.useEffect)(()=>{d.id&&(s.id=d.id,x(s),F(s))},[d.id]);const F=e=>w(void 0,null,function*(){const o=yield(0,S.At)(e);m(!0),setTimeout(()=>{o!=null&&o.shixuns&&(K(o.shixuns||[]),L(o.total_count),m(!1))},0)}),z=(e,o)=>{s.page=e,s.limit=o,x(s),F(s)},A=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",render:(e,o,H)=>s.limit*(s.page-1)+H+1},{title:"\u590D\u5236\u8005",ellipsis:!0,dataIndex:"username",key:"username"},{title:"\u540D\u79F0",ellipsis:!0,width:300,dataIndex:"name",key:"name",render:e=>n.createElement(y.Z,{title:e},n.createElement("span",null,e))},{title:"\u5B66\u6821/\u5355\u4F4D",ellipsis:!0,dataIndex:"school_name",key:"school_name",render:(e,o)=>e==="***"?n.createElement(y.Z,{title:"\u672C\u5355\u4F4D\u4E0D\u5BF9\u5916\u516C\u5F00"},n.createElement("span",null,e)):e},{title:"\u590D\u5236\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:e=>b()(e).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",dataIndex:"identifier",key:"identifier",render:e=>n.createElement("a",{href:`/shixuns/${e}/challenges`},"\u67E5\u770B\u8BE6\u60C5")}];return n.createElement("section",{className:f.bg},n.createElement("header",{className:f.header},n.createElement("span",{className:"ml10"},"\u5B9E\u8DF5\u9879\u76EE\u590D\u5236\u5217\u8868")),n.createElement("div",{className:f.line}),n.createElement("main",{className:f.main},n.createElement(C.default,{loading:u,dataSource:Y,rowKey:e=>e.id,columns:A,rowClassName:f.row,bordered:!1,pagination:{pageSize:s.limit,total:B,current:s.page,onChange:z,showQuickJumper:!0,position:["bottomCenter"]}})))};var N=(0,v.connect)(({shixunsDetail:t,globalSetting:i,user:r})=>({shixunsDetail:t,globalSetting:i,user:r}))(j)}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

108
umi.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save