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 @@

App già installata! 🎉

- 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.

diff --git a/src/components/CMySelectCity/CMySelectCity.ts b/src/components/CMySelectCity/CMySelectCity.ts index 40107787..3414428a 100755 --- a/src/components/CMySelectCity/CMySelectCity.ts +++ b/src/components/CMySelectCity/CMySelectCity.ts @@ -15,7 +15,7 @@ import type { ISpecialField } from '@src/model' export default defineComponent({ name: 'CMySelectCity', - emits: ['update:modelValue'], + emits: ['update:modelValue', 'changevalRec'], props: { modelValue: [String, Number, Object], label: { @@ -109,8 +109,10 @@ export default defineComponent({ } function changevalRec(newval: any) { - if (props.db_type > 0) + if (props.db_type > 0) { setValDb($q, props.db_field, newval, props.db_type, false, props.table, props.db_subfield, props.db_id, 0, props.db_subsubfield, props.db_specialField) + emit('changevalRec') + } } diff --git a/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.ts b/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.ts index 7bac78bd..60ed6aee 100755 --- a/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.ts +++ b/src/components/CProfileCompletitionBanner/CProfileCompletitionBanner.ts @@ -291,7 +291,9 @@ export default defineComponent({ disabled: false, title: 'Verifica Telegram', description: - 'Collega il tuo account Telegram per partecipare alle community RISO ed essere contattato!', + 'Collega il tuo account Telegram per partecipare alle community ' + + tools.sitename() + + ' ed essere contattato!', completed: isTelegramVerified.value, avatar: { color: isTelegramVerified.value ? 'positive' : telegramStatus.value.color, @@ -572,16 +574,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, 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 @@