From fa016ac1b30f0dd6518002b92d2159fe71b3c4f3 Mon Sep 17 00:00:00 2001 From: Md Afiq Iskandar Date: Thu, 17 Jul 2025 09:47:45 +0800 Subject: [PATCH] Update Nuxt Configuration and Enhance ProcessFlowCanvas Component - Added optimization settings for 'vue-toastification' in nuxt.config.js to improve dependency handling. - Wrapped VueFlow component in a tag within ProcessFlowCanvas.vue to prevent server-side rendering issues, ensuring proper rendering of flow components only on the client side. - Maintained existing functionality while enhancing the user experience in the process flow interface. --- components/process-flow/ProcessFlowCanvas.vue | 164 +++++++++--------- nuxt.config.js | 6 + 2 files changed, 88 insertions(+), 82 deletions(-) diff --git a/components/process-flow/ProcessFlowCanvas.vue b/components/process-flow/ProcessFlowCanvas.vue index d3867ef..cbd261a 100644 --- a/components/process-flow/ProcessFlowCanvas.vue +++ b/components/process-flow/ProcessFlowCanvas.vue @@ -1135,88 +1135,88 @@ function fromObject(flowObject) { @drop="onDrop" @dragover="onDragOver" > - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Controls:
-
• Delete: Remove selected
-
• Shift: Select nodes
-
• Drag between nodes to connect
-
• Double-click to remove
-
Edge Features:
-
• Arrows show flow direction
-
• Select edge for controls
-
• Blue dot = drag to reposition
-
• Reset button restores path
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + +
+
Controls:
+
• Delete: Remove selected
+
• Shift: Select nodes
+
• Drag between nodes to connect
+
• Double-click to remove
+
Edge Features:
+
• Arrows show flow direction
+
• Select edge for controls
+
• Blue dot = drag to reposition
+
• Reset button restores path
+
+
+
+
diff --git a/nuxt.config.js b/nuxt.config.js index 76af2fc..dd80162 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -29,6 +29,12 @@ export default defineNuxtConfig({ interval: 1000, }, }, + optimizeDeps: { + include: ['vue-toastification'], + }, + ssr: { + noExternal: ['vue-toastification'], + }, }, head: { title: "corrad",