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 Jul 28, 2024
1 parent 3118c8b commit af3281e
Show file tree
Hide file tree
Showing 48 changed files with 2,275 additions and 668 deletions.
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.

107 changes: 107 additions & 0 deletions js/Activity.chunk.mjs

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

This file was deleted.

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

This file was deleted.

3 changes: 3 additions & 0 deletions js/ActivityTab.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-395262ee] .empty-content__icon span{background-size:64px;width:64px;height:64px}.activity__actions[data-v-395262ee]{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{n as o,c as r,a as c}from"./NcCheckboxRadioSwitch-hel9-sAH.chunk.mjs";import{d as l,r as u,o as f,g as v,i as p,t as s,a as d}from"./index.chunk.mjs";import{A as g,e as y,a as m,f as h}from"./Activity.chunk.mjs";import{g as _,a as A,b as I}from"./api.chunk.mjs";import{l as b}from"./logger.chunk.mjs";import{l as S}from"./activity-sidebar.mjs";import"./_commonjsHelpers.chunk.mjs";const w=l({__name:"ActivitySidebarPlugin",props:{plugin:null,fileInfo:null},emits:["reload-activities"],setup(t,{emit:i}){const a=t,n=u();return f(()=>a.plugin.mount(n.value,{context:v()?.proxy,fileInfo:a.fileInfo,reload:()=>i("reload-activities")})),p(()=>a.plugin.unmount()),{__sfc:!0,props:a,emit:i,attachTarget:n}}});var x=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("div",{ref:"attachTarget"})},N=[],P=o(w,x,N,!1,null,null,null,null);const C=P.exports,k={name:"ActivityTab",components:{Activity:g,NcEmptyContent:y,NcIconSvgWrapper:m,NcLoadingIcon:r,ActivitySidebarPlugin:C},data(){return{error:"",loading:!0,fileInfo:null,activities:[],lightningBoltSVG:S,sidebarPlugins:[]}},mounted(){this.sidebarPlugins=_()},methods:{async update(t){this.fileInfo=t,this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const t=await this.processActivities(await this.loadRealActivities()),i=await A({fileInfo:this.fileInfo});this.activities=[...t,...i].sort((a,n)=>n.timestamp-a.timestamp)}catch(t){this.error=s("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 c.get(d("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 h(a)),b.debug(`Processed ${t.length} activity(ies)`,{activities:t,fileInfo:this.fileInfo});const i=I();return t.filter(a=>!i||i.every(n=>n(a)))},t:s}};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(a,n){return i("ActivitySidebarPlugin",{key:n,attrs:{plugin:a,"file-info":t.fileInfo},on:{"reload-activities":function(T){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(n){return t.getActivities()}}})}),1)]],2)},j=[],L=o(k,E,j,!1,null,"395262ee",null,null);const U=L.exports;export{U as default};
Loading

0 comments on commit af3281e

Please sign in to comment.