filesbox/web/dist/p__dashboard__basic.847f53d...

2 lines
18 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[95658],{92759:function(W){W.exports={card:"card___2wK1C",content:"content___y9wRs",contentLeft:"contentLeft___2-ioW",footer:"footer___2w8E8"}},14274:function(W){W.exports={userSpaceBox:"userSpaceBox___4d4su"}},79992:function(W,K,o){"use strict";var U=o(11849),h=o(67294),m=o(30672),J=o(96486),oe=o.n(J),T=o(20497),ee=o(63430),M=o(85893),te=C=>{var c=(0,m.YB)(),X=C.height,D=C.radius,ae=C.fontSize,B=C.labelType,k=C.data,z=T.G2.getEngine("canvas"),e={1:c.formatMessage({id:"explorer.type.doc",defaultMessage:"\u6587\u6863"}),2:c.formatMessage({id:"explorer.type.image",defaultMessage:"\u56FE\u7247"}),3:c.formatMessage({id:"explorer.type.music",defaultMessage:"\u97F3\u4E50"}),4:c.formatMessage({id:"explorer.type.movie",defaultMessage:"\u89C6\u9891"}),5:c.formatMessage({id:"explorer.type.zip",defaultMessage:"\u538B\u7F29\u5305"}),6:c.formatMessage({id:"explorer.type.others",defaultMessage:"\u5176\u4ED6"})},Q={appendPadding:10,height:X,angleField:"count",colorField:"name",color:["#7485e4","#6ba9f8","#ba89ff","#87c98a","#fea076","#ffc471"],radius:D,innerRadius:.5,legend:B=="spider"?!1:{layout:"horizontal",position:"bottom",itemSpacing:0,flipPage:!1},label:{visible:!0,type:B,labelHeight:B=="spider"?60:20,formatter:B=="spider"?(E,G)=>{var b=new z.Group({});return b.addShape({type:"circle",attrs:{x:6,y:0,width:40,height:50,r:5,fill:G.color}}),b.addShape({type:"text",attrs:{x:16,y:8,text:"".concat(E.name),fill:G.color}}),b.addShape({type:"text",attrs:{x:0,y:25,text:"".concat(E.count,"\u4E2A ").concat((E.percent*100).toFixed(1),"%"),fill:"rgba(0, 0, 0, 0.65)",fontWeight:600}}),b}:E=>"".concat(E.name,": ").concat((E.percent*100).toFixed(1),"%"),style:{fontSize:ae}},state:{active:{animate:{duration:100,easing:"easeLinear"},style:{lineWidth:1,stroke:"#722ed1"}}},pieStyle:{lineWidth:0},statistic:{title:!1,content:{content:""}},interactions:[{type:"element-selected"},{type:"element-active"}]},S=(0,h.useMemo)(()=>{var E=(0,J.sortBy)(k,["type"]),G=E==null?void 0:E.map(b=>(0,U.Z)((0,U.Z)({},b),{},{name:e[b.type]}));return(0,M.jsx)(ee.Z,(0,U.Z)({data:G},Q))},[JSON.stringify(k)]);return S};K.Z=te},38385:function(W,K,o){"use strict";o.r(K),o.d(K,{default:function(){return et}});var U=o(19273),h=o(67294),m=o(30672),J=o(21349),oe=o(13062),T=o(71230),ee=o(89032),M=o(15746),te=o(22385),C=o(45777),c=o(11849),X=o(65337),D=o(37406),ae=o(58024),B=o(91894),k=o(92759),z=o.n(k),e=o(85893),Q=r=>{var a=r.name,n=r.title,d=r.content,l=r.contentLeft,i=r.contentRight,s=r.footer,t=r.hoverable,v=()=>(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:z().content,children:d||(0,e.jsxs)(T.Z,{align:"middle",style:a=="space"?{}:{margin:"15px 0"},children:[(0,e.jsx)(M.Z,{xs:a=="space"?10:24,sm:10,md:8,lg:8,xl:10,xxl:10,className:z().contentLeft,children:(0,e.jsx)(C.Z,{title:l,children:l})}),(0,e.jsx)(M.Z,{xs:a=="space"?14:24,sm:14,md:16,lg:16,xl:14,xxl:14,style:a=="space"?{marginTop:-40}:{},children:i})]})}),s&&(0,e.jsx)("div",{className:z().footer,children:s})]});return(0,e.jsx)(B.Z,{title:n,className:z().card,hoverable:t||!1,headStyle:{border:"unset",color:"rgba(0, 0, 0, 0.45)"},bodyStyle:{padding:"0 20px"},children:v()})},S=Q,E=o(64926),G=()=>{var r=(0,m.v9)(p=>p.setting),a=r.diskInfo,n=a===void 0?{}:a,d=r.visitRecord,l=d===void 0?{}:d,i=n.fileOperateCount,s=i===void 0?[]:i,t=l.loginDateList,v=t===void 0?[]:t,g={height:70,data:s,smooth:!0,line:{color:"#87c98b",size:3},tooltip:{customContent:function(u,y){var x,Z;return"".concat(v[u],": ").concat((x=y[0])===null||x===void 0||(Z=x.data)===null||Z===void 0?void 0:Z.y)}}};return(0,e.jsx)(E.Z,(0,c.Z)({},g))},b=G,ie=()=>{var r=(0,m.v9)(s=>s.setting),a=r.diskInfo,n=a===void 0?{}:a,d=n.videoOperateCount,l=d===void 0?[]:d,i={height:70,data:l,smooth:!0,line:{color:"#ffc471",size:3}};return(0,e.jsx)(E.Z,(0,c.Z)({},i))},ne=ie,se=o(87551),le=()=>{var r=(0,m.v9)(v=>v.setting),a=r.visitRecord,n=a===void 0?{}:a,d=n.loginCountList,l=d===void 0?[]:d,i=n.loginDateList,s=i===void 0?[]:i,t={height:70,color:"#6ba9f6",data:l,state:{active:{animate:{duration:100,