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 <noreply@github.com>
  • Loading branch information
nextcloud-command authored Dec 22, 2024
1 parent 5f1a406 commit b7a680d
Show file tree
Hide file tree
Showing 52 changed files with 4,210 additions and 1,886 deletions.
4 changes: 4 additions & 0 deletions js/Activity-C_9WmhXo.chunk.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/Activity-C_9WmhXo.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/Activity-Dojq2ncI.mjs

This file was deleted.

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

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion js/ActivityTab-CyAxu8aq.mjs.map

This file was deleted.

3 changes: 3 additions & 0 deletions js/ActivityTab-sHLQHnmq.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 c,d as l,e as u}from"./NcCheckboxRadioSwitch-R1y0mLbC-BA5qAp2G.chunk.mjs";import{d as f,e as v,o as p,b as d,m as g,t as o,h as y}from"./index-Dnpihm3V.chunk.mjs";import{a as m,b as h,N as _,c as b}from"./Activity-C_9WmhXo.chunk.mjs";import{g as r,a as I,b as A}from"./api-BjJhgVcK.chunk.mjs";import{l as S}from"./logger-DNXZdkhv.chunk.mjs";import{l as P}from"./activity-sidebar.mjs";import"./_commonjsHelpers-BhChsaSm.chunk.mjs";import"./preload-helper-DvLKZE-q.chunk.mjs";const x=f({__name:"ActivitySidebarPlugin",props:{plugin:null,fileInfo:null},emits:["reload-activities"],setup(t,{emit:i}){const a=t,s=v();return p(()=>{var n;return a.plugin.mount(s.value,{context:(n=d())==null?void 0:n.proxy,fileInfo:a.fileInfo,reload:()=>i("reload-activities")})}),g(()=>a.plugin.unmount()),{__sfc:!0,props:a,emit:i,attachTarget:s}}});var N=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("div",{ref:"attachTarget"})},w=[],k=c(x,N,w,!1,null,null);const C=k.exports,E={name:"ActivityTab",components:{Activity:m,NcEmptyContent:h,NcIconSvgWrapper:_,NcLoadingIcon:l,ActivitySidebarPlugin:C},data(){return{error:"",loading:!0,fileInfo:null,activities:[],lightningBoltSVG:P,sidebarPlugins:[]}},mounted(){this.sidebarPlugins=r()},methods:{async update(t){this.sidebarPlugins=[];let i=r();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 I({fileInfo:this.fileInfo});this.activities=[...t,...i].sort((a,s)=>s.timestamp-a.timestamp)}catch(t){this.error=o("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 u.get(y("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(a=>new b(a)),S.debug("Processed ".concat(t.length," activity(ies)"),{activities:t,fileInfo:this.fileInfo});const i=A();return t.filter(a=>!i||i.every(s=>s(a)))},t:o}};var T=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(a,s){return i("ActivitySidebarPlugin",{key:s,attrs:{plugin:a,"file-info":t.fileInfo},on:{"reload-activities":function(n){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(a){return i("Activity",{key:a.id,attrs:{activity:a,"show-previews":!1},on:{reload:function(s){return t.getActivities()}}})}),1)]],2)},j=[],L=c(E,T,j,!1,null,"d8f2888b");const q=L.exports;export{q as default};
Loading

0 comments on commit b7a680d

Please sign in to comment.