Skip to content

Commit

Permalink
fix(deps): Fix npm audit
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
nextcloud-command authored Nov 3, 2024
1 parent ddfb4cb commit df46a69
Show file tree
Hide file tree
Showing 48 changed files with 5,030 additions and 1,773 deletions.
78 changes: 78 additions & 0 deletions js/Activity-Bvi2hZqP.chunk.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/Activity-Bvi2hZqP.chunk.mjs.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions js/Activity-Dojq2ncI.mjs

This file was deleted.

1 change: 0 additions & 1 deletion js/Activity-Dojq2ncI.mjs.map

This file was deleted.

3 changes: 3 additions & 0 deletions js/ActivityTab-CuyoFsPG.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-v-d8f2888b] .empty-content__icon span{background-size:64px;width:64px;height:64px}.activity__actions[data-v-d8f2888b]{display:flex;flex-direction:column;width:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
/*! third party licenses: js/vendor.LICENSE.txt */
import{b as r,d as c,e as l}from"./NcCheckboxRadioSwitch-CvMEEI9x-Yg5nHaqa.chunk.mjs";import{d as u,e as f,o as v,b as p,m as d,t as n,h as g}from"./index-gkRHew1d.chunk.mjs";import{a as y,b as m,N as h,c as _}from"./Activity-Bvi2hZqP.chunk.mjs";import{g as o,a as b,b as I}from"./api-BuQDS-Gv.chunk.mjs";import{l as A}from"./logger-C3yKmuYM.chunk.mjs";import{l as S}from"./activity-sidebar.mjs";import"./_commonjsHelpers-BhChsaSm.chunk.mjs";const P=u({__name:"ActivitySidebarPlugin",props:{plugin:null,fileInfo:null},emits:["reload-activities"],setup(t,{emit:i}){const s=t,a=f();return v(()=>s.plugin.mount(a.value,{context:p()?.proxy,fileInfo:s.fileInfo,reload:()=>i("reload-activities")})),d(()=>s.plugin.unmount()),{__sfc:!0,props:s,emit:i,attachTarget:a}}});var x=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("div",{ref:"attachTarget"})},N=[],w=r(P,x,N,!1,null,null);const k=w.exports,C={name:"ActivityTab",components:{Activity:y,NcEmptyContent:m,NcIconSvgWrapper:h,NcLoadingIcon:c,ActivitySidebarPlugin:k},data(){return{error:"",loading:!0,fileInfo:null,activities:[],lightningBoltSVG:S,sidebarPlugins:[]}},mounted(){this.sidebarPlugins=o()},methods:{async update(t){this.sidebarPlugins=[];let i=o();i.length>0&&this.$nextTick(()=>{this.sidebarPlugins=i}),this.fileInfo=t,this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const t=await this.processActivities(await this.loadRealActivities()),i=await b({fileInfo:this.fileInfo});this.activities=[...t,...i].sort((s,a)=>a.timestamp-s.timestamp)}catch(t){this.error=n("activity","Unable to load the activity list"),console.error("Error loading the activity list",t)}finally{this.loading=!1}},resetState(){this.loading=!0,this.error="",this.activities=[]},async loadRealActivities(){try{const{data:t}=await l.get(g("apps/activity/api/v2/activity/filter"),{params:{format:"json",object_type:"files",object_id:this.fileInfo.id}});return t.ocs.data}catch(t){if(t.response!==void 0&&t.response.status===304)return[];throw e}},processActivities(t){t=t.map(s=>new _(s)),A.debug(`Processed ${t.length} activity(ies)`,{activities:t,fileInfo:this.fileInfo});const i=I();return t.filter(s=>!i||i.every(a=>a(s)))},t:n}};var E=function(){var t=this,i=t._self._c;return i("div",{class:{"icon-loading":t.loading}},[t.error?i("NcEmptyContent",{attrs:{name:t.error},scopedSlots:t._u([{key:"icon",fn:function(){return[i("NcIconSvgWrapper",{attrs:{svg:t.lightningBoltSVG}})]},proxy:!0}],null,!1,63559581)}):[t.sidebarPlugins.length>0?i("div",{staticClass:"activity__actions"},t._l(t.sidebarPlugins,function(s,a){return i("ActivitySidebarPlugin",{key:a,attrs:{plugin:s,"file-info":t.fileInfo},on:{"reload-activities":function(L){return t.getActivities()}}})}),1):t._e(),t.loading?i("NcEmptyContent",{attrs:{name:t.t("activity","Loading activities")},scopedSlots:t._u([{key:"icon",fn:function(){return[i("NcLoadingIcon")]},proxy:!0}],null,!1,3085876643)}):t.activities.length===0?i("NcEmptyContent",{attrs:{name:t.t("activity","No activity yet")},scopedSlots:t._u([{key:"icon",fn:function(){return[i("span",{staticClass:"icon-activity"})]},proxy:!0}])}):i("ul",t._l(t.activities,function(s){return i("Activity",{key:s.id,attrs:{activity:s,"show-previews":!1},on:{reload:function(a){return t.getActivities()}}})}),1)]],2)},T=[],j=r(C,E,T,!1,null,"d8f2888b");const U=j.exports;export{U as default};
1 change: 1 addition & 0 deletions js/ActivityTab-CuyoFsPG.chunk.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions js/ActivityTab-CyAxu8aq.mjs

This file was deleted.

Loading

0 comments on commit df46a69

Please sign in to comment.