Aggio App

This commit is contained in:
Surya Paolo
2022-12-09 03:09:16 +01:00
parent 771271fda2
commit 6a42df7861
16 changed files with 736 additions and 724 deletions

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="16" APP_ID="16"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.30" APP_VERSION="0.5.31"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="14" APP_ID="14"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

File diff suppressed because it is too large Load Diff

View File

@@ -86,6 +86,10 @@ export default defineComponent({
//$router.push(link) //$router.push(link)
} }
function getNameToShow(user: IUserFields) {
return userStore.getNameToShow(user)
}
onMounted(mounted) onMounted(mounted)
@@ -105,6 +109,7 @@ export default defineComponent({
cmdExt, cmdExt,
visupage, visupage,
showBadge, showBadge,
getNameToShow,
} }
}, },
}) })

View File

@@ -35,7 +35,6 @@
<q-item-section @click="navigaExt(myrec)"> <q-item-section @click="navigaExt(myrec)">
<q-item-label lines="1" class="full-width" > <q-item-label lines="1" class="full-width" >
<span v-for="(rec, ind) of tools.getArrSubSector(table, myrec)" :key="ind"> <span v-for="(rec, ind) of tools.getArrSubSector(table, myrec)" :key="ind">
<q-chip dense class="text-center shadow-5 glossy text-white bg-green">{{ rec.descr }}</q-chip> <q-chip dense class="text-center shadow-5 glossy text-white bg-green">{{ rec.descr }}</q-chip>
</span> </span>
@@ -51,7 +50,7 @@
<q-item-label lines="4" v-if="myrec.descr">{{ myrec.descr }}<br> <q-item-label lines="4" v-if="myrec.descr">{{ myrec.descr }}<br>
</q-item-label> </q-item-label>
<q-item-label lines="1" style="text-align: right" class="text_user_city"> <q-item-label lines="1" style="text-align: right" class="text_user_city">
<span class="text-weight-bold">{{ myrec.username }}</span> - <span class="text-weight-bold">{{ getNameToShow(myrec) }}</span> -
<span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})</span> <span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }} ({{ rec.prov }})</span>
</q-item-label> </q-item-label>

View File

@@ -41,7 +41,7 @@
<q-icon name="fas fa-lock"></q-icon></span> <q-icon name="fas fa-lock"></q-icon></span>
<span v-if="myrec.visibility.includes(shared_consts.Visibility_Group.HIDDEN)" class="q-mr-xs"> <span v-if="myrec.visibility.includes(shared_consts.Visibility_Group.HIDDEN)" class="q-mr-xs">
<q-icon name="fas fa-eye-slash"></q-icon></span> <q-icon name="fas fa-eye-slash"></q-icon></span>
<span class="text-weight-bold">{{ myrec.username }}</span> - <span class="text-weight-bold">{{ getNameToShow(myrec) }}</span> -
<span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }}</span> <span v-for="(rec, ind) of myrec.mycities" :key="ind"><span v-if="ind > 0">, </span>{{ rec.comune }}</span>
</q-item-label> </q-item-label>

View File

@@ -21,8 +21,8 @@
outline outline
icon="fas fa-envelope" icon="fas fa-envelope"
size="md" size="md"
color="black" :color="$q.dark.isActive ? `black` : `white`"
text-color="white" :text-color="$q.dark.isActive ? `white` : `black`"
to="/signup" to="/signup"
:label="$t('reg.byemail')" :label="$t('reg.byemail')"
> >

View File

@@ -1,4 +1,4 @@
<template> ù<template>
<div> <div>
<div class="q-my-sm q-gutter-xs q-py-xs"> <div class="q-my-sm q-gutter-xs q-py-xs">
<CGridTableRec <CGridTableRec

View File

@@ -219,7 +219,7 @@ const msg_it = {
youarerefusedgroup: 'Ti è stato rifiutata la richiesta di entrare in questo Gruppo (per info chiedi all\'amministratore del gruppo)', youarerefusedgroup: 'Ti è stato rifiutata la richiesta di entrare in questo Gruppo (per info chiedi all\'amministratore del gruppo)',
youarerefusedcircuit: 'Ti è stato rifiutata la richiesta di entrare in questo Circuito (per info chiedi all\'amministratore del gruppo)', youarerefusedcircuit: 'Ti è stato rifiutata la richiesta di entrare in questo Circuito (per info chiedi all\'amministratore del gruppo)',
insertgoodorservices_to_start_circuit: 'Per poter inviare monete è necessario aggiungere almeno un Bene o Servizio, con la voglia di proporsi ed accettare i RIS come scambio.', insertgoodorservices_to_start_circuit: 'Per poter inviare monete è necessario aggiungere almeno un Bene o Servizio, con la voglia di proporsi ed accettare i RIS come scambio.',
insertgoodorservices_to_enter_circuit: 'Per poter entrare nel Circuito è necessario aggiungere almeno un Bene o Servizio, con la voglia di proporsi ed accettare i RIS come scambio.', insertgoodorservices_to_enter_circuit: 'Per poter entrare nel Circuito è necessario aggiungere almeno un Bene, Servizio o offrire Ospitalità',
deletedgroup: 'Gruppo Eliminato', deletedgroup: 'Gruppo Eliminato',
domanda_addtofriend: 'Aggiungere agli amici {username}?', domanda_addtofriend: 'Aggiungere agli amici {username}?',
domanda_addtogroup: 'Aggiungi {username} al gruppo {groupname}?', domanda_addtogroup: 'Aggiungi {username} al gruppo {groupname}?',
@@ -743,6 +743,7 @@ const msg_it = {
sendmsg_error: 'Messaggio non inviato. Riprovare più tardi', sendmsg_error: 'Messaggio non inviato. Riprovare più tardi',
sendmsg_sent: 'Messaggio Inviato', sendmsg_sent: 'Messaggio Inviato',
sendmsg_sent_sharedlink: 'Condividi il messaggio che ti è appena arrivato sulla Chat Telegram', sendmsg_sent_sharedlink: 'Condividi il messaggio che ti è appena arrivato sulla Chat Telegram',
sendmsg_sent_sharedlink_copied: 'Messaggio copiato. Ora incollalo nel messaggio da inviare.',
sendmsgs_sent: 'Messaggi Inviati', sendmsgs_sent: 'Messaggi Inviati',
err_sendmsg: 'Errore durante l\'invio del Messaggio', err_sendmsg: 'Errore durante l\'invio del Messaggio',
booking: 'Prenota Evento', booking: 'Prenota Evento',

View File

@@ -831,7 +831,7 @@ export const colmyGoods = [
name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html, name: 'note', label_trans: 'proj.descrapprof', fieldtype: costanti.FieldType.html,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '', titlepopupedit: 'Dettagli', field_extra1: 'username', subfield_extra1: '',
minlength: 50, // minlength: 50,
isadvanced_field: true, isadvanced_field: true,
required: false, required: false,
}), }),

View File

@@ -427,6 +427,20 @@ export const useUserStore = defineStore('UserStore', {
return `(${username})` return `(${username})`
}, },
getNameToShow(user: IUserFields): string {
let name = ''
if (!!user.name)
name = user.name
if (!!user.surname)
name += ' ' + user.surname
if (!name) {
name = user.username
}
return name
},
getUserByUserId(userId: string): IUserFields | null { getUserByUserId(userId: string): IUserFields | null {
// Check if is this User! // Check if is this User!
if (this.my._id === userId) return this.my if (this.my._id === userId) return this.my
@@ -1239,18 +1253,29 @@ export const useUserStore = defineStore('UserStore', {
}, },
async sendMsgToBotTelegram($q: any, t: any, mydata: IMsgGlobParam, showmsgsent: boolean) { async sendMsgToBotTelegram($q: any, t: any, mydata: IMsgGlobParam, showmsgsent: boolean) {
const globalStore = useGlobalStore()
return Api.SendReq('/users/mgt', 'POST', { mydata }) return Api.SendReq('/users/mgt', 'POST', { mydata })
.then((res) => { .then((res) => {
console.log('res', res) console.log('res', res)
let msgok = (res.data.nummsgsent === 1) ? res.data.nummsgsent + ' ' + t('cal.sendmsg_sent') : res.data.nummsgsent + ' ' + t('cal.sendmsgs_sent') let msgok = (res.data.nummsgsent === 1) ? res.data.nummsgsent + ' ' + t('cal.sendmsg_sent') : res.data.nummsgsent + ' ' + t('cal.sendmsgs_sent')
if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) { if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) {
msgok = t('cal.sendmsg_sent_sharedlink') + ' ' + tools.getBotName() if (tools.isTelegOk()) {
msgok = t('cal.sendmsg_sent_sharedlink') + ' ' + tools.getBotName()
} else {
msgok = t('cal.sendmsg_sent_sharedlink_copied')
}
showmsgsent = true showmsgsent = true
} }
if (showmsgsent && res.data.nummsgsent >= 0) { if (showmsgsent && res.data.nummsgsent >= 0) {
tools.showPositiveNotif($q, msgok) tools.showPositiveNotif($q, msgok)
if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) { if (mydata.cmd === shared_consts.MsgTeleg.SHARE_MSGREG) {
if (!tools.isTelegOk()) {
// console.log('text', res.data.text)
tools.copyStringToClipboardSilent(res.data.text)
}
if (res.data.textsent) { if (res.data.textsent) {
return res.data.textsent return res.data.textsent
} }

View File

@@ -92,7 +92,7 @@
:table="card.table" :table="card.table"
:filtercustom="filtroutente" :filtercustom="filtroutente"
:butt_modif_new="isMyRecord(myuser.username)" :butt_modif_new="isMyRecord(myuser.username)"
visuinpage="true" :visuinpage="true"
/> />
</div> </div>
</div> </div>