From 210db220312c62f72ed17e84576fbf5a11b3c15d Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Fri, 1 Dec 2023 10:14:34 +0100 Subject: [PATCH] refactor: move quick actions into injection context --- .../src/components/FilesList/QuickActions.vue | 45 ++++------ .../src/composables/actions/index.ts | 1 + .../composables/actions/useQuickActions.ts | 54 ++++++++++++ packages/web-app-files/src/index.ts | 8 +- .../src/views/spaces/GenericSpace.vue | 1 + .../files/useFileActionsCreateQuicklink.ts | 8 +- .../actions/files/useFileActionsShowShares.ts | 10 +-- packages/web-pkg/src/composables/index.ts | 1 + .../web-pkg/src/composables/shares/index.ts | 1 + .../src/composables/shares/useCanShare.ts | 21 +++++ packages/web-pkg/src/helpers/share/link.ts | 25 +++++- packages/web-pkg/src/index.ts | 2 - packages/web-pkg/src/quickActions.ts | 88 ------------------- 13 files changed, 133 insertions(+), 132 deletions(-) create mode 100644 packages/web-app-files/src/composables/actions/useQuickActions.ts create mode 100644 packages/web-pkg/src/composables/shares/index.ts create mode 100644 packages/web-pkg/src/composables/shares/useCanShare.ts delete mode 100644 packages/web-pkg/src/quickActions.ts diff --git a/packages/web-app-files/src/components/FilesList/QuickActions.vue b/packages/web-app-files/src/components/FilesList/QuickActions.vue index cced6d97b95..bba1e4c7ce2 100644 --- a/packages/web-app-files/src/components/FilesList/QuickActions.vue +++ b/packages/web-app-files/src/components/FilesList/QuickActions.vue @@ -2,15 +2,13 @@
@@ -19,47 +17,36 @@