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.
NewEduCoderBuild/p__Innovation__MyProject__i...

1 line
14 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[67242],{43437:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(38329),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm336 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm192-552a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"fork",theme:"outlined"},a=n(91851),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},52063:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(38329),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(91851),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},22311:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(38329),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(91851),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},57732:function(e,t,n){var i=n(26801),r=n.n(i),o=(n(59301),n(93314)),a=n(3113),l=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,s=e.styles,c=void 0===s?{}:s,d=e.customText,u=e.ButtonText,f=e.ButtonClick,p=e.Buttonclass,v=e.ButtonTwo,h=e.imgStyles,g=e.loading,m=void 0!==g&&g;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:m?"hidden":"visible"}),c),children:[(0,l.jsx)("img",{src:t||o,style:r()({},h)}),(0,l.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,l.jsx)(a.ZP,r()(r()({className:p,onClick:f},i),{},{children:u})),v&&v]})}},67673:function(e,t,n){n.r(t),n.d(t,{default:function(){return O}});var i=n(10574),r=n.n(i),o=n(26801),a=n.n(o),l=n(39343),s=n.n(l),c=n(11006),d=n.n(c),u=n(59301),f=n(53877),p=n(99313),v=n(3113),h=n(43418),g=n(6848),m=n(28103),x=n(41867),b=n(43437),y=n(22211),w=n(15830),j=n(57732),C=n(9498),S=n.n(C),$=n(58696),Z="count___ZMhqS",k="title___cx4uQ",z=n(67871),E=n(37712),N=(f.Z.Paragraph,p.Z.TabPane),O=(0,y.connect)((function(e){return{innovation:e.innovation}}))((function(e){e.dispatch;var t,n=(0,u.useState)({limit:10,page:1,tab:"mine"}),i=d()(n,2),o=i[0],l=i[1],c=(0,u.useState)([]),f=d()(c,2),C=f[0],O=f[1],R=(0,u.useState)(),B=d()(R,2),M=B[0],P=B[1];function A(){return _.apply(this,arguments)}function _(){return(_=s()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/sci/projects.json",{method:"get",params:o});case 2:t=e.sent,"mine"===(null==o?void 0:o.tab)&&P(null==t?void 0:t.my_sci_projects_num),O(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,u.useEffect)((function(){A()}),[]),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{children:(0,E.jsxs)(p.Z,{activeKey:o.tab,onChange:function(e){o.tab=e,o.page=1,l(o),A()},tabBarExtraContent:(0,E.jsx)(v.ZP,{type:"primary",onClick:function(){10!==(null==C?void 0:C.my_sci_projects_num)||(0,$.Ny)()?y.history.push("/innovation/project/create"):h.Z.warning({title:"项目数量达到上限",content:"每位用户最多只能创建10个项目你的项目数量已经 达到上限。"})},children:"创建项目"}),children:[(0,E.jsx)(N,{tab:(0,$.Ny)()?(0,E.jsx)("span",{className:k,children:"我的项目"}):(0,E.jsx)(g.Z,{title:"项目上限10已用".concat(M),children:(0,E.jsxs)("span",{className:k,children:["我的项目(",M,"/10"]})})},"mine"),(0,E.jsx)(N,{tab:"他人共享"},"share")]})}),(null==C?void 0:C.count)<=0&&(0,E.jsx)(j.Z,{}),null==C||null===(t=C.sci_projects)||void 0===t?void 0:t.map((function(e,t){return(0,E.jsxs)("div",{style:{cursor:"pointer"},onClick:function(){y.history.push("/innovation/project/detail/".concat(null==e?void 0:e.id))},children:[(0,E.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,E.jsxs)("div",{children:[(0,E.jsx)("img",{style:{width:30,height:30,borderRadius:"50%",marginRight:10},src:z.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,E.jsx)("span",{style:{fontSize:"14px",color:"#6B758B",marginRight:10},children:null==e?void 0:e.username}),(0,E.jsx)("span",{style:{color:"#464F66",fontSize:"14px",fontWeight:400},children:null==e?void 0:e.name})]}),(0,E.jsxs)("div",{children:[(0,E.jsxs)("span",{style:{marginRight:20,color:"#464F66"},children:[(0,E.jsx)("i",{className:"iconfont icon-chakan1 current ml5",style:{marginRight:8,color:"#B1BACD"}}),null==e?void 0:e.visits]}),(0,E.jsxs)("span",{style:{marginRight:20,color:"#464F66"},children:[(0,E.jsx)(b.Z,{style:{marginRight:8}}),null==e?void 0:e.forked_count]})]})]}),(0,E.jsx)("div",{className:Z,style:{marginTop:5,color:"#464F66",fontSize:14,marginLeft:40},children:null==e?void 0:e.description}),(0,E.jsxs)("div",{style:{marginTop:15,color:"#B1BACD",fontSize:14,marginLeft:40},children:["创建时间:",S()(null==e?void 0:e.created_at).format("YYYY-MM-DD HH:mm")]}),(0,E.jsx)(m.Z,{})]})})),(0,E.jsx)(x.Z,{style:{textAlign:"center",marginTop:20},current:o.page,pageSize:10,showSizeChanger:!1,total:null==C?void 0:C.count,hideOnSinglePage:!0,onChange:function(e){o.page=e,l(a()({},o)),A()}})]})}))},28103:function(e,t,n){n.d(t,{Z:function(){return p}});var i=n(73287),r=n.n(i),o=n(59301),a=n(36355),l=n(17313),s=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),f=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var p=e=>{const{getPrefixCls:t,direction:n,divider:i}=o.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:p,rootClassName:v,children:h,dashed:g,plain:m,style:x}=e,b=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",l),[w,j]=u(y),C=c.length>0?`-${c}`:c,S=!!h,$="left"===c&&null!=d,Z="right"===c&&null!=d,k=r()(y,null==i?void 0:i.className,j,`${y}-${s}`,{[`${y}-with-text`]:S,[`${y}-with-text${C}`]:S,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!m,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:$,[`${y}-no-default-orientation-margin-right`]:Z},p,v),z=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),E=Object.assign(Object.assign({},$&&{marginLeft:z}),Z&&{marginRight:z});return w(o.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==i?void 0:i.style),x)},b,{role:"separator"}),h&&"vertical"!==s&&o.createElement("span",{className:`${y}-inner-text`,style:E},h)))}},15969:function(e,t,n){n.d(t,{N:function(){return i}});const i=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},31561:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(38329),r=n(65873),o=n(87296),a=n(35601),l=n(84728),s=n(73287),c=n.n(s),d=n(88831),u=n(59301),f=n(84821),p=n(90571),v=f.Z.ESC,h=f.Z.TAB;var g=(0,u.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,r=e.prefixCls,o=(0,u.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,d.sQ)(t,null==o?void 0:o.ref);return u.createElement(u.Fragment,null,i&&u.createElement("div",{className:"".concat(r,"-arrow")}),u.cloneElement(o,{ref:(0,d.Yr)(o)?a:void 0}))})),m={adjustX:1,adjustY:1},x=[0,0],b={topLeft:{points:["bl","tl"],overflow:m,offset:[0,-4],targetOffset:x},top:{points:["bc","tc"],overflow:m,offset:[0,-4],targetOffset:x},topRight:{points:["br","tr"],overflow:m,offset:[0,-4],targetOffset:x},bottomLeft:{points:["tl","bl"],overflow:m,offset:[0,4],targetOffset:x},bottom:{points:["tc","bc"],overflow:m,offset:[0,4],targetOffset:x},bottomRight:{points:["tr","br"],overflow:m,offset:[0,4],targetOffset:x}},y=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,s=e.arrow,f=void 0!==s&&s,m=e.prefixCls,x=void 0===m?"rc-dropdown":m,w=e.transitionName,j=e.animation,C=e.align,S=e.placement,$=void 0===S?"bottomLeft":S,Z=e.placements,k=void 0===Z?b:Z,z=e.getPopupContainer,E=e.showAction,N=e.hideAction,O=e.overlayClassName,R=e.overlayStyle,B=e.visible,M=e.trigger,P=void 0===M?["hover"]:M,A=e.autoFocus,_=e.overlay,L=e.children,T=e.onVisibleChange,I=(0,a.Z)(e,y),W=u.useState(),H=(0,o.Z)(W,2),F=H[0],V=H[1],D="visible"in e?B:F,G=u.useRef(null),Y=u.useRef(null),Q=u.useRef(null);u.useImperativeHandle(t,(function(){return G.current}));var X=function(e){V(e),null==T||T(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,r=e.autoFocus,o=e.overlayRef,a=u.useRef(!1),l=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},s=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus||(o.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case v:l();break;case h:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};u.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&(0,p.Z)(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:D,triggerRef:Q,onVisibleChange:X,autoFocus:A,overlayRef:Y});var q,K,J,U=function(){return u.createElement(g,{ref:Y,overlay:_,prefixCls:x,arrow:f})},ee=u.cloneElement(L,{className:c()(null===(n=L.props)||void 0===n?void 0:n.className,D&&(q=e.openClassName,void 0!==q?q:"".concat(x,"-open"))),ref:(0,d.Yr)(L)?(0,d.sQ)(Q,L.ref):void 0}),te=N;return te||-1===P.indexOf("contextMenu")||(te=["click"]),u.createElement(l.Z,(0,i.Z)({builtinPlacements:k},I,{prefixCls:x,ref:G,popupClassName:c()(O,(0,r.Z)({},"".concat(x,"-show-arrow"),f)),popupStyle:R,action:P,showAction:E,hideAction:te,popupPlacement:$,popupAlign:C,popupTransitionName:w,popupAnimation:j,popupVisible:D,stretch:(K=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?K:!J)?"minWidth":""),popup:"function"==typeof _?U:U(),onPopupVisibleChange:X,onPopupClick:function(t){var n=e.onOverlayClick;V(!1),n&&n(t)},getPopupContainer:z}),ee)}var j=u.forwardRef(w)},30034:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(42871),r=function(e){if((0,i.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function o(e,t){return Array.isArray(e)||void 0===t?r(e):function(e,t){if(!r(e))return!1;var n=document.createElement("div"),i=n.style[e];return n.style[e]=t,n.style[e]!==i}(e,t)}}}]);