From 91c65e08613e76a3383c994b470d179e4c63e50e Mon Sep 17 00:00:00 2001 From: 409 <409dev@protonmail.com> Date: Thu, 4 Sep 2025 19:02:14 +0200 Subject: [PATCH] refactor rect selection to make it work in shares --- frontend/components/SelectionRect.vue | 96 +++++++++++++++- frontend/layouts/share.vue | 1 + frontend/pages/share.vue | 18 ++- frontend/pages/warrens/files.vue | 153 +------------------------- frontend/shared/types/selection.ts | 1 + frontend/stores/index.ts | 61 ++++++++++ frontend/stores/selectionRect.ts | 11 +- 7 files changed, 187 insertions(+), 154 deletions(-) create mode 100644 frontend/shared/types/selection.ts diff --git a/frontend/components/SelectionRect.vue b/frontend/components/SelectionRect.vue index 792c465..2abc65b 100644 --- a/frontend/components/SelectionRect.vue +++ b/frontend/components/SelectionRect.vue @@ -1,15 +1,109 @@ diff --git a/frontend/layouts/share.vue b/frontend/layouts/share.vue index 16c6d23..3d62735 100644 --- a/frontend/layouts/share.vue +++ b/frontend/layouts/share.vue @@ -2,6 +2,7 @@