You cannot 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/dist/dashboard-main.js

3 lines
122 KiB
JavaScript

/*! 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(54572),d=o(9980),u=o.n(d),p=o(79584),h=o(56371),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(43589),m=o(78583),b=o(47659),A=o(57395),y=o(95127),x=o(87001),w=o(8492),C=o(62431),S=o(96902),k=o(81243),_=o(50417),E=o(65476),D=o(4694),O=o(27657),N=o(2047),I=o(11870),T=o(74229),M=o(44216),P=o(47191),j=o(9691),B=o(96409),L=o(60304),W=o(79655),F=o(64845),R=o(28454),U=o(25090),$=o(23806),Z=o(77511),G=o(66471),z=o(70911),H=o(53301),V=o(42416),Y=o(69456),X=o(935),q=o(25723),K=o(146),Q=o(57278),J=o(33536),tt=o(17502),et=o(89612),nt=o(72635),ot=o(28224),at=o(52506),it=o(72964),rt=o(66025),st=o(23398),lt=o(75435),ct=o(31311),dt=o(46767),ut=o(87604),pt=o(50323),ht=o(82679),ft=o(64105),gt=o(49703),vt=o(17308),mt=o(17861),bt=o(27252),At=o(64788),yt=(o(26021),o(64292)),xt=o(35832),wt=(o(69183),o(60736)),Ct=o(6520),St=o(95654),kt=o(55062),_t=o(70398),Et=o(13175),Dt=o(69073),Ot=o(93399),Nt=(o(52299),o(50279),o(31443),o(96018),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,P.N,j.Z,B.N,L.N,W.Z,F.N,R.Z,U.N,$.Z,bt.N,Z.N,G.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.NS,Symbol.toStringTag;var Pt=o(11734);const jt={name:"ApiDashboardWidget",components:{NcAvatar:Z.N,NcDashboardWidget:q.N,NcDashboardWidgetItem:K.N,NcEmptyContent:at.Z,NcButton:c.Z,CheckIcon:Pt.Z},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)(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 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.Z,NcUserStatusIcon:h.N},mixins:[g],data:()=>({isAdmin:(0,r
//# sourceMappingURL=dashboard-main.js.map?v=ec124ce4e85133ed2c5a