From 4699766152d569d911537da8073b33104ba9ace2 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Wed, 23 Oct 2024 05:11:19 +0100 Subject: [PATCH] Refactor --- apps/showcase/doc/forms/DynamicDoc.vue | 8 ++++---- apps/showcase/doc/forms/RegisterDoc.vue | 4 ++-- apps/showcase/doc/forms/SubmitDoc.vue | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/showcase/doc/forms/DynamicDoc.vue b/apps/showcase/doc/forms/DynamicDoc.vue index 488b7ba07..20da5305b 100644 --- a/apps/showcase/doc/forms/DynamicDoc.vue +++ b/apps/showcase/doc/forms/DynamicDoc.vue @@ -43,7 +43,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue'; export default { data() { return { - userNameSchema: z.string().min(1, { message: 'Username is required' }), + userNameSchema: z.string().min(1, { message: 'Username is required.' }), passwordSchema: z .string() .min(3, { message: 'Password must be at least 3 characters long.' }) @@ -66,7 +66,7 @@ export default { label: 'Username', defaultValue: 'PrimeVue', fluid: true, - schema: z.string().min(1, { message: 'Username is required' }) + schema: z.string().min(1, { message: 'Username is required.' }) }, password: { groupId: 'passId_2', @@ -159,7 +159,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue'; export default { data() { return { - userNameSchema: z.string().min(1, { message: 'Username is required' }), + userNameSchema: z.string().min(1, { message: 'Username is required.' }), passwordSchema: z .string() .min(3, { message: 'Password must be at least 3 characters long.' }) @@ -182,7 +182,7 @@ export default { label: 'Username', defaultValue: 'PrimeVue', fluid: true, - schema: z.string().min(1, { message: 'Username is required' }) + schema: z.string().min(1, { message: 'Username is required.' }) }, password: { groupId: 'passId_2', diff --git a/apps/showcase/doc/forms/RegisterDoc.vue b/apps/showcase/doc/forms/RegisterDoc.vue index 3ae6a2496..a755047fe 100644 --- a/apps/showcase/doc/forms/RegisterDoc.vue +++ b/apps/showcase/doc/forms/RegisterDoc.vue @@ -28,7 +28,7 @@ export default { }, resolver: zodResolver( z.object({ - username: z.string().min(1, { message: 'Username is required' }) + username: z.string().min(1, { message: 'Username is required.' }) }) ), code: { @@ -64,7 +64,7 @@ export default { }, resolver: zodResolver( z.object({ - username: z.string().min(1, { message: 'Username is required' }) + username: z.string().min(1, { message: 'Username is required.' }) }) ) }; diff --git a/apps/showcase/doc/forms/SubmitDoc.vue b/apps/showcase/doc/forms/SubmitDoc.vue index 535d790a7..067be3a04 100644 --- a/apps/showcase/doc/forms/SubmitDoc.vue +++ b/apps/showcase/doc/forms/SubmitDoc.vue @@ -35,7 +35,7 @@ export default { }, resolver: zodResolver( z.object({ - username: z.string().min(1, { message: 'Username is required' }), + username: z.string().min(1, { message: 'Username is required.' }), password: z .string() .min(3, { message: 'Password must be at least 3 characters long.' }) @@ -101,7 +101,7 @@ export default { }, resolver: zodResolver( z.object({ - username: z.string().min(1, { message: 'Username is required' }), + username: z.string().min(1, { message: 'Username is required.' }), password: z .string() .min(3, { message: 'Password must be at least 3 characters long.' })