From e3c8ee39b71a534e7638a48d03f95038b090feab Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Tue, 16 Jan 2024 10:43:13 +0100 Subject: [PATCH 1/3] refactor: remove clipboard from vuex files store --- .../src/components/AppBar/CreateAndUpload.vue | 17 ++++--- .../useKeyboardTableActions.ts | 12 ++--- .../useKeyboardTableSpaceActions.ts | 20 ++------- packages/web-app-files/src/store/actions.ts | 40 +++++------------ packages/web-app-files/src/store/getters.ts | 6 --- packages/web-app-files/src/store/mutations.ts | 11 ----- packages/web-app-files/src/store/state.ts | 2 - .../components/AppBar/CreateAndUpload.spec.ts | 12 ++--- .../components/FilesList/ResourceTable.vue | 15 ++++--- .../actions/files/useFileActionsCopy.ts | 9 ++-- .../actions/files/useFileActionsMove.ts | 9 ++-- .../actions/files/useFileActionsPaste.ts | 12 +++-- .../src/composables/piniaStores/clipboard.ts | 44 +++++++++++++++++++ .../src/composables/piniaStores/index.ts | 1 + .../actions/files/useFileActionsCopy.spec.ts | 11 +++-- packages/web-test-helpers/src/mocks/pinia.ts | 7 ++- .../src/mocks/store/filesModuleMockOptions.ts | 7 +-- 17 files changed, 117 insertions(+), 118 deletions(-) create mode 100644 packages/web-pkg/src/composables/piniaStores/clipboard.ts diff --git a/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue b/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue index 2cb88d5be1c..1649d8bbf86 100644 --- a/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue +++ b/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue @@ -177,7 +177,7 @@ @@ -186,12 +186,12 @@