From 777efef93d7e5bd4eb6c3770903b96f2da768077 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Tue, 17 Jun 2025 14:48:00 +0800 Subject: [PATCH] Auto Submit --- p__Listening__Index__index.async.js | 2 +- p__Listening__Index__index.chunk.css | 2 +- umi.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p__Listening__Index__index.async.js b/p__Listening__Index__index.async.js index a6fc39de6d..e518ea1e05 100644 --- a/p__Listening__Index__index.async.js +++ b/p__Listening__Index__index.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[32975,1185,36707,71426],{12893:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(14809),a=t(59301),s={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"},c=t(7657),l=function(e,n){return a.createElement(c.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var r=a.forwardRef(l)},32134:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(14809),a=t(59301),s={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"},c=t(7657),l=function(e,n){return a.createElement(c.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var r=a.forwardRef(l)},13047:function(e,n,t){function i(e){var n=!0;if(e.length>0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i2)||(f.ZP.error("".concat(e.name," 图片无法上传。超过图片大小限制(2MB)")),x.Z.LIST_IGNORE)},onChange:function(e){var n;(["uploading","done","removed"].includes(e.file.status)&&I(e.file),"done"==e.file.status)&&(null==B||B.onChange(null===(n=e.file)||void 0===n||null===(n=n.response)||void 0===n?void 0:n.id))},action:"".concat(h.Z.API_SERVER,"/api/attachments.json")},o||{}),{},{onRemove:(t=c()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H(),(null==o?void 0:o.onRemove)&&(null==o||o.onRemove(n));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}),H=function(){I(null),null==B||B.onChange()};return(0,p.useEffect)((function(){(null==B?void 0:B.value)&&I({response:{id:null==B?void 0:B.value}})}),[null==B?void 0:B.value]),(0,k.jsx)("div",{id:(null==B?void 0:B.scrollId)||"",children:null!=D&&null!==(n=D.response)&&void 0!==n&&n.id?(0,k.jsxs)(g.Z,{align:"middle",justify:"center",style:{position:"relative",width:N||400,backgroundColor:"#f4f3f4"},children:[(0,k.jsx)("img",{src:h.Z.API_SERVER+"/api/attachments/"+(null==D||null===(i=D.response)||void 0===i?void 0:i.id),alt:"avatar",style:{width:"100%",height:N?"177px":"auto"}}),(0,k.jsx)("div",{style:{position:"absolute",right:"-6px",top:"-6px",cursor:"pointer",width:16,height:16,borderRadius:"50%",backgroundColor:"#fff"},children:(0,k.jsx)(v.Z,{onClick:c()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H();case 1:case"end":return e.stop()}}),e)}))),style:{fontSize:"16px",color:"red"}})})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(x.Z,r()(r()({},Z),{},{children:(0,k.jsx)(A.op,r()(r()({style:r()({borderRadius:"2px"},null==l?void 0:l.style)},l),{},{children:s}))})),d&&(0,k.jsx)("span",{className:j,children:"(建议上传尺寸为472*266的图片)"}),S&&(0,k.jsx)("span",{className:j,style:{width:"4rem"},children:"(需上传尺寸为200*268的图片,大小不超过2MB)"}),w&&(0,k.jsx)("span",{className:j,style:{width:"4rem"},children:"(限制上传2MB内的图片,建议上传尺寸为283*177的图片)"})]})})}},55478:function(e,n,t){var i=t(7557),a=t.n(i),s=t(41498),c=t.n(s),l=t(79800),r=t.n(l),o=t(59301),u=t(80184),d=t(43418),m=t(8591),p=t(35325),f=t(57827),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,i=e.classroomList,s=e.getData,l=(0,o.useState)(!1),u=r()(l,2),g=u[0],h=u[1],v=(0,o.useState)(""),A=r()(v,2),j=A[0],k=A[1],y=function(){t({type:"classroomList/setActionTabs",payload:{}})},S={"教材规划":"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:g,open:"规划说明"===i.actionTabs.key,onCancel:y,onOk:c()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,(0,p.ZP)("/api/core_materials/set_description.json",{method:"post",body:{name:S[i.actionTabs.params.name],content:j}});case 3:0==(null==(n=e.sent)?void 0:n.status)&&(m.ZP.success("保存成功"),y(),s()),h(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,x.jsx)(f.Z,{defaultvalue:null===(n=i.actionTabs.params)||void 0===n?void 0:n.content,onChange:function(e){k(e)}})})}))},12940:function(e,n,t){t.d(n,{Z:function(){return y}});var i=t(82242),a=t.n(i),s=t(7557),c=t.n(s),l=t(41498),r=t.n(l),o=t(79800),u=t.n(o),d=t(59301),m={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},p=t(3113),f=t(70557),x=t(10446),g=t(6848),h=t(1079),v=t(26613),A=t(46172),j=t(67390),k=t(37712),y=function(e){var n,t,i,s,l,o,y,S=e.editOffice,w=void 0===S?"view":S,N=e.data,B=(e.theme,e.type),b=e.filename,C=e.monacoEditor,D=e.className,I=e.style,Z=e.close,H=e.onClose,F=e.hasMask,E=e.disabledDownload,R=e.onImgDimensions,O=e.showNodata,J=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),P=u()(J,2),Q=(P[0],P[1],(0,d.useState)("")),M=u()(Q,2),G=(M[0],M[1]),L=(0,d.useState)(),U=u()(L,2),Y=U[0],z=U[1],V="build"===window.ENV?"/react/build":"",W=location.host.startsWith("localhost")?j.Z.PROXY_SERVER:j.Z.API_SERVER,T=(0,d.useRef)();null!==(n=N)&&void 0!==n&&n.startsWith("/api")&&"txt"!==B&&(N=j.Z.API_SERVER+N),b&&(C.filename=b),(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]&&G(n[1])}))}),[]),(0,d.useEffect)((function(){"office"===B&&K()}),[B,N]);var K=function(){var e=r()(c()().mark((function e(){var n,t,i;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N,N.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=5,(0,v.gJ)({attachment_id:t});case 5:i=e.sent,z(i);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){X()},X=function(){(0,h.Nd)(b||"educoder",decodeURIComponent(N))};return(0,k.jsxs)("div",{style:a()({},I||{}),className:"".concat(F&&m.bgBlack," ").concat(B?m.wrp:"hide"),children:[Z&&(0,k.jsxs)("div",{className:m.close,ref:T,children:[!!R&&(0,k.jsx)(g.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return T.current},children:(0,k.jsx)("span",{onClick:function(){H(),R()},children:(0,k.jsx)("i",{className:"icon-yulanpizhu"})})}),!E&&(0,k.jsx)(g.Z,{title:"点击下载此文件",getPopupContainer:function(){return T.current},children:(0,k.jsx)("span",{onClick:X,children:(0,k.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,k.jsx)(g.Z,{title:"关闭",getPopupContainer:function(){return T.current},children:(0,k.jsx)("span",{className:"",onClick:H,children:(0,k.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,k.jsx)("div",{className:"".concat(m[D]," ").concat(D," ").concat(m.monaco," ").concat("txt"===B?"show":"hide"),children:"txt"===B&&(0,k.jsx)(x.ZP,a()({},C))}),"audio"===B&&(0,k.jsx)("audio",{src:(null===(t=N)||void 0===t?void 0:t.indexOf("http"))>-1||null!==(i=N)&&void 0!==i&&i.startsWith("/api")?N:"data:image/png;base64,".concat(N),autoPlay:!0}),"video"===B&&(0,k.jsx)(k.Fragment,{children:(null===(s=N)||void 0===s?void 0:s.indexOf("http"))>-1||null!==(l=N)&&void 0!==l&&l.startsWith("/api")?(0,k.jsx)("video",{controls:!0,src:"".concat(N),autoPlay:!0}):(0,k.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(N),autoPlay:!0})}),"office"===B&&Y&&(0,k.jsx)("iframe",{src:"".concat(V,"/office.html?key=").concat(Y.key,"&url=").concat(W+Y.url,"&callbackUrl=").concat(W+Y.callbackUrl,"&fileType=").concat(Y.fileType,"&title=").concat(Y.title,"&model=").concat(w,"&officeServer=").concat(j.Z.ONLYOFFICE,"&disabledDownload=").concat(!!E)}),"html"===B&&(0,k.jsx)("iframe",{src:N+"&disposition=inline"}),"pdf"===B&&(0,k.jsx)("iframe",{src:"".concat(V,"/js/pdfview/index.html?url=").concat(N,"&disabledDownload=").concat(!!E)}),"image"===B&&(0,k.jsx)("img",{src:(null===(o=N)||void 0===o?void 0:o.indexOf("http"))>-1||null!==(y=N)&&void 0!==y&&y.startsWith("/api")?N:"data:image/png;base64,".concat(N)}),("other"===B||"download"===B)&&(0,k.jsx)(k.Fragment,{children:O?(0,k.jsx)(A.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,k.jsx)(p.ZP,{icon:(0,k.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:q,children:"下载"})}):(0,k.jsxs)(p.ZP,{type:"primary",size:"middle",onClick:q,children:[(0,k.jsx)(f.Z,{}),"点击下载"]})})]})}},36707:function(e,n,t){t.d(n,{Z:function(){return U}});var i=t(82242),a=t.n(i),s=t(37205),c=t.n(s),l=t(91232),r=t.n(l),o=t(79800),u=t.n(o),d=t(59301),m=(t(8944),t(32834)),p=t.n(m),f=t(11690);var x=[],g=["