From a30202a483b266aa90a28cac0e39a9da5a4f4eb3 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 28 Mar 2025 10:10:56 +0800 Subject: [PATCH] Auto Submit --- p__CoreTeacher__Index__index.async.js | 2 +- p__Paper__Index__index.async.js | 2 +- umi.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p__CoreTeacher__Index__index.async.js b/p__CoreTeacher__Index__index.async.js index af1cda2430..f7dcd340cb 100644 --- a/p__CoreTeacher__Index__index.async.js +++ b/p__CoreTeacher__Index__index.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[60497,46906,69142,3915],{12893:function(e,n,t){t.d(n,{Z:function(){return c}});var a=t(72308),i=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},s=t(7657),o=function(e,n){return i.createElement(s.Z,(0,a.Z)({},e,{ref:n,icon:r}))};var c=i.forwardRef(o)},32134:function(e,n,t){t.d(n,{Z:function(){return c}});var a=t(72308),i=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},s=t(7657),o=function(e,n){return i.createElement(s.Z,(0,a.Z)({},e,{ref:n,icon:r}))};var c=i.forwardRef(o)},5531:function(e,n,t){t.d(n,{Z:function(){return c}});var a=t(72308),i=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},s=t(7657),o=function(e,n){return i.createElement(s.Z,(0,a.Z)({},e,{ref:n,icon:r}))};var c=i.forwardRef(o)},3196:function(e,n,t){t.d(n,{Z:function(){return y}});var a=t(7557),i=t.n(a),r=t(41498),s=t.n(r),o=t(82242),c=t.n(o),l=t(79800),u=t.n(l),d=t(39647),A=t.n(d),g=t(59301),p=t(8591),x=t(54580),m=t(95237),f=t(17631),v=t(19248),h=t(46906),k="tip___bHEXo",S=t(37712),j=["ButtonText","ButtonOptions","uploadProps","showTip","showText","showListening","imgWidth"],y=function(e){var n,t,a,r=e.ButtonText,o=e.ButtonOptions,l=e.uploadProps,d=e.showTip,y=e.showText,w=e.showListening,B=e.imgWidth,N=A()(e,j),I=(0,g.useState)(null),D=u()(I,2),L=D[0],J=D[1],H=c()(c()({maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:function(e){if(!("image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type))return p.ZP.error("您上传的不是JPEG/PNG/JPG类型文件"),x.Z.LIST_IGNORE;var n=e.size/1024/1024;return 0==n?(p.ZP.error("".concat(e.name," 图片无法上传。").concat(0==n?"文件内容不能为空":"超过图片大小限制(2MB)")),x.Z.LIST_IGNORE):!(n>2)||(p.ZP.error("".concat(e.name," 图片无法上传。超过图片大小限制(2MB)")),x.Z.LIST_IGNORE)},onChange:function(e){var n;(["uploading","done","removed"].includes(e.file.status)&&J(e.file),"done"==e.file.status)&&(null==N||N.onChange(null===(n=e.file)||void 0===n||null===(n=n.response)||void 0===n?void 0:n.id))},action:"".concat(f.Z.API_SERVER,"/api/attachments.json")},l||{}),{},{onRemove:(t=s()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:F(),(null==l?void 0:l.onRemove)&&(null==l||l.onRemove(n));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}),F=function(){J(null),null==N||N.onChange()};return(0,g.useEffect)((function(){(null==N?void 0:N.value)&&J({response:{id:null==N?void 0:N.value}})}),[null==N?void 0:N.value]),(0,S.jsx)("div",{id:(null==N?void 0:N.scrollId)||"",children:null!=L&&null!==(n=L.response)&&void 0!==n&&n.id?(0,S.jsxs)(m.Z,{align:"middle",justify:"center",style:{position:"relative",width:B||400,backgroundColor:"#f4f3f4"},children:[(0,S.jsx)("img",{src:f.Z.API_SERVER+"/api/attachments/"+(null==L||null===(a=L.response)||void 0===a?void 0:a.id),alt:"avatar",style:{width:"100%",height:B?"177px":"auto"}}),(0,S.jsx)("div",{style:{position:"absolute",right:"-6px",top:"-6px",cursor:"pointer",width:16,height:16,borderRadius:"50%",backgroundColor:"#fff"},children:(0,S.jsx)(v.Z,{onClick:s()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:F();case 1:case"end":return e.stop()}}),e)}))),style:{fontSize:"16px",color:"red"}})})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(x.Z,c()(c()({},H),{},{children:(0,S.jsx)(h.op,c()(c()({style:c()({borderRadius:"2px"},null==o?void 0:o.style)},o),{},{children:r}))})),d&&(0,S.jsx)("span",{className:k,children:"(建议上传尺寸为472*266的图片)"}),y&&(0,S.jsx)("span",{className:k,style:{width:"4rem"},children:"(需上传尺寸为200*268的图片,大小不超过2MB)"}),w&&(0,S.jsx)("span",{className:k,style:{width:"4rem"},children:"(限制上传2MB内的图片,建议上传尺寸为283*177的图片)"})]})})}},68738:function(e,n,t){var a=t(7557),i=t.n(a),r=t(41498),s=t.n(r),o=t(79800),c=t.n(o),l=t(59301),u=t(13032),d=t(43418),A=t(8591),g=t(58181),p=t(96193),x=t(37712);n.Z=(0,u.connect)((function(e){return{user:e.user,classroomList:e.classroomList}}))((function(e){e.user;var n,t=e.dispatch,a=e.classroomList,r=e.getData,o=(0,l.useState)(!1),u=c()(o,2),m=u[0],f=u[1],v=(0,l.useState)(""),h=c()(v,2),k=h[0],S=h[1],j=function(){t({type:"classroomList/setActionTabs",payload:{}})},y={"教材规划":"core_material_description","主审专家":"judge","教材推荐":"textbook","师资培训":"core_teacher","课堂听课":"listening","教学论文":"paper"};return(0,x.jsx)(d.Z,{title:"规划说明",width:900,destroyOnClose:!0,maskClosable:!1,keyboard:!1,confirmLoading:m,open:"规划说明"===a.actionTabs.key,onCancel:j,onOk:s()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,(0,g.ZP)("/api/core_materials/set_description.json",{method:"post",body:{name:y[a.actionTabs.params.name],content:k}});case 3:0==(null==(n=e.sent)?void 0:n.status)&&(A.ZP.success("保存成功"),j(),r()),f(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,x.jsx)(p.Z,{defaultvalue:null===(n=a.actionTabs.params)||void 0===n?void 0:n.content,onChange:function(e){S(e)}})})}))},21248:function(e,n,t){t.d(n,{Z:function(){return j}});var a=t(82242),i=t.n(a),r=t(7557),s=t.n(r),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),A={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},g=t(3113),p=t(70557),x=t(72355),m=t(6848),f=t(20731),v=t(39996),h=t(72226),k=t(17631),S=t(37712),j=function(e){var n,t,a,r,o,l,j,y=e.editOffice,w=void 0===y?"view":y,B=e.data,N=(e.theme,e.type),I=e.filename,D=e.monacoEditor,L=e.className,J=e.style,H=e.close,F=e.onClose,M=e.hasMask,b=e.disabledDownload,C=e.onImgDimensions,Q=e.showNodata,P=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),O=u()(P,2),E=(O[0],O[1],(0,d.useState)("")),Z=u()(E,2),R=(Z[0],Z[1]),z=(0,d.useState)(),U=u()(z,2),V=U[0],W=U[1],q="build"===window.ENV?"/react/build":"",Y=location.host.startsWith("localhost")?k.Z.PROXY_SERVER:k.Z.API_SERVER,G=(0,d.useRef)();null!==(n=B)&&void 0!==n&&n.startsWith("/api")&&"txt"!==N&&(B=k.Z.API_SERVER+B),I&&(D.filename=I),(0,d.useEffect)((function(){var e,n=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==n||n.map((function(e){var n=e.split("=");"_educoder_session"===n[0]&&R(n[1])}))}),[]),(0,d.useEffect)((function(){"office"===N&&K()}),[N,B]);var K=function(){var e=c()(s()().mark((function e(){var n,t,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=B,B.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=5,(0,v.gJ)({attachment_id:t});case 5:a=e.sent,W(a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){X()},X=function(){(0,f.Nd)(I||"educoder",decodeURIComponent(B))};return(0,S.jsxs)("div",{style:i()({},J||{}),className:"".concat(M&&A.bgBlack," ").concat(N?A.wrp:"hide"),children:[H&&(0,S.jsxs)("div",{className:A.close,ref:G,children:[!!C&&(0,S.jsx)(m.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return G.current},children:(0,S.jsx)("span",{onClick:function(){F(),C()},children:(0,S.jsx)("i",{className:"icon-yulanpizhu"})})}),!b&&(0,S.jsx)(m.Z,{title:"点击下载此文件",getPopupContainer:function(){return G.current},children:(0,S.jsx)("span",{onClick:X,children:(0,S.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,S.jsx)(m.Z,{title:"关闭",getPopupContainer:function(){return G.current},children:(0,S.jsx)("span",{className:"",onClick:F,children:(0,S.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,S.jsx)("div",{className:"".concat(A[L]," ").concat(L," ").concat(A.monaco," ").concat("txt"===N?"show":"hide"),children:"txt"===N&&(0,S.jsx)(x.ZP,i()({},D))}),"audio"===N&&(0,S.jsx)("audio",{src:(null===(t=B)||void 0===t?void 0:t.indexOf("http"))>-1||null!==(a=B)&&void 0!==a&&a.startsWith("/api")?B:"data:image/png;base64,".concat(B),autoPlay:!0}),"video"===N&&(0,S.jsx)(S.Fragment,{children:(null===(r=B)||void 0===r?void 0:r.indexOf("http"))>-1||null!==(o=B)&&void 0!==o&&o.startsWith("/api")?(0,S.jsx)("video",{controls:!0,src:"".concat(B),autoPlay:!0}):(0,S.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(B),autoPlay:!0})}),"office"===N&&V&&(0,S.jsx)("iframe",{src:"".concat(q,"/office.html?key=").concat(V.key,"&url=").concat(Y+V.url,"&callbackUrl=").concat(Y+V.callbackUrl,"&fileType=").concat(V.fileType,"&title=").concat(V.title,"&model=").concat(w,"&officeServer=").concat(k.Z.ONLYOFFICE,"&disabledDownload=").concat(!!b)}),"html"===N&&(0,S.jsx)("iframe",{src:B+"&disposition=inline"}),"pdf"===N&&(0,S.jsx)("iframe",{src:"".concat(q,"/js/pdfview/index.html?url=").concat(B,"&disabledDownload=").concat(!!b)}),"image"===N&&(0,S.jsx)("img",{src:(null===(l=B)||void 0===l?void 0:l.indexOf("http"))>-1||null!==(j=B)&&void 0!==j&&j.startsWith("/api")?B:"data:image/png;base64,".concat(B)}),("other"===N||"download"===N)&&(0,S.jsx)(S.Fragment,{children:Q?(0,S.jsx)(h.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,S.jsx)(g.ZP,{icon:(0,S.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:T,children:"下载"})}):(0,S.jsxs)(g.ZP,{type:"primary",size:"middle",onClick:T,children:[(0,S.jsx)(p.Z,{}),"点击下载"]})})]})}},69142:function(e,n,t){t.d(n,{Z:function(){return U}});var a=t(82242),i=t.n(a),r=t(37205),s=t.n(r),o=t(91232),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),A=(t(50304),t(32834)),g=t.n(A),p=t(11690);var x=[],m=["