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

/*! For license information please see dashboard-main.js.license?v=25b06690d7e015468354 */
(()=>{var e,n={59316:(e,n,o)=>{"use strict";var a=o(85471),i=o(63814),r=o(92457),s=o(38613),l=o(26287),c=o(9518),d=o(432),u=o.n(d),p=o(53278),h=o(8259),f=o(93919);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}};o(54064);var v=o(63420),m=o(90116),b=o(50953),A=o(63127),y=o(6840),x=o(10700),w=o(51246),C=o(59594),S=o(3200),k=o(10501),_=o(63961),E=o(34375),D=o(86921),O=o(47611),I=o(10363),N=o(41430),T=o(19858),M=o(68776),P=o(15650),j=o(71246),B=o(46447),L=o(69176),W=o(82936),F=o(14645),R=o(89902),U=o(947),$=o(58589),G=o(18503),z=o(37595),H=o(91680),V=o(49296),Y=o(38868),X=o(23503),K=o(52870),q=o(70563),Q=o(66250),J=o(35725),Z=o(28245),tt=o(35428),et=o(43899),nt=o(33828),ot=o(84003),at=o(740),it=o(10833),rt=o(1620),st=o(94305),lt=o(27720),ct=o(6936),dt=o(44559),ut=o(78768),pt=o(46222),ht=o(48934),ft=o(51375),gt=o(28690),vt=o(15224),mt=o(5392),bt=o(11285),At=o(22911),yt=o(35384),xt=(o(78460),o(66957),o(8012)),wt=o(59567),Ct=(o(61338),o(64981)),St=o(12888),kt=o(41347),_t=o(61217),Et=o(82898),Dt=o(86598),Ot=o(92019),It=o(47732),Nt=(o(23020),o(53429),o(58995),o(89921),o(42892)),Tt=o(65842),Mt=o(57874),Pt=(o(75105),o(92471),o(16406),o(2508));v.A,m.N,b.A,A.A,y.N,x.A,w.A,C.A,k.A,_.A,E.A,S.N,D.N,O.A,I.A,N.N,T.N,M.A,P.N,j.A,B.A,L.N,W.N,F.A,R.N,U.A,$.N,G.A,At.N,z.N,H.N,V.N,c.A,Y.N,X.N,K.N,q.A,Q.N,J.N,Z.N,tt.A,et.A,nt.N,ot.N,at.N,it.A,rt.A,st.N,lt.N,ct.N,dt.N,ut.N,pt.A,bt.N,p.A,ht.A,ft.N,gt.N,vt.N,mt.N,At.a,yt.N,Ct.N,xt.N,St.N,kt.N,_t.N,Et.N,It.A,wt.N,Dt.N,Ot.N,h.N,Symbol.toStringTag,Nt.u,Tt.u,Pt.yw,Symbol.toStringTag;var jt=o(85338);const Bt={name:"ApiDashboardWidget",components:{NcAvatar:z.N,NcDashboardWidget:Q.N,NcDashboardWidgetItem:J.N,NcEmptyContent:it.A,NcButton:c.A,CheckIcon:jt.A},props:{widget:{type:[Object,void 0],default:void 0},data:{type:[Object,void 0],default:void 0},loading:{type:Boolean,required:!0}},computed:{items(){var t,e;return null!==(t=null===(e=this.data)||void 0===e?void 0:e.items)&&void 0!==t?t:[]},emptyContentMessage(){var t,e;return null!==(t=null===(e=this.data)||void 0===e?void 0:e.emptyContentMessage)&&void 0!==t?t:""},halfEmptyContentMessage(){var t,e;return null!==(t=null===(e=this.data)||void 0===e?void 0:e.halfEmptyContentMessage)&&void 0!==t?t:""},newButton(){var t;return null===(t=this.widget)||void 0===t||null===(t=t.buttons)||void 0===t?void 0:t.find((t=>"new"===t.type))},moreButton(){var t;return null===(t=this.widget)||void 0===t||null===(t=t.buttons)||void 0===t?void 0:t.find((t=>"more"===t.type))},setupButton(){var t;return null===(t=this.widget)||void 0===t||null===(t=t.buttons)||void 0===t?void 0:t.find((t=>"setup"===t.type))},showMoreLabel(){var t;return null===(t=this.moreButton)||void 0===t?void 0:t.text},showMoreUrl(){var t;return null===(t=this.moreButton)||void 0===t?void 0:t.link}}};var Lt=o(14486);const Wt=(0,Lt.A)(Bt,(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
//# sourceMappingURL=dashboard-main.js.map?v=25b06690d7e015468354