nextcloud/dist/user_status-dashboard.js

3 lines
9.4 KiB
JavaScript
Raw Normal View History

/*! For license information please see user_status-dashboard.js.LICENSE.txt */
!function(){var n,s={70505:function(n,s,e){"use strict";var a=e(20144),r=e(22200),o=e(9944),u=e(66164),i=e(28017),j=e.n(i),l=e(97e3),c=e.n(l),d=e(16453),m=e(80351),f=e.n(m),p={name:"Dashboard",components:{Avatar:j(),DashboardWidget:u.Z,DashboardWidgetItem:u.v,EmptyContent:c()},data:function(){return{statuses:[],loading:!0}},computed:{items:function(){var n=this;return this.statuses.map((function(s){var e=s.icon||"",a=s.message||"";""===a&&("away"===s.status&&(a=t("user_status","Away")),"dnd"===s.status&&(a=t("user_status","Do not disturb")));var r,o=""!==s.icon?"".concat(e," ").concat(a):a;return r=null===s.icon&&""===a&&null===s.timestamp?"":null===s.icon&&""===a&&null!==s.timestamp?f()(s.timestamp,"X").fromNow():null!==s.timestamp?n.t("user_status","{status}, {timestamp}",{status:o,timestamp:f()(s.timestamp,"X").fromNow()},null,{escape:!1,sanitize:!1}):o,{mainText:s.displayName,subText:r,avatarUsername:s.userId}}))}},mounted:function(){try{this.statuses=(0,d.loadState)("user_status","dashboard_data"),this.loading=!1}catch(n){console.error(n)}}},h=e(93379),b=e.n(h),v=e(7795),y=e.n(v),g=e(90569),k=e.n(g),w=e(3565),z=e.n(w),x=e(19216),O=e.n(x),_=e(44589),A=e.n(_),C=e(43973),D={};D.styleTagTransform=A(),D.setAttributes=z(),D.insert=k().bind(null,"head"),D.domAPI=y(),D.insertStyleElement=O(),b()(C.Z,D),C.Z&&C.Z.locals&&C.Z.locals;var T=(0,e(51900).Z)(p,(function(){var n=this,t=n.$createElement,s=n._self._c||t;return s("DashboardWidget",{attrs:{id:"user-status_panel",items:n.items,loading:n.loading},scopedSlots:n._u([{key:"default",fn:function(t){var e=t.item;return[s("DashboardWidgetItem",{attrs:{"main-text":e.mainText,"sub-text":e.subText},scopedSlots:n._u([{key:"avatar",fn:function(){return[s("Avatar",{staticClass:"item-avatar",attrs:{size:44,user:e.avatarUsername,"display-name":e.mainText,"show-user-status":!1,"show-user-status-compact":!1}})]},proxy:!0}],null,!0)})]}},{key:"empty-content",fn:function(){return[s("EmptyContent",{attrs:{id:"user_status-widget-empty-content",icon:"icon-user-status"}},[n._v("\n\t\t\t"+n._s(n.t("user_status","No recent status changes"))+"\n\t\t")])]},proxy:!0}])})}),[],!1,null,null,null).exports;e.nc=btoa((0,r.getRequestToken)()),a.default.prototype.t=o.translate,a.default.prototype.n=o.translatePlural,a.default.prototype.OC=OC,a.default.prototype.OCA=OCA,document.addEventListener("DOMContentLoaded",(function(){OCA.Dashboard.register("user_status",(function(n){new(a.default.extend(T))({propsData:{}}).$mount(n)}))}))},43973:function(n,t,s){"use strict";var e=s(87537),a=s.n(e),r=s(23645),o=s.n(r)()(a());o.push([n.id,"#user_status-widget-empty-content{text-align:center;margin-top:5vh}","",{version:3,sources:["webpack://./apps/user_status/src/views/Dashboard.vue"],names:[],mappings:"AAqHA,kCACC,iBAAA,CACA,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#user_status-widget-empty-content {\n\ttext-align: center;\n\tmargin-top: 5vh;\n}\n"],sourceRoot:""}]),t.Z=o},46700:function(n,t,s){var e={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb
//# sourceMappingURL=user_status-dashboard.js.map?v=40f57aaee1f1a0f4e725