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__PublicProjec...

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([[26366],{43437:function(e,t,n){n.d(t,{Z:function(){return c}});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 c=r.forwardRef(l)},52063:function(e,t,n){n.d(t,{Z:function(){return c}});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 c=r.forwardRef(l)},22311:function(e,t,n){n.d(t,{Z:function(){return c}});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 c=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,c=e.styles,s=void 0===c?{}:c,d=e.customText,u=e.ButtonText,f=e.ButtonClick,p=e.Buttonclass,v=e.ButtonTwo,h=e.imgStyles,m=e.loading,g=void 0!==m&&m;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:g?"hidden":"visible"}),s),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]})}},87725:function(e,t,n){n.r(t),n.d(t,{default:function(){return Z}});var i=n(10574),r=n.n(i),o=n(26801),a=n.n(o),l=n(39343),c=n.n(l),s=n(11006),d=n.n(s),u=n(59301),f=n(53877),p=n(99313),v=n(3113),h=n(28103),m=n(41867),g=n(378),x=n(43437),b=n(22211),y=n(58696),w=n(15830),_=n(57732),j=n(9498),C=n.n(j),S={flex_box_center:"flex_box_center___usqtP",flex_space_between:"flex_space_between___Q1rHf",flex_box_vertical_center:"flex_box_vertical_center___iwfef",flex_box_center_end:"flex_box_center_end___UgC5k",flex_box_column:"flex_box_column___vaSfm",count:"count___EA_49",header:"header___K169U",title:"title___LKM3L"},$=n(67871),k=n(37712),Z=(f.Z.Paragraph,p.Z.TabPane,(0,b.connect)((function(e){return{innovation:e.innovation}}))((function(e){var t,n=e.dispatch,i=(0,u.useState)({limit:10,page:1,tab:"public"}),o=d()(i,2),l=o[0],s=o[1],f=(0,u.useState)([]),p=d()(f,2),j=p[0],Z=p[1];function z(){return E.apply(this,arguments)}function E(){return(E=c()(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:l});case 2:t=e.sent,Z(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,u.useEffect)((function(){z()}),[]);return(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:S.header,children:[(0,k.jsx)("span",{className:S.title,children:"公开项目"}),(0,k.jsx)(v.ZP,{type:"primary",onClick:function(){(null==j?void 0:j.my_sci_projects_num)>=10&&!(0,y.Ny)()?n({type:"innovation/openSimpleModal",payload:{title:"项目数量达到上限",children:"每位用户最多只能创建10个项目你的项目数量已经达到上限。",footer:(0,k.jsx)(v.ZP,{onClick:function(){return n({type:"innovation/closeSimpleModal"})},type:"primary",children:"我知道了"})}}):b.history.push("/innovation/project/create")},className:S.createProjectBtn,icon:(0,k.jsx)(g.Z,{}),children:"创建项目"})]}),(0,k.jsx)(h.Z,{}),(null==j?void 0:j.count)<=0&&(0,k.jsx)(_.Z,{}),null==j||null===(t=j.sci_projects)||void 0===t?void 0:t.map((function(e,t){return(0,k.jsxs)("div",{style:{cursor:"pointer"},onClick:function(){b.history.push("/innovation/project/detail/".concat(null==e?void 0:e.id))},children:[(0,k.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("img",{style:{width:30,height:30,borderRadius:"50%",marginRight:10},src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,k.jsx)("span",{style:{fontSize:"14px",color:"#6B758B",marginRight:10},children:null==e?void 0:e.username}),(0,k.jsx)("span",{style:{color:"#464F66",fontSize:"14px"},children:null==e?void 0:e.name})]}),(0,k.jsxs)("div",{children:[(0,k.jsxs)("span",{style:{marginRight:20,color:"#464F66"},children:[(0,k.jsx)("i",{className:"iconfont icon-chakan1 current ml5",style:{marginRight:8,color:"#B1BACD",fontSize:12}}),null==e?void 0:e.visits]}),(0,k.jsxs)("span",{style:{marginRight:20,color:"#464F66"},children:[(0,k.jsx)(x.Z,{style:{marginRight:8}}),null==e?void 0:e.forked_count]})]})]}),(0,k.jsx)("div",{className:S.count,style:{marginTop:5,color:"#464F66",fontSize:14,marginLeft:40},children:null==e?void 0:e.description}),(0,k.jsxs)("div",{style:{marginTop:15,color:"#B1BACD",fontSize:14,marginLeft:40},children:["创建时间:",C()(null==e?void 0:e.created_at).format("YYYY-MM-DD HH:mm")]}),(0,k.jsx)(h.Z,{})]},t)})),(0,k.jsx)(m.Z,{style:{textAlign:"center",marginTop:20},current:l.page,pageSize:10,showSizeChanger:!1,total:null==j?void 0:j.count,hideOnSinglePage:!0,onChange:function(e){l.page=e,s(a()({},l)),z()}})]})})))},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),c=n(83116),s=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:c}=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:c,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,c.Z)("Divider",(e=>{const t=(0,s.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:c="horizontal",orientation:s="center",orientationMargin:d,className:p,rootClassName:v,children:h,dashed:m,plain:g,style:x}=e,b=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",l),[w,_]=u(y),j=s.length>0?`-${s}`:s,C=!!h,S="left"===s&&null!=d,$="right"===s&&null!=d,k=r()(y,null==i?void 0:i.className,_,`${y}-${c}`,{[`${y}-with-text`]:C,[`${y}-with-text${j}`]:C,[`${y}-dashed`]:!!m,[`${y}-plain`]:!!g,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:S,[`${y}-no-default-orientation-margin-right`]:$},p,v),Z=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),z=Object.assign(Object.assign({},S&&{marginLeft: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"!==c&&o.createElement("span",{className:`${y}-inner-text`,style:z},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 _}});var i=n(38329),r=n(65873),o=n(87296),a=n(35601),l=n(84728),c=n(73287),s=n.n(c),d=n(88831),u=n(59301),f=n(84821),p=n(90571),v=f.Z.ESC,h=f.Z.TAB;var m=(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}))})),g={adjustX:1,adjustY:1},x=[0,0],b={topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:x},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:x},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:x},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:x},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:x},bottomRight:{points:["tr","br"],overflow:g,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,c=e.arrow,f=void 0!==c&&c,g=e.prefixCls,x=void 0===g?"rc-dropdown":g,w=e.transitionName,_=e.animation,j=e.align,C=e.placement,S=void 0===C?"bottomLeft":C,$=e.placements,k=void 0===$?b:$,Z=e.getPopupContainer,z=e.showAction,E=e.hideAction,N=e.overlayClassName,O=e.overlayStyle,P=e.visible,M=e.trigger,R=void 0===M?["hover"]:M,B=e.autoFocus,A=e.overlay,L=e.children,T=e.onVisibleChange,I=(0,a.Z)(e,y),H=u.useState(),W=(0,o.Z)(H,2),F=W[0],V=W[1],D="visible"in e?P:F,G=u.useRef(null),Y=u.useRef(null),Q=u.useRef(null);u.useImperativeHandle(t,(function(){return G.current}));var K=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))},c=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus||(o.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case v:l();break;case h:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};u.useEffect((function(){return t?(window.addEventListener("keydown",s),r&&(0,p.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:D,triggerRef:Q,onVisibleChange:K,autoFocus:B,overlayRef:Y});var U,X,q,J=function(){return u.createElement(m,{ref:Y,overlay:A,prefixCls:x,arrow:f})},ee=u.cloneElement(L,{className:s()(null===(n=L.props)||void 0===n?void 0:n.className,D&&(U=e.openClassName,void 0!==U?U:"".concat(x,"-open"))),ref:(0,d.Yr)(L)?(0,d.sQ)(Q,L.ref):void 0}),te=E;return te||-1===R.indexOf("contextMenu")||(te=["click"]),u.createElement(l.Z,(0,i.Z)({builtinPlacements:k},I,{prefixCls:x,ref:G,popupClassName:s()(N,(0,r.Z)({},"".concat(x,"-show-arrow"),f)),popupStyle:O,action:R,showAction:z,hideAction:te,popupPlacement:S,popupAlign:j,popupTransitionName:w,popupAnimation:_,popupVisible:D,stretch:(X=e.minOverlayWidthMatchTrigger,q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?X:!q)?"minWidth":""),popup:"function"==typeof A?J:J(),onPopupVisibleChange:K,onPopupClick:function(t){var n=e.onOverlayClick;V(!1),n&&n(t)},getPopupContainer:Z}),ee)}var _=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)}}}]);