From 27f1b0df79687905598252501a8dfd2925e0a417 Mon Sep 17 00:00:00 2001 From: Jonas Plum <114533931+jonas-plum@users.noreply.github.com> Date: Sat, 21 Jan 2023 23:25:55 +0100 Subject: [PATCH] Add playbook editor (#702) --- ui/package.json | 3 + ui/src/components/playbookeditor/EditTask.vue | 273 ++++++++++ ui/src/components/playbookeditor/NewTask.vue | 80 +++ ui/src/components/playbookeditor/PanZoom.vue | 164 ++++++ .../playbookeditor/PlaybookEditor.vue | 235 ++++++++ .../playbookeditor/PlaybookGraph.vue | 511 ++++++++++++++++++ ui/src/views/Graph.vue | 24 +- ui/src/views/Playbook.vue | 139 ++--- ui/src/views/Ticket.vue | 27 +- ui/yarn.lock | 309 ++++++++++- 10 files changed, 1656 insertions(+), 109 deletions(-) create mode 100644 ui/src/components/playbookeditor/EditTask.vue create mode 100644 ui/src/components/playbookeditor/NewTask.vue create mode 100644 ui/src/components/playbookeditor/PanZoom.vue create mode 100644 ui/src/components/playbookeditor/PlaybookEditor.vue create mode 100644 ui/src/components/playbookeditor/PlaybookGraph.vue diff --git a/ui/package.json b/ui/package.json index a41fc8b..a211cfa 100644 --- a/ui/package.json +++ b/ui/package.json @@ -9,6 +9,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@crinkles/digl": "^2.0.2", "@koumoul/vjsf": "2.21.1", "@mdi/font": "7.1.96", "@mdi/util": "0.3.2", @@ -23,6 +24,7 @@ "axios": "1.2.2", "chart.js": "2.9.4", "core-js": "3.27.2", + "d3": "^7.8.0", "graphlib": "2.1.8", "json-schema-editor-vue": "2.2.1", "just-kebab-case": "4.2.0", @@ -30,6 +32,7 @@ "less-loader": "11.1.0", "lodash": "4.17.21", "luxon": "3.2.1", + "panzoom": "^9.4.3", "register-service-worker": "1.7.2", "splitpanes": "2.4.1", "swagger-ui": "4.13.0", diff --git a/ui/src/components/playbookeditor/EditTask.vue b/ui/src/components/playbookeditor/EditTask.vue new file mode 100644 index 0000000..82d1a16 --- /dev/null +++ b/ui/src/components/playbookeditor/EditTask.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/ui/src/components/playbookeditor/NewTask.vue b/ui/src/components/playbookeditor/NewTask.vue new file mode 100644 index 0000000..091a65a --- /dev/null +++ b/ui/src/components/playbookeditor/NewTask.vue @@ -0,0 +1,80 @@ + + + diff --git a/ui/src/components/playbookeditor/PanZoom.vue b/ui/src/components/playbookeditor/PanZoom.vue new file mode 100644 index 0000000..d0cb265 --- /dev/null +++ b/ui/src/components/playbookeditor/PanZoom.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/ui/src/components/playbookeditor/PlaybookEditor.vue b/ui/src/components/playbookeditor/PlaybookEditor.vue new file mode 100644 index 0000000..5a3f0d7 --- /dev/null +++ b/ui/src/components/playbookeditor/PlaybookEditor.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/ui/src/components/playbookeditor/PlaybookGraph.vue b/ui/src/components/playbookeditor/PlaybookGraph.vue new file mode 100644 index 0000000..d06289e --- /dev/null +++ b/ui/src/components/playbookeditor/PlaybookGraph.vue @@ -0,0 +1,511 @@ + + + + + diff --git a/ui/src/views/Graph.vue b/ui/src/views/Graph.vue index 8383dfa..d78ed85 100644 --- a/ui/src/views/Graph.vue +++ b/ui/src/views/Graph.vue @@ -1,5 +1,5 @@