diff --git a/package-lock.json b/package-lock.json index cf65f25c8..192f2022d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11480,6 +11480,11 @@ } } }, + "vue-form-wizard": { + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/vue-form-wizard/-/vue-form-wizard-0.8.4.tgz", + "integrity": "sha512-/Zk1+B7bz7qHFJ16mwu021lpPXWf/9Tlr2mTNG3J7M0Hdy3rgA802lWsbKYySns0B0qtsD8BYGjQ2Wyxgg+4uw==" + }, "vue-functional-data-merge": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/vue-functional-data-merge/-/vue-functional-data-merge-3.1.0.tgz", diff --git a/package.json b/package.json index c49c73bb7..e6fa8af32 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "marked": "^0.8.0", "messenger-hubspot": "^1.5.0", "vue": "^2.6.11", + "vue-form-wizard": "^0.8.4", "vue-multiselect": "^2.1.6", "vue-router": "^3.1.5", "vuex": "^3.1.2" diff --git a/src/main/client/app/pages/modules/modules-routes.js b/src/main/client/app/pages/modules/modules-routes.js index 864c495b8..44a1232cb 100644 --- a/src/main/client/app/pages/modules/modules-routes.js +++ b/src/main/client/app/pages/modules/modules-routes.js @@ -35,6 +35,15 @@ const modulesRoutes = [ breadcrumb: [{ text: 'Modules', to: { name: 'modules' } }, { text: 'Module description' }], }, }, + { + path: '/modules/:moduleId/run', + name: 'module-run', + component: () => import(/* webpackChunkName: "chunk-modules" */ '@/pages/stacks/stack-creation.vue'), + meta: { + authorities: ['ROLE_USER'], + breadcrumb: [{ text: 'Modules', to: { name: 'modules' } }, { text: 'Stack creation' }], + }, + }, ]; export default modulesRoutes; diff --git a/src/main/client/app/pages/stacks/stack-creation.vue b/src/main/client/app/pages/stacks/stack-creation.vue index f18e3b68d..0691e2c5b 100644 --- a/src/main/client/app/pages/stacks/stack-creation.vue +++ b/src/main/client/app/pages/stacks/stack-creation.vue @@ -1,10 +1,162 @@ diff --git a/src/main/client/app/pages/stacks/stack-variable.vue b/src/main/client/app/pages/stacks/stack-variable.vue new file mode 100644 index 000000000..a6b922c6f --- /dev/null +++ b/src/main/client/app/pages/stacks/stack-variable.vue @@ -0,0 +1,104 @@ + + + diff --git a/src/main/client/app/pages/stacks/stacks-routes.js b/src/main/client/app/pages/stacks/stacks-routes.js index c103b07f9..c8cacd8b2 100644 --- a/src/main/client/app/pages/stacks/stacks-routes.js +++ b/src/main/client/app/pages/stacks/stacks-routes.js @@ -17,15 +17,6 @@ const stacksRoutes = [ breadcrumb: [{ text: 'Stacks', to: { name: 'stacks' } }, { text: 'Stack' }], }, children: [ - { - path: 'add', - name: 'stack_creation', - component: () => import(/* webpackChunkName: "chunk-stacks" */ '@/pages/stacks/stack-creation.vue'), - meta: { - authorities: ['ROLE_USER'], - breadcrumb: [{ text: 'Modules', to: { name: 'modules' } }, { text: 'Stack creation' }], - }, - }, { path: 'edit', name: 'stack_edition', diff --git a/src/main/client/app/shared/config/bootstrap-vue-config.js b/src/main/client/app/shared/config/bootstrap-vue-config.js index eaa70b42c..7c056d21f 100644 --- a/src/main/client/app/shared/config/bootstrap-vue-config.js +++ b/src/main/client/app/shared/config/bootstrap-vue-config.js @@ -19,6 +19,9 @@ import { } from 'bootstrap-vue'; import { Multiselect } from 'vue-multiselect'; +import VueFormWizard from 'vue-form-wizard'; +import 'vue-form-wizard/dist/vue-form-wizard.min.css'; + export default { init: () => { Vue.use(ButtonPlugin); @@ -38,6 +41,8 @@ export default { Vue.use(NavPlugin); Vue.use(BreadcrumbPlugin); + Vue.use(VueFormWizard); + Vue.component('vue-multiselect', Multiselect); }, }; diff --git a/src/main/resources/templates/new_stack.html b/src/main/resources/templates/new_stack.html deleted file mode 100644 index 4c9e759d2..000000000 --- a/src/main/resources/templates/new_stack.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - Gaia - Edit stack - - - - -
- -
-
- - - - -
- -
- -
-
-
-
- -
-
-
-
-
- -
-
-
- - - -
-
-
- - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/templates/vue_templates/components/stack-vars.vue b/src/main/resources/templates/vue_templates/components/stack-vars.vue deleted file mode 100644 index a6d9b727d..000000000 --- a/src/main/resources/templates/vue_templates/components/stack-vars.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - \ No newline at end of file