From 6ced5c84448ec2fd494db4f1ed8d4f1705843862 Mon Sep 17 00:00:00 2001 From: Joe Allen <49467845+LiJoeAllen@users.noreply.github.com> Date: Tue, 18 Aug 2026 14:58:31 +0800 Subject: [PATCH] feat: global right-click control + topic tree context menu - UseContextMenu composable: global right-click prevention - PROD: prevent default browser context menu everywhere - DEV: allow native context menu for debugging - ContextMenu component: reusable custom right-click menu - TopicTree: right-click nodes for copy topic / subscribe / unsubscribe / filter - Copy topic to clipboard - Subscribe with QoS 0/1/2 - Unsubscribe with confirmation - Filter by topic --- src/App.vue | 5 +- src/components/common/ContextMenu.vue | 134 +++++++++++++++++++++++++ src/components/dashboard/TopicTree.vue | 77 +++++++++++++- src/composables/useContextMenu.ts | 41 ++++++++ 4 files changed, 254 insertions(+), 3 deletions(-) create mode 100644 src/components/common/ContextMenu.vue create mode 100644 src/composables/useContextMenu.ts diff --git a/src/App.vue b/src/App.vue index 91b3c1e..9f6b5f1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,8 @@