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.
nextcloud-server/dist/dashboard-main.js

3 lines
122 KiB

/*! For license information please see dashboard-main.js.LICENSE.txt */
(()=>{var e,n={2735:(e,n,o)=>{"use strict";var a=o(20144),i=o(79753),r=o(77958),s=o(43554),l=o(93664),c=o(29497),d=o(9980),u=o.n(d),p=o(83344),h=o(70332),f=o(77531);const g={data(){return{isMobile:this._isMobile()}},beforeMount(){window.addEventListener("resize",this._onResize)},beforeDestroy(){window.removeEventListener("resize",this._onResize)},methods:{_onResize(){this.isMobile=this._isMobile()},_isMobile:()=>document.documentElement.clientWidth<768}};var v=o(23928),m=o(22304),b=o(47659),A=o(57395),y=o(82472),x=o(87001),w=o(8492),C=o(62431),S=o(63221),k=o(81243),_=o(50417),E=o(65476),D=o(66962),O=o(27657),N=o(2047),I=o(66089),T=o(28332),M=o(44216),j=o(18798),P=o(9691),B=o(42088),L=o(18140),W=o(79655),F=o(5864),R=o(28454),U=o(10744),$=o(40408),G=o(63511),z=o(6773),Z=o(19148),H=o(39919),V=o(12926),Y=o(32888),X=o(935),q=o(18181),K=o(24021),Q=o(63295),J=o(7206),tt=o(95141),et=o(64634),nt=o(79579),ot=o(55242),at=o(52506),it=o(72964),rt=o(50750),st=o(23398),lt=o(96750),ct=o(21748),dt=o(95699),ut=o(87604),pt=o(54405),ht=o(34221),ft=o(1739),gt=o(96247),vt=o(69366),mt=o(94637),bt=o(14783),At=o(75540),yt=(o(94802),o(57670)),xt=o(36736),wt=(o(69183),o(60736)),Ct=o(75903),St=o(23443),kt=o(98182),_t=o(73526),Et=o(96239),Dt=o(96908),Ot=o(85980),Nt=(o(52299),o(50279),o(31443),o(95101),o(90318)),It=o(17593),Tt=o(99640),Mt=(o(84722),o(76692),o(40946),o(73045));v.Z,m.N,b.Z,A.Z,y.N,x.Z,w.Z,C.Z,k.Z,_.Z,E.Z,S.N,D.N,O.Z,N.Z,I.N,T.N,M.Z,j.N,P.Z,B.N,L.N,W.Z,F.N,R.Z,U.N,$.Z,bt.N,G.N,z.N,Z.N,c.Z,H.N,V.N,Y.N,X.Z,q.N,K.N,Q.N,J.Z,tt.Z,et.N,nt.N,ot.N,at.Z,it.Z,rt.N,st.N,lt.N,ct.N,dt.N,ut.Z,mt.N,p.Z,pt.Z,ht.N,ft.N,gt.N,vt.N,bt.a,At.N,wt.N,yt.N,Ct.N,St.N,kt.N,_t.N,Ot.Z,xt.N,Et.N,Dt.N,h.N,Symbol.toStringTag,Nt.X,It.X,Mt.VTooltip,Symbol.toStringTag;var jt=o(11734);const Pt={name:"ApiDashboardWidget",components:{NcAvatar:G.N,NcDashboardWidget:q.N,NcDashboardWidgetItem:K.N,NcEmptyContent:at.Z,NcButton:c.Z,CheckIcon:jt.default},props:{widget:{type:[Object,void 0],default:void 0},data:{type:[Object,void 0],default:void 0},loading:{type:Boolean,required:!0}},computed:{items(){return this.data?.items??[]},emptyContentMessage(){return this.data?.emptyContentMessage??""},halfEmptyContentMessage(){return this.data?.halfEmptyContentMessage??""},newButton(){return this.widget?.buttons?.find((t=>"new"===t.type))},moreButton(){return this.widget?.buttons?.find((t=>"more"===t.type))},setupButton(){return this.widget?.buttons?.find((t=>"setup"===t.type))},showMoreLabel(){return this.moreButton?.text},showMoreUrl(){return this.moreButton?.link}}};var Bt=o(51900);const Lt=(0,Bt.Z)(Pt,(function(){var t=this,e=t._self._c;return e("NcDashboardWidget",{attrs:{items:t.items,"show-more-label":t.showMoreLabel,"show-more-url":t.showMoreUrl,loading:t.loading,"show-items-and-empty-content":!!t.halfEmptyContentMessage,"half-empty-content-message":t.halfEmptyContentMessage},scopedSlots:t._u([{key:"default",fn:function(n){let{item:o}=n;return[e("NcDashboardWidgetItem",{attrs:{"target-url":o.link,"overlay-icon-url":o.overlayIconUrl?o.overlayIconUrl:"","main-text":o.title,"sub-text":o.subtitle},scopedSlots:t._u([{key:"avatar",fn:function(){return[o.iconUrl?[e("NcAvatar",{attrs:{size:44,url:o.iconUrl}})]:t._e()]},proxy:!0}],null,!0)})]}},{key:"empty-content",fn:function(){return[0===t.items.length?e("NcEmptyContent",{attrs:{description:t.emptyContentMessage},scopedSlots:t._u([{key:"icon",fn:function(){return[t.emptyContentMessage?e("CheckIcon",{attrs:{size:65}}):t._e()]},proxy:!0},{key:"action",fn:function(){return[t.setupButton?e("NcButton",{attrs:{href:t.setupButton.link}},[t._v("\n\t\t\t\t\t"+t._s(t.setupButton.text)+"\n\t\t\t\t")]):t._e()]},proxy:!0}],null,!1,4172361897)}):t._e()]},proxy:!0}])})}),[],!1,null,"d91c9686",null).exports;var Wt=o(25108);const Ft=(0,s.j)("dashboard","panels"),Rt=(0,s.j)("dashboard","firstRun"),Ut={weather:{text:t("dashboard","Weather"),icon:"icon-weather-status"},status:{text:t("dashboard","Status")}},$t={name:"DashboardApp",components:{ApiDashboardWidget:Lt,NcButton:c.Z,Draggable:u(),NcModal:p.Z,Pencil:f.default,NcUserStatusIcon:h.N},mixins:[g],data:
//# sourceMappingURL=dashboard-main.js.map?v=acabebf92107041cf571