From 1c419d9a4a7dff63e52797c4d1629dcbd9f70b56 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 16 Mar 2020 17:47:32 +0100 Subject: [PATCH] Added file preview in file list Added new component FileItem wrapped around oc-file to better encapsulated the formatting methods as computed properties instead of using the mixin. Added preview support in file list loaded using mediaSource. --- apps/files/src/components/AllFilesList.vue | 40 ++++++--- .../Collaborators/SharedFilesList.vue | 23 ++++- apps/files/src/components/FileItem.vue | 88 +++++++++++++++++++ apps/files/src/components/Trashbin.vue | 10 ++- apps/files/src/mixins.js | 15 ++++ apps/files/src/store/mutations.js | 6 ++ changelog/unreleased/276 | 7 ++ .../features/webUIFiles/fileList.feature | 10 +++ .../shareByPublicLink.feature | 14 +++ .../pageObjects/FilesPageElement/filesList.js | 37 ++++++++ .../stepDefinitions/filesContext.js | 14 +++ 11 files changed, 247 insertions(+), 17 deletions(-) create mode 100644 apps/files/src/components/FileItem.vue create mode 100644 changelog/unreleased/276 diff --git a/apps/files/src/components/AllFilesList.vue b/apps/files/src/components/AllFilesList.vue index 4fd012cef92..a9abb65bf5e 100644 --- a/apps/files/src/components/AllFilesList.vue +++ b/apps/files/src/components/AllFilesList.vue @@ -48,9 +48,13 @@
- + diff --git a/apps/files/src/components/Trashbin.vue b/apps/files/src/components/Trashbin.vue index e304a3de112..3acb0cf4ec1 100644 --- a/apps/files/src/components/Trashbin.vue +++ b/apps/files/src/components/Trashbin.vue @@ -32,9 +32,11 @@