From 56411a45393db7170ff339c4b5234f3ca839ce6b Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 8 Dec 2022 10:09:33 +0100 Subject: [PATCH] 2) REGISTRARSI : A) TRAMITE TELEGRAM B) TRAMITE EMAIL. --- src/common/shared_vuejs.ts | 5 + src/components/CMyElem/CMyElem.ts | 3 +- src/components/CMyElem/CMyElem.vue | 6 +- src/components/CMyPopupEdit/CMyPopupEdit.vue | 1 - src/components/CRegistration/CRegistration.ts | 11 + .../CRegistration/CRegistration.vue | 36 +- src/components/CSignUp/CSignUp.ts | 11 +- src/components/CSignUp/CSignUp.vue | 330 +++++++++++------- src/components/logo/logo.scss | 2 +- src/css/app.scss | 17 +- src/model/GlobalStore.ts | 1 + src/rootgen/admin/confsite/confsite.vue | 10 + src/router/routesAdmin.ts | 2 +- src/statics/lang/it.js | 4 + src/store/globalStore.ts | 1 + 15 files changed, 285 insertions(+), 155 deletions(-) diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index f4ca32b2..175f5f16 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -50,6 +50,7 @@ export const shared_consts = { CHECKTESTENV: 240, BTN_REG: 250, BTN_REG_BYBOT: 255, + REGISTRATION: 258, BTN_LOGIN: 260, FOOTER: 270, }, @@ -1358,6 +1359,10 @@ export const shared_consts = { value: 135, label: 'Check App Running', }, + { + value: 258, + label: 'Registration', + }, { value: 220, label: 'CHART', diff --git a/src/components/CMyElem/CMyElem.ts b/src/components/CMyElem/CMyElem.ts index c64a4ef7..c6811e13 100755 --- a/src/components/CMyElem/CMyElem.ts +++ b/src/components/CMyElem/CMyElem.ts @@ -28,6 +28,7 @@ import { CCheckIfIsLogged } from '@src/components/CCheckIfIsLogged' import { CSelectFontSize } from '@src/components/CSelectFontSize' import { CNotifAtTop } from '@src/components/CNotifAtTop' import { CPresentazione } from '@src/components/CPresentazione' +import { CRegistration } from '@src/components/CRegistration' import { CShareSocial } from '@src/components/CShareSocial' import MixinMetaTags from '@/mixins/mixin-metatags' @@ -45,7 +46,7 @@ export default defineComponent({ CSelectColor, CSelectFontSize, CImgPoster, CCheckIfIsLogged, CStatusReg, CDashboard, CMainView, CNotifAtTop, CPresentazione, - CTitleBanner, CShareSocial, CCheckAppRunning, + CTitleBanner, CShareSocial, CCheckAppRunning, CRegistration, }, emits: ['selElemClick'], props: { diff --git a/src/components/CMyElem/CMyElem.vue b/src/components/CMyElem/CMyElem.vue index 9bed0cb4..7d10d8fd 100755 --- a/src/components/CMyElem/CMyElem.vue +++ b/src/components/CMyElem/CMyElem.vue @@ -439,6 +439,10 @@
CheckAppRunning
+
+
Registrazione
+ +
CDashboard
@@ -480,7 +484,7 @@ Msg di Controllo Verifica Email
-
+
{{ $t('components.authentication.email_verification.link_sent') }}
diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.vue b/src/components/CMyPopupEdit/CMyPopupEdit.vue index b72a588e..29ec638a 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.vue +++ b/src/components/CMyPopupEdit/CMyPopupEdit.vue @@ -779,7 +779,6 @@ col.fieldtype === costanti.FieldType.multiselect_by_server " > - myvalue: {{myvalue}} -
+
- Se non sei ancora Registrato:
+ +
-
- Se non sei ancora Registrato:
+
+ Registrati
diff --git a/src/components/CSignUp/CSignUp.ts b/src/components/CSignUp/CSignUp.ts index 34177378..96184851 100755 --- a/src/components/CSignUp/CSignUp.ts +++ b/src/components/CSignUp/CSignUp.ts @@ -85,6 +85,8 @@ export default defineComponent({ const visubuttBOT = ref(false) const isalreadyReg = ref(false) + const typePassword = ref('password') + const globalStore = useGlobalStore() const site = computed(() => globalStore.site) @@ -275,7 +277,7 @@ export default defineComponent({ if (tools.getAskToVerifyReg()) { if (!signup.username || !signup.profile.teleg_id) { - tools.copyStringToClipboard($q, signup.aportador_solidario, true) + // tools.copyStringToClipboard($q, signup.aportador_solidario, true) visubuttBOT.value = true // window.location.href = tools.getLinkBotTelegram() } @@ -309,6 +311,11 @@ export default defineComponent({ } + function showPassword() { + // + typePassword.value = typePassword.value === 'password' ? 'text' : 'password' + } + created() return { @@ -331,6 +338,8 @@ export default defineComponent({ visubuttBOT, isalreadyReg, site, + showPassword, + typePassword, } }, }) diff --git a/src/components/CSignUp/CSignUp.vue b/src/components/CSignUp/CSignUp.vue index 0d459559..332ca53a 100755 --- a/src/components/CSignUp/CSignUp.vue +++ b/src/components/CSignUp/CSignUp.vue @@ -1,90 +1,119 @@