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
This commit is contained in:
Joe Allen
2026-08-18 14:58:31 +08:00
parent 7f6a4f84d8
commit 6ced5c8444
4 changed files with 254 additions and 3 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
<script setup lang="ts">
import AppLayout from "./components/AppLayout.vue";
import { useContextMenuController } from "./composables/useContextMenu"
import AppLayout from "./components/AppLayout.vue"
useContextMenuController()
</script>
<template>