From 29f82af241f1811d92b35d9730eb4f31defe87be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 31 Mar 2021 15:28:30 +0300 Subject: [PATCH] Vuelidate form added --- package.json | 2 + src/assets/menu/menu.json | 11 + src/router/index.js | 5 + src/views/validation/VuelidateFormDemo.vue | 563 +++++++++++++++++++++ 4 files changed, 581 insertions(+) create mode 100644 src/views/validation/VuelidateFormDemo.vue diff --git a/package.json b/package.json index 9a5666848..cf2cb4459 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,8 @@ "@vue/cli-plugin-router": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", + "@vuelidate/core": "^2.0.0-alpha.14", + "@vuelidate/validators": "^2.0.0-alpha.12", "axios": "^0.19.0", "babel-eslint": "^10.1.0", "chart.js": "2.7.3", diff --git a/src/assets/menu/menu.json b/src/assets/menu/menu.json index d20d07355..dfca0bc66 100644 --- a/src/assets/menu/menu.json +++ b/src/assets/menu/menu.json @@ -749,6 +749,17 @@ } ] }, + { + "name": "Validation", + "meta": ["validation"], + "children": [ + { + "name": "Vuelidate", + "to": "/vuelidate", + "badge": "New" + } + ] + }, { "name": "Misc", "meta": ["misc"], diff --git a/src/router/index.js b/src/router/index.js index c5b7aa18a..e2d828d0b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -815,6 +815,11 @@ const routes = [ path: '/galleria/advanced', name: 'galleriaadvvanced', component: () => import('../views/galleria/GalleriaAdvancedDemo.vue') + }, + { + path: '/vuelidate', + name: 'vuelidateform', + component: () => import('../views/validation/VuelidateFormDemo.vue') } ]; diff --git a/src/views/validation/VuelidateFormDemo.vue b/src/views/validation/VuelidateFormDemo.vue new file mode 100644 index 000000000..fe1e8c861 --- /dev/null +++ b/src/views/validation/VuelidateFormDemo.vue @@ -0,0 +1,563 @@ + + + + + \ No newline at end of file