From f72d1539201801caa8af3012f9c1385884fa08ca Mon Sep 17 00:00:00 2001 From: newcat Date: Tue, 2 Jan 2024 04:49:10 +0100 Subject: [PATCH] Fix docs, export ContextMenu component --- packages/renderer-vue/src/components.ts | 4 ++-- .../src/{components => contextmenu}/ContextMenu.vue | 11 ++--------- packages/renderer-vue/src/contextmenu/index.ts | 2 ++ packages/renderer-vue/src/contextmenu/types.ts | 9 +++++++++ packages/renderer-vue/src/editor/Editor.vue | 6 +++--- packages/renderer-vue/src/{ => editor}/contextMenu.ts | 6 +++--- packages/renderer-vue/src/node/Node.vue | 2 +- .../renderer-vue/src/nodepalette/PaletteEntry.vue | 2 +- 8 files changed, 23 insertions(+), 19 deletions(-) rename packages/renderer-vue/src/{components => contextmenu}/ContextMenu.vue (95%) create mode 100644 packages/renderer-vue/src/contextmenu/index.ts create mode 100644 packages/renderer-vue/src/contextmenu/types.ts rename packages/renderer-vue/src/{ => editor}/contextMenu.ts (95%) diff --git a/packages/renderer-vue/src/components.ts b/packages/renderer-vue/src/components.ts index 3d71d2f1..eaa0fdc4 100644 --- a/packages/renderer-vue/src/components.ts +++ b/packages/renderer-vue/src/components.ts @@ -1,9 +1,9 @@ +export { default as Minimap } from "./components/Minimap.vue"; export { default as Connection } from "./connection/ConnectionView.vue"; export { default as ConnectionWrapper } from "./connection/ConnectionWrapper.vue"; export { default as TemporaryConnection } from "./connection/TemporaryConnection.vue"; +export { ContextMenu } from "./contextmenu"; export { default as Node } from "./node/Node.vue"; export { default as NodeInterface } from "./node/NodeInterface.vue"; export { default as NodePalette } from "./nodepalette/NodePalette.vue"; -export { default as ContextMenu } from "./components/ContextMenu.vue"; -export { default as Minimap } from "./components/Minimap.vue"; export { default as Sidebar } from "./sidebar/Sidebar.vue"; diff --git a/packages/renderer-vue/src/components/ContextMenu.vue b/packages/renderer-vue/src/contextmenu/ContextMenu.vue similarity index 95% rename from packages/renderer-vue/src/components/ContextMenu.vue rename to packages/renderer-vue/src/contextmenu/ContextMenu.vue index b0390064..bb55798e 100644 --- a/packages/renderer-vue/src/components/ContextMenu.vue +++ b/packages/renderer-vue/src/contextmenu/ContextMenu.vue @@ -41,16 +41,9 @@