From 1dd84936896d857f2c49de19d1945650703d8e65 Mon Sep 17 00:00:00 2001 From: Frank John Begornia Date: Thu, 20 Nov 2025 21:26:22 +0800 Subject: [PATCH] refactor: simplify DesignerPreview component by removing unused props and events --- app/components/designer/DesignerPreview.vue | 122 ++------------------ app/pages/designer.vue | 7 -- composables/useSlipmatDesigner.ts | 2 - 3 files changed, 10 insertions(+), 121 deletions(-) diff --git a/app/components/designer/DesignerPreview.vue b/app/components/designer/DesignerPreview.vue index e6109df..bb7902b 100644 --- a/app/components/designer/DesignerPreview.vue +++ b/app/components/designer/DesignerPreview.vue @@ -1,138 +1,36 @@ diff --git a/app/pages/designer.vue b/app/pages/designer.vue index 09137c7..e1323cf 100644 --- a/app/pages/designer.vue +++ b/app/pages/designer.vue @@ -381,16 +381,9 @@ const handleCheckout = async () => { /> diff --git a/composables/useSlipmatDesigner.ts b/composables/useSlipmatDesigner.ts index 4bd7d3b..a7ac70f 100644 --- a/composables/useSlipmatDesigner.ts +++ b/composables/useSlipmatDesigner.ts @@ -322,8 +322,6 @@ export const useSlipmatDesigner = () => { instance.on(eventName, handleMutation); }); - instance.on("after:render", () => schedulePreviewRefresh()); - const selectionEvents = [ "selection:created", "selection:updated",