From e836738887dcdcb15248e2c1db5a9e9658c68b8a Mon Sep 17 00:00:00 2001
From: "Adrian O.V" <83074853+CodexAdrian@users.noreply.github.com>
Date: Sat, 10 Jun 2023 15:31:52 -0400
Subject: [PATCH] Context menus (#133)
* Context Menus in home and library
* Menu impl
* FInalize context menus
* Update App.vue
* Update App.vue
* fix scrolling
---
theseus_gui/src/App.vue | 3 +-
theseus_gui/src/components/GridDisplay.vue | 96 +++++++-
theseus_gui/src/components/RowDisplay.vue | 217 +++++++++++++++---
theseus_gui/src/components/ui/ContextMenu.vue | 161 +++++++++++++
theseus_gui/src/components/ui/Instance.vue | 48 +++-
theseus_gui/src/pages/Index.vue | 23 +-
theseus_gui/src/pages/instance/Index.vue | 118 +++++++++-
theseus_gui/src/pages/instance/Mods.vue | 25 +-
theseus_gui/src/pages/project/Index.vue | 42 +++-
9 files changed, 672 insertions(+), 61 deletions(-)
create mode 100644 theseus_gui/src/components/ui/ContextMenu.vue
diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue
index 6071a8b5f..330d4e4f8 100644
--- a/theseus_gui/src/App.vue
+++ b/theseus_gui/src/App.vue
@@ -54,7 +54,8 @@ watch(notificationsWrapper, () => {
notifications.setNotifs(notificationsWrapper.value)
})
-// Link handler
+document.addEventListener('contextmenu', (event) => event.preventDefault())
+
document.querySelector('body').addEventListener('click', function (e) {
let target = e.target
while (target != null) {
diff --git a/theseus_gui/src/components/GridDisplay.vue b/theseus_gui/src/components/GridDisplay.vue
index 449df3064..b200546af 100644
--- a/theseus_gui/src/components/GridDisplay.vue
+++ b/theseus_gui/src/components/GridDisplay.vue
@@ -1,7 +1,20 @@
+
-
-