Skip to content

Commit cf75d9c

Browse files
Merge 3a002dc into 0a07d0a
2 parents 0a07d0a + 3a002dc commit cf75d9c

File tree

54 files changed

+6871
-4466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6871
-4466
lines changed

cypress.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import {
2-
configureNextcloud,
3-
startNextcloud,
4-
stopNextcloud,
5-
waitOnNextcloud,
6-
} from './cypress/dockerNode'
1+
import { configureNextcloud, startNextcloud, stopNextcloud, waitOnNextcloud } from '@nextcloud/cypress/docker'
72
// eslint-disable-next-line n/no-extraneous-import
83
import { defineConfig } from 'cypress'
94

105
import vitePreprocessor from 'cypress-vite'
11-
import getCompareSnapshotsPlugin from 'cypress-visual-regression/dist/plugin'
126

137
export default defineConfig({
148
projectId: '5bsgwk',
@@ -47,9 +41,6 @@ export default defineConfig({
4741
// Fix browserslist extend https://github.com/cypress-io/cypress/issues/2983#issuecomment-570616682
4842
on('file:preprocessor', vitePreprocessor({ configFile: false }))
4943

50-
// Enable the snapshot compare plugin
51-
getCompareSnapshotsPlugin(on, config)
52-
5344
// Disable spell checking to prevent rendering differences
5445
on('before:browser:launch', (browser, launchOptions) => {
5546
if (browser.family === 'chromium' && browser.name !== 'electron') {

js/Activity-BmFoI2Lq.chunk.mjs

Lines changed: 90 additions & 0 deletions
Large diffs are not rendered by default.

js/Activity-BmFoI2Lq.chunk.mjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/Activity-CuRn5nA-.mjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

js/Activity-CuRn5nA-.mjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

js/ActivityTab-B5_Oldhx.chunk.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(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)}})();
2+
/*! third party licenses: js/vendor.LICENSE.txt */
3+
import{b as r,d as c,e as l}from"./NcCheckboxRadioSwitch-BaMf0PDd-q9229gvE.chunk.mjs";import{d as u,e as f,o as p,g as v,q as d,t as n,h as g}from"./index-DCIakzaT.chunk.mjs";import{N as y,a as m,A as h,b as _}from"./Activity-BmFoI2Lq.chunk.mjs";import{g as b,a as A,b as o}from"./api-DVEfoW9x.chunk.mjs";import{l as I}from"./logger--0ns4cKc.chunk.mjs";import{l as S}from"./activity-sidebar.mjs";import"./_commonjsHelpers-BhChsaSm.chunk.mjs";import"./preload-helper-CfzTJz-5.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 p(()=>s.plugin.mount(a.value,{context:v()?.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:h,NcEmptyContent:m,NcIconSvgWrapper:y,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 A({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)),I.debug(`Processed ${t.length} activity(ies)`,{activities:t,fileInfo:this.fileInfo});const i=b();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};
4+
//# sourceMappingURL=ActivityTab-B5_Oldhx.chunk.mjs.map

js/ActivityTab-B5_Oldhx.chunk.mjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/ActivityTab-DESrkXIy.mjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)