Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,33 @@ SPDX-License-Identifier: ISC
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: Andrea Giammarchi
SPDX-FileCopyrightText: Anthony Fu <https://github.com/antfu>
SPDX-FileCopyrightText: David Clark
SPDX-FileCopyrightText: David Myers <hello@davidmyers.dev>
SPDX-FileCopyrightText: Eduardo San Martin Morote
SPDX-FileCopyrightText: Christoph Wurst
SPDX-FileCopyrightText: Eric Norris (https://github.com/ericnorris)
SPDX-FileCopyrightText: Eugene Sharygin <eush77@gmail.com>
SPDX-FileCopyrightText: Evan You
SPDX-FileCopyrightText: Guillaume Chau <guillaume.b.chau@gmail.com>
SPDX-FileCopyrightText: Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)
SPDX-FileCopyrightText: Jacob Clevenger<https://github.com/wheatjs>
SPDX-FileCopyrightText: Jeff Sagal <sagalbot@gmail.com>
SPDX-FileCopyrightText: Julius Härtl <jus@bitgrid.net>
SPDX-FileCopyrightText: Mark <mark@remarkablemark.org>
SPDX-FileCopyrightText: Matt Zabriskie
SPDX-FileCopyrightText: Max <max@nextcloud.com>
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)
SPDX-FileCopyrightText: Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)
SPDX-FileCopyrightText: atomiks
SPDX-FileCopyrightText: inline-style-parser developers
SPDX-FileCopyrightText: rhysd <lin90162@yahoo.co.jp>
SPDX-FileCopyrightText: ts-md5 developers

This file is generated from multiple sources. Included packages:
- @floating-ui/core
- version: 1.7.3
- license: MIT
- @floating-ui/dom
- version: 1.1.1
- license: MIT
- @floating-ui/dom
- version: 1.7.4
- license: MIT
- @floating-ui/utils
- version: 0.2.10
- license: MIT
- @nextcloud/axios
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.1
- @nextcloud/moment
- version: 1.3.5
- license: GPL-3.0-or-later
- @nextcloud/router
- version: 3.1.0
- @nextcloud/paths
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.3.0
Expand All @@ -62,9 +41,6 @@ This file is generated from multiple sources. Included packages:
- @ungap/structured-clone
- version: 1.3.0
- license: ISC
- @vitejs/plugin-vue
- version: 6.0.1
- license: MIT
- @vueuse/components
- version: 14.1.0
- license: MIT
Expand All @@ -74,9 +50,9 @@ This file is generated from multiple sources. Included packages:
- @vueuse/shared
- version: 14.1.0
- license: MIT
- axios
- version: 1.13.2
- license: MIT
- activity
- version: 6.0.0-dev.0
- license: AGPL-3.0-or-later
- bail
- version: 2.0.2
- license: MIT
Expand All @@ -98,12 +74,6 @@ This file is generated from multiple sources. Included packages:
- extend
- version: 3.0.2
- license: MIT
- floating-vue
- version: 5.2.2
- license: MIT
- focus-trap
- version: 7.6.6
- license: MIT
- hast-util-is-element
- version: 3.0.0
- license: MIT
Expand Down Expand Up @@ -194,6 +164,9 @@ This file is generated from multiple sources. Included packages:
- micromark-util-subtokenize
- version: 2.1.0
- license: MIT
- moment
- version: 2.30.1
- license: MIT
- property-information
- version: 7.1.0
- license: MIT
Expand Down Expand Up @@ -227,9 +200,6 @@ This file is generated from multiple sources. Included packages:
- style-to-object
- version: 1.0.8
- license: MIT
- tabbable
- version: 6.3.0
- license: MIT
- trim-lines
- version: 3.0.1
- license: MIT
Expand Down Expand Up @@ -266,11 +236,8 @@ This file is generated from multiple sources. Included packages:
- vfile-message
- version: 4.0.2
- license: MIT
- vite-plugin-node-polyfills
- version: 0.24.0
- license: MIT
- vue-router
- version: 4.6.3
- vite
- version: 7.3.0
- license: MIT
- vue-select
- version: 4.0.0-beta.6
Expand Down

Large diffs are not rendered by default.

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

This file was deleted.

3 changes: 3 additions & 0 deletions js/ActivityTab-B1yB4m02.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 t=document.createElement("style");t.appendChild(document.createTextNode(".activity[data-v-2fda9824]{display:flex;flex-direction:column;overflow:hidden;height:100%}.activity__actions[data-v-2fda9824]{display:flex;flex-direction:column;width:100%}.activity__list[data-v-2fda9824]{flex-grow:1;overflow:scroll}.activity__empty-content[data-v-2fda9824]{height:100%}[data-v-2fda9824] .empty-content__icon span{background-size:64px;width:64px;height:64px}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
import{l as w}from"./activity-sidebar.mjs";import{h as S,e as N,g as x,d as C}from"./_plugin-vue_export-helper-BkV2Qw3O.chunk.mjs";import{d as b,r as E,x as L,B as R,y as j,a as s,b as e,L as f,l as B,m as o,e as c,i as d,h as m,F as y,E as G,M as u,g as T,n as V}from"./translation-DoG5ZELJ-DsVuNMgz.chunk.mjs";import{N as W,e as F,_ as M,A as U}from"./ActivityComponent.vue_vue_type_script_setup_true_lang-BvJjhy3M.chunk.mjs";import{g as $,a as q,b as h}from"./api-BGFQR-tn.chunk.mjs";import{l as _}from"./logger-D4skB8pD.chunk.mjs";import"./preload-helper-DxYC2qmj.chunk.mjs";import"./_commonjsHelpers-Cqwegr3R.chunk.mjs";const z=b({__name:"ActivitySidebarPlugin",props:{plugin:{},fileInfo:{}},emits:["reload-activities"],setup(i,{emit:t}){const a=i,n=t,l=E();return L(()=>a.plugin.mount(l.value,{context:R()?.proxy,fileInfo:a.fileInfo,reload:()=>n("reload-activities")})),j(()=>a.plugin.unmount()),(I,g)=>(e(),s("div",{ref_key:"attachTarget",ref:l},null,512))}}),D=b({name:"ActivityTab",components:{ActivityComponent:M,NcEmptyContent:F,NcIconSvgWrapper:W,NcLoadingIcon:S,ActivitySidebarPlugin:z},expose:["update"],data(){return{error:"",loading:!0,fileInfo:null,activities:[],lightningBoltSVG:w,sidebarPlugins:[]}},mounted(){this.sidebarPlugins=h()},methods:{async update(i){this.sidebarPlugins=[];const t=h();t.length>0&&B(()=>{this.sidebarPlugins=t}),this.fileInfo=i,this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const i=await this.processActivities(await this.loadRealActivities()),t=await q({fileInfo:this.fileInfo});this.activities=[...i,...t].sort((a,n)=>n.timestamp-a.timestamp)}catch(i){this.error=f("activity","Unable to load the activity list"),_.error("Error loading the activity list",{error:i})}finally{this.loading=!1}},resetState(){this.loading=!0,this.error="",this.activities=[]},async loadRealActivities(){try{const{data:i}=await N.get(x("apps/activity/api/v2/activity/filter"),{params:{format:"json",object_type:"files",object_id:this.fileInfo.id}});return i.ocs.data}catch(i){if(i.response!==void 0&&i.response.status===304)return[];throw i}},processActivities(i){i=i.map(a=>new U(a)),_.debug(`Processed ${i.length} activity(ies)`,{activities:i,fileInfo:this.fileInfo});const t=$();return i.filter(a=>!t||t.every(n=>n(a)))},t:f}}),H={key:0,class:"activity__actions"},J={key:3,class:"activity__list"};function K(i,t,a,n,l,I){const g=o("NcIconSvgWrapper"),v=o("NcEmptyContent"),A=o("ActivitySidebarPlugin"),P=o("NcLoadingIcon"),k=o("ActivityComponent");return e(),s("div",{class:V([{"icon-loading":i.loading},"activity"])},[i.error||i.fileInfo===null?(e(),c(v,{key:0,name:i.error},{icon:d(()=>[m(g,{svg:i.lightningBoltSVG},null,8,["svg"])]),_:1},8,["name"])):(e(),s(y,{key:1},[i.sidebarPlugins.length>0?(e(),s("div",H,[(e(!0),s(y,null,u(i.sidebarPlugins,(r,p)=>(e(),c(A,{key:p,plugin:r,"file-info":i.fileInfo,onReloadActivities:t[0]||(t[0]=O=>i.getActivities())},null,8,["plugin","file-info"]))),128))])):G("",!0),i.loading?(e(),c(v,{key:1,class:"activity__empty-content",name:i.t("activity","Loading activities")},{icon:d(()=>[m(P)]),_:1},8,["name"])):i.activities.length===0?(e(),c(v,{key:2,class:"activity__empty-content",name:i.t("activity","No activity yet")},{icon:d(()=>[...t[2]||(t[2]=[T("span",{class:"icon-activity"},null,-1)])]),_:1},8,["name"])):(e(),s("ul",J,[(e(!0),s(y,null,u(i.activities,r=>(e(),c(k,{key:r.id,activity:r,"show-previews":!1,onReload:t[1]||(t[1]=p=>i.getActivities())},null,8,["activity"]))),128))]))],64))],2)}const si=C(D,[["render",K],["__scopeId","data-v-2fda9824"]]);export{si as default};
//# sourceMappingURL=ActivityTab-B1yB4m02.chunk.mjs.map
Loading
Loading