diff --git a/config/envparser.js b/config/envparser.js index 68e5393..a53d29e 100644 --- a/config/envparser.js +++ b/config/envparser.js @@ -12,7 +12,7 @@ switch (process.env.NODE_ENV) { path = `.env` } -console.log("PATH", path) +// console.log("PATH", path) const parsedEnv = DotEnv.config({ path }).parsed; module.exports = function () { diff --git a/package-lock.json b/package-lock.json index 3a6e189..fec10dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10537,6 +10537,19 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" }, + "graphql": { + "version": "0.13.2", + "resolved": "http://registry.npmjs.org/graphql/-/graphql-0.13.2.tgz", + "integrity": "sha512-QZ5BL8ZO/B20VA8APauGBg3GyEgZ19eduvpLWoq5x7gMmWnHoy8rlQWPLmWgFvo1yNgjSEFMesmS4R6pPr7xog==", + "requires": { + "iterall": "1.2.2" + } + }, + "graphql-tag": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.10.0.tgz", + "integrity": "sha512-9FD6cw976TLLf9WYIUPCaaTpniawIjHWZSwIRZSjrfufJamcXbVVYfN2TWvJYbw0Xf2JjYbl1/f2+wDnBVw3/w==" + }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -11883,6 +11896,11 @@ "handlebars": "4.0.12" } }, + "iterall": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.2.2.tgz", + "integrity": "sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==" + }, "javascript-stringify": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-1.6.0.tgz", diff --git a/src/i18n.js b/src/i18n.js index 6231f82..c7fb400 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -12,12 +12,23 @@ const messages = { home: 'Principale', SignUp: 'Registrazione', SignIn: 'Login', + vreg: 'Verifica Reg', Test: 'Test', }, components: { authentication:{ login: { facebook: 'Facebook' + }, + email_verification: { + title: 'Inizia la tua registrazione', + introduce_email: 'inserisci la tua email', + email: 'Email', + invalid_email: 'La tua email è invalida', + verify_email: 'Verifica la tua email', + go_login: 'Torna al Login', + incorrect_input: 'Inserimento incorretto.', + link_sent: 'Per confermare la Registrazione, leggi la tua casella di posta e Clicca su "Verifica Email".\nSe non la trovi, cerca nella cartella Spam.' } } }, @@ -85,12 +96,23 @@ const messages = { home: 'Dashboard One', SignUp: 'SignUp', SignIn: 'SignIn', + vreg: 'Verify Reg', Test: 'Test', }, components: { authentication:{ login: { facebook: 'Facebook' + }, + email_verification: { + title: 'Begin your registration', + introduce_email: 'Enter your email', + email: 'Email', + invalid_email: 'Your email is invalid', + verify_email: 'Verify your email', + go_login: 'Back to Login', + incorrect_input: 'Incorrect input.', + link_sent: 'To confirm the Registration, read your mailbox and click on "Verify email".\nIf you can not find it check your junk mail or spam.' } } }, diff --git a/src/layouts/drawer/drawer.vue b/src/layouts/drawer/drawer.vue index bf4fc15..fcfb5af 100644 --- a/src/layouts/drawer/drawer.vue +++ b/src/layouts/drawer/drawer.vue @@ -1,6 +1,5 @@ - - - - diff --git a/src/views/login/vreg/vreg.css b/src/views/login/vreg/vreg.css new file mode 100644 index 0000000..227f489 --- /dev/null +++ b/src/views/login/vreg/vreg.css @@ -0,0 +1,5 @@ +.mypanel { + padding:10px; + margin: 10px; + +} diff --git a/src/views/login/vreg/vreg.ts b/src/views/login/vreg/vreg.ts new file mode 100644 index 0000000..dff860d --- /dev/null +++ b/src/views/login/vreg/vreg.ts @@ -0,0 +1,62 @@ +import Vue from 'vue' +import { Component } from 'vue-property-decorator' // Questo va messo SEMPRE ! (ed anche $t ....) altrimenti non carica ! + +import { UserStore } from '@store' + +import { serv_constants } from '../../../store/Modules/serv_constants' + +import './vreg.css' +import { ILinkReg } from '../../../model/other' + +@Component({ + +}) +export default class Vreg extends Vue { + public risultato: string = '---' + public riscode: number = 0 + $t: any + + constructor() { + super() + console.log('Vreg constructor...') + } + + created() { + console.log('vreg created') + this.load() + } + + get myrisultato() { + return this.risultato + } + + get giaverificato() { + return this.riscode !== serv_constants.RIS_CODE_EMAIL_VERIFIED + } + + get verificatook() { + return this.riscode === serv_constants.RIS_CODE_EMAIL_VERIFIED + } + + load() { + console.log('load') + let param: ILinkReg + param = { idlink: this.$route.query.idlink.toString() } + console.log('idlink = ', param) + UserStore.actions.vreg(param).then((ris) => { + this.riscode = ris.code + this.risultato = ris.msg + console.log('RIS = ') + console.log(ris) + + if (this.verificatook) { + setTimeout(() => { + this.$router.replace('/') + }, 3000) + } + + }).catch((err) => { + console.log('ERR = ' + err) + }) + } +} diff --git a/src/views/login/vreg/vreg.vue b/src/views/login/vreg/vreg.vue new file mode 100644 index 0000000..b471cee --- /dev/null +++ b/src/views/login/vreg/vreg.vue @@ -0,0 +1,36 @@ + + +