PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
|
||||
import { ISignupOptions } from 'model'
|
||||
import type { ISignupOptions } from 'model'
|
||||
|
||||
import { Logo } from '@/components/logo'
|
||||
import { Logo } from '@src/components/logo'
|
||||
|
||||
// import 'vue-country-code/dist/vue-country-code.css'
|
||||
|
||||
@@ -11,14 +11,14 @@ import { CCopyBtn } from '../CCopyBtn'
|
||||
import { CRegistration } from '../CRegistration'
|
||||
import { PagePolicy } from '../PagePolicy'
|
||||
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
|
||||
import { CSignIn } from '@/components/CSignIn'
|
||||
import { CSignIn } from '@src/components/CSignIn'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { DefaultProfile, useUserStore } from '@store/UserStore'
|
||||
import useValidate from '@vuelidate/core'
|
||||
import useVuelidate from '@vuelidate/core'
|
||||
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
|
||||
import { minLength, required, sameAs } from '@vuelidate/validators'
|
||||
|
||||
@@ -27,7 +27,7 @@ import { complexity, complexityUser, registereduser, aportadorexist } from '../.
|
||||
|
||||
// import 'vue3-tel-input/dist/vue3-tel-input.css'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
|
||||
// import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar'
|
||||
@@ -153,7 +153,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
const validations: any = computed(() => {
|
||||
let valid: any = {
|
||||
const valid: any = {
|
||||
repeatPassword: {
|
||||
required,
|
||||
repeatPassword: sameAs(signup.password),
|
||||
@@ -321,15 +321,15 @@ export default defineComponent({
|
||||
|
||||
console.log('$route.params', $route.params)
|
||||
|
||||
ap_iniziale.value = !!$route.params.invited ? $route.params.invited.toString() : ''
|
||||
ap_iniziale.value = $route.params.invited ? $route.params.invited.toString() : ''
|
||||
|
||||
signup.aportador_solidario = !!$route.params.invited ? $route.params.invited.toString() : ''
|
||||
signup.username = !!$route.params.usernameteleg ? $route.params.usernameteleg.toString() : ''
|
||||
signup.regexpire = !!$route.params.regexpire ? $route.params.regexpire.toString() : props.regexpire
|
||||
signup.aportador_solidario = $route.params.invited ? $route.params.invited.toString() : ''
|
||||
signup.username = $route.params.usernameteleg ? $route.params.usernameteleg.toString() : ''
|
||||
signup.regexpire = $route.params.regexpire ? $route.params.regexpire.toString() : props.regexpire
|
||||
if (signup.username)
|
||||
isalreadyReg.value = await tools.registeredusername(signup.username)
|
||||
signup.profile.username_telegram = signup.username
|
||||
if (!!$route.params.idteleg) {
|
||||
if ($route.params.idteleg) {
|
||||
signup.profile.teleg_id = $route.params.idteleg ? parseInt($route.params.idteleg.toString(), 10) : 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user