From 4e3cc5798588c9d535892b6d636c4e96389ddf6c Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 21 Aug 2022 22:49:06 +0200 Subject: [PATCH] WIP store state in store / eliminate vue instance passing --- .../src/components/Workflow/Editor/Index.vue | 119 ++++------------- .../src/components/Workflow/Editor/Node.vue | 54 ++++---- .../components/Workflow/Editor/NodeInput.vue | 8 +- .../components/Workflow/Editor/NodeOutput.vue | 10 +- .../Workflow/Editor/WorkflowConnection.vue | 50 +++++++ .../Workflow/Editor/WorkflowGraph.vue | 125 ++++++++++++++++++ .../Workflow/Editor/modules/connector.js | 25 ++-- .../Workflow/Editor/modules/dragging.js | 18 +-- .../Workflow/Editor/modules/model.js | 48 +------ .../Workflow/Editor/modules/terminals.js | 1 + client/src/store/index.js | 4 + client/src/store/workflowEditorStateStore.js | 43 ++++++ 12 files changed, 323 insertions(+), 182 deletions(-) create mode 100644 client/src/components/Workflow/Editor/WorkflowConnection.vue create mode 100644 client/src/components/Workflow/Editor/WorkflowGraph.vue create mode 100644 client/src/store/workflowEditorStateStore.js diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 299cff75847..5c6af97a766 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -65,50 +65,19 @@ {{ name }} -
- - - Zoom Controls - -
-
- -
-
- + +