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/core-recommendedapps.js

3 lines
11 KiB
JavaScript

/*! For license information please see core-recommendedapps.js.LICENSE.txt */
(()=>{"use strict";var t,e={43474:(t,e,n)=>{var i=n(92457),o=n(53334),a=n(85471),r=n(53529);const s=null===(l=(0,i.HW)())?(0,r.YK)().setApp("core").build():(0,r.YK)().setApp("core").setUid(l.uid).build();var l,c=n(26287),p=n(63814),d=n(38613);let u;function h(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function m(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,A(t,e,"set"),n),n}function v(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,A(t,e,"get"))}function A(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function f(t,e,n){var i;return(e="symbol"==typeof(i=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g{constructor(t){f(this,"value",void 0),f(this,"next",void 0),this.value=t}}var b=new WeakMap,C=new WeakMap,w=new WeakMap;u=Symbol.iterator;class y{constructor(){h(this,b,{writable:!0,value:void 0}),h(this,C,{writable:!0,value:void 0}),h(this,w,{writable:!0,value:void 0}),this.clear()}enqueue(t){var e;const n=new g(t);v(this,b)?(v(this,C).next=n,m(this,C,n)):(m(this,b,n),m(this,C,n)),m(this,w,(e=v(this,w),++e))}dequeue(){var t;const e=v(this,b);if(e)return m(this,b,v(this,b).next),m(this,w,(t=v(this,w),--t)),e.value}clear(){m(this,b,void 0),m(this,C,void 0),m(this,w,0)}get size(){return v(this,w)}*[u](){let t=v(this,b);for(;t;)yield t.value,t=t.next}}function x(t){if(!Number.isInteger(t)&&t!==Number.POSITIVE_INFINITY||!(t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new y;let n=0;const i=async(t,i,o)=>{n++;const a=(async()=>t(...o))();i(a);try{await a}catch{}n--,e.size>0&&e.dequeue()()},o=function(o){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new Promise((a=>{((o,a,r)=>{e.enqueue(i.bind(void 0,o,a,r)),(async()=>{await Promise.resolve(),n<t&&e.size>0&&e.dequeue()()})()})(o,a,r)}))};return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}var _=n(9518);const k={calendar:{description:(0,o.Tl)("core","Schedule work & meetings, synced with all your devices."),icon:(0,p.d0)("core","places/calendar.svg")},contacts:{description:(0,o.Tl)("core","Keep your colleagues and friends in one place without leaking their private info."),icon:(0,p.d0)("core","places/contacts.svg")},mail:{description:(0,o.Tl)("core","Simple email app nicely integrated with Files, Contacts and Calendar."),icon:(0,p.d0)("core","actions/mail.svg")},spreed:{description:(0,o.Tl)("core","Chatting, video calls, screensharing, online meetings and web conferencing in your browser and with mobile apps."),icon:(0,p.d0)("core","apps/spreed.svg")},richdocuments:{name:"Nextcloud Office",description:(0,o.Tl)("core","Collaborative documents, spreadsheets and presentations, built on Collabora Online."),icon:(0,p.d0)("core","apps/richdocuments.svg")},notes:{description:(0,o.Tl)("core","Distraction free note taking app."),icon:(0,p.d0)("core","apps/notes.svg")},richdocumentscode:{hidden:!0}},I=Object.keys(k),T={name:"RecommendedApps",components:{NcButton:_.A},data:()=>({showInstallButton:!1,installingApps:!1,loadingApps:!0,loadingAppsError:!1,apps:[],defaultPageUrl:(0,d.C)("core","defaultPageUrl")}),computed:{recommendedApps(){return this.apps.filter((t=>I.includes(t.id)))}},async mounted(){try{const{data:t}=await c.A.get((0,p.Jv)("settings/apps/list"));s.info("".concat(t.apps.length," apps fetched")),this.apps=t.apps.map((t=>Object.assign(t,{loading:!1,installationError:!1}))),s.debug("".concat(this.recommendedApps.length," recommended apps found"),{a
//# sourceMappingURL=core-recommendedapps.js.map?v=8aa7468108470aac249b