From 549a8b359319b32217ab348ce226e04f39f1596f Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 7 Jan 2022 16:00:34 -0500 Subject: [PATCH] CSR-254: create form-test page and begin testing validation --- package.json | 1 + src/layouts/form-test/form-test.vue | 162 ++++++++++++++++++ src/router/index.js | 6 + .../list-button-horizontal.vue | 60 ++++++- src/ux-components/list-card/list-card.vue | 104 +++++++++-- 5 files changed, 317 insertions(+), 16 deletions(-) create mode 100644 src/layouts/form-test/form-test.vue diff --git a/package.json b/package.json index 58b8837dd..50a9b5760 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "core-js": "^3.6.5", "http-status-codes": "^2.1.4", "jest-junit": "^13.0.0", + "vee-validate": "^4.5.7", "vue": "^3.0.0", "vue-router": "^4.0.11", "vuex": "^4.0.2", diff --git a/src/layouts/form-test/form-test.vue b/src/layouts/form-test/form-test.vue new file mode 100644 index 000000000..96bc9bd33 --- /dev/null +++ b/src/layouts/form-test/form-test.vue @@ -0,0 +1,162 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index c135d60c1..2f4f0daad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,6 +3,7 @@ import { storeActions } from "@/constants/store-actions.js"; import { lazyLoadComponent } from "@/router/dynamic-routing/component-loader.js"; import { routingTable } from "@/router/router-constants/routing-table.js"; import ComponentTest from "@/layouts/component-test/component-test.vue"; +import FormTest from "@/layouts/form-test/form-test.vue"; import NotFound from "@/layouts/not-found/not-found.vue"; import store from "@/store"; @@ -17,6 +18,11 @@ const routes = [ name: "ComponentTest", component: ComponentTest, }, + { + path: "/form-test", // This is a temporary route for testing. + name: "FormTest", + component: FormTest, + }, { path: "/", beforeEnter(to, from, next) { diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 97642d2c1..ef5632b5a 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -2,16 +2,46 @@ diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 68b1c80b0..6d06651f4 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -1,24 +1,61 @@