This commit is contained in:
Nadar
2026-03-17 13:24:22 +03:00
commit 82e5ac9d81
554 changed files with 29637 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('page:start', () => {
clearStaticError()
})
})

View File

@@ -0,0 +1,24 @@
import { defineRule } from 'vee-validate'
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin((nuxtApp) => {
const { t } = nuxtApp.$i18n
defineRule('password', (value) => {
if (value.length < 8)
return t('validation.password')
const uppercaseRegex = /[A-Z]/
const digitRegex = /\d/
const specialCharRegex = /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/
if (
!uppercaseRegex.test(value)
|| !digitRegex.test(value)
|| !specialCharRegex.test(value)
)
return t('validation.password')
return true
})
})

View File

@@ -0,0 +1,7 @@
import { createVfm } from 'vue-final-modal'
export default defineNuxtPlugin((nuxtApp) => {
const vfm = createVfm() as any
nuxtApp.vueApp.use(vfm)
})