Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment)

This commit is contained in:
Dillon Ngo
2026-06-21 15:53:07 +08:00
parent 7a7c096aba
commit 01c53c20df
6 changed files with 10 additions and 6 deletions
@@ -220,7 +220,7 @@ const rules = computed(() => ({
},
password_confirmation: {
required: requiredIf(() => step.value === 2),
sameAs: sameAs(parameters.password)
sameAs: sameAs(parameters.password, 'password')
},
identification_no: {
required: requiredIf(() => step.value === 1)
@@ -112,7 +112,7 @@ const rules = computed(() => ({
password: { required },
password_confirmation: {
required,
sameAs: sameAs(parameters.password)
sameAs: sameAs(parameters.password, 'password')
}
}
}));
@@ -108,7 +108,7 @@ const rules = computed(() => ({
password: { required },
password_confirmation: {
required,
sameAs: sameAs(parameters.password)
sameAs: sameAs(parameters.password, 'password')
},
}
}));
@@ -308,7 +308,7 @@ const rules = computed(() => ({
},
password_confirmation: {
required: requiredIf(() => step.value === 2),
sameAs: sameAs(parameters.password)
sameAs: sameAs(parameters.password, 'password')
},
identification_no: {
required: requiredIf(() => step.value === 1)
@@ -40,7 +40,11 @@ const getErrorMessage = (error: ValidationErrorItem): string => {
if (validatorName === 'minLength') return `${errorMessages.minLength} ${params.min} characters`;
if (validatorName === 'maxLength') return `${errorMessages.maxLength} ${params.max} characters`;
if (validatorName === 'sameAs') return `${errorMessages.sameAs} ${params.eq} field`;
if (validatorName === 'sameAs' || validatorName === 'sameAsPassword') {
let fieldName = params.otherName || params.eq || 'password';
if (fieldName === 'password') fieldName = 'password';
return `${errorMessages.sameAs} ${fieldName} field`;
}
if (validatorName === 'minValue') return `${errorMessages.minValue} ${params.min}`;
if (validatorName === 'maxValue') return `${errorMessages.maxValue} ${params.max}`;
@@ -94,7 +94,7 @@ const rules = computed(() => ({
password: { required, minLength: minLength(6) },
password_confirmation: {
required,
sameAsPassword: sameAs(parameters.value.password)
sameAs: sameAs(parameters.value.password, 'password')
}
}
}));