From bdbfdbec84381f2cb0679d992127d013c9ea0c5f Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Wed, 4 Nov 2020 16:57:55 +0500 Subject: [PATCH] feat(web2): run task --- web2/src/components/ItemListPageBase.js | 3 + web2/src/components/TaskForm.vue | 50 ++++++++++++++++ web2/src/components/TaskLogView.vue | 74 ++++++++++++++++++++++++ web2/src/views/project/TemplateView.vue | 76 ++++++++++++++----------- web2/src/views/project/Templates.vue | 57 +++++++++++++++++-- 5 files changed, 222 insertions(+), 38 deletions(-) create mode 100644 web2/src/components/TaskForm.vue diff --git a/web2/src/components/ItemListPageBase.js b/web2/src/components/ItemListPageBase.js index c9c119c5..04dfb2ce 100644 --- a/web2/src/components/ItemListPageBase.js +++ b/web2/src/components/ItemListPageBase.js @@ -5,6 +5,9 @@ import ItemDialog from '@/components/ItemDialog.vue'; import YesNoDialog from '@/components/YesNoDialog.vue'; import { getErrorMessage } from '@/lib/error'; +/** + * + */ export default { components: { YesNoDialog, diff --git a/web2/src/components/TaskForm.vue b/web2/src/components/TaskForm.vue new file mode 100644 index 00000000..7ad106f1 --- /dev/null +++ b/web2/src/components/TaskForm.vue @@ -0,0 +1,50 @@ + + diff --git a/web2/src/components/TaskLogView.vue b/web2/src/components/TaskLogView.vue index e69de29b..da321b16 100644 --- a/web2/src/components/TaskLogView.vue +++ b/web2/src/components/TaskLogView.vue @@ -0,0 +1,74 @@ + + diff --git a/web2/src/views/project/TemplateView.vue b/web2/src/views/project/TemplateView.vue index 1571230b..3c6df18b 100644 --- a/web2/src/views/project/TemplateView.vue +++ b/web2/src/views/project/TemplateView.vue @@ -72,45 +72,53 @@ > mdi-pencil - - - - - Playbook - {{ item.playbook }} - - + + + + + + + Playbook + {{ item.playbook }} + + - - - SSH Key - {{ item.ssh_key_id }} - - + + + SSH Key + {{ item.ssh_key_id }} + + + + + + + + + Inventory + {{ item.inventory_id }} + + - - - Inventory - {{ item.inventory_id }} - - + + + Environment + {{ item.environment_id }} + + - - - Environment - {{ item.environment_id }} - - - - - - Repository - {{ item.repository_id }} - - - + + + Repository + {{ item.repository_id }} + + + + + +

Task History

+ + + + + + + + Task Templates @@ -56,8 +86,8 @@ {{ repositories.find((x) => x.id === item.repository_id).name }} -