- fix link bot for Test Envinroment
- If invite not exist, error message
This commit is contained in:
@@ -102,7 +102,7 @@ const msg_website = {
|
||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||
+ '<li><strong>Condividendolo</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||
+ '<li>Rispondendo ai <strong>Sondaggi Popolari</strong> e lasciando <strong>Feedback</strong></li>'
|
||||
+ '<li>Tramite una <strong>donazione</strong> (<strong>anche 1€</strong> ) per le spese.<br>'
|
||||
+ '<li>Tramite una piccola <strong>donazione</strong> per le spese dei Server<br>'
|
||||
+ '</ul>'
|
||||
+ 'Vedo un <strong>futuro</strong> dove non si utilizzerà più denaro. Dove le persone si <strong>aiuteranno</strong> a vicenda e non avranno bisogno di "possedere" cose, ma le <strong>condivideranno</strong> con gli altri.<br>',
|
||||
},
|
||||
|
||||
@@ -208,7 +208,7 @@ const msg_website_it = {
|
||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||
+ '<li><strong>Condividendolo</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||
+ '<li>Rispondendo ai <strong>Sondaggi Popolari</strong> e lasciando <strong>Feedback</strong></li>'
|
||||
+ '<li>Tramite una <strong>donazione</strong> (<strong>anche 1€</strong> ) per le spese.<br>'
|
||||
+ '<li>Tramite una piccola <strong>donazione</strong> per le spese dei Server<br>'
|
||||
+ '</ul>'
|
||||
+ 'Vedo un <strong>futuro</strong> dove non si utilizzerà più denaro. Dove le persone si <strong>aiuteranno</strong> a vicenda e non avranno bisogno di "possedere" cose, ma le <strong>condivideranno</strong> con gli altri.<br>',
|
||||
},
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if (tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -208,7 +208,7 @@ const msg_website_it = {
|
||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||
+ '<li><strong>Condividendolo</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||
+ '<li>Rispondendo ai <strong>Sondaggi Popolari</strong> e lasciando <strong>Feedback</strong></li>'
|
||||
+ '<li>Tramite una <strong>donazione</strong> (<strong>anche 1€</strong> ) per le spese.<br>'
|
||||
+ '<li>Tramite una piccola <strong>donazione</strong> per le spese dei Server<br>'
|
||||
+ '</ul>'
|
||||
+ 'Vedo un <strong>futuro</strong> dove non si utilizzerà più denaro. Dove le persone si <strong>aiuteranno</strong> a vicenda e non avranno bisogno di "possedere" cose, ma le <strong>condivideranno</strong> con gli altri.<br>',
|
||||
},
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -44,7 +44,7 @@ export default {
|
||||
console.info('SESSIONE IN SVILUPPO ! (DEV)')
|
||||
// console.info(process.env)
|
||||
}
|
||||
if (tools.isTest()) {
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
console.info('SESSIONE IN TEST ! (TEST)')
|
||||
} else {
|
||||
if (process.env.PROD) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { CCopyBtn } from '../CCopyBtn'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CVerifyTelegram',
|
||||
@@ -31,7 +32,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if (tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
function getBotNameTelegram() {
|
||||
return t('ws.botname');
|
||||
|
||||
@@ -102,7 +102,7 @@ const msg_website = {
|
||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||
+ '<li><strong>Condividendolo</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||
+ '<li>Rispondendo ai <strong>Sondaggi Popolari</strong> e lasciando <strong>Feedback</strong></li>'
|
||||
+ '<li>Tramite una <strong>donazione</strong> (<strong>anche 1€</strong> ) per le spese.<br>'
|
||||
+ '<li>Tramite una piccola <strong>donazione</strong> per le spese dei Server<br>'
|
||||
+ '</ul>'
|
||||
+ 'Vedo un <strong>futuro</strong> dove non si utilizzerà più denaro. Dove le persone si <strong>aiuteranno</strong> a vicenda e non avranno bisogno di "possedere" cose, ma le <strong>condivideranno</strong> con gli altri.<br>',
|
||||
},
|
||||
|
||||
@@ -208,7 +208,7 @@ const msg_website_it = {
|
||||
descr: '<ul class="mylist" style="padding-left: 20px;">'
|
||||
+ '<li><strong>Condividendolo</strong> a tutti coloro che vogliono far parte insieme della crescita e sviluppo di una Nuova Era</li>'
|
||||
+ '<li>Rispondendo ai <strong>Sondaggi Popolari</strong> e lasciando <strong>Feedback</strong></li>'
|
||||
+ '<li>Tramite una <strong>donazione</strong> (<strong>anche 1€</strong> ) per le spese.<br>'
|
||||
+ '<li>Tramite una piccola <strong>donazione</strong> per le spese dei Server.<br>'
|
||||
+ '</ul>'
|
||||
+ 'Vedo un <strong>futuro</strong> dove non si utilizzerà più denaro. Dove le persone si <strong>aiuteranno</strong> a vicenda e non avranno bisogno di "possedere" cose, ma le <strong>condivideranno</strong> con gli altri.<br>',
|
||||
},
|
||||
|
||||
@@ -628,8 +628,8 @@ const baseroutes: IListRoutes[] = [
|
||||
|
||||
const arrLangUsed = [
|
||||
'it',
|
||||
'enUs',
|
||||
'es',
|
||||
// 'enUs',
|
||||
// 'es',
|
||||
]
|
||||
|
||||
const lang_available: ILang[] = [
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -47,7 +47,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getLinkBotTelegram(): string {
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
if ( tools.isTest() && !process.env.DEV) {
|
||||
return getValDb('TELEG_BOT_LINK_TEST', false)
|
||||
} else{
|
||||
return getValDb('TELEG_BOT_LINK', false)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
li {
|
||||
color: darkgreen !important;
|
||||
}
|
||||
|
||||
.testo-banda {
|
||||
//background: -webkit-gradient(linear, left top, left bottom, from(#3144f0), to(transparent));
|
||||
@@ -320,7 +323,7 @@ body.mobile .landing:before {
|
||||
}
|
||||
|
||||
.mylist {
|
||||
background: #3fdaff;
|
||||
background: #ebefef;
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -425,6 +425,6 @@
|
||||
</template>
|
||||
<script lang="ts" src="./presentazione.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
<style lang="scss">
|
||||
@import './presentazione.scss';
|
||||
</style>
|
||||
|
||||
@@ -385,7 +385,7 @@ const msg_enUs = {
|
||||
duplicate_email: 'Email was already registered',
|
||||
user_already_exist: 'Registration with these data (name, surname and mobile phone) has already been created. To access the site, click on the LOGIN button from the HomePage.',
|
||||
user_extralist_not_found: 'User in archive not found, insert the Name, Surname and mobile phone sent previously',
|
||||
user_not_this_aportador: 'Stai utilizzando un link di una persona diversa dal tuo invitato originale.',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'Username is already taken',
|
||||
username_not_valid: 'Username not valid',
|
||||
aportador_not_exist: 'The username of the person who invited you is not present. Contact us.',
|
||||
|
||||
@@ -388,7 +388,7 @@ const msg_es = {
|
||||
duplicate_email: 'La email ya ha sido registrada',
|
||||
user_already_exist: 'El registro con estos datos (nombre, apellido y teléfono móvil) ya se ha llevado a cabo. Para acceder al sitio, haga clic en el botón INICIAR SESIÓN desde la Página de inicio.',
|
||||
user_extralist_not_found: 'Usuario en el archivo no encontrado, inserte el nombre, apellido y número de teléfono enviado previamente',
|
||||
user_not_this_aportador: 'Stai utilizzando un link di una persona diversa dal tuo invitato originale.',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'El nombre de usuario ya ha sido utilizado',
|
||||
username_not_valid: 'Username not valid',
|
||||
aportador_not_exist: 'El nombre de usuario de la persona que lo invitó no está presente. Contactanos.',
|
||||
|
||||
@@ -386,7 +386,7 @@ const msg_fr = {
|
||||
duplicate_email: 'L\'email a déjà été enregistré',
|
||||
user_already_exist: 'L\'enregistrement avec ces données (nom, prénom et téléphone portable) a déjà été effectué. Pour accéder au site, cliquez sur le bouton CONNEXION de la page d\'accueil.',
|
||||
user_extralist_not_found: 'Utilisateur dans les archives introuvable, insérez le nom, le prénom et le numéro de téléphone portable envoyés précédemment',
|
||||
user_not_this_aportador: 'Stai utilizzando un link di una persona diversa dal tuo invitato originale.',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'Le nom d\'utilisateur a déjà été utilisé',
|
||||
username_not_valid: 'Username not valid',
|
||||
aportador_not_exist: 'Le nom d\'utilisateur de la personne qui vous a invité n\'est pas présent. Contactez-nous.',
|
||||
|
||||
@@ -522,7 +522,7 @@ const msg_it = {
|
||||
invalid_email: 'l\'Email non è valida',
|
||||
user_already_exist: 'La registrazione con questi dati (nome, cognome e cellulare) è stata già effettuata. Per accedere al sito, cliccare sul bottone LOGIN dalla HomePage.',
|
||||
user_extralist_not_found: 'Utente in archivio non trovato, inserire il Nome, Cognome e numero di cellulare comunicato nella lista nel 2019. Se questa è una nuova registrazione, dovete registrarvi tramite il LINK di chi vi sta invitando.',
|
||||
user_not_this_aportador: 'Stai utilizzando un link di una persona diversa dal tuo invitato originale.',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'L\'Username è stato già utilizzato',
|
||||
username_not_valid: 'L\'Username non é valido',
|
||||
aportador_not_exist: 'L\'Username di chi ti ha invitato non è presente. Contattaci.',
|
||||
|
||||
@@ -398,7 +398,7 @@ const msg_pt = {
|
||||
duplicate_email: 'o e-mail já foi registrado',
|
||||
user_already_exist: 'O registo com estes dados (nome, apelido e telemóvel) já foi feito. Para acessar o site, clique no botão LOGIN da HomePage.',
|
||||
user_extralist_not_found: 'Utilizador no arquivo não encontrado, introduza o Nome, Apelido e número de telemóvel comunicado na lista em 2019. Se este for um novo registo, deve registar-se através do LINK de quem o está a convidar.',
|
||||
user_not_this_aportador: 'Estás a usar um link de alguém que não o teu convidado original',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'O nome de usuário já foi usado',
|
||||
username_not_valid: 'Username not valid',
|
||||
aportador_not_exist: 'O nome de usuário da pessoa que o convidou não está presente. Por favor, contacte-nos.',
|
||||
|
||||
@@ -400,7 +400,7 @@ const msg_si = {
|
||||
duplicate_email: 'E-naslov je že bila registrirana',
|
||||
user_already_exist: 'Registracija s temi podatki (ime,priimek, telefonska)je že uporabljena.Za vstop na spletno stran, klikni na gumb LOGIN na Začetni Strani.',
|
||||
user_extralist_not_found: 'Uporabnik ni najden v arhivu, vpiši Ime,Priimek in telefonsko, ki si jo posredoval v listi leta 2019. Če je to nova registracija, se moraš prijaviti potom LINKA osebe, ki te vabi.',
|
||||
user_not_this_aportador: 'Uporabljaš link druge osebe, različen od tvojega originalnega povabljenca.',
|
||||
user_aportador_not_valid: 'Il link di registrazione non sembra risultare valido.',
|
||||
duplicate_username: 'To Uporabniško ime je že uporabljeno',
|
||||
username_not_valid: 'Username not valid',
|
||||
aportador_not_exist: 'To Uporabniško ime, ki te je povabilo, ni več prisotno.Kontaktiraj nas.',
|
||||
|
||||
@@ -6,7 +6,7 @@ export const serv_constants = {
|
||||
RIS_CODE_EMAIL_ALREADY_VERIFIED: -5,
|
||||
RIS_CODE_EMAIL_VERIFIED: 1,
|
||||
|
||||
RIS_CODE_USER_NOT_THIS_APORTADOR: -75,
|
||||
RIS_CODE_USER_APORTADOR_NOT_VALID: -75,
|
||||
RIS_CODE_USER_EXTRALIST_NOTFOUND: -70,
|
||||
RIS_CODE_USERNAME_ALREADY_EXIST: -60,
|
||||
RIS_CODE_USERNAME_NOT_VALID: -65,
|
||||
|
||||
@@ -3110,9 +3110,9 @@ export const tools = {
|
||||
} else if (riscode === serv_constants.RIS_CODE_USER_EXTRALIST_NOTFOUND) {
|
||||
|
||||
this.showNegativeNotif(mythisq, t('reg.err.user_extralist_not_found') + ' ' + msg)
|
||||
} else if (riscode === serv_constants.RIS_CODE_USER_NOT_THIS_APORTADOR) {
|
||||
} else if (riscode === serv_constants.RIS_CODE_USER_APORTADOR_NOT_VALID) {
|
||||
|
||||
this.showNegativeNotif(mythisq, t('reg.err.user_not_this_aportador') + ' ' + msg)
|
||||
this.showNegativeNotif(mythisq, t('reg.err.user_aportador_not_valid') + ' ' + msg)
|
||||
|
||||
} else if (riscode === serv_constants.RIS_CODE_USERNAME_NOT_VALID) {
|
||||
this.showNotif(mythisq, t('reg.err.username_not_valid'))
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
myuser.profile.nationality
|
||||
}})</span>
|
||||
</div>
|
||||
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||
<span v-if="myuser.profile.qualifica">
|
||||
<em><span class="qualifica">{{ myuser.profile.qualifica }}</span></em>
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||
{{ myuser.profile.biografia }}
|
||||
</div>
|
||||
|
||||
<div v-if="myuser.username !== userStore.my.username">
|
||||
<q-btn
|
||||
@@ -38,16 +46,9 @@
|
||||
flat :label="$t('friends.cancel_ask_friend_short')"
|
||||
@click="tools.cancelReqFriends($q, userStore.my.username, myuser.username)"
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="myuser._id">
|
||||
<div class="col-12 text-h8 q-mt-sm" v-if="myuser.profile.qualifica">
|
||||
<em><span class="qualifica">{{ myuser.profile.qualifica }}</span></em>
|
||||
</div>
|
||||
<div class="col-12 text-h8 q-mt-sm">
|
||||
{{ myuser.profile.biografia }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<q-btn
|
||||
v-if="myuser.username === myusername()" icon="fas fa-pencil-alt"
|
||||
|
||||
Reference in New Issue
Block a user