diff --git a/.env.production b/.env.production index 5e0af09a..e834adfe 100644 --- a/.env.production +++ b/.env.production @@ -1,11 +1,11 @@ VITE_APP_ID="13" -VITE_APP_URL="https://riso.app" -VITE_MONGODB_HOST="https://api.riso.app" -VITE_LOGO_REG='riso-logo-full.png' +VITE_APP_URL="https://test.riso.app" +VITE_MONGODB_HOST="https://testapi.riso.app" +VITE_LOGO_REG="riso-logo-full.png" VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" -VITE_DEBUG="0" -VITE_VUE_APP_ISTEST="0" -DIRECTORY_LOCAL=myprojplanet_vite -DIRECTORY_SERVER=/var/www/nodejs_riso_server -SERVERDIR_WEBSITE="/var/www/riso.app" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST="1" +DIRECTORY_LOCAL="myprojplanet_vite" +DIRECTORY_SERVER="/var/www/nodejs_test.riso_server" +SERVERDIR_WEBSITE="/var/www/test.riso.app" SERVERPW_WEBSITE="pwdadmin@1AOK" \ No newline at end of file diff --git a/scripts/_ALL_SITES/comunitanuovomondo.app/src/db/lang/ws_it.js b/scripts/_ALL_SITES/comunitanuovomondo.app/src/db/lang/ws_it.js index 69abfaf0..a150a93a 100755 --- a/scripts/_ALL_SITES/comunitanuovomondo.app/src/db/lang/ws_it.js +++ b/scripts/_ALL_SITES/comunitanuovomondo.app/src/db/lang/ws_it.js @@ -23,6 +23,7 @@ const msg_website_it = { mygood2: 'mygood2', InvitoReg: 'Invito', Ammetti: 'Ammetti', + AbilitaCircuito: 'Abilita Circuito', installaApp: 'Installa App', fundraising: 'Sostieni il Progetto', notifs: 'Configura le Notifiche', diff --git a/src/components/CCheckAppRunning/CCheckAppRunning.vue b/src/components/CCheckAppRunning/CCheckAppRunning.vue index cdf908b8..61b8841d 100755 --- a/src/components/CCheckAppRunning/CCheckAppRunning.vue +++ b/src/components/CCheckAppRunning/CCheckAppRunning.vue @@ -138,8 +138,8 @@
- Ottimo! Stai già usando RISO come app installata. Puoi accedere sempre dalla - tua schermata home. + Ottimo! Stai già usando l'App installata. Puoi accedere sempre dalla + tua schermata Home.
RISO utilizza Telegram per connettere la sua community in tutta Italia!
' + + '' + + tools.sitename() + + ' utilizza Telegram per connettere la sua community in tutta Italia!
' + '' +
'✅ Contatta direttamente i membri usando il bottone "Messaggia"
' +
- '✅ Chat provinciali e nazionali RISO attive
' +
+ '✅ Chat provinciali e nazionali' +
+ tools.sitename() +
+ ' attive
' +
'✅ Migliaia di utenti con cui interagire
' +
'✅ Eventi, iniziative e aggiornamenti in tempo reale
' +
'✅ Gruppi ampi senza limiti WhatsApp
' +
'✅ Gratuito, sicuro e senza pubblicità' +
'
Unisciti alla community su Telegram e scopri tutto quello che RISO ha da offrire!
', + 'Unisciti alla community su Telegram e scopri tutto quello che ' + + tools.sitename() + + ' ha da offrire!
', html: true, options: { type: 'radio', @@ -638,16 +646,22 @@ export default defineComponent({ $q.dialog({ title: 'Perché Telegram?', message: - 'RISO utilizza Telegram per connettere la sua community in tutta Italia!
' + + '' + + tools.sitename() + + ' utilizza Telegram per connettere la sua community in tutta Italia!
' + '' +
'✅ Contatta direttamente i membri usando il bottone "Messaggia"
' +
- '✅ Chat provinciali e nazionali RISO attive
' +
+ '✅ Chat provinciali e nazionali ' +
+ tools.sitename() +
+ ' attive
' +
'✅ Migliaia di utenti con cui interagire
' +
'✅ Eventi, iniziative e aggiornamenti in tempo reale
' +
'✅ Gruppi ampi senza limiti WhatsApp
' +
'✅ Gratuito, sicuro e senza pubblicità' +
'
Unisciti alla community su Telegram e scopri tutto quello che RISO ha da offrire!
', + 'Unisciti alla community su Telegram e scopri tutto quello che ' + + tools.sitename() + + ' ha da offrire!
', html: true, ok: { label: 'Chiudi', @@ -825,6 +839,29 @@ export default defineComponent({ contact.value.profile.resid_str_comune = ''; } + // Se la provincia selezionata non esiste, mostra comunque il primo Circuito in cui si è entrati ! + if (!strProv.value && contact.value.profile.mycircuits.length >= 0) { + mycircuit.value = circuitStore.getCircuitByName( + contact.value.profile.mycircuits[0].circuitname + ); + } + + if (!globalStore.isPresenteCardsByProv(strProv.value)) { + if (contact.value && contact.value.profile.resid_card) { + contact.value.profile.resid_card = ''; + } + } + + if (card.value) { + circuitsel.value = card.value; + } + + // Initialize circuits based on residence + if (strProv.value) { + mylistcircuits.value = circuitStore.getCircuitsNameByProvince(strProv.value); + updateCircuito() + } + // Trova il primo step non completato e aprilo const firstIncompleteIndex = orderedSteps.value.findIndex( (step) => !step.completed @@ -842,39 +879,28 @@ export default defineComponent({ watch( () => strProv.value, (newval: string) => { - mycircuit.value = circuitStore.getCircuitByProvinceAndCard( - strProv.value, - card.value - ); - // Se la provincia selezionata non esiste, mostra comunque il primo Circuito in cui si è entrati ! - if (!strProv.value && contact.value.profile.mycircuits.length >= 0) { - mycircuit.value = circuitStore.getCircuitByName( - contact.value.profile.mycircuits[0].circuitname - ); - } - if (!globalStore.isPresenteCardsByProv(strProv.value)) { - if (contact.value && contact.value.profile.resid_card) { - contact.value.profile.resid_card = ''; - } - } + updateCircuito() + updateContact(); } ); watch( () => card.value, - () => { - mycircuit.value = circuitStore.getCircuitByProvinceAndCard( - strProv.value, - card.value - ); - } + () => { updateCircuito()} ); + const updateCircuito = () => { + mycircuit.value = circuitStore.getCircuitByProvinceAndCard( + strProv.value, + card.value + ); + }; + watch( () => circuitsel.value, () => { if (circuitsel.value) { - mycircuit.value = circuitStore.getCircuitByName(circuitsel.value); + updateCircuito() } } ); @@ -928,15 +954,11 @@ export default defineComponent({ if (userStore.isUserOk()) { updateContact(); - // Initialize circuits based on residence - if (contact.value?.profile.resid_province) { - mylistcircuits.value = circuitStore.getCircuitsNameByProvince(strProv.value); - mycircuit.value = circuitStore.getCircuitByProvinceAndCard( - strProv.value, - card.value - ); - } - if (!mycircuit.value && !strProv.value && contact.value.profile.mycircuits.length >= 0) { + if ( + !mycircuit.value && + !strProv.value && + contact.value.profile.mycircuits.length >= 0 + ) { mycircuit.value = circuitStore.getCircuitByName( contact.value.profile.mycircuits[0].circuitname ); @@ -944,6 +966,14 @@ export default defineComponent({ } }); + function updateZona(newval: any) { + if (circuitsel.value) { + contact.value.profile.resid_card = circuitsel.value; + + userStore.saveZona($q, t, contact.value._id, contact.value.profile.resid_card); + } + } + onBeforeUnmount(() => { stopPolling(); }); @@ -1015,6 +1045,7 @@ export default defineComponent({ updateContact, strProv, isCurrentStepComune, + updateZona, }; }, }); diff --git a/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.vue b/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.vue index 6a2362d4..51b25790 100755 --- a/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.vue +++ b/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.vue @@ -198,7 +198,7 @@Entra nel circuito locale per scambiare beni e servizi con le persone @@ -225,7 +226,7 @@ ⚠️ Attenzione: Se non si sceglie il Comune di Residenza (il passaggio precedente) non è possibile poter scegliere la Provincia in cui accedere al Circuito RIS del tuo territorio.
- Vai su BOT RISO Telegram ed imposta l'Username. + Vai su BOT {{tools.sitename()}} Telegram ed imposta l'Username.
- Per accedere a RISO hai bisogno di un invito + Per accedere a {{ tools.sitename() }} hai bisogno di un invito
L'invito può essere di due tipi:
Non conosci nessuno di RISO?
+Non conosci nessuno di {{tools.sitename()}}?
Nessun problema! Puoi unirti alla comunità attraverso i nostri gruppi
territoriali su Telegram oppure contattarci direttamente via email. Saremo
diff --git a/src/components/CStatusReg/CStatusReg.vue b/src/components/CStatusReg/CStatusReg.vue
index cebb924f..0c579717 100755
--- a/src/components/CStatusReg/CStatusReg.vue
+++ b/src/components/CStatusReg/CStatusReg.vue
@@ -91,9 +91,9 @@
+ Abilitazione fiducia del {{ circuitName }}
+
+ Elaborazione in corso...
+
+ {{ t('reg.title_abilita_circuito') }}
+
+