- Sistemato INVITI alla App
- Completamento Profilo - Registrazione tramite Invito, senza richiedere conferma email.
@@ -1,12 +1,14 @@
|
|||||||
VITE_APP_ID="18"
|
VITE_APP_ID="13"
|
||||||
VITE_APP_URL="https://localhost"
|
VITE_APP_URL="https://localhost"
|
||||||
VITE_MONGODB_HOST="https://localhost:3000"
|
VITE_MONGODB_HOST="https://localhost:3000"
|
||||||
VITE_LOGO_REG='gruppomacro-logo-full.png'
|
DEBUG_VITE_APP_URL="https://192.168.8.182"
|
||||||
|
DEBUG_VITE_MONGODB_HOST="https://192.168.8.182:3000"
|
||||||
|
VITE_LOGO_REG='riso-logo-full.png'
|
||||||
VITE_PUBLICKEY_PUSH='BDncvMiUZmjaCG2Kr1V9N0_33hOG-AuNSbHSvL24y2dzBiUjAxKm02emx5SeJvz2IGmtRf6YqCgopeQwCwUmZw8'
|
VITE_PUBLICKEY_PUSH='BDncvMiUZmjaCG2Kr1V9N0_33hOG-AuNSbHSvL24y2dzBiUjAxKm02emx5SeJvz2IGmtRf6YqCgopeQwCwUmZw8'
|
||||||
VITE_DEBUG="1"
|
VITE_DEBUG="1"
|
||||||
VITE_VUE_APP_ISTEST=0
|
VITE_VUE_APP_ISTEST=0
|
||||||
VITE_VUE_APP_INLOCALE=1
|
VITE_VUE_APP_INLOCALE=1
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="myprojplanet_vite"
|
||||||
DIRECTORY_SERVER="freeplanet_serverside"
|
DIRECTORY_SERVER="freeplanet_serverside"
|
||||||
SERVERDIR_WEBSITE=""
|
SERVERDIR_WEBSITE=""
|
||||||
SERVERPW_WEBSITE=""
|
SERVERPW_WEBSITE=""
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
VITE_APP_ID="18"
|
VITE_APP_ID="13"
|
||||||
VITE_APP_URL="https://gruppomacro.app"
|
VITE_APP_URL="https://riso.app"
|
||||||
VITE_MONGODB_HOST="https://api.gruppomacro.app"
|
VITE_MONGODB_HOST="https://api.riso.app"
|
||||||
VITE_LOGO_REG='gruppomacro-logo-full.png'
|
VITE_LOGO_REG='riso-logo-full.png'
|
||||||
VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc"
|
VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs"
|
||||||
VITE_DEBUG="0"
|
VITE_DEBUG="0"
|
||||||
VITE_VUE_APP_ISTEST="0"
|
VITE_VUE_APP_ISTEST="0"
|
||||||
DIRECTORY_LOCAL="myprojplanet_vite"
|
DIRECTORY_LOCAL=myprojplanet_vite
|
||||||
DIRECTORY_SERVER="/var/www/nodejs_piuchebuono_server"
|
DIRECTORY_SERVER=/var/www/nodejs_riso_server
|
||||||
SERVERDIR_WEBSITE="/var/www/gruppomacro.app"
|
SERVERDIR_WEBSITE="/var/www/riso.app"
|
||||||
SERVERPW_WEBSITE="pwdadmin@1AOK"
|
SERVERPW_WEBSITE="pwdadmin@1AOK"
|
||||||
PORT_SPA="8089"
|
|
||||||
PORT_PWA="8099"
|
|
||||||
14
package.json
@@ -1,28 +1,28 @@
|
|||||||
{
|
{
|
||||||
"name": "gruppomacro",
|
"name": "riso",
|
||||||
"version": "1.2.78",
|
"version": "1.2.78",
|
||||||
"productName": "Gruppo Macro",
|
"productName": "Riso 💚 - Rete Italiana Scambi Orizzontali",
|
||||||
"description": "Il Gruppo Editoriale Macro, attivo dal 1987, è leader europeo nella pubblicazione di libri per il benessere e la consapevolezza. Con oltre 1.500 titoli, promuove una visione armonica del mondo, offrendo opere di autori internazionali e italiani come Gregg Braden, Bruce Lipton, Joe Dispenza, Louise Hay, Eckhart Tolle e molti altri. Scopri un'editoria che abbraccia il corpo, la mente, lo spirito e l'ecologia.",
|
"description": "Progetto RISO (Rete Italiana Scambi Orizzontali) promuove una rete di comunità locali che favoriscono scambi di beni, servizi e ospitalità. Con l'App RISO, sviluppata per facilitare il baratto, il dono e l'uso di monete alternative come i RIS, il progetto crea legami autentici basati sulla fiducia e sostenibilità. Partecipa agli scambi e costruisci una comunità più consapevole e autosufficiente.",
|
||||||
"author": "Surya",
|
"author": "Surya",
|
||||||
"private": true,
|
"private": true,
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "PORT=8089 APP_VERSION='1.2.78' quasar dev",
|
"dev": "APP_VERSION='1.2.78' PORT=8084 quasar dev",
|
||||||
"dev_noCheck": "SKIP_TSC=true quasar dev",
|
"dev_noCheck": "SKIP_TSC=true quasar dev",
|
||||||
"build": "quasar build",
|
"build": "quasar build",
|
||||||
"buildpwa": "NODE_ENV=production APP_VERSION='1.2.78' quasar build -m pwa",
|
"buildpwa": "NODE_ENV=production APP_VERSION='1.2.78' quasar build -m pwa",
|
||||||
"buildpwatest": "NODE_ENV=production APP_VERSION='1.2.78' quasar build -m pwa",
|
"buildpwatest": "NODE_ENV=production APP_VERSION='1.2.78' quasar build -m pwa",
|
||||||
"type-check": "vue-tsc --noEmit",
|
"type-check": "vue-tsc --noEmit",
|
||||||
"type-check:watch": "vue-tsc --noEmit --watch",
|
"type-check:watch": "vue-tsc --noEmit --watch",
|
||||||
"buildspa": "APP_VERSION='1.2.78' quasar build -m spa",
|
"buildspa": "quasar build -m spa",
|
||||||
"lint": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\"",
|
"lint": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\"",
|
||||||
"lintfile": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./ > file.out.txt",
|
"lintfile": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./ > file.out.txt",
|
||||||
"lintfileNoJS": "eslint --ext .ts,.vue --ignore-path .gitignore ./ > file.out.txt",
|
"lintfileNoJS": "eslint --ext .ts,.vue --ignore-path .gitignore ./ > file.out.txt",
|
||||||
"fix": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\" --ignore-pattern .gitignore ./ --fix > file.out.txt",
|
"fix": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\" --ignore-pattern .gitignore ./ --fix > file.out.txt",
|
||||||
"pwa": "NODE_ENV=development PORT=8099 APP_VERSION='1.2.78' quasar dev -m pwa",
|
"pwa": "NODE_ENV=development PORT=8094 APP_VERSION='1.2.78' quasar dev -m pwa",
|
||||||
"spa": "NODE_ENV=development PORT=8089 APP_VERSION='1.2.78' quasar dev",
|
"spa": "NODE_ENV=development PORT=8084 APP_VERSION='1.2.78' quasar dev",
|
||||||
"debug": "quasar dev --mode debug",
|
"debug": "quasar dev --mode debug",
|
||||||
"test": "echo \"No test specified\" && exit 0",
|
"test": "echo \"No test specified\" && exit 0",
|
||||||
"generate-sw": "workbox generateSW workbox-config.js",
|
"generate-sw": "workbox generateSW workbox-config.js",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 14 KiB |
BIN
public/images/cerchio_riso.jpg
Normal file
|
After Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 81 KiB |
BIN
public/images/hero/cerchio_riso.jpg
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
public/images/hero/mercatino_riso.jpg
Normal file
|
After Width: | Height: | Size: 237 KiB |
BIN
public/images/hero/riso_home_app.png
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
public/images/layers-2x.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/images/layers.png
Normal file
|
After Width: | Height: | Size: 696 B |
BIN
public/images/logo.png
Normal file
|
After Width: | Height: | Size: 424 KiB |
BIN
public/images/marker-icon-2x.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/images/marker-icon.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 30 KiB |
BIN
public/images/riso-android-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
public/images/riso-android-icon-192x192.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/images/riso-android-icon-36x36.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
public/images/riso-android-icon-384x384.png
Normal file
|
After Width: | Height: | Size: 202 KiB |
BIN
public/images/riso-android-icon-48x48.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
public/images/riso-android-icon-512x512.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
public/images/riso-android-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/images/riso-android-icon-96x96.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/riso-apple-icon-114x114.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/riso-apple-icon-120x120.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
public/images/riso-apple-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
public/images/riso-apple-icon-152x152.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
public/images/riso-apple-icon-180x180.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/images/riso-apple-icon-57x57.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
public/images/riso-apple-icon-60x60.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
public/images/riso-apple-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/images/riso-apple-icon-76x76.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/riso-apple-icon-precomposed.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/images/riso-apple-icon.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/images/riso-logo-full.png
Normal file
|
After Width: | Height: | Size: 424 KiB |
BIN
public/images/riso_home.png
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
public/images/riso_home_dark.png
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
public/images/riso_services.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
@@ -1,2 +0,0 @@
|
|||||||
!function(){'use strict';try{self['workbox:sw:6.1.0']&&_()}catch(t){}const t={backgroundSync:'background-sync',broadcastUpdate:'broadcast-update',cacheableResponse:'cacheable-response',core:'core',expiration:'expiration',googleAnalytics:'offline-ga',navigationPreload:'navigation-preload',precaching:'precaching',rangeRequests:'range-requests',routing:'routing',strategies:'strategies',streams:'streams',recipes:'recipes'};self.workbox=new class{constructor(){return this.v={},this.Pt={debug:'localhost'===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.$t=this.Pt.debug?'dev':'prod',this.jt=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule('workbox-'+o),e[s]}})}setConfig(t={}){if(this.jt)throw new Error('Config must be set before accessing workbox.* modules');Object.assign(this.Pt,t),this.$t=this.Pt.debug?'dev':'prod'}loadModule(t){const e=this.St(t);try{importScripts(e),this.jt=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}St(t){if(this.Pt.modulePathCb)return this.Pt.modulePathCb(t,this.Pt.debug);let e=['https://storage.googleapis.com/workbox-cdn/releases/6.1.0'];const s=`${t}.${this.$t}.js`,o=this.Pt.modulePathPrefix;return o&&(e=o.split('/'),''===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join('/')}}}();
|
|
||||||
//# sourceMappingURL=workbox-sw.js.map
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
!function(){"use strict";try{self["workbox:sw:5.1.4"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};self.workbox=new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.s=this.t.debug?"dev":"prod",this.o=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule("workbox-"+o),e[s]}})}setConfig(t={}){if(this.o)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.s=this.t.debug?"dev":"prod"}loadModule(t){const e=this.i(t);try{importScripts(e),this.o=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}i(t){if(this.t.modulePathCb)return this.t.modulePathCb(t,this.t.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/5.1.4"];const s=`${t}.${this.s}.js`,o=this.t.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}();
|
|
||||||
//# sourceMappingURL=workbox-sw.js.map
|
|
||||||
BIN
public/myicons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/myicons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/myicons/favicon-96x96.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -1,2 +1,2 @@
|
|||||||
!function(){"use strict";try{self["workbox:sw:5.1.4"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};self.workbox=new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.s=this.t.debug?"dev":"prod",this.o=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule("workbox-"+o),e[s]}})}setConfig(t={}){if(this.o)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.s=this.t.debug?"dev":"prod"}loadModule(t){const e=this.i(t);try{importScripts(e),this.o=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}i(t){if(this.t.modulePathCb)return this.t.modulePathCb(t,this.t.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/5.1.4"];const s=`${t}.${this.s}.js`,o=this.t.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}();
|
!function(){"use strict";try{self["workbox:sw:7.3.0"]&&_()}catch(t){}const t={backgroundSync:"background-sync",broadcastUpdate:"broadcast-update",cacheableResponse:"cacheable-response",core:"core",expiration:"expiration",googleAnalytics:"offline-ga",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams",recipes:"recipes"};self.workbox=new class{constructor(){return this.v={},this.Pt={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.$t=this.Pt.debug?"dev":"prod",this.jt=!1,new Proxy(this,{get(e,s){if(e[s])return e[s];const o=t[s];return o&&e.loadModule(`workbox-${o}`),e[s]}})}setConfig(t={}){if(this.jt)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.Pt,t),this.$t=this.Pt.debug?"dev":"prod"}loadModule(t){const e=this.St(t);try{importScripts(e),this.jt=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}St(t){if(this.Pt.modulePathCb)return this.Pt.modulePathCb(t,this.Pt.debug);let e=["https://storage.googleapis.com/workbox-cdn/releases/7.3.0"];const s=`${t}.${this.$t}.js`,o=this.Pt.modulePathPrefix;return o&&(e=o.split("/"),""===e[e.length-1]&&e.splice(e.length-1,1)),e.push(s),e.join("/")}}}();
|
||||||
//# sourceMappingURL=workbox-sw.js.map
|
//# sourceMappingURL=workbox-sw.js.map
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ const msg_website_it = {
|
|||||||
myservice2: 'myservice2',
|
myservice2: 'myservice2',
|
||||||
myhosps2: 'myhosps2',
|
myhosps2: 'myhosps2',
|
||||||
mygood2: 'mygood2',
|
mygood2: 'mygood2',
|
||||||
|
InvitoReg: 'Invito',
|
||||||
fundraising: 'Sostieni il Progetto',
|
fundraising: 'Sostieni il Progetto',
|
||||||
notifs: 'Configura le Notifiche',
|
notifs: 'Configura le Notifiche',
|
||||||
unsubscribe: 'Disiscriviti',
|
unsubscribe: 'Disiscriviti',
|
||||||
|
|||||||
@@ -52,7 +52,6 @@
|
|||||||
"eslint-plugin-n": "^17.19.0",
|
"eslint-plugin-n": "^17.19.0",
|
||||||
"eslint-plugin-quasar": "^1.1.0",
|
"eslint-plugin-quasar": "^1.1.0",
|
||||||
"gsap": "^3.13.0",
|
"gsap": "^3.13.0",
|
||||||
"html2pdf.js": "^0.10.3",
|
|
||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"jsbarcode": "^3.12.1",
|
"jsbarcode": "^3.12.1",
|
||||||
|
|||||||
@@ -134,17 +134,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: true,
|
inmenu: true,
|
||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
active: site.confpages && site.confpages.showProfile,
|
|
||||||
order: 120,
|
|
||||||
path: '/editprofile',
|
|
||||||
materialIcon: 'fas fa-user',
|
|
||||||
name: 'pages.profile3',
|
|
||||||
component: () => import('@src/views/user/editprofile/editprofile.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: false,
|
|
||||||
infooter: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.showiscrittiMenu,
|
active: site.confpages && site.confpages.showiscrittiMenu,
|
||||||
order: 130,
|
order: 130,
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
TERMINA DI LAVORARE SU riso.app: (Sovrascrivo!)
|
TERMINA DI LAVORARE SU gruppomacro.app: (Sovrascrivo!)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Gruppo Macro",
|
"name": "Riso",
|
||||||
"short_name": "GruppoMacro",
|
"short_name": "Riso",
|
||||||
"description": "",
|
"description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"background_color": "#fff",
|
"background_color": "#fff",
|
||||||
@@ -11,17 +11,47 @@
|
|||||||
"start_url": "/?homescreen=1",
|
"start_url": "/?homescreen=1",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/images/gm-android-icon-512x512.png",
|
"src": "/images/riso-android-icon-512x512.png",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/images/gm-android-icon-192x192.png",
|
"src": "/images/riso-android-icon-384x384.png",
|
||||||
|
"sizes": "384x384",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-android-icon-192x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/images/gm-apple-touch-icon.png",
|
"src": "/images/riso-android-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-android-icon-96x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-apple-icon-120x120.png",
|
||||||
|
"sizes": "120x120",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-apple-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-apple-icon-152x152.png",
|
||||||
|
"sizes": "152x152",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/riso-apple-icon-180x180.png",
|
||||||
"sizes": "180x180",
|
"sizes": "180x180",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export default ({ router }) => {
|
|||||||
'/signin',
|
'/signin',
|
||||||
'/signup',
|
'/signup',
|
||||||
'/registrati',
|
'/registrati',
|
||||||
|
'/savepage',
|
||||||
];
|
];
|
||||||
if (ignoredPaths.includes(to.path)) {
|
if (ignoredPaths.includes(to.path)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
281
src/components/CCheckIfIsLogged/CCheckIfIsLogged.scss
Executable file → Normal file
@@ -1,3 +1,284 @@
|
|||||||
|
.check-login-wrapper {
|
||||||
|
padding: 1.5rem;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-cards-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-card {
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 2rem;
|
||||||
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Card principale di login
|
||||||
|
.main-card {
|
||||||
|
background: linear-gradient(135deg, #6b8e23 0%, #556b2f 100%);
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.card-icon-wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
|
||||||
|
.card-icon {
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
color: white;
|
||||||
|
animation: pulse 2s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0 0 1rem 0;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 0;
|
||||||
|
opacity: 0.95;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-actions {
|
||||||
|
.login-btn {
|
||||||
|
padding: 0.75rem 2.5rem;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
background: white;
|
||||||
|
color: #6b8e23;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stile per le card inline (Telegram e Aiuto)
|
||||||
|
.card-content-inline {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
|
||||||
|
.telegram-info,
|
||||||
|
.help-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.telegram-icon,
|
||||||
|
.help-icon {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-text,
|
||||||
|
.help-text {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
|
||||||
|
.telegram-title,
|
||||||
|
.help-title {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-subtitle,
|
||||||
|
.help-subtitle {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-btn,
|
||||||
|
.help-btn {
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 0.6rem 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Card Telegram
|
||||||
|
.telegram-card {
|
||||||
|
.telegram-icon {
|
||||||
|
color: #0088cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-btn {
|
||||||
|
background: #0088cc;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #006699;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Card Aiuto
|
||||||
|
.help-card {
|
||||||
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
||||||
|
|
||||||
|
.help-icon {
|
||||||
|
color: #6b8e23;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-btn {
|
||||||
|
border: 2px solid #6b8e23;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #6b8e23;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Animazioni
|
||||||
|
@keyframes pulse {
|
||||||
|
0%, 100% {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Responsive
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.check-login-wrapper {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-cards-container {
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-card {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-card {
|
||||||
|
.card-content {
|
||||||
|
.card-title {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-actions {
|
||||||
|
.login-btn {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content-inline {
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.telegram-info,
|
||||||
|
.help-info {
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-btn,
|
||||||
|
.help-btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.main-card {
|
||||||
|
.card-content {
|
||||||
|
.card-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content-inline {
|
||||||
|
.telegram-text,
|
||||||
|
.help-text {
|
||||||
|
.telegram-title,
|
||||||
|
.help-title {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-subtitle,
|
||||||
|
.help-subtitle {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dark mode support
|
||||||
|
body.body--dark {
|
||||||
|
.login-card {
|
||||||
|
background: rgba(30, 30, 30, 0.9);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content-inline {
|
||||||
|
.telegram-text,
|
||||||
|
.help-text {
|
||||||
|
.telegram-title,
|
||||||
|
.help-title {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.telegram-subtitle,
|
||||||
|
.help-subtitle {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-card {
|
||||||
|
background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#logoimg {
|
#logoimg {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|||||||
130
src/components/CCheckIfIsLogged/CCheckIfIsLogged.vue
Executable file → Normal file
@@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="showalways || (!showalways && !isLogged)">
|
<div v-if="showalways || (!showalways && !isLogged)" class="check-login-wrapper">
|
||||||
<div class="q-pa-md q-gutter-sm">
|
|
||||||
<div class=" text-center">
|
|
||||||
<transition
|
<transition
|
||||||
name="fade"
|
name="fade"
|
||||||
mode="out-in"
|
mode="out-in"
|
||||||
@@ -9,80 +7,86 @@
|
|||||||
enter-active-class="animazione fadeIn"
|
enter-active-class="animazione fadeIn"
|
||||||
leave-active-class="animazione fadeOut"
|
leave-active-class="animazione fadeOut"
|
||||||
>
|
>
|
||||||
<q-banner
|
<div class="login-cards-container">
|
||||||
:key="1"
|
<!-- Card principale di login -->
|
||||||
rounded
|
<div class="login-card main-card">
|
||||||
class="text-white bg-red"
|
<div class="card-icon-wrapper">
|
||||||
color="primary q-title"
|
<q-icon name="fas fa-sign-in-alt" size="48px" class="card-icon" />
|
||||||
style="text-align: center"
|
|
||||||
>
|
|
||||||
<template v-slot:avatar>
|
|
||||||
<q-icon :key="2" name="fas fa-sign-in-alt" color="white" />
|
|
||||||
</template>
|
|
||||||
<div :key="3">
|
|
||||||
Accedi con le tue credenziali per utilizzare la APP e per unirti
|
|
||||||
al Circuito di scambio RIS del tuo territorio
|
|
||||||
</div>
|
|
||||||
<template v-slot:action>
|
|
||||||
<div>
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
color="white"
|
|
||||||
@click="tools.openrighttoolbar()"
|
|
||||||
>{{ t('login.enter') }}
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--<CRegistration />-->
|
<div class="card-content">
|
||||||
</template>
|
<h3 class="card-title">Benvenuto su RISO</h3>
|
||||||
</q-banner>
|
<p class="card-description">
|
||||||
</transition>
|
Accedi con le tue credenziali per utilizzare la APP e per unirti
|
||||||
<q-separator inset />
|
al Circuito di scambio RIS del tuo territorio
|
||||||
<br>
|
</p>
|
||||||
<q-banner
|
|
||||||
v-if="false"
|
|
||||||
rounded
|
|
||||||
dense
|
|
||||||
size="lg"
|
|
||||||
class="shadow-5"
|
|
||||||
color="primary q-title"
|
|
||||||
style="text-align: center"
|
|
||||||
>
|
|
||||||
<div class="mybanner" :key="3">
|
|
||||||
👉🏻 Entra nel canale Telegram per unirti al gruppo Provinciale:
|
|
||||||
</div>
|
</div>
|
||||||
<template v-slot:action>
|
|
||||||
|
<div class="card-actions">
|
||||||
<q-btn
|
<q-btn
|
||||||
type="a"
|
unelevated
|
||||||
rounded
|
rounded
|
||||||
|
size="lg"
|
||||||
|
color="primary"
|
||||||
|
class="login-btn"
|
||||||
|
@click="tools.openrighttoolbar()"
|
||||||
|
>
|
||||||
|
<q-icon name="fas fa-sign-in-alt" class="q-mr-sm" />
|
||||||
|
{{ t('login.enter') }}
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Card Telegram (opzionale) -->
|
||||||
|
<div v-if="false" class="login-card telegram-card">
|
||||||
|
<div class="card-content-inline">
|
||||||
|
<div class="telegram-info">
|
||||||
|
<q-icon name="fab fa-telegram" size="32px" class="telegram-icon" />
|
||||||
|
<div class="telegram-text">
|
||||||
|
<span class="telegram-title">Entra nel canale Telegram</span>
|
||||||
|
<span class="telegram-subtitle">Unisciti al gruppo Provinciale</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
rounded
|
||||||
|
unelevated
|
||||||
icon="fab fa-telegram"
|
icon="fab fa-telegram"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
label="Apri canale"
|
||||||
href="https://t.me/riso_canale/3"
|
href="https://t.me/riso_canale/3"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
label="Progetto RISO"
|
class="telegram-btn"
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</template>
|
|
||||||
</q-banner>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<q-banner rounded class="bg-green-8 text-white">
|
|
||||||
<div class="text-h6 text-center">
|
|
||||||
Visualizza la pagina di Aiuto<br />
|
|
||||||
<div class="text-center">
|
|
||||||
<q-btn
|
|
||||||
:color="$q.dark.isActive ? `black` : `white`"
|
|
||||||
push
|
|
||||||
glossy
|
|
||||||
:text-color="$q.dark.isActive ? `white` : `black`"
|
|
||||||
label="Pagina Aiuto"
|
|
||||||
to="/istruzioni"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-banner>
|
|
||||||
|
<!-- Card Aiuto -->
|
||||||
|
<div class="login-card help-card">
|
||||||
|
<div class="card-content-inline">
|
||||||
|
<div class="help-info">
|
||||||
|
<q-icon name="fas fa-question-circle" size="32px" class="help-icon" />
|
||||||
|
<div class="help-text">
|
||||||
|
<span class="help-title">Hai bisogno di aiuto?</span>
|
||||||
|
<span class="help-subtitle">Consulta la guida completa</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
rounded
|
||||||
|
unelevated
|
||||||
|
icon="fas fa-book-open"
|
||||||
|
color="white"
|
||||||
|
text-color="primary"
|
||||||
|
label="Vai alla guida"
|
||||||
|
to="/istruzioni"
|
||||||
|
class="help-btn"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</transition>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" src="./CCheckIfIsLogged.ts">
|
<script lang="ts" src="./CCheckIfIsLogged.ts">
|
||||||
|
|||||||
@@ -3,3 +3,113 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.regulation-container {
|
||||||
|
:deep(.regulation-content) {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
.reg-header {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding-bottom: 1.5rem;
|
||||||
|
border-bottom: 2px solid #6b8e23;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #6b8e23;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reg-section {
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #556b2f;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
border-bottom: 1px solid rgba(107, 142, 35, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-content {
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: #333;
|
||||||
|
text-align: justify;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
color: #6b8e23;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-list {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
|
||||||
|
scssli {
|
||||||
|
padding: 0.75rem 0 0.75rem 3rem; // aumenta da 2rem a 3rem
|
||||||
|
position: relative;
|
||||||
|
line-height: 1.6;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: "•";
|
||||||
|
position: absolute;
|
||||||
|
left: 1rem; // aumenta da 0.5rem a 1rem
|
||||||
|
color: #6b8e23;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight-box {
|
||||||
|
background: rgba(107, 142, 35, 0.08);
|
||||||
|
border-left: 4px solid #6b8e23;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
margin: 1rem 0;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reg-footer {
|
||||||
|
margin-top: 3rem;
|
||||||
|
padding-top: 1.5rem;
|
||||||
|
border-top: 1px solid rgba(107, 142, 35, 0.3);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Responsive
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.regulation-container :deep(.regulation-content) {
|
||||||
|
.reg-header h1 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reg-section {
|
||||||
|
.section-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-content {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-list li {
|
||||||
|
padding-left: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
import type { PropType } from 'vue';
|
import type { PropType } from 'vue';
|
||||||
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
|
import { computed, defineComponent, onMounted, ref, watch } from 'vue';
|
||||||
import { useUserStore } from '@store/UserStore'
|
import { useUserStore } from '@store/UserStore';
|
||||||
import { useCircuitStore } from '@store/CircuitStore'
|
import { useCircuitStore } from '@store/CircuitStore';
|
||||||
|
|
||||||
import type { ICircuit, IMyCircuit, IMyGroup } from 'model';
|
import type { ICircuit, IMyCircuit, IMyGroup } from 'model';
|
||||||
import { IImgGallery, IUserFields, IUserProfile, IFriends, IAccount } from 'model'
|
import { IImgGallery, IUserFields, IUserProfile, IFriends, IAccount } from 'model';
|
||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti';
|
||||||
import { shared_consts } from '@src/common/shared_vuejs'
|
import { shared_consts } from '@src/common/shared_vuejs';
|
||||||
import { tools } from '@tools'
|
import { tools } from '@tools';
|
||||||
import { useQuasar } from 'quasar'
|
import { useQuasar } from 'quasar';
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { CUserNonVerif } from '@src/components/CUserNonVerif'
|
import { CUserNonVerif } from '@src/components/CUserNonVerif';
|
||||||
import { CSaldo } from '@src/components/CSaldo'
|
import { CSaldo } from '@src/components/CSaldo';
|
||||||
import { CTitleBanner } from '@src/components/CTitleBanner'
|
import { CTitleBanner } from '@src/components/CTitleBanner';
|
||||||
import { toolsext } from '@store/Modules/toolsext'
|
import { toolsext } from '@store/Modules/toolsext';
|
||||||
import { useGlobalStore } from '@store/globalStore'
|
import { useGlobalStore } from '@store/globalStore';
|
||||||
import { userPanel } from 'app/src/rootgen/admin/userPanel';
|
import { userPanel } from 'app/src/rootgen/admin/userPanel';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -56,101 +56,237 @@ export default defineComponent({
|
|||||||
type: Object as PropType<IUserFields | null>,
|
type: Object as PropType<IUserFields | null>,
|
||||||
required: false,
|
required: false,
|
||||||
default: null,
|
default: null,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const circuitStore = useCircuitStore();
|
||||||
|
const $q = useQuasar();
|
||||||
|
const { t } = useI18n();
|
||||||
|
const $router = useRouter();
|
||||||
|
const $route = useRoute();
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const globalStore = useGlobalStore();
|
||||||
const circuitStore = useCircuitStore()
|
|
||||||
const $q = useQuasar()
|
|
||||||
const { t } = useI18n()
|
|
||||||
const $router = useRouter()
|
|
||||||
const $route = useRoute()
|
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const circuit = ref(<IMyCircuit | ICircuit | null>null);
|
||||||
|
const account = computed(() =>
|
||||||
|
circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null
|
||||||
|
);
|
||||||
|
|
||||||
const circuit = ref(<IMyCircuit | ICircuit | null>null)
|
const qtarem = computed(() =>
|
||||||
const account = computed(() => circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null)
|
account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0
|
||||||
|
);
|
||||||
|
const saldo_pend = computed(() => (account.value ? account.value.saldo_pend : 0));
|
||||||
|
const saldo = computed(() => (account.value ? account.value.saldo : 0));
|
||||||
|
|
||||||
const qtarem = computed(() => account.value ? circuitStore.getRemainingCoinsToSend(account.value) : 0)
|
const fidoConcessoUtente = computed(() =>
|
||||||
const saldo_pend = computed(() => account.value ? account.value.saldo_pend : 0)
|
circuitStore.getFidoConcessoByUsername(
|
||||||
const saldo = computed(() => account.value ? account.value.saldo : 0)
|
props.myuser,
|
||||||
|
circuit.value._id,
|
||||||
|
props.username
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
const fidoConcessoUtente = computed(() => circuitStore.getFidoConcessoByUsername(props.myuser, circuit.value._id, props.username))
|
const table = ref(shared_consts.TABLES_CIRCUITS);
|
||||||
|
|
||||||
const table = ref(shared_consts.TABLES_CIRCUITS)
|
const showingtooltip = ref(false);
|
||||||
|
const showrules = ref(false);
|
||||||
|
const requestToEnterCircuit = ref(false);
|
||||||
|
const groupnameSel = ref(<IMyGroup | null>null);
|
||||||
|
|
||||||
const showingtooltip = ref(false)
|
watch(
|
||||||
const showrules = ref(false)
|
() => props.mycircuit,
|
||||||
const requestToEnterCircuit = ref(false)
|
(newval, oldval) => {
|
||||||
const groupnameSel = ref(<IMyGroup | null>null)
|
mounted();
|
||||||
|
}
|
||||||
watch(() => props.mycircuit, (newval, oldval) => {
|
);
|
||||||
mounted()
|
|
||||||
})
|
|
||||||
|
|
||||||
function getNameCircuit() {
|
function getNameCircuit() {
|
||||||
if (circuit.value) {
|
if (circuit.value) {
|
||||||
if (tools.existProp(circuit.value, 'name')) {
|
if (tools.existProp(circuit.value, 'name')) {
|
||||||
return tools.getProp(circuit.value, 'name')
|
return tools.getProp(circuit.value, 'name');
|
||||||
} else if (tools.existProp(circuit.value, 'circuitname')) {
|
} else if (tools.existProp(circuit.value, 'circuitname')) {
|
||||||
return tools.getProp(circuit.value, 'circuitname')
|
return tools.getProp(circuit.value, 'circuitname');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ''
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function mounted() {
|
function mounted() {
|
||||||
groupnameSel.value = props.prop_groupnameSel
|
groupnameSel.value = props.prop_groupnameSel;
|
||||||
if (!props.mycircuit) {
|
if (!props.mycircuit) {
|
||||||
if (props.circuitname) {
|
if (props.circuitname) {
|
||||||
circuit.value = null
|
circuit.value = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (props.mycircuit) {
|
if (props.mycircuit) {
|
||||||
circuit.value = props.mycircuit
|
circuit.value = props.mycircuit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (circuit.value) {
|
if (circuit.value) {
|
||||||
const rectofind = circuitStore.listcircuits.find((circ: ICircuit) => circ.name === getNameCircuit())
|
const rectofind = circuitStore.listcircuits.find(
|
||||||
|
(circ: ICircuit) => circ.name === getNameCircuit()
|
||||||
|
);
|
||||||
if (rectofind) {
|
if (rectofind) {
|
||||||
// console.log('rectofind', rectofind)
|
// console.log('rectofind', rectofind)
|
||||||
circuit.value = rectofind
|
circuit.value = rectofind;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getImgCircuit(circuit: ICircuit) {
|
function getImgCircuit(circuit: ICircuit) {
|
||||||
return userStore.getImgByCircuit(circuit)
|
return userStore.getImgByCircuit(circuit);
|
||||||
}
|
}
|
||||||
|
|
||||||
function naviga(path: string) {
|
function naviga(path: string) {
|
||||||
$router.push(path)
|
$router.push(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCmd(cmd: number, myusername: string, value: any = '') {
|
function setCmd(cmd: number, myusername: string, value: any = '') {
|
||||||
emit('setCmd', cmd, myusername, value)
|
emit('setCmd', cmd, myusername, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
function myusername() {
|
function myusername() {
|
||||||
return userStore.my.username
|
return userStore.my.username;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRegulation(reg: string) {
|
function getRegulation(reg: string) {
|
||||||
const strreg = reg + ''
|
let name = 'Provinciale';
|
||||||
if (!reg) {
|
if (!reg) {
|
||||||
let name = getNameCircuit()
|
name = getNameCircuit();
|
||||||
const mystringa = t('circuit.regolamento', { nomecircuito: name })
|
|
||||||
return mystringa
|
|
||||||
} else {
|
|
||||||
return reg
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Trasforma il vecchio HTML in uno moderno
|
||||||
|
return transformRegulationHTML(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(mounted)
|
function transformRegulationHTML(circuitName: string): string {
|
||||||
|
return `
|
||||||
|
<div class="regulation-content">
|
||||||
|
<div class="reg-header">
|
||||||
|
<h1>${circuitName}</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Costituzione e scopo Comunitario</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
La Comunità Territoriale "RIS ${circuitName}" spontanea (da ora "la Comunità") costituisce un circuito di scambio
|
||||||
|
tra i partecipanti, ciascuno dei quali dovrà indicare i beni e servizi che offre alla Comunità stessa in RIS.
|
||||||
|
Il circuito funziona come dettagliato qui di seguito.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Circuito di scambio</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
La Comunità ha avviato un sistema di scambio di beni e servizi tra utenti, in cui il valore delle transazioni
|
||||||
|
si misura utilizzando una unità di conto denominata <strong>RIS</strong>, convenzionalmente considerata pari a 1 euro.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
Gli scambi tra utenti avvengono liberamente, dopo aver concordato il valore tra le parti.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
Tutti gli utenti partecipanti al circuito iniziano con un conto vuoto, cioè pari a 0 RIS.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
L'utente pagante che ha un conto RIS vuoto o con quantità non sufficiente a perfezionare lo scambio può utilizzare
|
||||||
|
la Fiducia Concessa andando in debito fino al limite massimo a lui permesso, denominato "fiducia concessa".
|
||||||
|
Un equivalente valore in RIS a credito sarà conseguentemente iscritto sul conto del ricevente.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
In ogni momento nel circuito la somma di tutte le esposizioni in positivo saranno perfettamente bilanciate dalla
|
||||||
|
somma di tutte le esposizioni in negativo, dimostrando così che ciascun detentore di un saldo positivo abbia
|
||||||
|
garantita la solvibilità del proprio credito. Ciascun detentore di un saldo negativo concorda che la sua
|
||||||
|
esposizione funge da garanzia della quantità di RIS equivalenti circolanti nel circuito e che può essere chiamato
|
||||||
|
a regolarizzare con equivalente pagamento in euro *, entro un lasso di tempo ragionevolmente adeguato, nel caso in cui:
|
||||||
|
</p>
|
||||||
|
<ul class="section-list">
|
||||||
|
<li>la Comunità, in accordo con il Gruppo Tecnico, deliberi il rientro di alcune posizioni con decisione motivata;</li>
|
||||||
|
<li>l'utente decida di uscire per motivi personali;</li>
|
||||||
|
<li>il circuito chiuda, per decisione deliberata o per motivi di forza maggiore.</li>
|
||||||
|
</ul>
|
||||||
|
<div class="highlight-box">
|
||||||
|
<strong>* Nota importante:</strong>
|
||||||
|
La regolarizzazione può avvenire con equivalente valore in beni e servizi, oppure, in ultima istanza,
|
||||||
|
con pagamento in euro.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Il Gruppo Tecnico</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
La Comunità costituisce il Gruppo Tecnico di Gestione degli Scambi (da ora "Gruppo Tecnico"), partecipante esso
|
||||||
|
stesso agli scambi tramite uno o più delegati autorizzati. Il Gruppo Tecnico è l'organo che supporta la comunità
|
||||||
|
nella gestione degli scambi e quant'altro sia necessario all'ottimale svolgimento dello scopo comunitario.
|
||||||
|
</p>
|
||||||
|
<p class="section-content"><strong>In particolare ha il compito di:</strong></p>
|
||||||
|
<ul class="section-list">
|
||||||
|
<li>approvare le richieste di adesione, dopo aver verificato che il richiedente faccia parte della Comunità;</li>
|
||||||
|
<li>tenere aggiornato l'elenco dei partecipanti al circuito;</li>
|
||||||
|
<li>stabilire la soglia di massimo scoperto e massimo attivo, collettivo e individuale;</li>
|
||||||
|
<li>valutare la sostenibilità di eventuali stanziamenti di finanziamenti;</li>
|
||||||
|
<li>introdurre tassazioni sulle transazioni o una tantum;</li>
|
||||||
|
<li>adottare o meno il Deperimento dei conti inoperosi (riferimento sistema Si.Cre.Na.C.C.) e modularne i parametri di applicazione;</li>
|
||||||
|
<li>deliberare la chiusura del circuito;</li>
|
||||||
|
<li>deliberare la destinazione delle riserve comunitarie depositate sui Conti della Comunità per: finanziare opere varie;
|
||||||
|
corrispondere salari o agire con interventi di sussistenza a partecipanti in stato di necessità; rilevare lo stato
|
||||||
|
debitorio all'interno del circuito di utenti in difficoltà economica, irreperibili o venuti a mancare; attuare
|
||||||
|
interventi ritenuti utili, necessari o meritevoli;</li>
|
||||||
|
<li>redigere, emendare ed adeguare alle eventuali necessità il presente Regolamento.</li>
|
||||||
|
</ul>
|
||||||
|
<p class="section-content">
|
||||||
|
Il Gruppo Tecnico è formato da candidati scelti dalla Comunità sulla base delle competenze e dovrà sottoporre
|
||||||
|
all'approvazione della Comunità stessa resoconti periodici delle sue attività.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Sistemi di contabilizzazione</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
I conti RIS e le transazioni conseguenti agli scambi sono registrati attraverso la piattaforma <strong>riso.app</strong>,
|
||||||
|
dove i partecipanti comunicano i beni e servizi proposti alla Comunità. Tutti i partecipanti possono visualizzare
|
||||||
|
in ogni momento la situazione del circuito.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
La Comunità, in accordo con il Gruppo Tecnico, può decidere di utilizzare altri strumenti di contabilizzazione,
|
||||||
|
che dovranno, in ogni caso, permettere l'inserimento delle singole transazioni effettuate tra gli utenti e la
|
||||||
|
visualizzazione da parte di ogni partecipante. Saranno dunque inseriti nel nuovo strumento tutti gli utenti
|
||||||
|
partecipanti con l'ultimo saldo rilevato al momento della transizione.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Conto Comunitario</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
La Comunità può decidere di aprire uno o più Conti all'interno del circuito, che saranno gestiti dal Gruppo Tecnico,
|
||||||
|
allo scopo di interagire con i conti degli altri utenti e quindi recepire eventuali proventi da tassazioni o
|
||||||
|
finanziare iniziative autorizzate. I Conti Comunitari sono i conti della Comunità.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
Un conto a credito rappresenta una riserva monetaria da re-immettere nel circuito per finanziare opere o attività
|
||||||
|
di beneficio comune; un conto a debito rappresenta il "debito pubblico" della Comunità.
|
||||||
|
</p>
|
||||||
|
<p class="section-content">
|
||||||
|
I conti comunitari sono sottoposti alle stesse regole degli altri conti (conto vuoto, possibilità di scoperto di conto, ecc.).
|
||||||
|
Ogni operazione straordinaria viene deliberata appositamente, mentre l'ordinaria amministrazione può essere autorizzata
|
||||||
|
in via continuativa.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="reg-section">
|
||||||
|
<h2 class="section-title">Riferimenti</h2>
|
||||||
|
<p class="section-content">
|
||||||
|
Per una migliore comprensione dei meccanismi che sottostanno allo scambio nel qui presentato circuito, si rimanda
|
||||||
|
alla lettura del testo disponibile gratuitamente su <strong>https://sicrenacc.info</strong>, da cui è stata tratta
|
||||||
|
libera ispirazione e condivisione dei principi generali del Sistema di Credito Naturale.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
onMounted(mounted);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
circuit,
|
circuit,
|
||||||
@@ -176,6 +312,6 @@ export default defineComponent({
|
|||||||
requestToEnterCircuit,
|
requestToEnterCircuit,
|
||||||
groupnameSel,
|
groupnameSel,
|
||||||
fidoConcessoUtente,
|
fidoConcessoUtente,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
|
|||||||
@@ -564,12 +564,14 @@
|
|||||||
></q-btn>
|
></q-btn>
|
||||||
<div
|
<div
|
||||||
v-if="showrules"
|
v-if="showrules"
|
||||||
v-html="getRegulation(circuit.regulation)"
|
class="regulation-container q-mb-lg"
|
||||||
></div>
|
>
|
||||||
|
<div v-html="getRegulation(circuit.regulation)"></div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-actions align="center">
|
<q-card-actions align="center">
|
||||||
<q-btn
|
<q-btn
|
||||||
class="centeritems"
|
class="centeritems q-ma-lg"
|
||||||
icon="fas fa-user-plus"
|
icon="fas fa-user-plus"
|
||||||
color="positive"
|
color="positive"
|
||||||
:label="$t('circuit.acceptregulation')"
|
:label="$t('circuit.acceptregulation')"
|
||||||
|
|||||||
@@ -1201,7 +1201,7 @@
|
|||||||
>
|
>
|
||||||
</CShareSocial>
|
</CShareSocial>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
<q-dialog v-model="mostraInviti">
|
<q-dialog v-model="mostraInviti" maximized>
|
||||||
<q-card style="min-width: 350px; max-width: 600px">
|
<q-card style="min-width: 350px; max-width: 600px">
|
||||||
<!-- Header con bottone chiudi -->
|
<!-- Header con bottone chiudi -->
|
||||||
<q-bar class="bg-primary text-white">
|
<q-bar class="bg-primary text-white">
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
mypathin.value === 'home_logout' &&
|
(mypathin.value === 'home_logout' || mypathin.value === 'presentazione') &&
|
||||||
globalStore.site.name === 'local' &&
|
globalStore.site.name === 'local' &&
|
||||||
!rec.value
|
!rec.value
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 13px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.step-completed & {
|
.step-completed & {
|
||||||
@@ -262,7 +262,7 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,12 +280,12 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
|
|
||||||
.step-description {
|
.step-description {
|
||||||
margin: 0 0 16px 0;
|
margin: 0 0 16px 0;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #475569;
|
color: #475569;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -305,23 +305,23 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
height: 42px;
|
height: 42px;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-btn {
|
.skip-btn {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
font-size: 13px;
|
font-size: 16px;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,12 +330,12 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
background: rgba(33, 186, 69, 0.1);
|
background: rgba(33, 186, 69, 0.1);
|
||||||
border-left: 4px solid $success-color;
|
border-left: 4px solid $success-color;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #0d5c2a;
|
color: #0d5c2a;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
padding: 10px 14px;
|
padding: 10px 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -358,7 +358,7 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
|
|
||||||
:deep(.q-field__label) {
|
:deep(.q-field__label) {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,12 +397,12 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
}
|
}
|
||||||
|
|
||||||
.completion-text {
|
.completion-text {
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: $success-color;
|
color: $success-color;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,13 +446,13 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
transition: $transition;
|
transition: $transition;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
height: 42px;
|
height: 42px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 400px) {
|
@media (max-width: 400px) {
|
||||||
@@ -510,17 +510,17 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.q-banner__content) {
|
:deep(.q-banner__content) {
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.q-btn) {
|
:deep(.q-btn) {
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -564,13 +564,13 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
|
|
||||||
:deep(.q-badge) {
|
:deep(.q-badge) {
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
padding: 3px 8px;
|
padding: 3px 8px;
|
||||||
font-size: 11px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
const stepCircuitItalia = computed(() => ({
|
const stepCircuitItalia = computed(() => ({
|
||||||
step: STEP_CIRCUIT_ITALIA,
|
step: STEP_CIRCUIT_ITALIA,
|
||||||
title: t('tutorial.step_circuito_italia_title') || 'Circuito Italia',
|
title: t('tutorial.step_circuito_italia_title') || 'Circuito RIS Italia',
|
||||||
extratitle: function () {
|
extratitle: function () {
|
||||||
return circuititalia.value ? ': ' + circuititalia.value.name : '';
|
return circuititalia.value ? ': ' + circuititalia.value.name : '';
|
||||||
},
|
},
|
||||||
@@ -234,7 +234,7 @@ export default defineComponent({
|
|||||||
// Step 3: Circuito Locale (solo se disponibile)
|
// Step 3: Circuito Locale (solo se disponibile)
|
||||||
steps.push({
|
steps.push({
|
||||||
key: 'circuit',
|
key: 'circuit',
|
||||||
name: 'Circuito Locale',
|
name: 'Circuito RIS Locale',
|
||||||
completed: stepCircuit.value.checkOk(),
|
completed: stepCircuit.value.checkOk(),
|
||||||
step: STEP_CIRCUIT,
|
step: STEP_CIRCUIT,
|
||||||
});
|
});
|
||||||
@@ -242,7 +242,7 @@ export default defineComponent({
|
|||||||
// Step 4: Circuito Italia (solo se circuito locale completato)
|
// Step 4: Circuito Italia (solo se circuito locale completato)
|
||||||
steps.push({
|
steps.push({
|
||||||
key: 'circuitItalia',
|
key: 'circuitItalia',
|
||||||
name: 'Circuito Italia',
|
name: 'Circuito RIS Italia',
|
||||||
completed: stepCircuitItalia.value.checkOk(),
|
completed: stepCircuitItalia.value.checkOk(),
|
||||||
step: STEP_CIRCUIT_ITALIA,
|
step: STEP_CIRCUIT_ITALIA,
|
||||||
});
|
});
|
||||||
@@ -272,9 +272,9 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'circuit',
|
key: 'circuit',
|
||||||
visible: !!mycircuit.value,
|
visible: true,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
title: 'Circuito Locale',
|
title: 'Circuito RIS Locale',
|
||||||
description: 'Seleziona la tua provincia di residenza per connetterti con la community locale.',
|
description: 'Seleziona la tua provincia di residenza per connetterti con la community locale.',
|
||||||
completed: stepCircuit.value.checkOk(),
|
completed: stepCircuit.value.checkOk(),
|
||||||
avatar: {
|
avatar: {
|
||||||
@@ -308,8 +308,8 @@ export default defineComponent({
|
|||||||
? 'Completato!'
|
? 'Completato!'
|
||||||
: 'Unisciti al circuito nazionale (opzionale)',
|
: 'Unisciti al circuito nazionale (opzionale)',
|
||||||
badge: {
|
badge: {
|
||||||
color: stepCircuitItalia.value.checkOkReal() ? 'positive' : (isSalta(STEP_CIRCUIT_ITALIA) || isSalta(STEP_CIRCUIT)) ? 'red' : 'grey',
|
color: stepCircuitItalia.value.checkOkReal() ? 'positive' : (isSalta(STEP_CIRCUIT_ITALIA)) ? 'red' : 'grey',
|
||||||
label: stepCircuitItalia.value.checkOkReal() ? 'Fatto' : (isSalta(STEP_CIRCUIT_ITALIA) || isSalta(STEP_CIRCUIT)) ? 'Saltato' : 'opzionale',
|
label: stepCircuitItalia.value.checkOkReal() ? 'Fatto' : (isSalta(STEP_CIRCUIT_ITALIA)) ? 'Saltato' : 'opzionale',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -354,7 +354,8 @@ export default defineComponent({
|
|||||||
const totalSteps = computed(() => {
|
const totalSteps = computed(() => {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
count++; // Telegram
|
count++; // Telegram
|
||||||
if (mycircuit.value) count++; // Circuito Locale
|
count++; // Circuito Locale
|
||||||
|
// if (mycircuit.value)
|
||||||
if (circuititalia.value) count++; // Circuito Italia
|
if (circuititalia.value) count++; // Circuito Italia
|
||||||
return count;
|
return count;
|
||||||
});
|
});
|
||||||
@@ -571,8 +572,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
function isSalta(step: number) {
|
function isSalta(step: number) {
|
||||||
return (
|
return (
|
||||||
(step === STEP_CIRCUIT && mycircuit.value && isAskedToCircuit()) ||
|
(step === STEP_CIRCUIT && mycircuit.value && userStore.my.profile.noCircuit) ||
|
||||||
(step === STEP_CIRCUIT_ITALIA && circuititalia.value && isAskedToCircuitItalia())
|
(step === STEP_CIRCUIT_ITALIA && circuititalia.value && userStore.my.profile.noCircIta)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
.signup {
|
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: 450px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clCellCode {
|
|
||||||
border-radius: 32px;
|
|
||||||
border-right: #2d2260;
|
|
||||||
height: 50px;
|
|
||||||
font-size: 1rem;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clCell {
|
|
||||||
border-radius: 32px;
|
|
||||||
border-right: #2d2260;
|
|
||||||
height: 50px;
|
|
||||||
font-size: 1rem;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vue-country-select{
|
|
||||||
border-radius: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myuserinvitante{
|
|
||||||
font-weight: bold;
|
|
||||||
color: red;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cosa_chiedere{
|
|
||||||
font-weight: bold;
|
|
||||||
color: blue;
|
|
||||||
font-size: 1rem;
|
|
||||||
padding: 10px;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,461 +0,0 @@
|
|||||||
import { tools } from '@tools'
|
|
||||||
|
|
||||||
import type { ISignupOptions } from 'model'
|
|
||||||
|
|
||||||
import { Logo } from '@src/components/logo'
|
|
||||||
|
|
||||||
// import 'vue-country-code/dist/vue-country-code.css'
|
|
||||||
|
|
||||||
import { CTitleBanner } from '../CTitleBanner'
|
|
||||||
import { CCopyBtn } from '../CCopyBtn'
|
|
||||||
import { CRegistration } from '../CRegistration'
|
|
||||||
import { PagePolicy } from '../PagePolicy'
|
|
||||||
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
|
|
||||||
import { CSignIn } from '@src/components/CSignIn'
|
|
||||||
import { useQuasar } from 'quasar'
|
|
||||||
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 '@src/common/shared_vuejs'
|
|
||||||
|
|
||||||
import { minLength, required, sameAs } from '@vuelidate/validators'
|
|
||||||
|
|
||||||
// import { ValidationRuleset } from 'vuelidate'
|
|
||||||
import { complexity, complexityUser, registereduser, aportadorexist } from '../../validation'
|
|
||||||
|
|
||||||
// import 'vue3-tel-input/dist/vue3-tel-input.css'
|
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
|
||||||
import { static_data } from '@src/db/static_data'
|
|
||||||
import { useGlobalStore } from '@store/globalStore'
|
|
||||||
|
|
||||||
// import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar'
|
|
||||||
|
|
||||||
export default defineComponent({
|
|
||||||
name: 'CSignUp',
|
|
||||||
components: { Logo, CTitleBanner, PagePolicy, CCopyBtn, CRegistration },
|
|
||||||
props: {
|
|
||||||
showadultcheck: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
showcell: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
showaportador: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
shownationality: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
show_namesurname: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: true,
|
|
||||||
},
|
|
||||||
regexpire: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
name_default: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
username_default: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
need_Telegram: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
collettivo: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
token: {
|
|
||||||
type: String,
|
|
||||||
required: false,
|
|
||||||
default: '',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
setup(props, { emit }) {
|
|
||||||
const $q = useQuasar()
|
|
||||||
const { t } = useI18n()
|
|
||||||
const userStore = useUserStore()
|
|
||||||
const $route = useRoute()
|
|
||||||
const $router = useRouter()
|
|
||||||
|
|
||||||
const countryname = ref('')
|
|
||||||
const iamadult = ref(false)
|
|
||||||
const duplicate_email = ref(false)
|
|
||||||
const duplicate_username = ref(false)
|
|
||||||
const visureg = ref(false)
|
|
||||||
const showpolicy = ref(false)
|
|
||||||
const visubuttBOT = ref(false)
|
|
||||||
const isalreadyReg = ref(false)
|
|
||||||
const needTelegram = ref(false)
|
|
||||||
const slide = ref('1')
|
|
||||||
const inputAportador = ref(<any>null)
|
|
||||||
const inputEmail = ref(<any>null)
|
|
||||||
const inputUsername = ref(<any>null)
|
|
||||||
const inputName = ref(<any>null)
|
|
||||||
const inputSurname = ref(<any>null)
|
|
||||||
const inputPassword = ref(<any>null)
|
|
||||||
const inputPassword2 = ref(<any>null)
|
|
||||||
|
|
||||||
const checkifDisabled = computed(() => {
|
|
||||||
let ret = true
|
|
||||||
if (slide.value === '1') {
|
|
||||||
// Invitante + Email
|
|
||||||
ret = !signup.email || (tools.getAskToVerifyReg() && (!signup.aportador_solidario || inputAportador.value.hasError)) || (inputEmail.value && inputEmail.value.hasError)
|
|
||||||
} else if (slide.value === '2') {
|
|
||||||
// Username
|
|
||||||
ret = !signup.username || (inputUsername.value && inputUsername.value.hasError)
|
|
||||||
|
|
||||||
if (tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) {
|
|
||||||
ret = ret || (!signup.name || (inputName.value && inputName.value.hasError))
|
|
||||||
ret = ret || (!signup.surname || (inputSurname.value && inputSurname.value.hasError))
|
|
||||||
}
|
|
||||||
} else if (slide.value === '3') {
|
|
||||||
// Password
|
|
||||||
ret = !signup.password || (!inputPassword.value || (inputPassword.value && inputPassword.value.hasError)) || (!inputPassword2.value || (inputPassword2.value && inputPassword2.value.hasError))
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret
|
|
||||||
})
|
|
||||||
|
|
||||||
const typePassword = ref('password')
|
|
||||||
|
|
||||||
const ap_iniziale = ref('')
|
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
|
||||||
const site = computed(() => globalStore.site)
|
|
||||||
|
|
||||||
const signup = reactive(<ISignupOptions>{
|
|
||||||
email: '',
|
|
||||||
username: '',
|
|
||||||
name: '',
|
|
||||||
surname: '',
|
|
||||||
password: '',
|
|
||||||
repeatPassword: '',
|
|
||||||
terms: false,
|
|
||||||
profile: DefaultProfile,
|
|
||||||
aportador_solidario: '',
|
|
||||||
})
|
|
||||||
|
|
||||||
const validations: any = computed(() => {
|
|
||||||
const valid: any = {
|
|
||||||
repeatPassword: {
|
|
||||||
required,
|
|
||||||
repeatPassword: sameAs(signup.password),
|
|
||||||
},
|
|
||||||
password: {
|
|
||||||
required,
|
|
||||||
minLength: minLength(8),
|
|
||||||
complexity,
|
|
||||||
},
|
|
||||||
username: {
|
|
||||||
required,
|
|
||||||
minLength: minLength(4),
|
|
||||||
complexityUser,
|
|
||||||
registereduser,
|
|
||||||
},
|
|
||||||
name: {
|
|
||||||
required: (props.collettivo || tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) ? true : false,
|
|
||||||
},
|
|
||||||
surname: {
|
|
||||||
required: (tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) ? true : false,
|
|
||||||
},
|
|
||||||
terms: {
|
|
||||||
required,
|
|
||||||
},
|
|
||||||
aportador_solidario: {
|
|
||||||
aportadorexist,
|
|
||||||
required
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (props.show_namesurname) {
|
|
||||||
valid.name = {
|
|
||||||
|
|
||||||
}
|
|
||||||
valid.surname = {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return valid
|
|
||||||
})
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
const v$ = useVuelidate(validations, signup)
|
|
||||||
|
|
||||||
const invited = ref($route.params.invited)
|
|
||||||
const usernameteleg = ref($route.params.usernameteleg)
|
|
||||||
const idteleg = ref($route.params.idteleg)
|
|
||||||
|
|
||||||
watch(() => slide.value, (to: any, from: any) => {
|
|
||||||
if (slide.value === '3') {
|
|
||||||
v$.value.$touch()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(() => invited, (to: any, from: any) => {
|
|
||||||
if (props.showaportador) {
|
|
||||||
console.log('changeaportador', $route.params.invited)
|
|
||||||
if (!signup.aportador_solidario) {
|
|
||||||
if ($route.params.invited) {
|
|
||||||
// @ts-ignore
|
|
||||||
signup.aportador_solidario = $route.params.invited
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
function allowSubmit() {
|
|
||||||
|
|
||||||
let error = v$.value.$error || v$.value.$invalid || globalStore.serverError
|
|
||||||
|
|
||||||
if (props.showadultcheck)
|
|
||||||
error = error || !iamadult.value
|
|
||||||
|
|
||||||
if (props.showcell) {
|
|
||||||
if (signup.profile)
|
|
||||||
error = error || signup.profile.cell!.length <= 6
|
|
||||||
else
|
|
||||||
error = true
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tools.getAskToVerifyReg()) {
|
|
||||||
error = error || !signup.aportador_solidario
|
|
||||||
}
|
|
||||||
|
|
||||||
return !error
|
|
||||||
}
|
|
||||||
|
|
||||||
function env() {
|
|
||||||
return process.env
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function changeemail() {
|
|
||||||
signup.email = tools.removespaces(signup.email!)
|
|
||||||
signup.email = signup.email.toLowerCase()
|
|
||||||
emit('update:value', signup.email)
|
|
||||||
}
|
|
||||||
|
|
||||||
function changeusername(value: string) {
|
|
||||||
signup.username = tools.removespaces(signup.username)
|
|
||||||
emit('update:value', signup.username)
|
|
||||||
}
|
|
||||||
|
|
||||||
function submitOk() {
|
|
||||||
v$.value.$touch()
|
|
||||||
|
|
||||||
signup.email = tools.removespaces(signup.email!)
|
|
||||||
signup.email = signup.email.toLowerCase()
|
|
||||||
signup.username = tools.removespaces(signup.username)
|
|
||||||
|
|
||||||
// remove @
|
|
||||||
signup.username = tools.removeAt(signup.username)
|
|
||||||
|
|
||||||
duplicate_email.value = false
|
|
||||||
duplicate_username.value = false
|
|
||||||
|
|
||||||
if (!signup.terms) {
|
|
||||||
tools.showNotif($q, t('reg.err.terms'))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
/*if (v$.signup.$error) {
|
|
||||||
tools.showNotif($q, t('reg.err.errore_generico'))
|
|
||||||
return
|
|
||||||
} */
|
|
||||||
|
|
||||||
if (signup.name) {
|
|
||||||
signup.name = tools.CapitalizeAllWords(signup.name)
|
|
||||||
signup.surname = tools.CapitalizeAllWords(signup.surname)
|
|
||||||
}
|
|
||||||
|
|
||||||
$q.loading.show({ message: t('reg.incorso') })
|
|
||||||
|
|
||||||
console.log(signup)
|
|
||||||
return userStore.signup(tools.clone(signup))
|
|
||||||
.then((ris: any) => {
|
|
||||||
if (tools.SignUpcheckErrors($q, $router, ris.code, ris.msg))
|
|
||||||
$q.loading.hide()
|
|
||||||
}).catch((error: string) => {
|
|
||||||
console.log('ERROR = ' + error)
|
|
||||||
$q.loading.hide()
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function intcode_change(coderec: any) {
|
|
||||||
// console.log('intcode', coderec)
|
|
||||||
if (signup.profile) {
|
|
||||||
signup.profile.intcode_cell = '+' + coderec.dialCode
|
|
||||||
signup.profile.iso2_cell = coderec.iso2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function selectcountry({ name, iso2, dialCode }: { name: string, iso2: string, dialCode: string }) {
|
|
||||||
// console.log(name, iso2, dialCode)
|
|
||||||
signup.profile.nationality = iso2
|
|
||||||
countryname.value = name
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async function created() {
|
|
||||||
|
|
||||||
needTelegram.value = props.need_Telegram
|
|
||||||
|
|
||||||
console.log('$route.params', $route.params)
|
|
||||||
|
|
||||||
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
|
|
||||||
if (signup.username)
|
|
||||||
isalreadyReg.value = await tools.registeredusername(signup.username)
|
|
||||||
signup.profile.username_telegram = signup.username
|
|
||||||
if ($route.params.idteleg) {
|
|
||||||
signup.profile.teleg_id = $route.params.idteleg ? parseInt($route.params.idteleg.toString(), 10) : 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if (props.collettivo) {
|
|
||||||
signup.username = props.username_default!
|
|
||||||
signup.name = props.name_default!
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log('1) aportador_solidario', signup.aportador_solidario)
|
|
||||||
|
|
||||||
if (!signup.aportador_solidario)
|
|
||||||
signup.aportador_solidario = tools.getCookie(tools.APORTADOR_SOLIDARIO, signup.aportador_solidario)
|
|
||||||
|
|
||||||
if (!signup.aportador_solidario || signup.aportador_solidario === 'undefined') {
|
|
||||||
if (!tools.getAskToVerifyReg()) {
|
|
||||||
signup.aportador_solidario = tools.APORTADOR_NONE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// console.log('signup.aportador_solidario', signup.aportador_solidario)
|
|
||||||
// console.log('getasktoverify', tools.getAskToVerifyReg())
|
|
||||||
|
|
||||||
if (tools.getAskToVerifyReg()) {
|
|
||||||
|
|
||||||
if (!signup.username || !signup.profile.teleg_id) {
|
|
||||||
// tools.copyStringToClipboard($q, signup.aportador_solidario, true)
|
|
||||||
visubuttBOT.value = true
|
|
||||||
// window.location.href = tools.getLinkBotTelegram()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function myRuleEmail(val: string) {
|
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
// call
|
|
||||||
// resolve(true)
|
|
||||||
// --> content is valid
|
|
||||||
// resolve(false)
|
|
||||||
// --> content is NOT valid, no error message
|
|
||||||
// resolve(error_message)
|
|
||||||
// --> content is NOT valid, we have error message
|
|
||||||
tools.registeredemail(val).then((emailOk) => {
|
|
||||||
let risp = !!emailOk || t('reg.err.duplicate_email')
|
|
||||||
if (emailOk) {
|
|
||||||
risp = tools.isEmail(val) || t('reg.err.invalid_email')
|
|
||||||
emailOk = emailOk && tools.isEmail(val)
|
|
||||||
}
|
|
||||||
if (emailOk) {
|
|
||||||
// risp = !tools.isEmailNoMicroZozz(val) || t('reg.err.invalid_email_micro')
|
|
||||||
}
|
|
||||||
|
|
||||||
resolve(risp)
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
// calling reject(...) will also mark the input
|
|
||||||
// as having an error, but there will not be any
|
|
||||||
// error message displayed below the input
|
|
||||||
// (only in browser console)
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function showPassword() {
|
|
||||||
//
|
|
||||||
typePassword.value = typePassword.value === 'password' ? 'text' : 'password'
|
|
||||||
}
|
|
||||||
|
|
||||||
function regEventEmail(invited: boolean) {
|
|
||||||
console.log('EVENT RECEIVED: regEventEmail', invited)
|
|
||||||
// reg
|
|
||||||
visubuttBOT.value = false
|
|
||||||
needTelegram.value = false
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
const token = props.token
|
|
||||||
|
|
||||||
// carica
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
created()
|
|
||||||
|
|
||||||
return {
|
|
||||||
changeemail,
|
|
||||||
changeusername,
|
|
||||||
submitOk,
|
|
||||||
selectcountry,
|
|
||||||
intcode_change,
|
|
||||||
tools,
|
|
||||||
countryname,
|
|
||||||
signup,
|
|
||||||
iamadult,
|
|
||||||
v$,
|
|
||||||
t,
|
|
||||||
allowSubmit,
|
|
||||||
myRuleEmail,
|
|
||||||
visureg,
|
|
||||||
showpolicy,
|
|
||||||
visubuttBOT,
|
|
||||||
isalreadyReg,
|
|
||||||
site,
|
|
||||||
showPassword,
|
|
||||||
typePassword,
|
|
||||||
ap_iniziale,
|
|
||||||
regEventEmail,
|
|
||||||
needTelegram,
|
|
||||||
slide,
|
|
||||||
checkifDisabled,
|
|
||||||
inputAportador,
|
|
||||||
inputEmail,
|
|
||||||
inputUsername,
|
|
||||||
inputName,
|
|
||||||
inputSurname,
|
|
||||||
inputPassword,
|
|
||||||
inputPassword2,
|
|
||||||
shared_consts,
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
@@ -1,739 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<div
|
|
||||||
v-if="tools.isLogged() && tools.getUsername() && !collettivo"
|
|
||||||
class="text-center"
|
|
||||||
>
|
|
||||||
<q-banner rounded class="bg-green text-white" style="text-align: center">
|
|
||||||
<span class="mybanner">
|
|
||||||
{{ tools.getUsername() }} sei già correttamente registrato ed hai
|
|
||||||
accesso alla Piattaforma<br />
|
|
||||||
</span>
|
|
||||||
</q-banner>
|
|
||||||
|
|
||||||
<div class="row q-ma-sm q-pa-sm justify-center">
|
|
||||||
<q-btn
|
|
||||||
class="q-ma-sm"
|
|
||||||
color="primary"
|
|
||||||
icon="fas fa-home"
|
|
||||||
label="Vai alla Home"
|
|
||||||
to="/"
|
|
||||||
></q-btn>
|
|
||||||
|
|
||||||
<q-btn
|
|
||||||
class="q-ma-sm"
|
|
||||||
color="accent"
|
|
||||||
icon="fas fa-sign"
|
|
||||||
label="Voglio vedere la pagina di Registrazione"
|
|
||||||
@click="visureg = true"
|
|
||||||
></q-btn>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-if="!tools.isLogged() || visureg || collettivo" class="text-center">
|
|
||||||
<div>
|
|
||||||
<div>
|
|
||||||
<logo
|
|
||||||
mystyle="width: 40px !important; height: 40px !important; "
|
|
||||||
></logo>
|
|
||||||
|
|
||||||
<div v-if="!isalreadyReg && !(visubuttBOT && needTelegram)">
|
|
||||||
<CTitleBanner :title="$t('pages.SignUp')"></CTitleBanner>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
v-if="visubuttBOT && needTelegram && !collettivo"
|
|
||||||
class="q-gutter-md"
|
|
||||||
>
|
|
||||||
<div class="q-ma-md">
|
|
||||||
<CRegistration
|
|
||||||
:invited="signup.aportador_solidario"
|
|
||||||
:regexpire="regexpire"
|
|
||||||
@regEventEmail="regEventEmail"
|
|
||||||
:signupform="true"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-else-if="!isalreadyReg || collettivo" class="q-gutter-sm q-mt-sm">
|
|
||||||
<div v-if="signup.username === 'undefined'">
|
|
||||||
<br />
|
|
||||||
Vai su <b>BOT RISO</b> Telegram ed imposta l'Username di Telegram.<br /><br />
|
|
||||||
<q-btn
|
|
||||||
rounded
|
|
||||||
color="primary"
|
|
||||||
icon="fab fa-telegram"
|
|
||||||
label="Apri BOT"
|
|
||||||
type="a"
|
|
||||||
:href="
|
|
||||||
tools.getLinkBotTelegram(signup.aportador_solidario, regexpire)
|
|
||||||
"
|
|
||||||
target="_blank"
|
|
||||||
></q-btn>
|
|
||||||
<br /><br />
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<div v-if="signup.terms">
|
|
||||||
<q-input
|
|
||||||
v-if="
|
|
||||||
showaportador &&
|
|
||||||
signup.aportador_solidario !== tools.APORTADOR_NONE &&
|
|
||||||
v$.aportador_solidario.$error
|
|
||||||
"
|
|
||||||
ref="inputAportador"
|
|
||||||
bg-color="light-blue-4"
|
|
||||||
:readonly="!!ap_iniziale"
|
|
||||||
v-model="signup.aportador_solidario"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@keyup.enter="
|
|
||||||
v$.aportador_solidario.$touch && !v$.aportador_solidario.$error
|
|
||||||
? $refs.inputEmail.focus()
|
|
||||||
: null
|
|
||||||
"
|
|
||||||
@blur="v$.aportador_solidario.$touch"
|
|
||||||
:error="v$.aportador_solidario.$error"
|
|
||||||
:error-message="
|
|
||||||
tools.errorMsg('aportador_solidario', v$.aportador_solidario)
|
|
||||||
"
|
|
||||||
maxlength="20"
|
|
||||||
debounce="1000"
|
|
||||||
:label="
|
|
||||||
collettivo
|
|
||||||
? t('reg.username_admin_collettivo')
|
|
||||||
: t('reg.aportador_solidario')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<div style="margin-top: 5px"></div>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputEmail"
|
|
||||||
v-model="signup.email"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@update:model-value="changeemail()"
|
|
||||||
maxlength="50"
|
|
||||||
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
|
||||||
debounce="2000"
|
|
||||||
:rules="[myRuleEmail]"
|
|
||||||
:label="
|
|
||||||
collettivo
|
|
||||||
? t('reg.email_reg_collettivo')
|
|
||||||
: t('reg.email_reg')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="email" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputUsername"
|
|
||||||
v-model="signup.username"
|
|
||||||
:readonly="
|
|
||||||
tools.getAskToVerifyReg() &&
|
|
||||||
!site.confpages?.enableRegMultiChoice
|
|
||||||
"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.username.$touch"
|
|
||||||
@update:model-value="changeusername"
|
|
||||||
:error="v$.username.$error"
|
|
||||||
@keydown.space="(event) => event.preventDefault()"
|
|
||||||
@keyup.enter="
|
|
||||||
!v$.username.$error ? $refs.inputName.focus() : null
|
|
||||||
"
|
|
||||||
maxlength="20"
|
|
||||||
debounce="500"
|
|
||||||
:error-message="
|
|
||||||
tools.errorMsg('username', v$.username) ||
|
|
||||||
(isalreadyReg ? 'L\'Username è gia stato registrato!' : '')
|
|
||||||
"
|
|
||||||
:label="
|
|
||||||
tools.getConfSiteOptionEnabled(
|
|
||||||
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
|
||||||
)
|
|
||||||
? t('reg.username_telegram')
|
|
||||||
: t('reg.username_reg')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<div v-if="collettivo">
|
|
||||||
<q-input
|
|
||||||
ref="inputName"
|
|
||||||
v-model="signup.name"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.name.$touch"
|
|
||||||
:error="v$.name.$error"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
:error-message="tools.errorMsg('name', v$.name)"
|
|
||||||
:label="$t('reg.name_opt_collettivo')"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-else-if="show_namesurname">
|
|
||||||
<q-input
|
|
||||||
ref="inputName"
|
|
||||||
v-model="signup.name"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.name.$touch"
|
|
||||||
:error="v$.name.$error"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
@keyup.enter="$refs.inputSurname.focus()"
|
|
||||||
:error-message="tools.errorMsg('name', v$.name)"
|
|
||||||
:label="
|
|
||||||
tools.getConfSiteOptionEnabled(
|
|
||||||
shared_consts.ConfSite.regNameSurnameMandatory
|
|
||||||
)
|
|
||||||
? t('reg.name')
|
|
||||||
: t('reg.name_opt')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
v-if="signup.surname"
|
|
||||||
ref="inputSurname"
|
|
||||||
v-model="signup.surname"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
:error="v$.surname.$error"
|
|
||||||
@blur="v$.surname.$touch"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
:error-message="tools.errorMsg('surname', v$.surname)"
|
|
||||||
:label="$t('reg.surname_opt')"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<q-input
|
|
||||||
ref="inputPassword"
|
|
||||||
v-model="signup.password"
|
|
||||||
:type="typePassword"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.password.$touch"
|
|
||||||
:error="v$.password.$error"
|
|
||||||
:error-message="`${tools.errorMsg('password', v$.password)}`"
|
|
||||||
@keyup.enter="
|
|
||||||
!v$.password.$error ? $refs.inputPassword2.focus() : null
|
|
||||||
"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
:label="$t('reg.password_reg')"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-btn
|
|
||||||
tabindex="-1"
|
|
||||||
:icon="
|
|
||||||
typePassword === `password`
|
|
||||||
? `fas fa-eye-slash`
|
|
||||||
: `fas fa-eye`
|
|
||||||
"
|
|
||||||
@click="showPassword"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</template>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="vpn_key" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputPassword2"
|
|
||||||
v-model="signup.repeatPassword"
|
|
||||||
:type="typePassword"
|
|
||||||
maxlength="30"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.repeatPassword.$touch"
|
|
||||||
:error="v$.repeatPassword.$error"
|
|
||||||
:error-message="`${tools.errorMsg(
|
|
||||||
'repeatpassword',
|
|
||||||
v$.repeatPassword
|
|
||||||
)}`"
|
|
||||||
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
|
||||||
:label="$t('reg.repeatPassword')"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-btn
|
|
||||||
tabindex="-1"
|
|
||||||
:icon="
|
|
||||||
typePassword === `password`
|
|
||||||
? `fas fa-eye-slash`
|
|
||||||
: `fas fa-eye`
|
|
||||||
"
|
|
||||||
@click="showPassword"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</template>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="vpn_key" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<div class="column">
|
|
||||||
<q-btn
|
|
||||||
rounded
|
|
||||||
size="lg"
|
|
||||||
color="positive"
|
|
||||||
@click="submitOk"
|
|
||||||
:label="$t('reg.submit')"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else>
|
|
||||||
<q-carousel
|
|
||||||
v-model="slide"
|
|
||||||
ref="carousel"
|
|
||||||
transition-prev="slide-right"
|
|
||||||
transition-next="slide-left"
|
|
||||||
animated
|
|
||||||
swipeable
|
|
||||||
:class="`shadow-1`"
|
|
||||||
>
|
|
||||||
<template v-slot:control>
|
|
||||||
<q-carousel-control
|
|
||||||
position="bottom-right"
|
|
||||||
:offset="[18, 18]"
|
|
||||||
class="q-gutter-xs"
|
|
||||||
>
|
|
||||||
<q-btn
|
|
||||||
v-if="slide !== '1'"
|
|
||||||
push
|
|
||||||
text-color="black"
|
|
||||||
icon="arrow_left"
|
|
||||||
:label="$t('dialog.indietro')"
|
|
||||||
@click="$refs.carousel.previous()"
|
|
||||||
/>
|
|
||||||
<q-btn
|
|
||||||
v-if="slide !== '4'"
|
|
||||||
push
|
|
||||||
color="primary"
|
|
||||||
icon="arrow_right"
|
|
||||||
:label="$t('dialog.avanti')"
|
|
||||||
:disabled="checkifDisabled"
|
|
||||||
@click="!checkifDisabled ? $refs.carousel.next() : null"
|
|
||||||
/>
|
|
||||||
</q-carousel-control>
|
|
||||||
</template>
|
|
||||||
<q-carousel-slide name="1">
|
|
||||||
<div class="">
|
|
||||||
<q-input
|
|
||||||
v-if="
|
|
||||||
showaportador &&
|
|
||||||
signup.aportador_solidario !== tools.APORTADOR_NONE
|
|
||||||
"
|
|
||||||
ref="inputAportador"
|
|
||||||
bg-color="light-blue-4"
|
|
||||||
:readonly="!!ap_iniziale"
|
|
||||||
v-model="signup.aportador_solidario"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@keyup.enter="
|
|
||||||
v$.aportador_solidario.$touch &&
|
|
||||||
!v$.aportador_solidario.$error
|
|
||||||
? $refs.inputEmail.focus()
|
|
||||||
: null
|
|
||||||
"
|
|
||||||
@blur="v$.aportador_solidario.$touch"
|
|
||||||
:error="v$.aportador_solidario.$error"
|
|
||||||
:error-message="
|
|
||||||
tools.errorMsg(
|
|
||||||
'aportador_solidario',
|
|
||||||
v$.aportador_solidario
|
|
||||||
)
|
|
||||||
"
|
|
||||||
maxlength="20"
|
|
||||||
debounce="1000"
|
|
||||||
:label="
|
|
||||||
collettivo
|
|
||||||
? t('reg.username_admin_collettivo')
|
|
||||||
: t('reg.aportador_solidario')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
<div style="margin-top: 5px"></div>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputEmail"
|
|
||||||
v-model="signup.email"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@update:model-value="changeemail()"
|
|
||||||
maxlength="50"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
debounce="2000"
|
|
||||||
:rules="[myRuleEmail]"
|
|
||||||
:label="
|
|
||||||
collettivo
|
|
||||||
? t('reg.email_reg_collettivo')
|
|
||||||
: t('reg.email_reg')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="email" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</div>
|
|
||||||
</q-carousel-slide>
|
|
||||||
<q-carousel-slide name="2">
|
|
||||||
<div class="cosa_chiedere">{{ t('reg.scegli_username') }}</div>
|
|
||||||
<q-input
|
|
||||||
ref="inputUsername"
|
|
||||||
v-model="signup.username"
|
|
||||||
:readonly="
|
|
||||||
tools.getAskToVerifyReg() &&
|
|
||||||
!site.confpages?.enableRegMultiChoice
|
|
||||||
"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.username.$touch"
|
|
||||||
@update:model-value="changeusername"
|
|
||||||
:error="v$.username.$error"
|
|
||||||
@keydown.space="(event) => event.preventDefault()"
|
|
||||||
@keyup.enter="
|
|
||||||
!v$.username.$error ? $refs.inputName.focus() : null
|
|
||||||
"
|
|
||||||
maxlength="20"
|
|
||||||
debounce="500"
|
|
||||||
:error-message="
|
|
||||||
tools.errorMsg('username', v$.username) ||
|
|
||||||
(isalreadyReg ? 'L\'Username è gia stato registrato!' : '')
|
|
||||||
"
|
|
||||||
:label="
|
|
||||||
collettivo
|
|
||||||
? t('reg.username_reg_collettivo')
|
|
||||||
: tools.getConfSiteOptionEnabled(
|
|
||||||
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
|
||||||
)
|
|
||||||
? t('reg.username_telegram')
|
|
||||||
: t('reg.username_reg')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<div v-if="collettivo">
|
|
||||||
<q-input
|
|
||||||
ref="inputName"
|
|
||||||
v-model="signup.name"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.name.$touch"
|
|
||||||
:error="v$.name.$error"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
:error-message="tools.errorMsg('name', v$.name)"
|
|
||||||
:label="$t('reg.name_opt_collettivo')"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div v-else-if="show_namesurname">
|
|
||||||
<q-input
|
|
||||||
ref="inputName"
|
|
||||||
v-model="signup.name"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.name.$touch"
|
|
||||||
:error="v$.name.$error"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
@keyup.enter="$refs.inputSurname.focus()"
|
|
||||||
:error-message="tools.errorMsg('name', v$.name)"
|
|
||||||
:label="
|
|
||||||
tools.getConfSiteOptionEnabled(
|
|
||||||
shared_consts.ConfSite.regNameSurnameMandatory
|
|
||||||
)
|
|
||||||
? t('reg.name')
|
|
||||||
: t('reg.name_opt')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputSurname"
|
|
||||||
v-model="signup.surname"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
:error="v$.surname.$error"
|
|
||||||
@blur="v$.surname.$touch"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
:error-message="tools.errorMsg('surname', v$.surname)"
|
|
||||||
:label="
|
|
||||||
tools.getConfSiteOptionEnabled(
|
|
||||||
shared_consts.ConfSite.regNameSurnameMandatory
|
|
||||||
)
|
|
||||||
? t('reg.surname')
|
|
||||||
: t('reg.surname_opt')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="person" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</div>
|
|
||||||
</q-carousel-slide>
|
|
||||||
<q-carousel-slide name="3">
|
|
||||||
<div class="cosa_chiedere">{{ t('reg.scegli_password') }}</div>
|
|
||||||
<q-input
|
|
||||||
ref="inputPassword"
|
|
||||||
v-model="signup.password"
|
|
||||||
class="q-mb-md"
|
|
||||||
:type="typePassword"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.password.$touch"
|
|
||||||
:error="v$.password.$error"
|
|
||||||
:error-message="`${tools.errorMsg('password', v$.password)}`"
|
|
||||||
@keyup.enter="
|
|
||||||
!v$.password.$error ? $refs.inputPassword2.focus() : null
|
|
||||||
"
|
|
||||||
maxlength="30"
|
|
||||||
debounce="1000"
|
|
||||||
:label="$t('reg.password_reg')"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-btn
|
|
||||||
tabindex="-1"
|
|
||||||
:icon="
|
|
||||||
typePassword === `password`
|
|
||||||
? `fas fa-eye-slash`
|
|
||||||
: `fas fa-eye`
|
|
||||||
"
|
|
||||||
@click="showPassword"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</template>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="vpn_key" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<q-input
|
|
||||||
ref="inputPassword2"
|
|
||||||
v-model="signup.repeatPassword"
|
|
||||||
:type="typePassword"
|
|
||||||
maxlength="30"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
@blur="v$.repeatPassword.$touch"
|
|
||||||
:error="v$.repeatPassword.$error"
|
|
||||||
:error-message="`${tools.errorMsg(
|
|
||||||
'repeatpassword',
|
|
||||||
v$.repeatPassword
|
|
||||||
)}`"
|
|
||||||
v-on:keyup.enter="
|
|
||||||
!checkifDisabled ? $refs.carousel.next() : null
|
|
||||||
"
|
|
||||||
:label="$t('reg.repeatPassword')"
|
|
||||||
>
|
|
||||||
<template v-slot:append>
|
|
||||||
<q-btn
|
|
||||||
tabindex="-1"
|
|
||||||
:icon="
|
|
||||||
typePassword === `password`
|
|
||||||
? `fas fa-eye-slash`
|
|
||||||
: `fas fa-eye`
|
|
||||||
"
|
|
||||||
@click="showPassword"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</template>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon name="vpn_key" />
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
</q-carousel-slide>
|
|
||||||
<q-carousel-slide name="4">
|
|
||||||
<q-input
|
|
||||||
v-if="shownationality"
|
|
||||||
v-model="countryname"
|
|
||||||
:readonly="true"
|
|
||||||
rounded
|
|
||||||
outlined
|
|
||||||
debounce="1000"
|
|
||||||
:label="$t('reg.nationality')"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<!--<vue-country-code
|
|
||||||
@onSelect="selectcountry"
|
|
||||||
:preferredCountries="tools.getprefCountries"
|
|
||||||
:dropdownOptions="{ disabledDialCode: true }"
|
|
||||||
>
|
|
||||||
|
|
||||||
</vue-country-code>-->
|
|
||||||
</template>
|
|
||||||
</q-input>
|
|
||||||
|
|
||||||
<!--<vue-tel-input
|
|
||||||
v-if="showcell"
|
|
||||||
@country-changed="intcode_change()"
|
|
||||||
:value="signup.profile.cell"
|
|
||||||
:placeholder="$t('reg.cell')"
|
|
||||||
maxlength="20"
|
|
||||||
:enabledCountryCode="true"
|
|
||||||
inputClasses="clCell"
|
|
||||||
wrapperClasses="clCellCode">
|
|
||||||
</vue-tel-input>-->
|
|
||||||
|
|
||||||
<div class="text-center">
|
|
||||||
<q-btn
|
|
||||||
label="Mostra Privacy"
|
|
||||||
@click="showpolicy = true"
|
|
||||||
></q-btn>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<q-dialog v-model="showpolicy">
|
|
||||||
<q-card class="dialog_card">
|
|
||||||
<q-toolbar class="bg-primary text-white">
|
|
||||||
<q-toolbar-title> Privacy Policy </q-toolbar-title>
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
color="white"
|
|
||||||
icon="close"
|
|
||||||
v-close-popup
|
|
||||||
></q-btn>
|
|
||||||
</q-toolbar>
|
|
||||||
<q-card-section class="inset-shadow">
|
|
||||||
<PagePolicy
|
|
||||||
v-if="site.policy"
|
|
||||||
:owneremail="site.policy.owneremail"
|
|
||||||
:siteName="site.policy.siteName"
|
|
||||||
:ownerDataName="site.policy.ownerDataName"
|
|
||||||
:managerData="site.policy.managerData"
|
|
||||||
:includeData="site.policy.includeData"
|
|
||||||
:url="site.policy.url"
|
|
||||||
:lastdataupdate="site.policy.lastdataupdate"
|
|
||||||
:country="site.policy.country"
|
|
||||||
>
|
|
||||||
</PagePolicy>
|
|
||||||
</q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</q-dialog>
|
|
||||||
|
|
||||||
<q-checkbox
|
|
||||||
v-model="signup.terms"
|
|
||||||
color="secondary"
|
|
||||||
@blur="v$.terms.$touch"
|
|
||||||
:error="v$.terms.$error"
|
|
||||||
:error-message="`${tools.errorMsg('terms', v$.terms)}`"
|
|
||||||
:label="$t('reg.terms')"
|
|
||||||
>
|
|
||||||
</q-checkbox>
|
|
||||||
|
|
||||||
<q-checkbox
|
|
||||||
v-if="showadultcheck"
|
|
||||||
v-model="iamadult"
|
|
||||||
color="secondary"
|
|
||||||
:label="$t('reg.onlyadult')"
|
|
||||||
>
|
|
||||||
</q-checkbox>
|
|
||||||
|
|
||||||
<div v-if="showadultcheck">
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Già registrato?
|
|
||||||
<q-btn
|
|
||||||
class="q-ma-sm"
|
|
||||||
text-color="black"
|
|
||||||
color="white"
|
|
||||||
icon="fas fa-home"
|
|
||||||
label="Accedi"
|
|
||||||
to="/"
|
|
||||||
size="sm"
|
|
||||||
></q-btn>
|
|
||||||
<br /><br /><br />
|
|
||||||
-->
|
|
||||||
</q-carousel-slide>
|
|
||||||
</q-carousel>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row justify-center">
|
|
||||||
<q-btn-toggle
|
|
||||||
v-if="!signup.terms"
|
|
||||||
glossy
|
|
||||||
v-model="slide"
|
|
||||||
:options="[
|
|
||||||
{ label: 1, value: '1' },
|
|
||||||
{ label: 2, value: '2' },
|
|
||||||
{ label: 3, value: '3' },
|
|
||||||
{ label: 4, value: '4' },
|
|
||||||
]"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="isalreadyReg && !collettivo">
|
|
||||||
<q-banner
|
|
||||||
class="bg-negative text-white text-h5"
|
|
||||||
transition-show="jump-down"
|
|
||||||
>
|
|
||||||
Utente già registrato con l'username {{ signup.username }}
|
|
||||||
</q-banner>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" src="./CSignUp.ts">
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
@import './CSignUp.scss';
|
|
||||||
</style>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export {default as CSignUp} from './CSignUp.vue'
|
|
||||||
@@ -1,719 +1,24 @@
|
|||||||
// ========================================
|
|
||||||
// 🎨 MODERN SIGNUP COMPONENT STYLES
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
// Variables
|
|
||||||
$primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
||||||
$success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
|
|
||||||
$error-gradient: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
|
|
||||||
$card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
|
||||||
$card-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
|
|
||||||
$border-radius: 20px;
|
|
||||||
$transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// CONTAINER & LAYOUT
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.signup-container {
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
||||||
padding: 20px 15px 100px 15px; // Extra padding bottom for fixed buttons
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
padding: 0px 10px 110px 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.signup-content {
|
|
||||||
max-width: 500px;
|
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// HEADER SECTION
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.header-section {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
/* spazio tra logo e titolo */
|
|
||||||
animation: fadeInDown 0.6s ease-out;
|
|
||||||
|
|
||||||
@keyframes fadeInDown {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(-20px);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.title-section {
|
|
||||||
flex: 1;
|
|
||||||
margin-top: 5px;
|
|
||||||
|
|
||||||
.signup-title {
|
|
||||||
font-size: 2rem;
|
|
||||||
font-weight: 700;
|
|
||||||
background: $primary-gradient;
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
background-clip: text;
|
|
||||||
margin: 0 0 5px 0;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.signup-subtitle {
|
|
||||||
color: #64748b;
|
|
||||||
font-size: 13px;
|
|
||||||
margin: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 0.75rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// SUCCESS & ERROR CARDS
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.already-logged,
|
|
||||||
.error-card {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 60vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.success-card,
|
|
||||||
.error-card {
|
|
||||||
background: white;
|
|
||||||
border-radius: $border-radius;
|
|
||||||
padding: 48px 32px;
|
|
||||||
box-shadow: $card-shadow;
|
|
||||||
text-align: center;
|
|
||||||
animation: scaleIn 0.5s ease-out;
|
|
||||||
|
|
||||||
@keyframes scaleIn {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: scale(0.9);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
padding: 32px 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.success-message {
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #1e293b;
|
|
||||||
margin-bottom: 32px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 20px;
|
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message {
|
|
||||||
font-size: 20px;
|
|
||||||
color: #1e293b;
|
|
||||||
margin-top: 16px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-buttons {
|
|
||||||
display: flex;
|
|
||||||
gap: 8px;
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
.action-btn {
|
|
||||||
min-width: 160px;
|
|
||||||
height: 48px;
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: none;
|
|
||||||
letter-spacing: 0.3px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
min-width: 140px;
|
|
||||||
height: 44px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// FORM CONTAINER
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.form-container {
|
|
||||||
background: white;
|
|
||||||
border-radius: $border-radius;
|
|
||||||
padding: 36px 24px 24px 24px;
|
|
||||||
box-shadow: $card-shadow;
|
|
||||||
transition: $transition;
|
|
||||||
animation: fadeInUp 0.6s ease-out;
|
|
||||||
|
|
||||||
@keyframes fadeInUp {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(30px);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
padding: 24px 16px 16px 16px;
|
|
||||||
border-radius: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.registration-form {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// PROGRESS INDICATOR
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.progress-indicator {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
position: relative;
|
|
||||||
padding: 0 20px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
margin-bottom: 32px;
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-line {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 50px;
|
|
||||||
right: 50px;
|
|
||||||
height: 4px;
|
|
||||||
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
|
||||||
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
||||||
z-index: 0;
|
|
||||||
border-radius: 2px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
left: 35px;
|
|
||||||
right: 35px;
|
|
||||||
top: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-step {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
z-index: 1;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.step-circle {
|
|
||||||
width: 42px;
|
|
||||||
height: 42px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: #e2e8f0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #94a3b8;
|
|
||||||
transition: $transition;
|
|
||||||
border: 3px solid white;
|
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.step-label {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #94a3b8;
|
|
||||||
transition: $transition;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
.step-circle {
|
|
||||||
background: $primary-gradient;
|
|
||||||
color: white;
|
|
||||||
transform: scale(1.1);
|
|
||||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.step-label {
|
|
||||||
color: #667eea;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.completed {
|
|
||||||
.step-circle {
|
|
||||||
background: $success-gradient;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.step-label {
|
|
||||||
color: #11998e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// CAROUSEL & SLIDES
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.modern-carousel {
|
|
||||||
margin-bottom: 0;
|
|
||||||
min-height: 400px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
min-height: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-carousel__slide) {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.carousel-slide {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-start;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-content {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
animation: slideIn 0.4s ease-out;
|
|
||||||
|
|
||||||
@keyframes slideIn {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateX(20px);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateX(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-header {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 12px;
|
|
||||||
margin-left: 6px;
|
|
||||||
margin-bottom: 32px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-icon {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
opacity: 0;
|
|
||||||
animation: iconPop 0.6s ease-out 0.2s forwards;
|
|
||||||
|
|
||||||
@keyframes iconPop {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: scale(0) rotate(-180deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: scale(1) rotate(0deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: px !important;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-title {
|
|
||||||
font-size: 26px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #1e293b;
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 22px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.slide-description {
|
|
||||||
font-size: 15px;
|
|
||||||
color: #64748b;
|
|
||||||
margin: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// FORM FIELDS
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.form-fields {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 20px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
gap: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.name-fields {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 20px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
gap: 0px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.modern-input {
|
|
||||||
:deep(.q-field__control) {
|
|
||||||
height: 56px;
|
|
||||||
border-radius: 14px;
|
|
||||||
background: #f8fafc;
|
|
||||||
transition: $transition;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: #f1f5f9;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
height: 52px;
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field__label) {
|
|
||||||
font-weight: 500;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field__control)::before {
|
|
||||||
border-color: #e2e8f0;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field__control):hover::before {
|
|
||||||
border-color: #cbd5e1;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field--focused .q-field__control)::before {
|
|
||||||
border-color: #667eea;
|
|
||||||
border-width: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field--filled .q-field__control) {
|
|
||||||
background: #f8fafc;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field__prepend) {
|
|
||||||
.q-icon {
|
|
||||||
font-size: 22px;
|
|
||||||
margin-right: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-field__append) {
|
|
||||||
.q-btn {
|
|
||||||
opacity: 0.6;
|
|
||||||
transition: $transition;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// PRIVACY SECTION
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.privacy-section {
|
|
||||||
margin-top: 24px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-separator {
|
|
||||||
background: #e2e8f0;
|
|
||||||
margin: 24px 0;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.privacy-link {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
|
|
||||||
.q-btn {
|
|
||||||
font-weight: 500;
|
|
||||||
text-transform: none;
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: rgba(102, 126, 234, 0.08);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.privacy-checkbox {
|
|
||||||
:deep(.q-checkbox__label) {
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.3;
|
|
||||||
color: #475569;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.q-checkbox__inner) {
|
|
||||||
width: 22px;
|
|
||||||
height: 22px;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
:deep(.q-checkbox__label) {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// FIXED BOTTOM ACTIONS
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.fixed-bottom-actions {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background: white;
|
|
||||||
padding: 16px 20px;
|
|
||||||
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
|
|
||||||
z-index: 1000;
|
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
border-top: 1px solid #e2e8f0;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
padding: 14px 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-row {
|
|
||||||
max-width: 500px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-btn {
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: none;
|
|
||||||
letter-spacing: 0.3px;
|
|
||||||
height: 50px;
|
|
||||||
border-radius: 14px;
|
|
||||||
transition: $transition;
|
|
||||||
font-size: 15px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
height: 46px;
|
|
||||||
border-radius: 12px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not([disabled]) {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active:not([disabled]) {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[disabled] {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.prev-btn {
|
|
||||||
flex: 0 0 auto;
|
|
||||||
min-width: 130px;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
min-width: 110px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.next-btn {
|
|
||||||
flex: 1;
|
|
||||||
background: $primary-gradient;
|
|
||||||
|
|
||||||
&:hover:not([disabled]) {
|
|
||||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit-btn {
|
|
||||||
flex: 1;
|
|
||||||
background: $success-gradient;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
|
|
||||||
&:hover:not([disabled]) {
|
|
||||||
box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// TELEGRAM SETUP
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.telegram-setup,
|
|
||||||
.telegram-registration {
|
|
||||||
text-align: center;
|
|
||||||
padding: 48px 24px;
|
|
||||||
background: white;
|
|
||||||
border-radius: $border-radius;
|
|
||||||
box-shadow: $card-shadow;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
padding: 32px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.telegram-message {
|
|
||||||
font-size: 18px;
|
|
||||||
color: #475569;
|
|
||||||
margin: 24px 0;
|
|
||||||
line-height: 1.3;
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
font-size: 16px;
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.telegram-btn {
|
|
||||||
min-width: 200px;
|
|
||||||
height: 54px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: none;
|
|
||||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
min-width: 180px;
|
|
||||||
height: 50px;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// UTILITIES
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.signup {
|
.signup {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 500px;
|
max-width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legacy classes (kept for compatibility)
|
.clCellCode {
|
||||||
.clCellCode,
|
border-radius: 32px;
|
||||||
|
border-right: #2d2260;
|
||||||
|
height: 50px;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.clCell {
|
.clCell {
|
||||||
border-radius: 32px;
|
border-radius: 32px;
|
||||||
border-right: #2d2260;
|
border-right: #2d2260;
|
||||||
@@ -728,37 +33,14 @@ $transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|||||||
|
|
||||||
.myuserinvitante{
|
.myuserinvitante{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #667eea;
|
color: red;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cosa_chiedere{
|
.cosa_chiedere{
|
||||||
font-weight: 600;
|
font-weight: bold;
|
||||||
color: #667eea;
|
color: blue;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========================================
|
|
||||||
// ANIMATIONS & TRANSITIONS
|
|
||||||
// ========================================
|
|
||||||
|
|
||||||
.q-carousel__slide {
|
|
||||||
animation: fadeSlide 0.3s ease-out;
|
|
||||||
|
|
||||||
@keyframes fadeSlide {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Smooth scroll behavior
|
|
||||||
* {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
}
|
||||||
@@ -1,30 +1,42 @@
|
|||||||
import { tools } from '@tools'
|
import { tools } from '@tools';
|
||||||
|
|
||||||
import type { ISignupOptions } from 'model'
|
import type { ISignupOptions } from 'model';
|
||||||
|
|
||||||
import { Logo } from '@src/components/logo'
|
import { Logo } from '@src/components/logo';
|
||||||
|
|
||||||
import { CTitleBanner } from '../CTitleBanner'
|
// import 'vue-country-code/dist/vue-country-code.css'
|
||||||
import { CCopyBtn } from '../CCopyBtn'
|
|
||||||
import { CRegistration } from '../CRegistration'
|
|
||||||
import { PagePolicy } from '../PagePolicy'
|
|
||||||
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
|
|
||||||
import { CSignIn } from '@src/components/CSignIn'
|
|
||||||
import { useQuasar } from 'quasar'
|
|
||||||
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 '@src/common/shared_vuejs'
|
import { CTitleBanner } from '../CTitleBanner';
|
||||||
|
import { CCopyBtn } from '../CCopyBtn';
|
||||||
|
import { CRegistration } from '../CRegistration';
|
||||||
|
import { PagePolicy } from '../PagePolicy';
|
||||||
|
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue';
|
||||||
|
import { CSignIn } from '@src/components/CSignIn';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { DefaultProfile, useUserStore } from '@store/UserStore';
|
||||||
|
import useValidate from '@vuelidate/core';
|
||||||
|
import useVuelidate from '@vuelidate/core';
|
||||||
|
|
||||||
import { minLength, required, sameAs } from '@vuelidate/validators'
|
import { shared_consts } from '@src/common/shared_vuejs';
|
||||||
|
|
||||||
import { complexity, complexityUser, registereduser, aportadorexist } from '../../validation'
|
import { minLength, required, sameAs } from '@vuelidate/validators';
|
||||||
|
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
// import { ValidationRuleset } from 'vuelidate'
|
||||||
import { static_data } from '@src/db/static_data'
|
import {
|
||||||
import { useGlobalStore } from '@store/globalStore'
|
complexity,
|
||||||
|
complexityUser,
|
||||||
|
registereduser,
|
||||||
|
aportadorexist,
|
||||||
|
} from '../../validation';
|
||||||
|
|
||||||
|
// import 'vue3-tel-input/dist/vue3-tel-input.css'
|
||||||
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
import { static_data } from '@src/db/static_data';
|
||||||
|
import { useGlobalStore } from '@store/globalStore';
|
||||||
|
import { useInvitaAmicoStore } from 'app/src/stores/useInvitaAmicoStore';
|
||||||
|
|
||||||
|
// import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CSignUp',
|
name: 'CSignUp',
|
||||||
@@ -80,59 +92,78 @@ export default defineComponent({
|
|||||||
required: false,
|
required: false,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
token: {
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const $q = useQuasar()
|
const $q = useQuasar();
|
||||||
const { t } = useI18n()
|
const { t } = useI18n();
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore();
|
||||||
const $route = useRoute()
|
const $route = useRoute();
|
||||||
const $router = useRouter()
|
const $router = useRouter();
|
||||||
|
|
||||||
const countryname = ref('')
|
const countryname = ref('');
|
||||||
const iamadult = ref(false)
|
const iamadult = ref(false);
|
||||||
const duplicate_email = ref(false)
|
const duplicate_email = ref(false);
|
||||||
const duplicate_username = ref(false)
|
const duplicate_username = ref(false);
|
||||||
const visureg = ref(false)
|
const visureg = ref(false);
|
||||||
const showpolicy = ref(false)
|
const showpolicy = ref(false);
|
||||||
const visubuttBOT = ref(false)
|
const visubuttBOT = ref(false);
|
||||||
const isalreadyReg = ref(false)
|
const isalreadyReg = ref(false);
|
||||||
const needTelegram = ref(false)
|
const needTelegram = ref(false);
|
||||||
const slide = ref('1')
|
const slide = ref('1');
|
||||||
const inputAportador = ref(<any>null)
|
const inputAportador = ref(<any>null);
|
||||||
const inputEmail = ref(<any>null)
|
const inputEmail = ref(<any>null);
|
||||||
const inputUsername = ref(<any>null)
|
const inputUsername = ref(<any>null);
|
||||||
const inputName = ref(<any>null)
|
const inputName = ref(<any>null);
|
||||||
const inputSurname = ref(<any>null)
|
const inputSurname = ref(<any>null);
|
||||||
const inputPassword = ref(<any>null)
|
const inputPassword = ref(<any>null);
|
||||||
const inputPassword2 = ref(<any>null)
|
const inputPassword2 = ref(<any>null);
|
||||||
|
|
||||||
|
const invitaStore = useInvitaAmicoStore();
|
||||||
|
|
||||||
const checkifDisabled = computed(() => {
|
const checkifDisabled = computed(() => {
|
||||||
let ret = true
|
let ret = true;
|
||||||
if (slide.value === '1') {
|
if (slide.value === '1') {
|
||||||
// Email + Aportador
|
// Invitante + Email
|
||||||
ret = !signup.email || (tools.getAskToVerifyReg() && (!signup.aportador_solidario || inputAportador.value?.hasError)) || (inputEmail.value && inputEmail.value.hasError)
|
ret =
|
||||||
|
!signup.email ||
|
||||||
|
(tools.getAskToVerifyReg() &&
|
||||||
|
(!signup.aportador_solidario || inputAportador.value.hasError)) ||
|
||||||
|
(inputEmail.value && inputEmail.value.hasError);
|
||||||
} else if (slide.value === '2') {
|
} else if (slide.value === '2') {
|
||||||
// Username + Nome/Cognome
|
// Username
|
||||||
ret = !signup.username || (inputUsername.value && inputUsername.value.hasError)
|
ret = !signup.username || (inputUsername.value && inputUsername.value.hasError);
|
||||||
|
|
||||||
if (tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) {
|
if (
|
||||||
ret = ret || (!signup.name || (inputName.value && inputName.value.hasError))
|
tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)
|
||||||
ret = ret || (!signup.surname || (inputSurname.value && inputSurname.value.hasError))
|
) {
|
||||||
|
ret = ret || !signup.name || (inputName.value && inputName.value.hasError);
|
||||||
|
ret =
|
||||||
|
ret || !signup.surname || (inputSurname.value && inputSurname.value.hasError);
|
||||||
}
|
}
|
||||||
} else if (slide.value === '3') {
|
} else if (slide.value === '3') {
|
||||||
// Password + Ripeti Password
|
// Password
|
||||||
ret = !signup.password || (!inputPassword.value || (inputPassword.value && inputPassword.value.hasError)) || (!inputPassword2.value || (inputPassword2.value && inputPassword2.value.hasError))
|
ret =
|
||||||
|
!signup.password ||
|
||||||
|
!inputPassword.value ||
|
||||||
|
(inputPassword.value && inputPassword.value.hasError) ||
|
||||||
|
!inputPassword2.value ||
|
||||||
|
(inputPassword2.value && inputPassword2.value.hasError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret
|
return ret;
|
||||||
})
|
});
|
||||||
|
|
||||||
const typePassword = ref('password')
|
const typePassword = ref('password');
|
||||||
|
|
||||||
const ap_iniziale = ref('')
|
const ap_iniziale = ref('');
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore();
|
||||||
const site = computed(() => globalStore.site)
|
const site = computed(() => globalStore.site);
|
||||||
|
|
||||||
const signup = reactive(<ISignupOptions>{
|
const signup = reactive(<ISignupOptions>{
|
||||||
email: '',
|
email: '',
|
||||||
@@ -141,10 +172,10 @@ export default defineComponent({
|
|||||||
surname: '',
|
surname: '',
|
||||||
password: '',
|
password: '',
|
||||||
repeatPassword: '',
|
repeatPassword: '',
|
||||||
terms: true, // ✅ GIÀ SPUNTATA DI DEFAULT
|
terms: true,
|
||||||
profile: DefaultProfile,
|
profile: DefaultProfile,
|
||||||
aportador_solidario: '',
|
aportador_solidario: '',
|
||||||
})
|
});
|
||||||
|
|
||||||
const validations: any = computed(() => {
|
const validations: any = computed(() => {
|
||||||
const valid: any = {
|
const valid: any = {
|
||||||
@@ -164,198 +195,278 @@ export default defineComponent({
|
|||||||
registereduser,
|
registereduser,
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
required: (props.collettivo || tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) ? true : false,
|
required:
|
||||||
|
props.collettivo ||
|
||||||
|
tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)
|
||||||
|
? true
|
||||||
|
: false,
|
||||||
},
|
},
|
||||||
surname: {
|
surname: {
|
||||||
required: (tools.getConfSiteOptionEnabled(shared_consts.ConfSite.regNameSurnameMandatory)) ? true : false,
|
required: tools.getConfSiteOptionEnabled(
|
||||||
|
shared_consts.ConfSite.regNameSurnameMandatory
|
||||||
|
)
|
||||||
|
? true
|
||||||
|
: false,
|
||||||
},
|
},
|
||||||
terms: {
|
terms: {
|
||||||
required,
|
required,
|
||||||
},
|
},
|
||||||
aportador_solidario: {
|
aportador_solidario: {
|
||||||
aportadorexist,
|
aportadorexist,
|
||||||
required
|
required,
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
if (props.show_namesurname) {
|
if (props.show_namesurname) {
|
||||||
valid.name = {}
|
valid.name = {};
|
||||||
valid.surname = {}
|
valid.surname = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
return valid
|
return valid;
|
||||||
})
|
});
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const v$ = useVuelidate(validations, signup)
|
const v$ = useVuelidate(validations, signup);
|
||||||
|
|
||||||
const invited = ref($route.params.invited)
|
const invited = ref($route.params.invited);
|
||||||
const usernameteleg = ref($route.params.usernameteleg)
|
const usernameteleg = ref($route.params.usernameteleg);
|
||||||
const idteleg = ref($route.params.idteleg)
|
const idteleg = ref($route.params.idteleg);
|
||||||
|
|
||||||
watch(() => slide.value, (to: any, from: any) => {
|
watch(
|
||||||
|
() => slide.value,
|
||||||
|
(to: any, from: any) => {
|
||||||
if (slide.value === '3') {
|
if (slide.value === '3') {
|
||||||
v$.value.$touch()
|
v$.value.$touch();
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
);
|
||||||
|
|
||||||
watch(() => invited, (to: any, from: any) => {
|
watch(
|
||||||
|
() => invited,
|
||||||
|
(to: any, from: any) => {
|
||||||
if (props.showaportador) {
|
if (props.showaportador) {
|
||||||
console.log('changeaportador', $route.params.invited)
|
console.log('changeaportador', $route.params.invited);
|
||||||
if (!signup.aportador_solidario) {
|
if (!signup.aportador_solidario) {
|
||||||
if ($route.params.invited) {
|
if ($route.params.invited) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
signup.aportador_solidario = $route.params.invited
|
signup.aportador_solidario = $route.params.invited;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
);
|
||||||
|
|
||||||
function allowSubmit() {
|
function allowSubmit() {
|
||||||
let error = v$.value.$error || v$.value.$invalid || globalStore.serverError
|
let error = v$.value.$error || v$.value.$invalid || globalStore.serverError;
|
||||||
|
|
||||||
if (props.showadultcheck)
|
if (props.showadultcheck) error = error || !iamadult.value;
|
||||||
error = error || !iamadult.value
|
|
||||||
|
|
||||||
if (props.showcell) {
|
if (props.showcell) {
|
||||||
if (signup.profile)
|
if (signup.profile) error = error || signup.profile.cell!.length <= 6;
|
||||||
error = error || signup.profile.cell!.length <= 6
|
else error = true;
|
||||||
else
|
|
||||||
error = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tools.getAskToVerifyReg()) {
|
if (tools.getAskToVerifyReg()) {
|
||||||
error = error || !signup.aportador_solidario
|
error = error || !signup.aportador_solidario;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !error
|
return !error;
|
||||||
}
|
}
|
||||||
|
|
||||||
function env() {
|
function env() {
|
||||||
return process.env
|
return process.env;
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeemail() {
|
function changeemail() {
|
||||||
signup.email = tools.removespaces(signup.email!)
|
signup.email = tools.removespaces(signup.email!);
|
||||||
signup.email = signup.email.toLowerCase()
|
signup.email = signup.email.toLowerCase();
|
||||||
emit('update:value', signup.email)
|
emit('update:value', signup.email);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeusername(value: string) {
|
function changeusername(value: string) {
|
||||||
signup.username = tools.removespaces(signup.username)
|
signup.username = tools.removespaces(signup.username);
|
||||||
emit('update:value', signup.username)
|
emit('update:value', signup.username);
|
||||||
}
|
}
|
||||||
|
|
||||||
function submitOk() {
|
function submitOk() {
|
||||||
v$.value.$touch()
|
v$.value.$touch();
|
||||||
|
|
||||||
signup.email = tools.removespaces(signup.email!)
|
signup.email = tools.removespaces(signup.email!);
|
||||||
signup.email = signup.email.toLowerCase()
|
signup.email = signup.email.toLowerCase();
|
||||||
signup.username = tools.removespaces(signup.username)
|
signup.username = tools.removespaces(signup.username);
|
||||||
|
|
||||||
// remove @
|
// remove @
|
||||||
signup.username = tools.removeAt(signup.username)
|
signup.username = tools.removeAt(signup.username);
|
||||||
|
|
||||||
duplicate_email.value = false
|
duplicate_email.value = false;
|
||||||
duplicate_username.value = false
|
duplicate_username.value = false;
|
||||||
|
|
||||||
if (!signup.terms) {
|
if (!signup.terms) {
|
||||||
tools.showNotif($q, t('reg.err.terms'))
|
tools.showNotif($q, t('reg.err.terms'));
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*if (v$.signup.$error) {
|
||||||
|
tools.showNotif($q, t('reg.err.errore_generico'))
|
||||||
|
return
|
||||||
|
} */
|
||||||
|
|
||||||
if (signup.name) {
|
if (signup.name) {
|
||||||
signup.name = tools.CapitalizeAllWords(signup.name)
|
signup.name = tools.CapitalizeAllWords(signup.name);
|
||||||
signup.surname = tools.CapitalizeAllWords(signup.surname)
|
signup.surname = tools.CapitalizeAllWords(signup.surname);
|
||||||
}
|
}
|
||||||
|
|
||||||
$q.loading.show({ message: t('reg.incorso') })
|
$q.loading.show({ message: t('reg.incorso') });
|
||||||
|
|
||||||
console.log(signup)
|
console.log(signup);
|
||||||
return userStore.signup(tools.clone(signup))
|
return userStore
|
||||||
|
.signup(tools.clone(signup))
|
||||||
.then((ris: any) => {
|
.then((ris: any) => {
|
||||||
if (tools.SignUpcheckErrors($q, $router, ris.code, ris.msg))
|
if (tools.SignUpcheckErrors($q, $router, ris.code, ris.msg)) $q.loading.hide();
|
||||||
$q.loading.hide()
|
|
||||||
}).catch((error: string) => {
|
|
||||||
console.log('ERROR = ' + error)
|
|
||||||
$q.loading.hide()
|
|
||||||
})
|
})
|
||||||
|
.catch((error: string) => {
|
||||||
|
console.log('ERROR = ' + error);
|
||||||
|
$q.loading.hide();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function intcode_change(coderec: any) {
|
function intcode_change(coderec: any) {
|
||||||
|
// console.log('intcode', coderec)
|
||||||
if (signup.profile) {
|
if (signup.profile) {
|
||||||
signup.profile.intcode_cell = '+' + coderec.dialCode
|
signup.profile.intcode_cell = '+' + coderec.dialCode;
|
||||||
signup.profile.iso2_cell = coderec.iso2
|
signup.profile.iso2_cell = coderec.iso2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectcountry({ name, iso2, dialCode }: { name: string, iso2: string, dialCode: string }) {
|
function selectcountry({
|
||||||
signup.profile.nationality = iso2
|
name,
|
||||||
countryname.value = name
|
iso2,
|
||||||
|
dialCode,
|
||||||
|
}: {
|
||||||
|
name: string;
|
||||||
|
iso2: string;
|
||||||
|
dialCode: string;
|
||||||
|
}) {
|
||||||
|
// console.log(name, iso2, dialCode)
|
||||||
|
signup.profile.nationality = iso2;
|
||||||
|
countryname.value = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function created() {
|
async function created() {
|
||||||
needTelegram.value = props.need_Telegram
|
needTelegram.value = props.need_Telegram;
|
||||||
|
|
||||||
console.log('$route.params', $route.params)
|
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.aportador_solidario = $route.params.invited
|
||||||
signup.username = $route.params.usernameteleg ? $route.params.usernameteleg.toString() : ''
|
? $route.params.invited.toString()
|
||||||
signup.regexpire = $route.params.regexpire ? $route.params.regexpire.toString() : props.regexpire
|
: '';
|
||||||
|
signup.username = $route.params.usernameteleg
|
||||||
|
? $route.params.usernameteleg.toString()
|
||||||
|
: '';
|
||||||
|
signup.regexpire = $route.params.regexpire
|
||||||
|
? $route.params.regexpire.toString()
|
||||||
|
: props.regexpire;
|
||||||
if (signup.username)
|
if (signup.username)
|
||||||
isalreadyReg.value = await tools.registeredusername(signup.username)
|
isalreadyReg.value = await tools.registeredusername(signup.username);
|
||||||
signup.profile.username_telegram = 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
|
signup.profile.teleg_id = $route.params.idteleg
|
||||||
|
? parseInt($route.params.idteleg.toString(), 10)
|
||||||
|
: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.collettivo) {
|
if (props.collettivo) {
|
||||||
signup.username = props.username_default!
|
signup.username = props.username_default!;
|
||||||
signup.name = props.name_default!
|
signup.name = props.name_default!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// console.log('1) aportador_solidario', signup.aportador_solidario)
|
||||||
|
|
||||||
if (!signup.aportador_solidario)
|
if (!signup.aportador_solidario)
|
||||||
signup.aportador_solidario = tools.getCookie(tools.APORTADOR_SOLIDARIO, signup.aportador_solidario)
|
signup.aportador_solidario = tools.getCookie(
|
||||||
|
tools.APORTADOR_SOLIDARIO,
|
||||||
|
signup.aportador_solidario
|
||||||
|
);
|
||||||
|
|
||||||
if (!signup.aportador_solidario || signup.aportador_solidario === 'undefined') {
|
if (!signup.aportador_solidario || signup.aportador_solidario === 'undefined') {
|
||||||
if (!tools.getAskToVerifyReg()) {
|
if (!tools.getAskToVerifyReg()) {
|
||||||
signup.aportador_solidario = tools.APORTADOR_NONE
|
signup.aportador_solidario = tools.APORTADOR_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// console.log('signup.aportador_solidario', signup.aportador_solidario)
|
||||||
|
// console.log('getasktoverify', tools.getAskToVerifyReg())
|
||||||
|
|
||||||
if (tools.getAskToVerifyReg()) {
|
if (tools.getAskToVerifyReg()) {
|
||||||
if (!signup.username || !signup.profile.teleg_id) {
|
if (!signup.username || !signup.profile.teleg_id) {
|
||||||
visubuttBOT.value = true
|
// tools.copyStringToClipboard($q, signup.aportador_solidario, true)
|
||||||
|
visubuttBOT.value = true;
|
||||||
|
// window.location.href = tools.getLinkBotTelegram()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function myRuleEmail(val: string) {
|
function myRuleEmail(val: string) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
// call
|
||||||
|
// resolve(true)
|
||||||
|
// --> content is valid
|
||||||
|
// resolve(false)
|
||||||
|
// --> content is NOT valid, no error message
|
||||||
|
// resolve(error_message)
|
||||||
|
// --> content is NOT valid, we have error message
|
||||||
tools.registeredemail(val).then((emailOk) => {
|
tools.registeredemail(val).then((emailOk) => {
|
||||||
let risp = !!emailOk || t('reg.err.duplicate_email')
|
let risp = !!emailOk || t('reg.err.duplicate_email');
|
||||||
if (emailOk) {
|
if (emailOk) {
|
||||||
risp = tools.isEmail(val) || t('reg.err.invalid_email')
|
risp = tools.isEmail(val) || t('reg.err.invalid_email');
|
||||||
emailOk = emailOk && tools.isEmail(val)
|
emailOk = emailOk && tools.isEmail(val);
|
||||||
}
|
}
|
||||||
resolve(risp)
|
if (emailOk) {
|
||||||
})
|
// risp = !tools.isEmailNoMicroZozz(val) || t('reg.err.invalid_email_micro')
|
||||||
})
|
}
|
||||||
|
|
||||||
|
resolve(risp);
|
||||||
|
});
|
||||||
|
|
||||||
|
// calling reject(...) will also mark the input
|
||||||
|
// as having an error, but there will not be any
|
||||||
|
// error message displayed below the input
|
||||||
|
// (only in browser console)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPassword() {
|
function showPassword() {
|
||||||
typePassword.value = typePassword.value === 'password' ? 'text' : 'password'
|
//
|
||||||
|
typePassword.value = typePassword.value === 'password' ? 'text' : 'password';
|
||||||
}
|
}
|
||||||
|
|
||||||
function regEventEmail(invited: boolean) {
|
function regEventEmail(invited: boolean) {
|
||||||
console.log('EVENT RECEIVED: regEventEmail', invited)
|
console.log('EVENT RECEIVED: regEventEmail', invited);
|
||||||
visubuttBOT.value = false
|
// reg
|
||||||
needTelegram.value = false
|
visubuttBOT.value = false;
|
||||||
|
needTelegram.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
created()
|
onMounted(async () => {
|
||||||
|
const token = props.token;
|
||||||
|
|
||||||
|
if (token) {
|
||||||
|
// carica le info della registrazione
|
||||||
|
const risinvite = await invitaStore.ottieniInvitoByToken(token);
|
||||||
|
if (risinvite && risinvite.email) {
|
||||||
|
signup.email = risinvite.email;
|
||||||
|
if (risinvite.usernameInvitante)
|
||||||
|
signup.aportador_solidario = risinvite.usernameInvitante
|
||||||
|
|
||||||
|
slide.value = '2'
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
created();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
changeemail,
|
changeemail,
|
||||||
@@ -391,6 +502,6 @@ export default defineComponent({
|
|||||||
inputPassword,
|
inputPassword,
|
||||||
inputPassword2,
|
inputPassword2,
|
||||||
shared_consts,
|
shared_consts,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
|
|||||||
@@ -1,58 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="signup-container">
|
<div>
|
||||||
<div
|
<div
|
||||||
v-if="tools.isLogged() && tools.getUsername() && !collettivo"
|
v-if="tools.isLogged() && tools.getUsername() && !collettivo"
|
||||||
class="already-logged"
|
class="text-center"
|
||||||
>
|
>
|
||||||
<div class="success-card">
|
<q-banner
|
||||||
<q-icon
|
|
||||||
name="check_circle"
|
|
||||||
size="64px"
|
|
||||||
color="positive"
|
|
||||||
class="q-mb-md"
|
|
||||||
/>
|
|
||||||
<div class="success-message">{{ tools.getUsername() }}, sei già registrato!</div>
|
|
||||||
<div class="action-buttons">
|
|
||||||
<q-btn
|
|
||||||
unelevated
|
|
||||||
rounded
|
rounded
|
||||||
|
class="bg-green text-white"
|
||||||
|
style="text-align: center"
|
||||||
|
>
|
||||||
|
<span class="mybanner">
|
||||||
|
{{ tools.getUsername() }} sei già correttamente registrato ed hai accesso alla
|
||||||
|
Piattaforma<br />
|
||||||
|
</span>
|
||||||
|
</q-banner>
|
||||||
|
|
||||||
|
<div class="row q-ma-sm q-pa-sm justify-center">
|
||||||
|
<q-btn
|
||||||
|
class="q-ma-sm"
|
||||||
color="primary"
|
color="primary"
|
||||||
icon="fas fa-home"
|
icon="fas fa-home"
|
||||||
label="Vai alla Home"
|
label="Vai alla Home"
|
||||||
to="/"
|
to="/"
|
||||||
class="action-btn"
|
></q-btn>
|
||||||
/>
|
|
||||||
<q-btn
|
<q-btn
|
||||||
unelevated
|
class="q-ma-sm"
|
||||||
rounded
|
color="accent"
|
||||||
outline
|
icon="fas fa-sign"
|
||||||
color="primary"
|
label="Voglio vedere la pagina di Registrazione"
|
||||||
label="Vedi Registrazione"
|
|
||||||
@click="visureg = true"
|
@click="visureg = true"
|
||||||
class="action-btn"
|
></q-btn>
|
||||||
/>
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="!tools.isLogged() || visureg || collettivo"
|
||||||
|
class="text-center"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<logo mystyle="width: 40px !important; height: 40px !important; "></logo>
|
||||||
|
|
||||||
|
<div v-if="!isalreadyReg && !(visubuttBOT && needTelegram)">
|
||||||
|
<CTitleBanner :title="$t('pages.SignUp')"></CTitleBanner>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
v-if="!tools.isLogged() || visureg || collettivo"
|
|
||||||
class="signup-content"
|
|
||||||
>
|
|
||||||
<div class="header-section">
|
|
||||||
<logo mystyle="width: 50px !important; height: 50px !important;" />
|
|
||||||
<div
|
|
||||||
v-if="!isalreadyReg && !(visubuttBOT && needTelegram)"
|
|
||||||
class="title-section"
|
|
||||||
>
|
|
||||||
<h1 class="signup-title">{{ $t('pages.SignUp') }}</h1>
|
|
||||||
<p class="signup-subtitle">Entra in RISO in pochi passi</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-if="visubuttBOT && needTelegram && !collettivo"
|
v-if="visubuttBOT && needTelegram && !collettivo"
|
||||||
class="telegram-registration"
|
class="q-gutter-md"
|
||||||
>
|
>
|
||||||
|
<div class="q-ma-md">
|
||||||
<CRegistration
|
<CRegistration
|
||||||
:invited="signup.aportador_solidario"
|
:invited="signup.aportador_solidario"
|
||||||
:regexpire="regexpire"
|
:regexpire="regexpire"
|
||||||
@@ -60,105 +60,78 @@
|
|||||||
:signupform="true"
|
:signupform="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-else-if="!isalreadyReg || collettivo"
|
v-else-if="!isalreadyReg || collettivo"
|
||||||
class="form-container"
|
class="q-gutter-sm q-mt-sm"
|
||||||
>
|
>
|
||||||
<div
|
<div v-if="signup.username === 'undefined'">
|
||||||
v-if="signup.username === 'undefined'"
|
<br />
|
||||||
class="telegram-setup"
|
Vai su <b>BOT RISO</b> Telegram ed imposta l'Username di Telegram.<br /><br />
|
||||||
>
|
|
||||||
<q-icon
|
|
||||||
name="fab fa-telegram"
|
|
||||||
size="80px"
|
|
||||||
color="primary"
|
|
||||||
class="q-mb-md"
|
|
||||||
/>
|
|
||||||
<p class="telegram-message">
|
|
||||||
Vai su <strong>BOT RISO</strong> Telegram ed imposta l'Username
|
|
||||||
</p>
|
|
||||||
<q-btn
|
<q-btn
|
||||||
unelevated
|
|
||||||
rounded
|
rounded
|
||||||
color="primary"
|
color="primary"
|
||||||
size="lg"
|
|
||||||
icon="fab fa-telegram"
|
icon="fab fa-telegram"
|
||||||
label="Apri BOT"
|
label="Apri BOT"
|
||||||
type="a"
|
type="a"
|
||||||
:href="tools.getLinkBotTelegram(signup.aportador_solidario, regexpire)"
|
:href="tools.getLinkBotTelegram(signup.aportador_solidario, regexpire)"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="telegram-btn"
|
></q-btn>
|
||||||
/>
|
<br /><br />
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
<div
|
|
||||||
v-else
|
|
||||||
class="registration-form"
|
|
||||||
>
|
|
||||||
<!-- Progress Indicator -->
|
|
||||||
<div class="progress-indicator">
|
|
||||||
<div
|
|
||||||
v-for="step in 3"
|
|
||||||
:key="step"
|
|
||||||
class="progress-step"
|
|
||||||
:class="{
|
|
||||||
active: parseInt(slide) >= step,
|
|
||||||
completed: parseInt(slide) > step,
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
<div class="step-circle">
|
|
||||||
<q-icon
|
|
||||||
v-if="parseInt(slide) > step"
|
|
||||||
name="check"
|
|
||||||
size="20px"
|
|
||||||
color="white"
|
|
||||||
/>
|
|
||||||
<span v-else>{{ step }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="step-label">
|
|
||||||
{{ step === 1 ? 'Dati' : step === 2 ? 'Account' : 'Sicurezza' }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="progress-line"
|
|
||||||
:style="{ width: `${(parseInt(slide) - 1) * 50}%` }"
|
|
||||||
></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Carousel -->
|
|
||||||
<q-carousel
|
<q-carousel
|
||||||
ref="carousel"
|
|
||||||
v-model="slide"
|
v-model="slide"
|
||||||
animated
|
ref="carousel"
|
||||||
transition-prev="slide-right"
|
transition-prev="slide-right"
|
||||||
transition-next="slide-left"
|
transition-next="slide-left"
|
||||||
|
animated
|
||||||
swipeable
|
swipeable
|
||||||
control-color="primary"
|
:class="`shadow-1`"
|
||||||
class="modern-carousel"
|
|
||||||
:arrows="false"
|
|
||||||
:navigation="false"
|
|
||||||
height="auto"
|
|
||||||
>
|
>
|
||||||
<!-- SLIDE 1: Email + Aportador -->
|
<template v-slot:control>
|
||||||
<q-carousel-slide
|
<q-carousel-control
|
||||||
name="1"
|
position="bottom-right"
|
||||||
class="carousel-slide"
|
:offset="[18, 18]"
|
||||||
|
class="q-gutter-xs"
|
||||||
>
|
>
|
||||||
<div class="slide-content">
|
<q-btn
|
||||||
<div class="form-fields">
|
v-if="slide !== '1'"
|
||||||
|
push
|
||||||
|
text-color="black"
|
||||||
|
icon="arrow_left"
|
||||||
|
:label="$t('dialog.indietro')"
|
||||||
|
@click="$refs.carousel.previous()"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
v-if="slide !== '4'"
|
||||||
|
push
|
||||||
|
color="primary"
|
||||||
|
icon="arrow_right"
|
||||||
|
:label="$t('dialog.avanti')"
|
||||||
|
:disabled="checkifDisabled"
|
||||||
|
@click="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
|
/>
|
||||||
|
</q-carousel-control>
|
||||||
|
</template>
|
||||||
|
<q-carousel-slide name="1">
|
||||||
|
<div class="">
|
||||||
<q-input
|
<q-input
|
||||||
v-if="
|
v-if="
|
||||||
showaportador && signup.aportador_solidario !== tools.APORTADOR_NONE
|
showaportador && signup.aportador_solidario !== tools.APORTADOR_NONE
|
||||||
"
|
"
|
||||||
ref="inputAportador"
|
ref="inputAportador"
|
||||||
v-model="signup.aportador_solidario"
|
bg-color="light-blue-4"
|
||||||
:readonly="!!ap_iniziale"
|
:readonly="!!ap_iniziale"
|
||||||
|
v-model="signup.aportador_solidario"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
@keyup.enter="
|
||||||
class="modern-input"
|
v$.aportador_solidario.$touch && !v$.aportador_solidario.$error
|
||||||
@keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
? $refs.inputEmail.focus()
|
||||||
|
: null
|
||||||
|
"
|
||||||
@blur="v$.aportador_solidario.$touch"
|
@blur="v$.aportador_solidario.$touch"
|
||||||
:error="v$.aportador_solidario.$error"
|
:error="v$.aportador_solidario.$error"
|
||||||
:error-message="
|
:error-message="
|
||||||
@@ -173,56 +146,31 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="person" />
|
||||||
name="person"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
<div style="margin-top: 5px"></div>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
ref="inputEmail"
|
ref="inputEmail"
|
||||||
v-model="signup.email"
|
v-model="signup.email"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
@update:model-value="changeemail()"
|
@update:model-value="changeemail()"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
debounce="2000"
|
debounce="2000"
|
||||||
:rules="[myRuleEmail]"
|
:rules="[myRuleEmail]"
|
||||||
:label="
|
:label="collettivo ? t('reg.email_reg_collettivo') : t('reg.email_reg')"
|
||||||
collettivo ? t('reg.email_reg_collettivo') : t('reg.email_reg')
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="email" />
|
||||||
name="email"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</q-carousel-slide>
|
</q-carousel-slide>
|
||||||
|
<q-carousel-slide name="2">
|
||||||
<!-- SLIDE 2: Username + Nome/Cognome -->
|
<div class="cosa_chiedere">{{ t('reg.scegli_username') }}</div>
|
||||||
<q-carousel-slide
|
|
||||||
name="2"
|
|
||||||
class="carousel-slide"
|
|
||||||
>
|
|
||||||
<div class="slide-content">
|
|
||||||
<div class="slide-header">
|
|
||||||
<q-icon
|
|
||||||
name="person"
|
|
||||||
size="40px"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
<h2 class="slide-title">Il tuo profilo</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-fields">
|
|
||||||
<q-input
|
<q-input
|
||||||
ref="inputUsername"
|
ref="inputUsername"
|
||||||
v-model="signup.username"
|
v-model="signup.username"
|
||||||
@@ -231,27 +179,21 @@
|
|||||||
"
|
"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
@blur="v$.username.$touch"
|
@blur="v$.username.$touch"
|
||||||
@update:model-value="changeusername"
|
@update:model-value="changeusername"
|
||||||
:error="v$.username.$error"
|
:error="v$.username.$error"
|
||||||
@keydown.space="(event) => event.preventDefault()"
|
@keydown.space="(event) => event.preventDefault()"
|
||||||
@keyup.enter="
|
@keyup.enter="!v$.username.$error ? $refs.inputName.focus() : null"
|
||||||
!v$.username.$error && show_namesurname
|
|
||||||
? $refs.inputName.focus()
|
|
||||||
: !checkifDisabled
|
|
||||||
? $refs.carousel.next()
|
|
||||||
: null
|
|
||||||
"
|
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
debounce="500"
|
debounce="500"
|
||||||
:error-message="
|
:error-message="
|
||||||
tools.errorMsg('username', v$.username) ||
|
tools.errorMsg('username', v$.username) ||
|
||||||
(isalreadyReg ? 'Username già registrato!' : '')
|
(isalreadyReg ? 'L\'Username è gia stato registrato!' : '')
|
||||||
"
|
"
|
||||||
:label="
|
:label="
|
||||||
tools.getConfSiteOptionEnabled(
|
collettivo
|
||||||
|
? t('reg.username_reg_collettivo')
|
||||||
|
: tools.getConfSiteOptionEnabled(
|
||||||
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
||||||
)
|
)
|
||||||
? t('reg.username_telegram')
|
? t('reg.username_telegram')
|
||||||
@@ -259,10 +201,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="person" />
|
||||||
name="person"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
@@ -272,8 +211,6 @@
|
|||||||
v-model="signup.name"
|
v-model="signup.name"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
@blur="v$.name.$touch"
|
@blur="v$.name.$touch"
|
||||||
:error="v$.name.$error"
|
:error="v$.name.$error"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
@@ -283,25 +220,17 @@
|
|||||||
:label="$t('reg.name_opt_collettivo')"
|
:label="$t('reg.name_opt_collettivo')"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="person" />
|
||||||
name="badge"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div v-else-if="show_namesurname">
|
||||||
v-else-if="show_namesurname"
|
|
||||||
class="name-fields"
|
|
||||||
>
|
|
||||||
<q-input
|
<q-input
|
||||||
ref="inputName"
|
ref="inputName"
|
||||||
v-model="signup.name"
|
v-model="signup.name"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
@blur="v$.name.$touch"
|
@blur="v$.name.$touch"
|
||||||
:error="v$.name.$error"
|
:error="v$.name.$error"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
@@ -317,10 +246,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="person" />
|
||||||
name="badge"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
@@ -329,8 +255,6 @@
|
|||||||
v-model="signup.surname"
|
v-model="signup.surname"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
:error="v$.surname.$error"
|
:error="v$.surname.$error"
|
||||||
@blur="v$.surname.$touch"
|
@blur="v$.surname.$touch"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
@@ -346,69 +270,40 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon name="person" />
|
||||||
name="badge"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</q-carousel-slide>
|
</q-carousel-slide>
|
||||||
|
<q-carousel-slide name="3">
|
||||||
<!-- SLIDE 3: Password + Privacy -->
|
<div class="cosa_chiedere">{{ t('reg.scegli_password') }}</div>
|
||||||
<q-carousel-slide
|
|
||||||
name="3"
|
|
||||||
class="carousel-slide"
|
|
||||||
>
|
|
||||||
<div class="slide-content">
|
|
||||||
<div class="slide-header">
|
|
||||||
<q-icon
|
|
||||||
name="lock"
|
|
||||||
size="40px"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
<h2 class="slide-title">Scegli una password sicura</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-fields">
|
|
||||||
<q-input
|
<q-input
|
||||||
ref="inputPassword"
|
ref="inputPassword"
|
||||||
v-model="signup.password"
|
v-model="signup.password"
|
||||||
class="modern-input"
|
class="q-mb-md"
|
||||||
:type="typePassword"
|
:type="typePassword"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
@blur="v$.password.$touch"
|
@blur="v$.password.$touch"
|
||||||
:error="v$.password.$error"
|
:error="v$.password.$error"
|
||||||
:error-message="tools.errorMsg('password', v$.password)"
|
:error-message="`${tools.errorMsg('password', v$.password)}`"
|
||||||
@keyup.enter="
|
@keyup.enter="!v$.password.$error ? $refs.inputPassword2.focus() : null"
|
||||||
!v$.password.$error ? $refs.inputPassword2.focus() : null
|
|
||||||
"
|
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
debounce="1000"
|
debounce="1000"
|
||||||
:label="$t('reg.password_reg')"
|
:label="$t('reg.password_reg')"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon
|
|
||||||
name="vpn_key"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
|
||||||
dense
|
|
||||||
round
|
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
:icon="
|
:icon="
|
||||||
typePassword === 'password' ? 'visibility_off' : 'visibility'
|
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
||||||
"
|
"
|
||||||
@click="showPassword"
|
@click="showPassword"
|
||||||
color="primary"
|
>
|
||||||
/>
|
</q-btn>
|
||||||
|
</template>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="vpn_key" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
@@ -419,160 +314,294 @@
|
|||||||
maxlength="30"
|
maxlength="30"
|
||||||
rounded
|
rounded
|
||||||
outlined
|
outlined
|
||||||
filled
|
|
||||||
class="modern-input"
|
|
||||||
@blur="v$.repeatPassword.$touch"
|
@blur="v$.repeatPassword.$touch"
|
||||||
:error="v$.repeatPassword.$error"
|
:error="v$.repeatPassword.$error"
|
||||||
:error-message="tools.errorMsg('repeatpassword', v$.repeatPassword)"
|
:error-message="`${tools.errorMsg('repeatpassword', v$.repeatPassword)}`"
|
||||||
v-on:keyup.enter="allowSubmit() ? submitOk() : null"
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
:label="$t('reg.repeatPassword')"
|
:label="$t('reg.repeatPassword')"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
|
||||||
<q-icon
|
|
||||||
name="vpn_key"
|
|
||||||
color="primary"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
|
||||||
dense
|
|
||||||
round
|
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
:icon="
|
:icon="
|
||||||
typePassword === 'password' ? 'visibility_off' : 'visibility'
|
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
||||||
"
|
"
|
||||||
@click="showPassword"
|
@click="showPassword"
|
||||||
color="primary"
|
>
|
||||||
/>
|
</q-btn>
|
||||||
|
</template>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="vpn_key" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</q-carousel-slide>
|
||||||
|
<q-carousel-slide name="4">
|
||||||
|
<div>
|
||||||
|
<q-input
|
||||||
|
v-if="
|
||||||
|
showaportador &&
|
||||||
|
signup.aportador_solidario !== tools.APORTADOR_NONE &&
|
||||||
|
v$.aportador_solidario.$error
|
||||||
|
"
|
||||||
|
ref="inputAportador"
|
||||||
|
bg-color="light-blue-4"
|
||||||
|
:readonly="!!ap_iniziale"
|
||||||
|
v-model="signup.aportador_solidario"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@keyup.enter="
|
||||||
|
v$.aportador_solidario.$touch && !v$.aportador_solidario.$error
|
||||||
|
? $refs.inputEmail.focus()
|
||||||
|
: null
|
||||||
|
"
|
||||||
|
@blur="v$.aportador_solidario.$touch"
|
||||||
|
:error="v$.aportador_solidario.$error"
|
||||||
|
:error-message="
|
||||||
|
tools.errorMsg('aportador_solidario', v$.aportador_solidario)
|
||||||
|
"
|
||||||
|
maxlength="20"
|
||||||
|
debounce="1000"
|
||||||
|
:label="
|
||||||
|
collettivo
|
||||||
|
? t('reg.username_admin_collettivo')
|
||||||
|
: t('reg.aportador_solidario')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="person" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<div style="margin-top: 5px"></div>
|
||||||
|
|
||||||
|
<q-input
|
||||||
|
ref="inputEmail"
|
||||||
|
v-model="signup.email"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@update:model-value="changeemail()"
|
||||||
|
maxlength="50"
|
||||||
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
|
debounce="2000"
|
||||||
|
:rules="[myRuleEmail]"
|
||||||
|
:label="collettivo ? t('reg.email_reg_collettivo') : t('reg.email_reg')"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="email" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
<!-- Privacy Section -->
|
<q-input
|
||||||
<div class="privacy-section">
|
ref="inputUsername"
|
||||||
<q-separator class="q-my-md" />
|
v-model="signup.username"
|
||||||
|
:readonly="
|
||||||
|
tools.getAskToVerifyReg() && !site.confpages?.enableRegMultiChoice
|
||||||
|
"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@blur="v$.username.$touch"
|
||||||
|
@update:model-value="changeusername"
|
||||||
|
:error="v$.username.$error"
|
||||||
|
@keydown.space="(event) => event.preventDefault()"
|
||||||
|
@keyup.enter="!v$.username.$error ? $refs.inputName.focus() : null"
|
||||||
|
maxlength="20"
|
||||||
|
debounce="500"
|
||||||
|
:error-message="
|
||||||
|
tools.errorMsg('username', v$.username) ||
|
||||||
|
(isalreadyReg ? 'L\'Username è gia stato registrato!' : '')
|
||||||
|
"
|
||||||
|
:label="
|
||||||
|
tools.getConfSiteOptionEnabled(
|
||||||
|
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
||||||
|
)
|
||||||
|
? t('reg.username_telegram')
|
||||||
|
: t('reg.username_reg')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="person" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
|
||||||
<div class="privacy-link">
|
<div v-if="collettivo">
|
||||||
|
<q-input
|
||||||
|
ref="inputName"
|
||||||
|
v-model="signup.name"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@blur="v$.name.$touch"
|
||||||
|
:error="v$.name.$error"
|
||||||
|
maxlength="30"
|
||||||
|
debounce="1000"
|
||||||
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
|
:error-message="tools.errorMsg('name', v$.name)"
|
||||||
|
:label="$t('reg.name_opt_collettivo')"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="person" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else-if="show_namesurname">
|
||||||
|
<q-input
|
||||||
|
v-if="signup.name"
|
||||||
|
ref="inputName"
|
||||||
|
v-model="signup.name"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@blur="v$.name.$touch"
|
||||||
|
:error="v$.name.$error"
|
||||||
|
maxlength="30"
|
||||||
|
debounce="1000"
|
||||||
|
@keyup.enter="$refs.inputSurname.focus()"
|
||||||
|
:error-message="tools.errorMsg('name', v$.name)"
|
||||||
|
:label="
|
||||||
|
tools.getConfSiteOptionEnabled(
|
||||||
|
shared_consts.ConfSite.regNameSurnameMandatory
|
||||||
|
)
|
||||||
|
? t('reg.name')
|
||||||
|
: t('reg.name_opt')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="person" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
|
||||||
|
<q-input
|
||||||
|
v-if="signup.surname"
|
||||||
|
ref="inputSurname"
|
||||||
|
v-model="signup.surname"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
:error="v$.surname.$error"
|
||||||
|
@blur="v$.surname.$touch"
|
||||||
|
maxlength="30"
|
||||||
|
debounce="1000"
|
||||||
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
|
:error-message="tools.errorMsg('surname', v$.surname)"
|
||||||
|
:label="$t('reg.surname_opt')"
|
||||||
|
>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="person" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-input
|
||||||
|
v-if="false"
|
||||||
|
ref="inputPassword"
|
||||||
|
v-model="signup.password"
|
||||||
|
:type="typePassword"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@blur="v$.password.$touch"
|
||||||
|
:error="v$.password.$error"
|
||||||
|
:error-message="`${tools.errorMsg('password', v$.password)}`"
|
||||||
|
@keyup.enter="
|
||||||
|
!v$.password.$error ? $refs.inputPassword2.focus() : null
|
||||||
|
"
|
||||||
|
maxlength="30"
|
||||||
|
debounce="1000"
|
||||||
|
:label="$t('reg.password_reg')"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
tabindex="-1"
|
||||||
dense
|
:icon="
|
||||||
no-caps
|
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
||||||
color="primary"
|
"
|
||||||
icon="policy"
|
@click="showPassword"
|
||||||
label="Leggi la Privacy Policy"
|
>
|
||||||
|
</q-btn>
|
||||||
|
</template>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="vpn_key" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-input
|
||||||
|
ref="inputPassword2"
|
||||||
|
v-if="false"
|
||||||
|
v-model="signup.repeatPassword"
|
||||||
|
:type="typePassword"
|
||||||
|
maxlength="30"
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
@blur="v$.repeatPassword.$touch"
|
||||||
|
:error="v$.repeatPassword.$error"
|
||||||
|
:error-message="`${tools.errorMsg('repeatpassword', v$.repeatPassword)}`"
|
||||||
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
||||||
|
:label="$t('reg.repeatPassword')"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-btn
|
||||||
|
tabindex="-1"
|
||||||
|
:icon="
|
||||||
|
typePassword === `password` ? `fas fa-eye-slash` : `fas fa-eye`
|
||||||
|
"
|
||||||
|
@click="showPassword"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
</template>
|
||||||
|
<template v-slot:prepend>
|
||||||
|
<q-icon name="vpn_key" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<q-btn
|
||||||
|
label="Mostra Privacy"
|
||||||
@click="showpolicy = true"
|
@click="showpolicy = true"
|
||||||
/>
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
v-model="signup.terms"
|
v-model="signup.terms"
|
||||||
color="primary"
|
color="secondary"
|
||||||
class="privacy-checkbox"
|
@blur="v$.terms.$touch"
|
||||||
|
:error="v$.terms.$error"
|
||||||
|
:error-message="`${tools.errorMsg('terms', v$.terms)}`"
|
||||||
:label="$t('reg.terms')"
|
:label="$t('reg.terms')"
|
||||||
/>
|
>
|
||||||
|
</q-checkbox>
|
||||||
|
|
||||||
<q-checkbox
|
<div class="column">
|
||||||
v-if="showadultcheck"
|
<q-btn
|
||||||
v-model="iamadult"
|
rounded
|
||||||
color="primary"
|
size="lg"
|
||||||
class="privacy-checkbox"
|
color="positive"
|
||||||
:label="$t('reg.onlyadult')"
|
@click="submitOk"
|
||||||
/>
|
:label="$t('reg.submit')"
|
||||||
</div>
|
>
|
||||||
|
</q-btn>
|
||||||
|
<br />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-carousel-slide>
|
</q-carousel-slide>
|
||||||
</q-carousel>
|
</q-carousel>
|
||||||
|
|
||||||
<!-- Privacy Dialog -->
|
<div class="row justify-center">
|
||||||
<q-dialog
|
<q-btn-toggle
|
||||||
v-model="showpolicy"
|
v-if="!signup.terms"
|
||||||
maximized
|
glossy
|
||||||
|
v-model="slide"
|
||||||
|
:options="[
|
||||||
|
{ label: 1, value: '1' },
|
||||||
|
{ label: 2, value: '2' },
|
||||||
|
{ label: 3, value: '3' },
|
||||||
|
{ label: 4, value: '4' },
|
||||||
|
]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="isalreadyReg && !collettivo">
|
||||||
|
<q-banner
|
||||||
|
class="bg-negative text-white text-h5"
|
||||||
|
transition-show="jump-down"
|
||||||
>
|
>
|
||||||
<q-card>
|
Utente già registrato con l'username {{ signup.username }}
|
||||||
<q-toolbar class="bg-primary text-white">
|
</q-banner>
|
||||||
<q-toolbar-title>Privacy Policy</q-toolbar-title>
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
icon="close"
|
|
||||||
v-close-popup
|
|
||||||
/>
|
|
||||||
</q-toolbar>
|
|
||||||
<q-card-section class="scroll">
|
|
||||||
<PagePolicy
|
|
||||||
v-if="site.policy"
|
|
||||||
:owneremail="site.policy.owneremail"
|
|
||||||
:siteName="site.policy.siteName"
|
|
||||||
:ownerDataName="site.policy.ownerDataName"
|
|
||||||
:managerData="site.policy.managerData"
|
|
||||||
:includeData="site.policy.includeData"
|
|
||||||
:url="site.policy.url"
|
|
||||||
:lastdataupdate="site.policy.lastdataupdate"
|
|
||||||
:country="site.policy.country"
|
|
||||||
/>
|
|
||||||
</q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</q-dialog>
|
|
||||||
|
|
||||||
<!-- Fixed Bottom Buttons -->
|
|
||||||
<div class="fixed-bottom-actions">
|
|
||||||
<div class="action-row">
|
|
||||||
<q-btn
|
|
||||||
v-if="parseInt(slide) > 1"
|
|
||||||
unelevated
|
|
||||||
rounded
|
|
||||||
outline
|
|
||||||
color="primary"
|
|
||||||
icon="arrow_back"
|
|
||||||
label="Indietro"
|
|
||||||
@click="$refs.carousel.previous()"
|
|
||||||
class="nav-btn prev-btn"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<q-btn
|
|
||||||
v-if="parseInt(slide) < 3"
|
|
||||||
unelevated
|
|
||||||
rounded
|
|
||||||
color="primary"
|
|
||||||
icon-right="arrow_forward"
|
|
||||||
:label="parseInt(slide) === 1 ? 'Inizia' : 'Continua'"
|
|
||||||
@click="$refs.carousel.next()"
|
|
||||||
:disable="checkifDisabled"
|
|
||||||
class="nav-btn next-btn"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<q-btn
|
|
||||||
v-if="parseInt(slide) === 3"
|
|
||||||
unelevated
|
|
||||||
rounded
|
|
||||||
color="positive"
|
|
||||||
icon-right="check"
|
|
||||||
label="Registrati"
|
|
||||||
@click="submitOk"
|
|
||||||
:disable="!allowSubmit()"
|
|
||||||
class="nav-btn submit-btn"
|
|
||||||
size="lg"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
|
||||||
v-else-if="isalreadyReg && !collettivo"
|
|
||||||
class="error-card"
|
|
||||||
>
|
|
||||||
<q-icon
|
|
||||||
name="error"
|
|
||||||
size="64px"
|
|
||||||
color="negative"
|
|
||||||
class="q-mb-md"
|
|
||||||
/>
|
|
||||||
<div class="error-message">
|
|
||||||
Utente già registrato con username <strong>{{ signup.username }}</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,311 +0,0 @@
|
|||||||
# 🎨 Componente CSignUp - Versione Migliorata
|
|
||||||
|
|
||||||
## ✨ Modifiche Principali
|
|
||||||
|
|
||||||
### 📊 Struttura Carousel (Da 4 a 3 Pagine)
|
|
||||||
|
|
||||||
#### **Pagina 1 - Dati Iniziali**
|
|
||||||
- ✉️ Email (campo principale)
|
|
||||||
- 👤 Aportador/Invitante (se necessario)
|
|
||||||
- 🎯 Focus: Raccolta dati di contatto
|
|
||||||
|
|
||||||
#### **Pagina 2 - Account**
|
|
||||||
- 👤 Username
|
|
||||||
- 📛 Nome e Cognome (se richiesto)
|
|
||||||
- 🎯 Focus: Identità utente
|
|
||||||
|
|
||||||
#### **Pagina 3 - Sicurezza e Privacy**
|
|
||||||
- 🔒 Password
|
|
||||||
- 🔒 Conferma Password
|
|
||||||
- ✅ Privacy Policy (GIÀ SPUNTATA)
|
|
||||||
- 🔞 Verifica Maggiore Età (se richiesto)
|
|
||||||
- 🎯 Focus: Sicurezza e consensi
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎨 Miglioramenti Estetici
|
|
||||||
|
|
||||||
### Design Moderno e Innovativo
|
|
||||||
- **Gradients Accattivanti**: Utilizzo di gradienti moderni per un look premium
|
|
||||||
- **Card con Shadow**: Effetti ombra eleganti per dare profondità
|
|
||||||
- **Animazioni Fluide**: Transizioni smooth tra le pagine
|
|
||||||
- **Icone Prominenti**: Icone grandi e colorate per guidare l'utente
|
|
||||||
- **Progress Indicator**: Barra di progresso visiva con step animati
|
|
||||||
|
|
||||||
### Color Scheme
|
|
||||||
```scss
|
|
||||||
Primary Gradient: #667eea → #764ba2 (Viola/Blu)
|
|
||||||
Success Gradient: #11998e → #38ef7d (Verde)
|
|
||||||
Error Gradient: #ee0979 → #ff6a00 (Rosso/Arancio)
|
|
||||||
Background: #f5f7fa → #c3cfe2 (Grigio chiaro)
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📱 Responsive Design
|
|
||||||
|
|
||||||
### Breakpoints Ottimizzati
|
|
||||||
- **Desktop** (>768px): Layout completo con spaziature generose
|
|
||||||
- **Mobile** (<768px): Layout ottimizzato con dimensioni ridotte
|
|
||||||
|
|
||||||
### Caratteristiche Responsive
|
|
||||||
- Input con altezza adattiva (56px → 52px su mobile)
|
|
||||||
- Font size scalabili
|
|
||||||
- Padding e margini ottimizzati per ogni device
|
|
||||||
- Bottoni che si adattano alla larghezza disponibile
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📍 Bottoni Fissi in Basso
|
|
||||||
|
|
||||||
### Implementazione
|
|
||||||
```scss
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 1000;
|
|
||||||
```
|
|
||||||
|
|
||||||
### Caratteristiche
|
|
||||||
- **Sempre Visibili**: I bottoni restano fissi durante lo scroll
|
|
||||||
- **Design Elegante**: Shadow e backdrop blur per un effetto premium
|
|
||||||
- **Azioni Contestuali**:
|
|
||||||
- Pagina 1-2: "Indietro" + "Continua"
|
|
||||||
- Pagina 3: "Indietro" + "Registrati" (verde, più grande)
|
|
||||||
|
|
||||||
### Animazioni Bottoni
|
|
||||||
- Hover: Movimento verso l'alto con shadow aumentata
|
|
||||||
- Click: Feedback visivo immediato
|
|
||||||
- Disabled: Opacità ridotta
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## ☑️ Privacy Già Spuntata
|
|
||||||
|
|
||||||
### Implementazione nel TypeScript
|
|
||||||
```typescript
|
|
||||||
const signup = reactive(<ISignupOptions>{
|
|
||||||
// ... altri campi
|
|
||||||
terms: true, // ✅ GIÀ SPUNTATA DI DEFAULT
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
### User Experience
|
|
||||||
1. L'utente arriva alla pagina 3
|
|
||||||
2. La checkbox privacy è già selezionata
|
|
||||||
3. Link "Leggi la Privacy Policy" disponibile
|
|
||||||
4. L'utente può deselezionare se vuole (ma non può procedere)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 👆 UX Ottimizzata
|
|
||||||
|
|
||||||
### Principi di Design Applicati
|
|
||||||
|
|
||||||
#### 1. **Minimo Effort**
|
|
||||||
- Campi ridotti al necessario
|
|
||||||
- Privacy pre-accettata
|
|
||||||
- 3 pagine invece di 4 (-25% di navigazione)
|
|
||||||
|
|
||||||
#### 2. **No Scroll Required**
|
|
||||||
- Altezza carousel ottimizzata (400px desktop, 360px mobile)
|
|
||||||
- Contenuto sempre visibile in una schermata
|
|
||||||
- Bottoni fissi eliminano necessità di scroll
|
|
||||||
|
|
||||||
#### 3. **Progressive Disclosure**
|
|
||||||
- Informazioni presentate gradualmente
|
|
||||||
- Step chiari e ben definiti
|
|
||||||
- Progress indicator sempre visibile
|
|
||||||
|
|
||||||
#### 4. **Error Prevention**
|
|
||||||
- Validazione real-time
|
|
||||||
- Bottoni disabilitati quando i dati non sono validi
|
|
||||||
- Messaggi di errore chiari e inline
|
|
||||||
|
|
||||||
#### 5. **Keyboard Navigation**
|
|
||||||
- Enter per passare al campo successivo
|
|
||||||
- Enter nell'ultimo campo per avanzare pagina
|
|
||||||
- Tab navigation ottimizzata
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 Caratteristiche Tecniche
|
|
||||||
|
|
||||||
### Progress Indicator Dinamico
|
|
||||||
```vue
|
|
||||||
<div class="progress-indicator">
|
|
||||||
<div v-for="step in 3" :key="step"
|
|
||||||
:class="{ active: parseInt(slide) >= step,
|
|
||||||
completed: parseInt(slide) > step }">
|
|
||||||
<!-- Step circle con animazioni -->
|
|
||||||
</div>
|
|
||||||
<div class="progress-line"
|
|
||||||
:style="{ width: `${(parseInt(slide) - 1) * 50}%` }">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Validazione Intelligente
|
|
||||||
- Campo Email: Validazione asincrona per email duplicate
|
|
||||||
- Campo Username: Check real-time su disponibilità
|
|
||||||
- Password: Controllo complessità con feedback visivo
|
|
||||||
- Conferma Password: Match immediato
|
|
||||||
|
|
||||||
### Animazioni CSS
|
|
||||||
- **fadeInDown**: Header (0.6s)
|
|
||||||
- **fadeInUp**: Form container (0.6s)
|
|
||||||
- **scaleIn**: Success/Error cards (0.5s)
|
|
||||||
- **slideIn**: Contenuto slide (0.4s)
|
|
||||||
- **iconPop**: Icone header (0.6s con delay)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📦 File Modificati
|
|
||||||
|
|
||||||
### 1. CSignUp.vue
|
|
||||||
- ✅ Ridotto carousel a 3 slide
|
|
||||||
- ✅ Nuovo layout con progress indicator
|
|
||||||
- ✅ Bottoni fissi in basso
|
|
||||||
- ✅ Privacy section nell'ultima slide
|
|
||||||
- ✅ Header con icone e titoli descrittivi
|
|
||||||
- ✅ Animazioni fluide tra le slide
|
|
||||||
|
|
||||||
### 2. CSignUp.ts
|
|
||||||
- ✅ `terms: true` di default
|
|
||||||
- ✅ Logica di validazione per 3 slide
|
|
||||||
- ✅ Gestione keyboard navigation ottimizzata
|
|
||||||
|
|
||||||
### 3. CSignUp.scss
|
|
||||||
- ✅ Design system completo con variabili
|
|
||||||
- ✅ Gradients e colori moderni
|
|
||||||
- ✅ Animazioni e transizioni
|
|
||||||
- ✅ Responsive breakpoints
|
|
||||||
- ✅ Fixed bottom buttons styling
|
|
||||||
- ✅ Progress indicator styling
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 Come Usare
|
|
||||||
|
|
||||||
### Installazione
|
|
||||||
1. Sostituisci i file esistenti con le nuove versioni
|
|
||||||
2. Non sono richieste dipendenze aggiuntive
|
|
||||||
3. Il componente è retrocompatibile con le props esistenti
|
|
||||||
|
|
||||||
### Props Disponibili
|
|
||||||
Tutte le props originali sono mantenute:
|
|
||||||
- `showadultcheck`: Mostra checkbox maggiorenne
|
|
||||||
- `showcell`: Mostra campo telefono
|
|
||||||
- `showaportador`: Mostra campo invitante
|
|
||||||
- `shownationality`: Mostra campo nazionalità
|
|
||||||
- `show_namesurname`: Mostra campi nome/cognome
|
|
||||||
- `need_Telegram`: Richiede registrazione Telegram
|
|
||||||
- `collettivo`: Modalità collettivo
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📊 Metriche di Miglioramento
|
|
||||||
|
|
||||||
| Metrica | Prima | Dopo | Miglioramento |
|
|
||||||
|---------|-------|------|---------------|
|
|
||||||
| Pagine Carousel | 4 | 3 | -25% |
|
|
||||||
| Click per Completamento | 6-8 | 4-5 | ~40% |
|
|
||||||
| Tempo Medio Registrazione | ~120s | ~80s | ~33% |
|
|
||||||
| Privacy Pre-accettata | ❌ | ✅ | +100% |
|
|
||||||
| Mobile Friendly | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | +66% |
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎨 Design Tokens
|
|
||||||
|
|
||||||
### Spacing
|
|
||||||
```scss
|
|
||||||
Small: 8px, 12px
|
|
||||||
Medium: 16px, 20px, 24px
|
|
||||||
Large: 32px, 40px, 48px
|
|
||||||
```
|
|
||||||
|
|
||||||
### Typography
|
|
||||||
```scss
|
|
||||||
Title: 32px / 28px (mobile)
|
|
||||||
Subtitle: 16px / 14px (mobile)
|
|
||||||
Slide Title: 26px / 22px (mobile)
|
|
||||||
Body: 15px / 14px (mobile)
|
|
||||||
```
|
|
||||||
|
|
||||||
### Border Radius
|
|
||||||
```scss
|
|
||||||
Small: 12px
|
|
||||||
Medium: 14px
|
|
||||||
Large: 20px
|
|
||||||
Full: 50% (circles)
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🔧 Personalizzazione
|
|
||||||
|
|
||||||
### Cambiare i Colori
|
|
||||||
Modifica le variabili in `CSignUp.scss`:
|
|
||||||
```scss
|
|
||||||
$primary-gradient: linear-gradient(135deg, #TUO_COLORE_1 0%, #TUO_COLORE_2 100%);
|
|
||||||
$success-gradient: linear-gradient(135deg, #TUO_COLORE_1 0%, #TUO_COLORE_2 100%);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Cambiare le Animazioni
|
|
||||||
Modifica i timing delle animazioni:
|
|
||||||
```scss
|
|
||||||
$transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Cambiare l'Altezza del Carousel
|
|
||||||
```scss
|
|
||||||
.modern-carousel {
|
|
||||||
min-height: 400px; // Modifica qui
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🐛 Note e Compatibilità
|
|
||||||
|
|
||||||
### Compatibilità
|
|
||||||
- ✅ Vue 3
|
|
||||||
- ✅ Quasar Framework
|
|
||||||
- ✅ TypeScript
|
|
||||||
- ✅ Vuelidate
|
|
||||||
- ✅ Mobile & Desktop
|
|
||||||
|
|
||||||
### Browser Support
|
|
||||||
- ✅ Chrome/Edge (ultime 2 versioni)
|
|
||||||
- ✅ Firefox (ultime 2 versioni)
|
|
||||||
- ✅ Safari (ultime 2 versioni)
|
|
||||||
- ✅ Mobile browsers
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📝 Changelog
|
|
||||||
|
|
||||||
### Versione 2.0 (Attuale)
|
|
||||||
- ✨ Ridotto carousel da 4 a 3 pagine
|
|
||||||
- ✨ Design completamente rinnovato
|
|
||||||
- ✨ Progress indicator con animazioni
|
|
||||||
- ✨ Bottoni fissi in basso
|
|
||||||
- ✨ Privacy pre-accettata
|
|
||||||
- ✨ UX ottimizzata senza scroll
|
|
||||||
- ✨ Completamente responsive
|
|
||||||
- ✨ Nuove animazioni e transizioni
|
|
||||||
|
|
||||||
### Versione 1.0 (Precedente)
|
|
||||||
- Form di registrazione base
|
|
||||||
- 4 pagine carousel
|
|
||||||
- Design classico
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📧 Supporto
|
|
||||||
|
|
||||||
Per domande o problemi, contatta il team di sviluppo.
|
|
||||||
|
|
||||||
**Made with ❤️ for better UX**
|
|
||||||
@@ -37,6 +37,7 @@ $text-light: #666; // Grigio medio
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
line-height: 1.4;
|
||||||
|
|
||||||
&.light {
|
&.light {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
@@ -49,6 +50,14 @@ $text-light: #666; // Grigio medio
|
|||||||
.title-icon {
|
.title-icon {
|
||||||
color: $primary-color;
|
color: $primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
margin-top: 1rem !important;
|
||||||
|
line-height: 1.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// HomeRiso.scss - Aggiorna la sezione HERO
|
// HomeRiso.scss - Aggiorna la sezione HERO
|
||||||
@@ -493,6 +502,9 @@ $text-light: #666; // Grigio medio
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
gap: 2.5rem;
|
gap: 2.5rem;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.value-item {
|
.value-item {
|
||||||
@@ -506,6 +518,10 @@ $text-light: #666; // Grigio medio
|
|||||||
transform: translateY(-8px);
|
transform: translateY(-8px);
|
||||||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.value-icon {
|
.value-icon {
|
||||||
@@ -552,6 +568,11 @@ $text-light: #666; // Grigio medio
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
gap: 0rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.step-number {
|
.step-number {
|
||||||
@@ -607,12 +628,18 @@ $text-light: #666; // Grigio medio
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto 3rem;
|
margin: 0 auto 3rem;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
margin: 0 auto 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.features-grid {
|
.features-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-card {
|
.feature-card {
|
||||||
@@ -712,6 +739,10 @@ $text-light: #666; // Grigio medio
|
|||||||
color: $primary-dark;
|
color: $primary-dark;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.methods-grid {
|
.methods-grid {
|
||||||
@@ -1110,9 +1141,6 @@ $text-light: #666; // Grigio medio
|
|||||||
font-size: 3.5rem;
|
font-size: 3.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title {
|
|
||||||
font-size: 2rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -1130,10 +1158,6 @@ $text-light: #666; // Grigio medio
|
|||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title {
|
|
||||||
font-size: 1.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cta-title {
|
.cta-title {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@
|
|||||||
size="md"
|
size="md"
|
||||||
class="title-icon"
|
class="title-icon"
|
||||||
/>
|
/>
|
||||||
Guarda il Video di Presentazione
|
Video di Presentazione
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="video-container">
|
<div class="video-container">
|
||||||
@@ -793,7 +793,7 @@
|
|||||||
<q-separator class="footer-separator" />
|
<q-separator class="footer-separator" />
|
||||||
|
|
||||||
<div class="footer-bottom">
|
<div class="footer-bottom">
|
||||||
<p>{{ currentYear }} RISO - Rete Italiana di Scambio Orizzontale</p>
|
<p>(dal 2021) RISO - Rete Italiana di Scambio Orizzontale</p>
|
||||||
<p class="footer-values">
|
<p class="footer-values">
|
||||||
Comunità · Fiducia · Scambi Solidali · Sostenibilità
|
Comunità · Fiducia · Scambi Solidali · Sostenibilità
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -2,17 +2,21 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 120vh;
|
||||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||||
|
@media (max-width: $breakpoint-sm-max) {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.invita-amico-card {
|
.invita-amico-card {
|
||||||
max-width: 600px;
|
max-width: 800px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
@media (max-width: $breakpoint-sm-max) {
|
@media (max-width: $breakpoint-sm-max) {
|
||||||
|
max-width: 600px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
@@ -47,3 +51,50 @@
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bottoni selezione metodo
|
||||||
|
.selection-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint-xs-max) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.selection-btn {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 180px;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 2px solid #e0e0e0;
|
||||||
|
background: white;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: var(--q-primary);
|
||||||
|
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
|
||||||
|
transform: translateY(-4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint-xs-max) {
|
||||||
|
min-height: 120px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.selection-btn-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 24px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
padding: 8px 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ import { useQuasar } from 'quasar';
|
|||||||
import { useInvitaAmicoStore } from '../../stores/useInvitaAmicoStore';
|
import { useInvitaAmicoStore } from '../../stores/useInvitaAmicoStore';
|
||||||
import type { InvitoAmicoForm } from '../../types/invita-amico.types.ts';
|
import type { InvitoAmicoForm } from '../../types/invita-amico.types.ts';
|
||||||
import { tools } from 'app/src/store/Modules/tools';
|
import { tools } from 'app/src/store/Modules/tools';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
// Chiave localStorage
|
// Chiave localStorage
|
||||||
const MESSAGGIO_STORAGE_KEY = 'invita-amico-messaggio-personalizzato';
|
const MESSAGGIO_STORAGE_KEY = 'invita-amico-messaggio-personalizzato';
|
||||||
@@ -15,10 +16,12 @@ export default defineComponent({
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
// Composables
|
// Composables
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
const { t } = useI18n();
|
||||||
const invitaStore = useInvitaAmicoStore();
|
const invitaStore = useInvitaAmicoStore();
|
||||||
|
|
||||||
// State
|
// State
|
||||||
const mostraCronologia = ref(false);
|
const mostraCronologia = ref(false);
|
||||||
|
const metodoSelezionato = ref<'email' | 'telegram' | null>(null);
|
||||||
const form = reactive<InvitoAmicoForm & { usernameInvitante?: string }>({
|
const form = reactive<InvitoAmicoForm & { usernameInvitante?: string }>({
|
||||||
email: '',
|
email: '',
|
||||||
messaggio: '',
|
messaggio: '',
|
||||||
@@ -29,6 +32,20 @@ export default defineComponent({
|
|||||||
// METHODS
|
// METHODS
|
||||||
// ==========================================
|
// ==========================================
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Seleziona il metodo di invio (email o telegram)
|
||||||
|
*/
|
||||||
|
const selezionaMetodo = (metodo: 'email' | 'telegram') => {
|
||||||
|
metodoSelezionato.value = metodo;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Torna alla schermata di scelta iniziale
|
||||||
|
*/
|
||||||
|
const tornaAllaScelta = () => {
|
||||||
|
metodoSelezionato.value = null;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invia invito via email usando lo store Pinia
|
* Invia invito via email usando lo store Pinia
|
||||||
*/
|
*/
|
||||||
@@ -51,7 +68,7 @@ export default defineComponent({
|
|||||||
message: 'Invito inviato con successo! 🎉',
|
message: 'Invito inviato con successo! 🎉',
|
||||||
caption: `L'email è stata inviata a ${form.email}`,
|
caption: `L'email è stata inviata a ${form.email}`,
|
||||||
icon: 'check_circle',
|
icon: 'check_circle',
|
||||||
timeout: 3000,
|
timeout: 7000,
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
label: 'Vedi cronologia',
|
label: 'Vedi cronologia',
|
||||||
@@ -86,14 +103,14 @@ export default defineComponent({
|
|||||||
const onInviaTelegram = async () => {
|
const onInviaTelegram = async () => {
|
||||||
emit('telegram-click');
|
emit('telegram-click');
|
||||||
|
|
||||||
const success = await invitaStore.inviaInvitoTelegram(form.messaggio);
|
const success = await invitaStore.inviaInvitoTelegram($q, t);
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
$q.notify({
|
$q.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
message: 'Messaggio inviato via Telegram! ✈️',
|
message: 'Messaggio inviato via Telegram! ✈️',
|
||||||
icon: 'telegram',
|
icon: 'telegram',
|
||||||
timeout: 2000,
|
timeout: 4000,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$q.notify({
|
$q.notify({
|
||||||
@@ -122,7 +139,7 @@ export default defineComponent({
|
|||||||
type: 'info',
|
type: 'info',
|
||||||
message: 'Cronologia cancellata',
|
message: 'Cronologia cancellata',
|
||||||
icon: 'delete',
|
icon: 'delete',
|
||||||
timeout: 2000,
|
timeout: 3000,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -168,6 +185,9 @@ export default defineComponent({
|
|||||||
// RETURN
|
// RETURN
|
||||||
return {
|
return {
|
||||||
mostraCronologia,
|
mostraCronologia,
|
||||||
|
metodoSelezionato,
|
||||||
|
selezionaMetodo,
|
||||||
|
tornaAllaScelta,
|
||||||
form,
|
form,
|
||||||
onInviaEmail,
|
onInviaEmail,
|
||||||
onInviaTelegram,
|
onInviaTelegram,
|
||||||
|
|||||||
@@ -12,47 +12,78 @@
|
|||||||
/>
|
/>
|
||||||
Invita un Amico
|
Invita un Amico
|
||||||
</div>
|
</div>
|
||||||
<div class="text-subtitle2">Condividi la nostra app con i tuoi amici!</div>
|
<div class="text-subtitle2">Condividi la app con i tuoi amici!</div>
|
||||||
|
|
||||||
<!-- Stats Badge -->
|
|
||||||
<div
|
|
||||||
v-if="invitaStore.totaleInviti > 0"
|
|
||||||
class="stats-badge q-mt-md"
|
|
||||||
>
|
|
||||||
<q-chip
|
|
||||||
color="white"
|
|
||||||
text-color="primary"
|
|
||||||
icon="email"
|
|
||||||
class="q-mx-xs"
|
|
||||||
>
|
|
||||||
{{ invitaStore.contatoreInvitiRiusciti }} inviati
|
|
||||||
</q-chip>
|
|
||||||
<!--<q-chip
|
|
||||||
v-if="invitaStore.percentualeSuccesso > 0"
|
|
||||||
color="white"
|
|
||||||
text-color="primary"
|
|
||||||
icon="trending_up"
|
|
||||||
class="q-mx-xs"
|
|
||||||
>
|
|
||||||
{{ invitaStore.percentualeSuccesso }}% successo
|
|
||||||
</q-chip>-->
|
|
||||||
</div>
|
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<!-- Form Section -->
|
<!-- Schermata Selezione Metodo -->
|
||||||
<q-card-section>
|
<q-card-section v-if="!metodoSelezionato">
|
||||||
<q-form
|
<div class="text-center q-mb-lg">
|
||||||
@submit="onInviaEmail"
|
<div class="text-h6 text-grey-8 q-mb-xs">Come vuoi invitare?</div>
|
||||||
class="q-gutter-md"
|
</div>
|
||||||
|
|
||||||
|
<div class="selection-buttons">
|
||||||
|
<q-btn
|
||||||
|
@click="selezionaMetodo('email')"
|
||||||
|
class="selection-btn"
|
||||||
|
unelevated
|
||||||
|
no-caps
|
||||||
>
|
>
|
||||||
|
<div class="selection-btn-content">
|
||||||
|
<q-icon
|
||||||
|
name="email"
|
||||||
|
size="48px"
|
||||||
|
color="primary"
|
||||||
|
/>
|
||||||
|
<div class="text-h6 q-mt-xs text-grey-9">Email</div>
|
||||||
|
<div class="text-caption text-grey-7">
|
||||||
|
Invia un invito diretto via email
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
@click="selezionaMetodo('telegram')"
|
||||||
|
class="selection-btn"
|
||||||
|
unelevated
|
||||||
|
no-caps
|
||||||
|
>
|
||||||
|
<div class="selection-btn-content">
|
||||||
|
<q-icon
|
||||||
|
name="telegram"
|
||||||
|
size="48px"
|
||||||
|
color="blue-9"
|
||||||
|
/>
|
||||||
|
<div class="text-h6 q-mt-md text-grey-9">Telegram</div>
|
||||||
|
<div class="text-caption text-grey-7">
|
||||||
|
Condividi tramite Telegram
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</q-card-section>
|
||||||
|
|
||||||
|
<!-- Sezione Email (mostrata solo se selezionata) -->
|
||||||
|
<q-card-section v-if="metodoSelezionato === 'email'">
|
||||||
|
<div class="q-mb-md">
|
||||||
|
<q-btn
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
icon="arrow_back"
|
||||||
|
label="Cambia metodo"
|
||||||
|
color="grey-7"
|
||||||
|
size="sm"
|
||||||
|
@click="tornaAllaScelta"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-form @submit="onInviaEmail">
|
||||||
<!-- Email Input -->
|
<!-- Email Input -->
|
||||||
<q-input
|
<q-input
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
type="email"
|
type="email"
|
||||||
label="Email del tuo amico *"
|
label="Email della tua persona amica *"
|
||||||
hint="Inserisci l'indirizzo email della persona che vuoi invitare"
|
|
||||||
lazy-rules
|
lazy-rules
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => !!val || 'L\'email è obbligatoria',
|
(val) => !!val || 'L\'email è obbligatoria',
|
||||||
@@ -86,10 +117,9 @@
|
|||||||
<q-input
|
<q-input
|
||||||
v-model="form.messaggio"
|
v-model="form.messaggio"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
label="Messaggio personalizzato (opzionale)"
|
label="Messaggio personale (opzionale)"
|
||||||
hint="Aggiungi un messaggio personale al tuo invito"
|
|
||||||
outlined
|
outlined
|
||||||
rows="3"
|
:rows="tools.isMobile() ? 6 : 9"
|
||||||
counter
|
counter
|
||||||
maxlength="500"
|
maxlength="500"
|
||||||
:disable="invitaStore.loading"
|
:disable="invitaStore.loading"
|
||||||
@@ -113,17 +143,6 @@
|
|||||||
<q-icon name="message" />
|
<q-icon name="message" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
<!-- Info che viene salvato -->
|
|
||||||
<div
|
|
||||||
v-if="form.messaggio"
|
|
||||||
class="text-caption text-grey-6"
|
|
||||||
>
|
|
||||||
<q-icon
|
|
||||||
name="info"
|
|
||||||
size="xs"
|
|
||||||
/>
|
|
||||||
Questo messaggio sarà riutilizzato nei prossimi inviti
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Alert errore -->
|
<!-- Alert errore -->
|
||||||
<q-banner
|
<q-banner
|
||||||
@@ -145,23 +164,31 @@
|
|||||||
icon="email"
|
icon="email"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="lg"
|
size="lg"
|
||||||
class="full-width"
|
class="full-width q-mt-md"
|
||||||
|
outline
|
||||||
:loading="invitaStore.loading"
|
:loading="invitaStore.loading"
|
||||||
:disable="invitaStore.loading || !form.email"
|
:disable="invitaStore.loading || !form.email"
|
||||||
unelevated
|
|
||||||
/>
|
/>
|
||||||
</q-form>
|
</q-form>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-separator inset />
|
<!-- Sezione Telegram (mostrata solo se selezionata) -->
|
||||||
|
<q-card-section v-if="metodoSelezionato === 'telegram'">
|
||||||
<!-- Sezione Telegram -->
|
<div class="q-mb-md">
|
||||||
<q-card-section>
|
<q-btn
|
||||||
|
dense
|
||||||
|
icon="arrow_back"
|
||||||
|
label="Cambia metodo"
|
||||||
|
size="sm"
|
||||||
|
outline
|
||||||
|
@click="tornaAllaScelta"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div class="text-center q-mb-md">
|
<div class="text-center q-mb-md">
|
||||||
<div class="text-subtitle1 text-grey-8 q-mb-xs">
|
<div class="text-subtitle1 text-grey-8 q-mb-xs">
|
||||||
Oppure invita tramite Telegram
|
Invita tramite Telegram
|
||||||
</div>
|
</div>
|
||||||
<div class="text-caption text-grey-6">
|
<div class="text-caption text-grey-7">
|
||||||
Genera un messaggio da condividere su Telegram
|
Genera un messaggio da condividere su Telegram
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -178,8 +205,11 @@
|
|||||||
/>
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<!-- Info Section -->
|
<!-- Info Section (solo per Telegram) -->
|
||||||
<q-card-section class="bg-blue-1">
|
<q-card-section
|
||||||
|
v-if="metodoSelezionato === 'telegram'"
|
||||||
|
class="bg-blue-1"
|
||||||
|
>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<q-icon
|
<q-icon
|
||||||
name="info"
|
name="info"
|
||||||
@@ -188,7 +218,8 @@
|
|||||||
class="q-mr-xs"
|
class="q-mr-xs"
|
||||||
/>
|
/>
|
||||||
<span class="text-grey-8">
|
<span class="text-grey-8">
|
||||||
Riceverai sul {{ tools.getBotName() }} il messaggio da inoltrare alla persona amica.
|
Riceverai sul {{ tools.getBotName() }} il messaggio da inoltrare alla
|
||||||
|
persona amica.
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
@@ -266,6 +297,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
|
<!-- Stats Badge -->
|
||||||
|
<div
|
||||||
|
v-if="invitaStore.totaleInviti > 0"
|
||||||
|
class="stats-badge q-mt-md"
|
||||||
|
>
|
||||||
|
<q-chip
|
||||||
|
color="white"
|
||||||
|
text-color="primary"
|
||||||
|
icon="email"
|
||||||
|
class="q-mx-xs"
|
||||||
|
>
|
||||||
|
{{ invitaStore.contatoreInvitiRiusciti }} inviati
|
||||||
|
</q-chip>
|
||||||
|
<!--<q-chip
|
||||||
|
v-if="invitaStore.percentualeSuccesso > 0"
|
||||||
|
color="white"
|
||||||
|
text-color="primary"
|
||||||
|
icon="trending_up"
|
||||||
|
class="q-mx-xs"
|
||||||
|
>
|
||||||
|
{{ invitaStore.percentualeSuccesso }}% successo
|
||||||
|
</q-chip>-->
|
||||||
|
</div>
|
||||||
<!-- Bottone per mostrare cronologia -->
|
<!-- Bottone per mostrare cronologia -->
|
||||||
<q-card-section v-if="invitaStore.hasCronologia && !mostraCronologia">
|
<q-card-section v-if="invitaStore.hasCronologia && !mostraCronologia">
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
Invita un Amico
|
Invita un Amico
|
||||||
</div>
|
</div>
|
||||||
<div class="text-subtitle2">
|
<div class="text-subtitle2">
|
||||||
Condividi la nostra app con i tuoi amici!
|
Condividi la app con i tuoi amici!
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
|
|||||||
@@ -376,7 +376,7 @@
|
|||||||
v-if="!tools.isLogged()"
|
v-if="!tools.isLogged()"
|
||||||
class="text-user text-italic bg-red"
|
class="text-user text-italic bg-red"
|
||||||
>
|
>
|
||||||
{{ t('user.loggati') }}
|
{{ t('user.non_loggato') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -22,6 +22,36 @@ body,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Variabili per riusabilità
|
||||||
|
$heading-primary-size-mobile: 1.25rem;
|
||||||
|
$heading-primary-size-desktop: 1.5rem;
|
||||||
|
$heading-primary-weight: 700;
|
||||||
|
$heading-primary-letter-spacing: -0.02em;
|
||||||
|
$heading-primary-line-height: 1.3;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
// Font size fluido e responsive
|
||||||
|
font-size: clamp($heading-primary-size-mobile, 4vw, $heading-primary-size-desktop);
|
||||||
|
|
||||||
|
// Typography
|
||||||
|
font-weight: $heading-primary-weight;
|
||||||
|
letter-spacing: $heading-primary-letter-spacing;
|
||||||
|
line-height: $heading-primary-line-height;
|
||||||
|
|
||||||
|
// Migliora la leggibilità
|
||||||
|
color: var(--q-primary, #1976d2);
|
||||||
|
|
||||||
|
// Anti-aliasing per rendering più pulito
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
// Spacing opzionale
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
// Transizione smooth per dark mode
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
@@ -85,13 +115,6 @@ li {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 3rem;
|
|
||||||
letter-spacing: -.01562em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
const msg_website_it = {
|
const msg_website_it = {
|
||||||
ws: {
|
ws: {
|
||||||
sitename: 'Gruppo Macro',
|
sitename: 'RISO',
|
||||||
siteshortname: 'Gruppo Macro',
|
siteshortname: 'RISO',
|
||||||
description: '',
|
description: 'Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.',
|
||||||
keywords: '',
|
keywords: 'riso, piattaforma di scambio, rete italiana scambio orizzontale, riso app, riso piattaforma, scambio e baratto, momenta RIS',
|
||||||
},
|
},
|
||||||
hours: {
|
hours: {
|
||||||
descr: 'Descrizione',
|
descr: 'Descrizione',
|
||||||
@@ -16,20 +16,29 @@ const msg_website_it = {
|
|||||||
pages: {
|
pages: {
|
||||||
home: 'Home',
|
home: 'Home',
|
||||||
profile: 'Profilo',
|
profile: 'Profilo',
|
||||||
install_site: 'Installa Sito',
|
|
||||||
profile2: 'ProfiloU',
|
profile2: 'ProfiloU',
|
||||||
mypage2: 'mypage2',
|
mypage2: 'mypage2',
|
||||||
myservice2: 'myservice2',
|
myservice2: 'myservice2',
|
||||||
myhosps2: 'myhosps2',
|
myhosps2: 'myhosps2',
|
||||||
mygood2: 'mygood2',
|
mygood2: 'mygood2',
|
||||||
catalogo: 'Catalogo',
|
|
||||||
fundraising: 'Sostieni il Progetto',
|
fundraising: 'Sostieni il Progetto',
|
||||||
notifs: 'Configura le Notifiche',
|
notifs: 'Configura le Notifiche',
|
||||||
unsubscribe: 'Disiscriviti',
|
unsubscribe: 'Disiscriviti',
|
||||||
unsubscribe_user: 'Disiscriviti User',
|
|
||||||
test: 'Test',
|
test: 'Test',
|
||||||
projects: 'Progetti',
|
projects: 'Progetti',
|
||||||
report: 'Report Ore',
|
report: 'Report Ore',
|
||||||
|
producer: 'Produttore',
|
||||||
|
orderinfo: 'Ordini Effettuati',
|
||||||
|
products: 'Prodotti',
|
||||||
|
productslist: 'Lista Prodotti',
|
||||||
|
collabora: 'Collabora',
|
||||||
|
storehouses: 'Magazzino',
|
||||||
|
departments: 'Uffici',
|
||||||
|
orders: 'Ordini Ricevuti',
|
||||||
|
orders2: 'Ordini Ricevuti',
|
||||||
|
sharewithus: 'Condividi con Noi',
|
||||||
|
checkout: 'Carrello',
|
||||||
|
payment: 'Pagamenti',
|
||||||
regok: 'Registrazione Confermata',
|
regok: 'Registrazione Confermata',
|
||||||
presentazione: 'Presentazione',
|
presentazione: 'Presentazione',
|
||||||
presentazione2: 'Presentazione',
|
presentazione2: 'Presentazione',
|
||||||
@@ -75,12 +84,14 @@ const msg_website_it = {
|
|||||||
eventodef: 'Evento:',
|
eventodef: 'Evento:',
|
||||||
prova: 'prova',
|
prova: 'prova',
|
||||||
dbop: 'Operazioni',
|
dbop: 'Operazioni',
|
||||||
dbopmacro: 'Operazioni Macro',
|
|
||||||
projall: 'Comunitari',
|
projall: 'Comunitari',
|
||||||
groups: 'Lista Gruppi',
|
groups: 'Lista Gruppi',
|
||||||
projectsShared: 'Condivisi da me',
|
projectsShared: 'Condivisi da me',
|
||||||
myprojects: 'Privati',
|
myprojects: 'Privati',
|
||||||
favproj: 'Favoriti',
|
favproj: 'Favoriti',
|
||||||
|
admin_ecommerce: 'ECommerce',
|
||||||
|
ecommerce: 'Prodotti',
|
||||||
|
ecommerce_menu: 'ECommerce1',
|
||||||
hours: 'Ore',
|
hours: 'Ore',
|
||||||
department: 'Uffici',
|
department: 'Uffici',
|
||||||
title: 'Titolo',
|
title: 'Titolo',
|
||||||
@@ -109,11 +120,16 @@ const msg_website_it = {
|
|||||||
onlyif_logged: 'Solo se Loggati',
|
onlyif_logged: 'Solo se Loggati',
|
||||||
only_residenti: 'Solo Residenti',
|
only_residenti: 'Solo Residenti',
|
||||||
only_consiglio: 'Solo Consiglieri',
|
only_consiglio: 'Solo Consiglieri',
|
||||||
only_collab: 'Solo Collaboratori',
|
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
mainMenu: 'Menu Principale',
|
||||||
|
subtitle: 'Sottotitolo',
|
||||||
|
lang: 'Lingua',
|
||||||
|
keywords: 'Parole Chiave',
|
||||||
|
desctiption: 'Descrizione',
|
||||||
|
heightimg: 'Altezza Immagine',
|
||||||
},
|
},
|
||||||
msg: {
|
msg: {
|
||||||
myAppName: 'Più che Buono',
|
myAppName: 'Riso',
|
||||||
myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito',
|
myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito',
|
||||||
underconstruction: 'App in costruzione...',
|
underconstruction: 'App in costruzione...',
|
||||||
myDescriz: '',
|
myDescriz: '',
|
||||||
@@ -172,18 +188,7 @@ const msg_website_it = {
|
|||||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||||
+ '<li>📱<strong>Condividendo la APP</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
+ '<li>📱<strong>Condividendo la APP</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||||
+ '<li>👥 Aiutando a creare Gruppi Territoriali nella vostra città, impegnandosi a realizzare progetti per il Bene Comune, in onore ai principi Amorevoli e di condivisione.</li>'
|
+ '<li>👥 Aiutando a creare Gruppi Territoriali nella vostra città, impegnandosi a realizzare progetti per il Bene Comune, in onore ai principi Amorevoli e di condivisione.</li>'
|
||||||
+ '<li>🌱 Sostenendo le persone attorno a voi, e rispettando la nostra vera Casa: Madre Natura e Tutti gli Esseri Viventi. ❤️</li>'
|
+ '<li>🌱 Sostenendo le persone attorno a voi, e rispettando la nostra vera Casa: Madre Natura e Tutti gli Esseri Viventi. ❤️</li>' +
|
||||||
+ '<li>👨🏻💻 Con una <strong>piccola donazione</strong> per le spese dei Server, manutenzione e per i continui sviluppi e miglioramenti</li></ul>' +
|
|
||||||
'1) Tramite <strong><a href="https://paypal.me/paoloarena" target="_blank">Paypal</a></strong>:<br>' +
|
|
||||||
'<br>2) Tramite <strong>Satispay</strong>: <a href="https://www.satispay.com/app/match/link/money-box/S6Y-SVN--62712D42-35B0-4BB9-8511-410C2AB8CD45" target="_blank">Clicca qui</a><br>' +
|
|
||||||
'<div style="font-size: 1rem; background-color: white; color: blue; border: solid 2px #f00; margin: 5px; padding: 5px; border-radius: 10px; " ' +
|
|
||||||
'class="row justify-around">' +
|
|
||||||
'Se ancora non hai Satispay <a href="https://www.satispay.com/promo/PAOLOARENA4">Richiedila cliccando qui</a></br>' +
|
|
||||||
'</div>' +
|
|
||||||
'<br>3) Tramite <strong>Bonifico Bancario</strong>:<br>' +
|
|
||||||
'(Scrivi a Surya (<a href="https://t.me/surya1977">@surya1977</a>) per le coordinate</br>' +
|
|
||||||
'' +
|
|
||||||
'4) In alternativa scegli tu una forma di Dono <br />' +
|
|
||||||
'Grazie Mille per l\'Aiuto ed il Supporto' +
|
'Grazie Mille per l\'Aiuto ed il Supporto' +
|
||||||
'<br>',
|
'<br>',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* GRUPPOMACRO APP
|
/* RISO APP
|
||||||
*/
|
*/
|
||||||
import {
|
import type {
|
||||||
IListRoutes,
|
IListRoutes,
|
||||||
ILang,
|
ILang,
|
||||||
IPreloadImages,
|
IPreloadImages,
|
||||||
@@ -44,7 +44,6 @@ const firstPage = {
|
|||||||
infooter: true,
|
infooter: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getDynamicPages(site: ISites): IListRoutes[] {
|
function getDynamicPages(site: ISites): IListRoutes[] {
|
||||||
|
|
||||||
const baseroutes: IListRoutes[] = [
|
const baseroutes: IListRoutes[] = [
|
||||||
@@ -71,11 +70,34 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 400,
|
order: 12,
|
||||||
path: '/test-lungo',
|
path: '/goods',
|
||||||
materialIcon: 'fas fa-test',
|
materialIcon: 'fas fa-tshirt',
|
||||||
name: 'mypages.test_lungo',
|
name: 'mypages.goods',
|
||||||
component: () => import('@src/views/testLungo/testLungo.vue'),
|
component: () => import('@src/root/goods/goods.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: true,
|
||||||
|
infooter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 15,
|
||||||
|
path: '/services',
|
||||||
|
materialIcon: 'fas fa-house-user',
|
||||||
|
name: 'mypages.services',
|
||||||
|
component: () => import('@src/root/services/services.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: true,
|
||||||
|
infooter: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 15,
|
||||||
|
path: '/activities',
|
||||||
|
materialIcon: 'fas fa-house-user',
|
||||||
|
name: 'mypages.activities',
|
||||||
|
component: () => import('@src/root/activities/activities.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
@@ -90,6 +112,17 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 15,
|
||||||
|
path: '/hosps',
|
||||||
|
materialIcon: 'fas fa-bed',
|
||||||
|
name: 'mypages.hosp',
|
||||||
|
component: () => import('@src/root/hosp/hosp.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: true,
|
||||||
|
infooter: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.enableCircuits,
|
active: site.confpages && site.confpages.enableCircuits,
|
||||||
order: 16,
|
order: 16,
|
||||||
@@ -102,7 +135,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.enableEvents,
|
active: true,
|
||||||
order: 20,
|
order: 20,
|
||||||
path: '/events',
|
path: '/events',
|
||||||
materialIcon: 'fas fa-bullhorn',
|
materialIcon: 'fas fa-bullhorn',
|
||||||
@@ -124,7 +157,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.showProfile,
|
active: true,
|
||||||
order: 120,
|
order: 120,
|
||||||
path: '/myprofile',
|
path: '/myprofile',
|
||||||
materialIcon: 'fas fa-user',
|
materialIcon: 'fas fa-user',
|
||||||
@@ -134,8 +167,19 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: true,
|
inmenu: true,
|
||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
|
/*{
|
||||||
|
active: true,
|
||||||
|
order: 120,
|
||||||
|
path: '/editprofile',
|
||||||
|
materialIcon: 'fas fa-user',
|
||||||
|
name: 'pages.profile3',
|
||||||
|
// component: () => import('app/src/components/editprofile/editprofile.vue'),
|
||||||
|
meta: { requiresAuth: true },
|
||||||
|
inmenu: false,
|
||||||
|
infooter: false,
|
||||||
|
},*/
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.showiscrittiMenu,
|
active: true,
|
||||||
order: 130,
|
order: 130,
|
||||||
path: '/friends',
|
path: '/friends',
|
||||||
materialIcon: 'fas fa-user-friends',
|
materialIcon: 'fas fa-user-friends',
|
||||||
@@ -230,6 +274,16 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 150,
|
||||||
|
path: '/sostieniilprogetto',
|
||||||
|
materialIcon: 'fas fa-hand-holding-heart',
|
||||||
|
name: 'pages.fundraising',
|
||||||
|
component: () => import('@src/root/fundraising/fundraising.vue'),
|
||||||
|
inmenu: false,
|
||||||
|
infooter: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 80,
|
order: 80,
|
||||||
@@ -248,7 +302,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
|
|
||||||
export function firstimagehome() {
|
export function firstimagehome() {
|
||||||
|
|
||||||
let img = 'statics/images/background.jpg'
|
const img = 'statics/images/background.jpg'
|
||||||
return img
|
return img
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,13 @@
|
|||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-if="isfinishLoading">
|
<div v-if="isfinishLoading">
|
||||||
<CMyPageElem
|
<CMyPageElem
|
||||||
|
v-if="tools.pageExist('/presentazione')"
|
||||||
|
title="Home"
|
||||||
|
mypath="presentazione"
|
||||||
|
>
|
||||||
|
</CMyPageElem>
|
||||||
|
<CMyPageElem
|
||||||
|
v-else
|
||||||
title="Home"
|
title="Home"
|
||||||
mypath="home_logout"
|
mypath="home_logout"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -658,7 +658,7 @@ function getRoutesAd(site: ISites) {
|
|||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 1005,
|
order: 1005,
|
||||||
path: '/invitetoreg/:token',
|
path: '/invitetoreg/:tok',
|
||||||
materialIcon: 'how_to_reg',
|
materialIcon: 'how_to_reg',
|
||||||
name: 'pages.InvitoReg',
|
name: 'pages.InvitoReg',
|
||||||
component: () => import('@src/views/login/invitoreg/invitoreg.vue'),
|
component: () => import('@src/views/login/invitoreg/invitoreg.vue'),
|
||||||
|
|||||||
@@ -1571,7 +1571,7 @@ const msg_it = {
|
|||||||
acceptregulation: 'Accetta il Regolamento',
|
acceptregulation: 'Accetta il Regolamento',
|
||||||
domanda_ask: 'Confermi di voler entrare nel {circuitname} accettando il suo Regolamento?',
|
domanda_ask: 'Confermi di voler entrare nel {circuitname} accettando il suo Regolamento?',
|
||||||
domanda_revoke: 'Revocare la richiesta al {circuitname}?',
|
domanda_revoke: 'Revocare la richiesta al {circuitname}?',
|
||||||
already_entered: 'Sei ora dentro al {circuitname}. Gli amministratori ti abiliteranno la "Fiducia Concessa" appena possibile (ove sia possibile).',
|
already_entered: 'Gli amministratori del {circuitname} ti abiliteranno appena possibile.',
|
||||||
askedto: 'La tua richiesta al {circuitname} è stata inviata. Gli amministratori ti abiliteranno non appena possibile.',
|
askedto: 'La tua richiesta al {circuitname} è stata inviata. Gli amministratori ti abiliteranno non appena possibile.',
|
||||||
revoketo: 'Revocato la richiesta d\'invito al {circuitname}',
|
revoketo: 'Revocato la richiesta d\'invito al {circuitname}',
|
||||||
domanda_remove: 'Rimuovere dal Circuito {username} ?',
|
domanda_remove: 'Rimuovere dal Circuito {username} ?',
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ export const tools = {
|
|||||||
TIPOVIS_SHOW_INPAGE: 8,
|
TIPOVIS_SHOW_INPAGE: 8,
|
||||||
|
|
||||||
APORTADOR_SOLIDARIO: 'apsol',
|
APORTADOR_SOLIDARIO: 'apsol',
|
||||||
|
TOK_INV: 'tokinv',
|
||||||
|
|
||||||
IDAPP_AYNI: '7',
|
IDAPP_AYNI: '7',
|
||||||
IDAPP_SIP: '9',
|
IDAPP_SIP: '9',
|
||||||
@@ -11280,6 +11281,14 @@ export const tools = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
pageExist(path: string) {
|
||||||
|
const globalStore = useGlobalStore();
|
||||||
|
const page = globalStore.getPage(path)
|
||||||
|
|
||||||
|
return !!page
|
||||||
|
}
|
||||||
|
|
||||||
// FINE !
|
// FINE !
|
||||||
|
|
||||||
// getLocale() {
|
// getLocale() {
|
||||||
|
|||||||
@@ -1479,7 +1479,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
return Api.SendReq('/savepage', 'POST', { page })
|
return Api.SendReq('/savepage', 'POST', { page })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res && res.data && res.data.mypage) {
|
if (res && res.data && res.data.mypage) {
|
||||||
const index = this.mypage.findIndex((rec) => rec.path === res.data.mypage.path);
|
let index = this.mypage.findIndex((rec) => rec._id === res.data.mypage._id);
|
||||||
|
if (index < 0)
|
||||||
|
index = this.mypage.findIndex((rec) => rec.path === res.data.mypage.path);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
this.mypage[index] = res.data.mypage;
|
this.mypage[index] = res.data.mypage;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,9 +5,12 @@ import type {
|
|||||||
InvitoAmicoForm,
|
InvitoAmicoForm,
|
||||||
InvitoAmicoRequest,
|
InvitoAmicoRequest,
|
||||||
InvitoAmicoResponse,
|
InvitoAmicoResponse,
|
||||||
|
InvitoGetResponse,
|
||||||
} from '../types/invita-amico.types.ts';
|
} from '../types/invita-amico.types.ts';
|
||||||
import { useUserStore } from '../store/index.js';
|
import { useUserStore } from '../store/index.js';
|
||||||
import { Api } from '../store/Api/index.js';
|
import { Api } from '../store/Api/index.js';
|
||||||
|
import { tools } from '@tools';
|
||||||
|
import { shared_consts } from '@src/common/shared_vuejs'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store Pinia per la gestione degli inviti amici
|
* Store Pinia per la gestione degli inviti amici
|
||||||
@@ -190,23 +193,60 @@ export const useInvitaAmicoStore = defineStore('invitaAmico', () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const ottieniInvitoByToken = async (
|
||||||
|
token: string,
|
||||||
|
): Promise<InvitoGetResponse> => {
|
||||||
|
// Reset errori
|
||||||
|
error.value = null;
|
||||||
|
loading.value = true;
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (!token) {
|
||||||
|
throw new Error('Token non valido');
|
||||||
|
}
|
||||||
|
// Chiamata API
|
||||||
|
const response = await Api.SendReq('/inviti/getinv', 'POST', { tok: token });
|
||||||
|
|
||||||
|
if (response.data.success) {
|
||||||
|
return response.data.rec;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (err) {
|
||||||
|
// Gestione errori
|
||||||
|
const errorMessage = err instanceof Error ? err.message : 'Errore sconosciuto';
|
||||||
|
error.value = errorMessage;
|
||||||
|
|
||||||
|
// Ritorna risposta di errore
|
||||||
|
return null;
|
||||||
|
} finally {
|
||||||
|
loading.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invia invito via Telegram
|
* Invia invito via Telegram
|
||||||
* (placeholder - integra con la tua logica esistente)
|
* (placeholder - integra con la tua logica esistente)
|
||||||
*/
|
*/
|
||||||
const inviaInvitoTelegram = async (messaggio?: string): Promise<boolean> => {
|
const inviaInvitoTelegram = async ($q: any, t: any): Promise<boolean> => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
error.value = null;
|
error.value = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
await tools.sendMsgTelegramCmd(
|
||||||
|
$q,
|
||||||
|
t,
|
||||||
|
shared_consts.MsgTeleg.SHARE_MSGREG,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
// TODO: Integra con la tua logica Telegram esistente
|
// TODO: Integra con la tua logica Telegram esistente
|
||||||
// Esempio:
|
// Esempio:
|
||||||
// await telegramBotService.sendMessage(messaggio);
|
// await telegramBotService.sendMessage(messaggio);
|
||||||
|
|
||||||
console.log('Invio via Telegram:', messaggio);
|
|
||||||
|
|
||||||
// Simula invio
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -379,6 +419,7 @@ export const useInvitaAmicoStore = defineStore('invitaAmico', () => {
|
|||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
inviaInvitoEmail,
|
inviaInvitoEmail,
|
||||||
|
ottieniInvitoByToken,
|
||||||
inviaInvitoTelegram,
|
inviaInvitoTelegram,
|
||||||
aggiungiACronologia,
|
aggiungiACronologia,
|
||||||
rimuoviDaCronologia,
|
rimuoviDaCronologia,
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ export interface InvitoAmicoResponse {
|
|||||||
message: string;
|
message: string;
|
||||||
emailInviata?: boolean;
|
emailInviata?: boolean;
|
||||||
}
|
}
|
||||||
|
export interface InvitoGetResponse {
|
||||||
|
email: string;
|
||||||
|
usernameInvitante: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface EmailInvitoTemplate {
|
export interface EmailInvitoTemplate {
|
||||||
to: string;
|
to: string;
|
||||||
|
|||||||
@@ -13,27 +13,19 @@ export default defineComponent({
|
|||||||
setup() {
|
setup() {
|
||||||
const $route = useRoute()
|
const $route = useRoute()
|
||||||
|
|
||||||
const adult = ref(false)
|
const tok = computed(() => $route.params.tok)
|
||||||
const invited = computed(() => $route.params.invited)
|
|
||||||
const regexpire = computed(() => $route.params.regexpire)
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
watch(() => invited, (newval, oldval) => {
|
|
||||||
console.log('$route.params.invited')
|
|
||||||
adult.value = !!$route.params.invited
|
|
||||||
})
|
|
||||||
|
|
||||||
function created() {
|
function created() {
|
||||||
if (!tools.getCookie(tools.APORTADOR_SOLIDARIO, '')) {
|
if (!tools.getCookie(tools.TOK_INV, '')) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
tools.setCookie(tools.APORTADOR_SOLIDARIO, $route.params.invited ? $route.params.invited : '')
|
tools.setCookie(tools.TOK_INV, tok.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
created()
|
created()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
regexpire
|
tok,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-page padding class="signup">
|
<q-page padding class="signup">
|
||||||
<CSignUp :showcell="false" :showaportador="true" :show_namesurname="true" :need_Telegram="true" :regexpire="regexpire" :token="token">
|
<CSignUp :showcell="false" :showaportador="true" :show_namesurname="true" :token="tok">
|
||||||
|
|
||||||
</CSignUp>
|
</CSignUp>
|
||||||
</q-page>
|
</q-page>
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--<CNotifAtTop />-->
|
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||||
<div v-if="tools.isUserOk()" class="q-gutter-sm q-pa-sm q-pb-md">
|
|
||||||
<div v-if="!circuit && !loading">
|
<div v-if="!circuit && !loading">
|
||||||
<div v-if="mystatus === 403">
|
<div v-if="mystatus === 401">
|
||||||
<h3>
|
<h3>
|
||||||
Non hai i permessi per accedere al Circuito.
|
Non hai i permessi per accedere al Circuito.
|
||||||
<br />Occorre prima registrarsi ed accedere alla App
|
<br />Occorre prima registrarsi ed accedere alla App
|
||||||
</h3>
|
</h3>
|
||||||
|
<div v-if="!tools.isLogged()">
|
||||||
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="tools.isLogged() && path">
|
<div v-else-if="tools.isLogged() && path">
|
||||||
<h3>Circuito non Esistente</h3>
|
<h3>Circuito non Esistente</h3>
|
||||||
@@ -17,12 +19,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else-if="tools.isUserOk()">
|
||||||
<div v-if="!tools.isLogged()">
|
<div v-if="!tools.isLogged()">
|
||||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||||
</div>
|
</div>
|
||||||
<q-dialog v-model="showPic" full-height full-width>
|
<q-dialog
|
||||||
<img :src="getImgCircuit()" :alt="circuit.name" class="full-width" />
|
v-model="showPic"
|
||||||
|
full-height
|
||||||
|
full-width
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
:src="getImgCircuit()"
|
||||||
|
:alt="circuit.name"
|
||||||
|
class="full-width"
|
||||||
|
/>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
||||||
<q-dialog
|
<q-dialog
|
||||||
@@ -31,24 +41,37 @@
|
|||||||
transition-show="slide-up"
|
transition-show="slide-up"
|
||||||
transition-hide="slide-down"
|
transition-hide="slide-down"
|
||||||
>
|
>
|
||||||
<q-card v-if="circuit" class="dialog_card">
|
<q-card
|
||||||
<q-toolbar class="bg-primary text-white" dense>
|
v-if="circuit"
|
||||||
|
class="dialog_card"
|
||||||
|
>
|
||||||
|
<q-toolbar
|
||||||
|
class="bg-primary text-white"
|
||||||
|
dense
|
||||||
|
>
|
||||||
<!--<q-toolbar :class="tools.displayClasses(myevent)"-->
|
<!--<q-toolbar :class="tools.displayClasses(myevent)"-->
|
||||||
<!--:style="tools.displayStyles(myevent) + ` min-width: `+ tools.myheight_dialog() + `px;`">-->
|
<!--:style="tools.displayStyles(myevent) + ` min-width: `+ tools.myheight_dialog() + `px;`">-->
|
||||||
<q-toolbar-title>
|
<q-toolbar-title>
|
||||||
{{ circuit.name }}
|
{{ circuit.name }}
|
||||||
<div v-if="groupnameSel">
|
<div v-if="groupnameSel">Gruppo: {{ groupnameSel.groupname }}</div>
|
||||||
Gruppo: {{ groupnameSel.groupname }}
|
|
||||||
</div>
|
|
||||||
</q-toolbar-title>
|
</q-toolbar-title>
|
||||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
<q-btn
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
color="white"
|
||||||
|
icon="close"
|
||||||
|
v-close-popup
|
||||||
|
></q-btn>
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
<q-card-section v-if="circuit.symbol === 'RIS'" class="inset-shadow">
|
<q-card-section
|
||||||
|
v-if="circuit.symbol === 'RIS'"
|
||||||
|
class="inset-shadow"
|
||||||
|
>
|
||||||
<div v-html="t('circuit.disclaimer')"></div>
|
<div v-html="t('circuit.disclaimer')"></div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-section class="inset-shadow">
|
<q-card-section class="inset-shadow">
|
||||||
<div style="font-weight: bold; font-size: 1.25rem">
|
<div style="font-weight: bold; font-size: 1.25rem">
|
||||||
{{ t("circuit.regulation") }} {{ circuit.name }}
|
{{ t('circuit.regulation') }} {{ circuit.name }}
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!showrules"
|
v-if="!showrules"
|
||||||
@@ -95,7 +118,7 @@
|
|||||||
></CSendCoins>
|
></CSendCoins>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="circuit">
|
<div v-else-if="circuit">
|
||||||
<div
|
<div
|
||||||
class="absolute-top-right q-mr-sm q-my-md"
|
class="absolute-top-right q-mr-sm q-my-md"
|
||||||
style="margin-top: 50px !important"
|
style="margin-top: 50px !important"
|
||||||
@@ -109,7 +132,10 @@
|
|||||||
style="z-index: 1"
|
style="z-index: 1"
|
||||||
>
|
>
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list v-if="true" style="min-width: 150px">
|
<q-list
|
||||||
|
v-if="true"
|
||||||
|
style="min-width: 150px"
|
||||||
|
>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@@ -118,10 +144,9 @@
|
|||||||
saldo < 0
|
saldo < 0
|
||||||
? tools.showNegativeNotif(
|
? tools.showNegativeNotif(
|
||||||
$q,
|
$q,
|
||||||
t(
|
t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero', {
|
||||||
'circuit.per_uscire_dal_circuito_occorre_essere_a_zero',
|
symbol: circuit.symbol,
|
||||||
{ symbol: circuit.symbol }
|
}),
|
||||||
),
|
|
||||||
30000
|
30000
|
||||||
)
|
)
|
||||||
: tools.removeFromMyCircuits(
|
: tools.removeFromMyCircuits(
|
||||||
@@ -136,14 +161,20 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="negative" name="fas fa-user-minus" />
|
<q-icon
|
||||||
|
color="negative"
|
||||||
|
name="fas fa-user-minus"
|
||||||
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
{{ $t("circuit.exit_circuit") }}
|
{{ $t('circuit.exit_circuit') }}
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
<q-list v-if="userStore.isAdmin" style="min-width: 200px">
|
<q-list
|
||||||
|
v-if="userStore.isAdmin"
|
||||||
|
style="min-width: 200px"
|
||||||
|
>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@@ -158,9 +189,12 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="negative" name="fas fa-trash-alt" />
|
<q-icon
|
||||||
|
color="negative"
|
||||||
|
name="fas fa-trash-alt"
|
||||||
|
/>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t("circuit.delete") }}</q-item-section>
|
<q-item-section>{{ $t('circuit.delete') }}</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-list>
|
</q-list>
|
||||||
@@ -190,7 +224,10 @@
|
|||||||
class="fit column no-wrap justify-evenly items-center content-start"
|
class="fit column no-wrap justify-evenly items-center content-start"
|
||||||
>
|
>
|
||||||
<div class="row justify-center">
|
<div class="row justify-center">
|
||||||
<q-avatar v-if="getImgCircuit()" size="50px">
|
<q-avatar
|
||||||
|
v-if="getImgCircuit()"
|
||||||
|
size="50px"
|
||||||
|
>
|
||||||
<q-img
|
<q-img
|
||||||
:src="getImgCircuit()"
|
:src="getImgCircuit()"
|
||||||
:alt="circuit.name"
|
:alt="circuit.name"
|
||||||
@@ -199,7 +236,10 @@
|
|||||||
@click="showPic = true"
|
@click="showPic = true"
|
||||||
/>
|
/>
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
<div class="q-mx-xs text-h6" style="align-self: center">
|
<div
|
||||||
|
class="q-mx-xs text-h6"
|
||||||
|
style="align-self: center"
|
||||||
|
>
|
||||||
<span v-if="checkifShow('name')">{{ circuit.name }}</span>
|
<span v-if="checkifShow('name')">{{ circuit.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="row no-wrap justify-center items-center">
|
<div class="row no-wrap justify-center items-center">
|
||||||
@@ -225,10 +265,17 @@
|
|||||||
></q-btn>
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-dialog v-model="showMov" :maximized="$q.screen.lt.sm" permanent>
|
<q-dialog
|
||||||
|
v-model="showMov"
|
||||||
|
:maximized="$q.screen.lt.sm"
|
||||||
|
permanent
|
||||||
|
>
|
||||||
<q-card class="dialog_card">
|
<q-card class="dialog_card">
|
||||||
<q-bar dense class="bg-primary text-white">
|
<q-bar
|
||||||
{{ t("circuit.movements") }}:
|
dense
|
||||||
|
class="bg-primary text-white"
|
||||||
|
>
|
||||||
|
{{ t('circuit.movements') }}:
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
@@ -355,7 +402,7 @@
|
|||||||
class="bg-red text-white"
|
class="bg-red text-white"
|
||||||
style="text-align: center"
|
style="text-align: center"
|
||||||
>
|
>
|
||||||
<em style="font-weight: bold">{{ $t("db.youarerefusedcircuit") }}</em>
|
<em style="font-weight: bold">{{ $t('db.youarerefusedcircuit') }}</em>
|
||||||
<br />
|
<br />
|
||||||
</q-banner>
|
</q-banner>
|
||||||
|
|
||||||
@@ -371,11 +418,13 @@
|
|||||||
class="bg-blue text-white"
|
class="bg-blue text-white"
|
||||||
>
|
>
|
||||||
<template v-slot:avatar>
|
<template v-slot:avatar>
|
||||||
<q-icon name="fas fa-info" color="red" size="sm" />
|
<q-icon
|
||||||
|
name="fas fa-info"
|
||||||
|
color="red"
|
||||||
|
size="sm"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span
|
<span v-html="$t('circuit.entra_italia_solo_dopo_aver_fido')"></span>
|
||||||
v-html="$t('circuit.entra_italia_solo_dopo_aver_fido')"
|
|
||||||
></span>
|
|
||||||
</q-banner>
|
</q-banner>
|
||||||
<q-banner
|
<q-banner
|
||||||
v-if="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
|
v-if="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
|
||||||
@@ -393,7 +442,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<em style="font-weight: bold">
|
<em style="font-weight: bold">
|
||||||
{{ $t("circuit.beforeentertolocalcircuit") }}
|
{{ $t('circuit.beforeentertolocalcircuit') }}
|
||||||
</em>
|
</em>
|
||||||
<br />
|
<br />
|
||||||
</q-banner>
|
</q-banner>
|
||||||
@@ -412,11 +461,15 @@
|
|||||||
style="text-align: center"
|
style="text-align: center"
|
||||||
>
|
>
|
||||||
<template v-slot:avatar>
|
<template v-slot:avatar>
|
||||||
<q-icon name="fas fa-info" color="white" size="sm" />
|
<q-icon
|
||||||
|
name="fas fa-info"
|
||||||
|
color="white"
|
||||||
|
size="sm"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<em style="font-weight: bold">
|
<em style="font-weight: bold">
|
||||||
{{ $t("db.insertgoodorservices_to_enter_circuit") }}
|
{{ $t('db.insertgoodorservices_to_enter_circuit') }}
|
||||||
</em>
|
</em>
|
||||||
<br />
|
<br />
|
||||||
</q-banner>
|
</q-banner>
|
||||||
@@ -442,7 +495,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<em style="font-weight: bold">
|
<em style="font-weight: bold">
|
||||||
{{ $t("db.insertgoodorservices_to_enter_circuit") }}
|
{{ $t('db.insertgoodorservices_to_enter_circuit') }}
|
||||||
</em>
|
</em>
|
||||||
<br />
|
<br />
|
||||||
</q-banner>
|
</q-banner>
|
||||||
@@ -465,11 +518,7 @@
|
|||||||
"
|
"
|
||||||
icon="fas fa-user-plus"
|
icon="fas fa-user-plus"
|
||||||
color="primary"
|
color="primary"
|
||||||
:label="
|
:label="circuit.askManagerToEnter ? t('circuit.ask') : t('circuit.enter')"
|
||||||
circuit.askManagerToEnter
|
|
||||||
? t('circuit.ask')
|
|
||||||
: t('circuit.enter')
|
|
||||||
"
|
|
||||||
@click="
|
@click="
|
||||||
requestToEnterCircuit = true;
|
requestToEnterCircuit = true;
|
||||||
groupnameSel = null;
|
groupnameSel = null;
|
||||||
@@ -485,9 +534,7 @@
|
|||||||
flat
|
flat
|
||||||
outline
|
outline
|
||||||
:label="$t('shared.cancel_ask_short')"
|
:label="$t('shared.cancel_ask_short')"
|
||||||
@click="
|
@click="tools.cancelReqCircuit($q, userStore.my.username, circuit.name)"
|
||||||
tools.cancelReqCircuit($q, userStore.my.username, circuit.name)
|
|
||||||
"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -496,7 +543,11 @@
|
|||||||
v-if="circuit.name"
|
v-if="circuit.name"
|
||||||
class="no-wrap justify-evenly items-center content-start"
|
class="no-wrap justify-evenly items-center content-start"
|
||||||
>
|
>
|
||||||
<q-tabs v-model="tabcircuit" class="text-blue" no-caps>
|
<q-tabs
|
||||||
|
v-model="tabcircuit"
|
||||||
|
class="text-blue"
|
||||||
|
no-caps
|
||||||
|
>
|
||||||
<q-tab
|
<q-tab
|
||||||
:label="t('shared.info1')"
|
:label="t('shared.info1')"
|
||||||
name="info"
|
name="info"
|
||||||
@@ -504,8 +555,7 @@
|
|||||||
></q-tab>
|
></q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-if="
|
v-if="
|
||||||
tools.iCanShowCircuitsMember(circuit) ||
|
tools.iCanShowCircuitsMember(circuit) || tools.iAmAdminCircuit(circuit.name)
|
||||||
tools.iAmAdminCircuit(circuit.name)
|
|
||||||
"
|
"
|
||||||
:label="t('shared.subscribes')"
|
:label="t('shared.subscribes')"
|
||||||
name="members"
|
name="members"
|
||||||
@@ -535,14 +585,22 @@
|
|||||||
></q-tab>
|
></q-tab>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels v-model="tabcircuit" animated keep-alive>
|
<q-tab-panels
|
||||||
<q-tab-panel name="annunci" style="max-width: 500px"> </q-tab-panel>
|
v-model="tabcircuit"
|
||||||
|
animated
|
||||||
|
keep-alive
|
||||||
|
>
|
||||||
|
<q-tab-panel
|
||||||
|
name="annunci"
|
||||||
|
style="max-width: 500px"
|
||||||
|
>
|
||||||
|
</q-tab-panel>
|
||||||
<q-tab-panel
|
<q-tab-panel
|
||||||
name="gruppicollettivi"
|
name="gruppicollettivi"
|
||||||
style="max-width: 500px"
|
style="max-width: 500px"
|
||||||
v-if="tools.iCanShowCircuitsMember(circuit)"
|
v-if="tools.iCanShowCircuitsMember(circuit)"
|
||||||
>
|
>
|
||||||
<div class="text-h7">{{ t("circuit.contideigruppi") }}:</div>
|
<div class="text-h7">{{ t('circuit.contideigruppi') }}:</div>
|
||||||
<div class="text-h8 q-mb-sm">
|
<div class="text-h8 q-mb-sm">
|
||||||
<div v-html="$t('circuit.collettivi_info')"></div>
|
<div v-html="$t('circuit.collettivi_info')"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -551,7 +609,11 @@
|
|||||||
v-model="tabmembers"
|
v-model="tabmembers"
|
||||||
class="text-blue"
|
class="text-blue"
|
||||||
>
|
>
|
||||||
<q-tab label="Iscritti" name="all" icon="fas fa-users"></q-tab>
|
<q-tab
|
||||||
|
label="Iscritti"
|
||||||
|
name="all"
|
||||||
|
icon="fas fa-users"
|
||||||
|
></q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-if="tools.iAmAdminCircuit(circuit.name)"
|
v-if="tools.iAmAdminCircuit(circuit.name)"
|
||||||
label="Richieste"
|
label="Richieste"
|
||||||
@@ -567,10 +629,18 @@
|
|||||||
></q-tab>
|
></q-tab>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels v-model="tabmembers" animated keep-alive>
|
<q-tab-panels
|
||||||
|
v-model="tabmembers"
|
||||||
|
animated
|
||||||
|
keep-alive
|
||||||
|
>
|
||||||
<q-tab-panel name="all">
|
<q-tab-panel name="all">
|
||||||
<div class="row justify-center">
|
<div class="row justify-center">
|
||||||
<q-btn rounded icon="fas fa-user-plus" class="text-center">
|
<q-btn
|
||||||
|
rounded
|
||||||
|
icon="fas fa-user-plus"
|
||||||
|
class="text-center"
|
||||||
|
>
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-item>Chiedi di Entrare nei Circuiti:</q-item>
|
<q-item>Chiedi di Entrare nei Circuiti:</q-item>
|
||||||
<q-list
|
<q-list
|
||||||
@@ -663,9 +733,7 @@
|
|||||||
ref="tabGroups"
|
ref="tabGroups"
|
||||||
prop_mytable="mygroups"
|
prop_mytable="mygroups"
|
||||||
prop_mytitle
|
prop_mytitle
|
||||||
:prop_mycolumns="
|
:prop_mycolumns="showsaldi ? colmyUserPeopleSaldi : colmyUserPeople"
|
||||||
showsaldi ? colmyUserPeopleSaldi : colmyUserPeople
|
|
||||||
"
|
|
||||||
prop_colkey="_id"
|
prop_colkey="_id"
|
||||||
col_title="groupname"
|
col_title="groupname"
|
||||||
:vertical="costanti.VISUTABLE_GROUP_CIRCUIT"
|
:vertical="costanti.VISUTABLE_GROUP_CIRCUIT"
|
||||||
@@ -695,7 +763,7 @@
|
|||||||
></CGridTableRec>
|
></CGridTableRec>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="rich">
|
<q-tab-panel name="rich">
|
||||||
{{ $t("circuit.richieste_title") }}
|
{{ $t('circuit.richieste_title') }}
|
||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
v-if="!loading"
|
v-if="!loading"
|
||||||
prop_mytable="circuits"
|
prop_mytable="circuits"
|
||||||
@@ -759,7 +827,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="text-h7">{{ t("circuit.info") }}</div>
|
<div class="text-h7">{{ t('circuit.info') }}</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
@@ -772,7 +840,7 @@
|
|||||||
<div v-html="$t('circuit.aggiuntive')"></div>
|
<div v-html="$t('circuit.aggiuntive')"></div>
|
||||||
</div>
|
</div>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="text-h7">{{ t("circuit.descr") }}:</div>
|
<div class="text-h7">{{ t('circuit.descr') }}:</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
@@ -786,19 +854,24 @@
|
|||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<q-icon name="fas fa-users" class="iconcirc"></q-icon>
|
<q-icon
|
||||||
|
name="fas fa-users"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
<span class="element">{{ numUsers() }}</span>
|
<span class="element">{{ numUsers() }}</span>
|
||||||
{{
|
{{ numUsers() === 1 ? t('shared.member') : t('shared.members') }}
|
||||||
numUsers() === 1
|
|
||||||
? t("shared.member")
|
|
||||||
: t("shared.members")
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="container" v-if="circuit.link_group">
|
<div
|
||||||
<q-icon name="fab fa-telegram" class="iconcirc"></q-icon>
|
class="container"
|
||||||
|
v-if="circuit.link_group"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
name="fab fa-telegram"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
<span class="element">
|
<span class="element">
|
||||||
{{
|
{{
|
||||||
$t("circuit.chat_gruppo_telegram_circuito", {
|
$t('circuit.chat_gruppo_telegram_circuito', {
|
||||||
name: circuit.name,
|
name: circuit.name,
|
||||||
})
|
})
|
||||||
}}:
|
}}:
|
||||||
@@ -836,13 +909,17 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<q-icon name="fas fa-user-cog" class="iconcirc"></q-icon>
|
<q-icon
|
||||||
|
name="fas fa-user-cog"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
<span class="element">{{ numAdmins() }}</span>
|
<span class="element">{{ numAdmins() }}</span>
|
||||||
{{
|
{{ numAdmins() === 1 ? t('shared.admin') : t('shared.admins') }}
|
||||||
numAdmins() === 1 ? t("shared.admin") : t("shared.admins")
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(user, index) of circuit.admins" :key="index">
|
<div
|
||||||
|
v-for="(user, index) of circuit.admins"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
<CMyUser
|
<CMyUser
|
||||||
:mycontact="user"
|
:mycontact="user"
|
||||||
:visu="costanti.FIND_PEOPLE"
|
:visu="costanti.FIND_PEOPLE"
|
||||||
@@ -850,15 +927,15 @@
|
|||||||
></CMyUser>
|
></CMyUser>
|
||||||
</div>
|
</div>
|
||||||
<div class="sezioni">
|
<div class="sezioni">
|
||||||
<q-icon name="fas fa-coins" class="iconcirc"></q-icon>
|
<q-icon
|
||||||
{{ t("circuit.symbol") }}:
|
name="fas fa-coins"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
|
{{ t('circuit.symbol') }}:
|
||||||
<span class="text-h7">
|
<span class="text-h7">
|
||||||
<em
|
<em
|
||||||
class="q-px-sm text-black rounded-borders"
|
class="q-px-sm text-black rounded-borders"
|
||||||
:style="
|
:style="`background-color: ` + tools.getColorByCircuit(circuit)"
|
||||||
`background-color: ` +
|
|
||||||
tools.getColorByCircuit(circuit)
|
|
||||||
"
|
|
||||||
>{{ tools.getSymbolByCircuit(circuit) }}</em
|
>{{ tools.getSymbolByCircuit(circuit) }}</em
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
@@ -924,13 +1001,22 @@
|
|||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
</div>
|
</div>
|
||||||
<div v-if="circuit.totTransato" class="sezioni">
|
<div
|
||||||
<q-icon name="fas fa-stats" class="iconcirc"></q-icon>
|
v-if="circuit.totTransato"
|
||||||
{{ t("circuit.stats") }}:
|
class="sezioni"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
name="fas fa-stats"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
|
{{ t('circuit.stats') }}:
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div :class="$q.screen.lt.sm ? '' : 'row'">
|
<div :class="$q.screen.lt.sm ? '' : 'row'">
|
||||||
<div v-if="circuit.totTransato" class="sezioni">
|
<div
|
||||||
|
v-if="circuit.totTransato"
|
||||||
|
class="sezioni"
|
||||||
|
>
|
||||||
<CCurrencyValue
|
<CCurrencyValue
|
||||||
:symbol="tools.getSymbolByCircuit(circuit)"
|
:symbol="tools.getSymbolByCircuit(circuit)"
|
||||||
:color="tools.getColorByCircuit(circuit)"
|
:color="tools.getColorByCircuit(circuit)"
|
||||||
@@ -941,7 +1027,10 @@
|
|||||||
:tips="t('circuit.totTransato_tips')"
|
:tips="t('circuit.totTransato_tips')"
|
||||||
></CCurrencyValue>
|
></CCurrencyValue>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="circuit.totCircolante" class="sezioni">
|
<div
|
||||||
|
v-if="circuit.totCircolante"
|
||||||
|
class="sezioni"
|
||||||
|
>
|
||||||
<CCurrencyValue
|
<CCurrencyValue
|
||||||
:symbol="tools.getSymbolByCircuit(circuit)"
|
:symbol="tools.getSymbolByCircuit(circuit)"
|
||||||
:color="tools.getColorByCircuit(circuit)"
|
:color="tools.getColorByCircuit(circuit)"
|
||||||
@@ -954,14 +1043,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sezioni">
|
<div class="sezioni">
|
||||||
<q-icon name="fas fa-toggle-on" class="iconcirc"></q-icon>
|
<q-icon
|
||||||
{{ t("circuit.transactionsEnabled") }}:
|
name="fas fa-toggle-on"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
|
{{ t('circuit.transactionsEnabled') }}:
|
||||||
<span class="text-section">
|
<span class="text-section">
|
||||||
{{
|
{{ circuit.transactionsEnabled ? t('dialog.yes') : t('dialog.no') }}
|
||||||
circuit.transactionsEnabled
|
|
||||||
? t("dialog.yes")
|
|
||||||
: t("dialog.no")
|
|
||||||
}}
|
|
||||||
{{}}
|
{{}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -990,7 +1078,7 @@
|
|||||||
<q-card v-if="circuit.name">
|
<q-card v-if="circuit.name">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="text-h8">
|
<div class="text-h8">
|
||||||
{{ t("circuit.regulation") }} {{ circuit.name }}:
|
{{ t('circuit.regulation') }} {{ circuit.name }}:
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
@@ -1010,10 +1098,16 @@
|
|||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<div v-if="circuit.createdBy" class="container text-h8">
|
<div
|
||||||
<q-icon name="fas fa-lightbulb" class="iconcirc"></q-icon>
|
v-if="circuit.createdBy"
|
||||||
|
class="container text-h8"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
name="fas fa-lightbulb"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
{{
|
{{
|
||||||
$t("shared.createddate", {
|
$t('shared.createddate', {
|
||||||
date: tools.getstrDateYY(circuit.date_created),
|
date: tools.getstrDateYY(circuit.date_created),
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@@ -1026,10 +1120,13 @@
|
|||||||
"
|
"
|
||||||
class="container text-h8"
|
class="container text-h8"
|
||||||
>
|
>
|
||||||
<q-icon name="fas fa-pencil-alt" class="iconcirc"></q-icon>
|
<q-icon
|
||||||
|
name="fas fa-pencil-alt"
|
||||||
|
class="iconcirc"
|
||||||
|
></q-icon>
|
||||||
<span class="element text-h8">
|
<span class="element text-h8">
|
||||||
{{
|
{{
|
||||||
$t("shared.lastmodify", {
|
$t('shared.lastmodify', {
|
||||||
date: tools.getstrDateYY(circuit.date_updated),
|
date: tools.getstrDateYY(circuit.date_updated),
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@@ -1044,7 +1141,10 @@
|
|||||||
<div v-if="circuit.note">
|
<div v-if="circuit.note">
|
||||||
<br />
|
<br />
|
||||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||||
<div v-if="circuit.note" v-html="circuit.note"></div>
|
<div
|
||||||
|
v-if="circuit.note"
|
||||||
|
v-html="circuit.note"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
@@ -1058,7 +1158,11 @@
|
|||||||
v-model="tabmembers"
|
v-model="tabmembers"
|
||||||
class="text-blue"
|
class="text-blue"
|
||||||
>
|
>
|
||||||
<q-tab label="Iscritti" name="all" icon="fas fa-users"></q-tab>
|
<q-tab
|
||||||
|
label="Iscritti"
|
||||||
|
name="all"
|
||||||
|
icon="fas fa-users"
|
||||||
|
></q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-if="tools.iAmAdminCircuit(circuit.name)"
|
v-if="tools.iAmAdminCircuit(circuit.name)"
|
||||||
label="Richieste"
|
label="Richieste"
|
||||||
@@ -1074,7 +1178,10 @@
|
|||||||
></q-tab>
|
></q-tab>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
|
|
||||||
<q-tab-panels v-model="tabmembers" keep-alive>
|
<q-tab-panels
|
||||||
|
v-model="tabmembers"
|
||||||
|
keep-alive
|
||||||
|
>
|
||||||
<q-tab-panel name="all">
|
<q-tab-panel name="all">
|
||||||
<!--<q-toggle v-model="showsaldi" :label="t('movement.showsaldi')"></q-toggle>-->
|
<!--<q-toggle v-model="showsaldi" :label="t('movement.showsaldi')"></q-toggle>-->
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
@@ -1141,9 +1248,9 @@
|
|||||||
<q-tab-panel name="comunitario">
|
<q-tab-panel name="comunitario">
|
||||||
<q-card v-if="circuit.name">
|
<q-card v-if="circuit.name">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="text-h7">{{ t("circuit.contocomunitario") }}:</div>
|
<div class="text-h7">{{ t('circuit.contocomunitario') }}:</div>
|
||||||
<div class="text-h8 q-mb-sm">
|
<div class="text-h8 q-mb-sm">
|
||||||
{{ $t("circuit.info_contocom") }}
|
{{ $t('circuit.info_contocom') }}
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
@@ -1158,15 +1265,11 @@
|
|||||||
:color="circuit.color"
|
:color="circuit.color"
|
||||||
:saldo="circuit.account.saldo_pend"
|
:saldo="circuit.account.saldo_pend"
|
||||||
:valueextra="
|
:valueextra="
|
||||||
circuit.account.saldo != circuit.account.saldo_pend
|
circuit.account.saldo != circuit.account.saldo_pend ? `* ` : ''
|
||||||
? `* `
|
|
||||||
: ''
|
|
||||||
"
|
"
|
||||||
:qtarem="
|
:qtarem="
|
||||||
circuit.account
|
circuit.account
|
||||||
? circuitStore.getRemainingCoinsToSend(
|
? circuitStore.getRemainingCoinsToSend(circuit.account)
|
||||||
circuit.account
|
|
||||||
)
|
|
||||||
: 0
|
: 0
|
||||||
"
|
"
|
||||||
></CSaldo>
|
></CSaldo>
|
||||||
@@ -1266,7 +1369,11 @@
|
|||||||
height="140px"
|
height="140px"
|
||||||
animation="fade"
|
animation="fade"
|
||||||
/>
|
/>
|
||||||
<q-card flat bordered style="width: 250px">
|
<q-card
|
||||||
|
flat
|
||||||
|
bordered
|
||||||
|
style="width: 250px"
|
||||||
|
>
|
||||||
<div class="text-h7">
|
<div class="text-h7">
|
||||||
<q-skeleton :animation="animation" />
|
<q-skeleton :animation="animation" />
|
||||||
</div>
|
</div>
|
||||||
@@ -1285,15 +1392,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
|
||||||
<CUserNonVerif></CUserNonVerif>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" src="./mycircuit.ts">
|
<script lang="ts" src="./mycircuit.ts"></script>
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "./mycircuit.scss";
|
@import './mycircuit.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,14 @@
|
|||||||
<CNotifAtTop />
|
<CNotifAtTop />
|
||||||
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||||
<div v-if="!mygrp && !loading">
|
<div v-if="!mygrp && !loading">
|
||||||
<div v-if="mystatus === 403">
|
<div v-if="mystatus === 401">
|
||||||
<h3>
|
<h3>
|
||||||
Non hai i permessi per accedere al Gruppo.
|
Non hai i permessi per accedere al Gruppo.
|
||||||
<br />Occorre prima registrarsi alla App
|
<br />Occorre prima registrarsi alla App
|
||||||
</h3>
|
</h3>
|
||||||
|
<div v-if="!tools.isLogged()">
|
||||||
|
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<h3>Gruppo non Esistente</h3>
|
<h3>Gruppo non Esistente</h3>
|
||||||
|
|||||||