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
123 KiB

/*! For license information please see dashboard-main.js.LICENSE.txt */
(()=>{var e,n={83288:(e,n,o)=>{"use strict";var a=o(20144),i=o(79753),r=o(77958),s=o(43554),l=o(93664),c=o(74628),d=o(9980),u=o.n(d),p=o(25475),h=o(77531);const f={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 g=o(72155),v=o(66236),m=o(75944),b=o(45157),A=o(26053),y=o(41989),x=o(99313),C=o(20090),w=o(55212),S=o(96204),k=o(16894),_=o(94162),D=o(40874),I=o(27657),E=o(2047),O=o(92870),M=o(26022),N=o(89998),T=o(51235),j=o(36065),L=o(96315),P=o(66845),Z=o(87875),B=o(33429),W=o(56956),R=o(42899),F=o(98445),z=o(13887),H=o(36402),G=o(49231),Y=o(34741),U=o(13607),$=o(73743),V=o(59897),X=o(89241),Q=o(96226),K=o(97947),q=o(26939),J=o(37008),tt=o(74764),et=o(6318),nt=o(78573),ot=o(22175),at=o(93428),it=o(93815),rt=o(40873),st=o(64865),lt=o(3172),ct=o(88175),dt=o(20435),ut=o(6156),pt=o(16972),ht=o(34246),ft=o(34854),gt=o(42213),vt=o(22663),mt=o(98212),bt=o(13372),At=(o(29612),o(86884)),yt=(o(60577),o(49368)),xt=(o(69183),o(74911)),Ct=o(35380),wt=o(56857),St=o(67912),kt=o(13199),_t=o(13888),Dt=o(34509),It=o(70653),Et=(o(52299),o(50279),o(93911),o(85302),o(90318)),Ot=o(17593),Mt=o(79845),Nt=(o(84722),o(76692),o(40946),o(73045));g.Z,v.Z,m.Z,b.Z,A.Z,y.Z,x.Z,C.Z,S.Z,k.Z,_.Z,w.Z,D.Z,I.Z,E.Z,O.Z,M.Z,N.Z,T.Z,j.Z,L.Z,P.Z,Z.Z,B.Z,W.Z,R.Z,F.Z,mt.NcAutoCompleteResult,z.N,H.Z,G.Z,c.Z,Y.Z,U.Z,$.Z,V.Z,X.Z,Q.Z,K.Z,q.Z,J.Z,tt.Z,et.Z,nt.Z,ot.Z,at.Z,it.Z,rt.N,st.Z,lt.Z,ct.Z,dt.Z,vt.N,p.Z,ut.Z,pt.Z,ht.Z,ft.Z,gt.Z,mt.default,bt.N,xt.Z,At.Z,Ct.Z,wt.Z,St.Z,kt.N,It.Z,yt.Z,_t.Z,Dt.Z,Symbol.toStringTag,Et.X,Ot.X,Nt.VTooltip,Symbol.toStringTag;var Tt=o(11734);const jt={name:"ApiDashboardWidget",components:{NcAvatar:z.N,NcDashboardWidget:X.Z,NcDashboardWidgetItem:Q.Z,NcEmptyContent:ot.Z,NcButton:c.Z,CheckIcon:Tt.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 Lt=o(51900);const Pt=(0,Lt.Z)(jt,(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 Zt=o(25108);const Bt=(0,s.j)("dashboard","panels"),Wt=(0,s.j)("dashboard","firstRun"),Rt={weather:{text:t("dashboard","Weather"),icon:"icon-weather-status"},status:{text:t("dashboard","Status"),icon:"icon-user-status-online"}},Ft={name:"DashboardApp",components:{ApiDashboardWidget:Pt,NcButton:c.Z,Draggable:u(),NcModal:p.Z
//# sourceMappingURL=dashboard-main.js.map?v=a4afbc2299645742cb7e