diff --git a/.env.development b/.env.development
index 6f881759..8afbd9b0 100755
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.58"
+APP_VERSION="0.5.59"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet"
diff --git a/.env.example.production b/.env.example.production
index 11425915..8aa5b817 100755
--- a/.env.example.production
+++ b/.env.example.production
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.58"
+APP_VERSION="0.5.59"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
diff --git a/_ALL_SITES/arcadei.it/db/lang/ws_it.js b/_ALL_SITES/arcadei.it/db/lang/ws_it.js
index 97ba7bd7..e024ecd9 100755
--- a/_ALL_SITES/arcadei.it/db/lang/ws_it.js
+++ b/_ALL_SITES/arcadei.it/db/lang/ws_it.js
@@ -212,27 +212,16 @@ const msg_website_it = {
+ '
👥 Aiutando a creare Gruppi Territoriali nella vostra città , impegnandosi a realizzare progetti per il Bene Comune, in onore ai principi Amorevoli e di condivisione.'
+ '🌱 Sostenendo le persone attorno a voi, e rispettando la nostra vera Casa: Madre Natura e Tutti gli Esseri Viventi. ❤️'
+ '👨🏻‍💻 Con una piccola donazione per le spese dei Server, manutenzione e per i continui sviluppi e miglioramenti' +
- '1) Tramite Paypal:
' +
- 'clicca sull\'importo per fare una donazione
' +
+ '1) Tramite Paypal:
' +
'
2) Tramite Satispay: Clicca qui
' +
'' +
'Se ancora non hai Satispay
Richiedila cliccando qui' +
- 'E\' consigliata se hai un conto bancario come alternativa alla costosa carta di credito/debito' +
- '👉🏻
Registrandoti entrambi riceviamo un Bonus di 5 €' +
'
' +
'
3) Tramite Bonifico Bancario:
' +
- '(Scrivi a Surya (surya@riso.app) per ricevere le coordinate' +
+ '(Scrivi a Surya (@surya1977) per le coordinate' +
'' +
- '4) In alternativa scegli tu una forma di scambio da donare a Paolo (per scrivergli su Telegram: Surya Paolo)
' +
- '❤ Sono graditi messaggi sia di suggerimenti che di apprezzamenti.
' +
+ '4) In alternativa scegli tu una forma di Dono
' +
'Grazie Mille per l\'Aiuto ed il Supporto' +
'
',
},
diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development
index 6f881759..8afbd9b0 100755
--- a/_ALL_SITES/riso.app/.env.development
+++ b/_ALL_SITES/riso.app/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.58"
+APP_VERSION="0.5.59"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet"
diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production
index 791ba277..d521d5d9 100644
--- a/_ALL_SITES/riso.app/.env.production
+++ b/_ALL_SITES/riso.app/.env.production
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.58"
+APP_VERSION="0.5.59"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development
index 9bf38d22..d79b4cc4 100755
--- a/_ALL_SITES/terradellavisione.app/.env.development
+++ b/_ALL_SITES/terradellavisione.app/.env.development
@@ -1,4 +1,4 @@
-APP_VERSION="0.5.58"
+APP_VERSION="0.5.59"
SERVICE_WORKER_FILE="service-worker.js"
APP_ID="14"
DIRECTORY_LOCAL="newfreeplanet"
diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts
index 0e40ad33..5f5a32a4 100755
--- a/src/common/shared_vuejs.ts
+++ b/src/common/shared_vuejs.ts
@@ -1013,6 +1013,21 @@ export const shared_consts = {
STATUS_GROUPS_REMOVED: 7,
},
+ CircuitsNotif: {
+ STATUS_NONE: 0,
+ STATUS_NEW: 51,
+ STATUS_ACCEPTED: 53,
+ STATUS_REFUSED: 54,
+ STATUS_BLOCKED: 55,
+ STATUS_DELETED: 56,
+ STATUS_REMOVED: 57,
+ STATUS_SENDCOINSREQ: 58,
+ STATUS_COINS_ACCEPTED: 60,
+ STATUS_COINS_REFUSED: 61,
+ STATUS_COINS_ACCEPTED_SENT: 62,
+ STATUS_COINS_REFUSED_SENT: 63,
+ },
+
QualiNotifs: {
CIRCUITS: 1,
OTHERS: 2,
diff --git a/src/components/CContactUser/CContactUser.vue b/src/components/CContactUser/CContactUser.vue
index 8d4c4b6a..a7fd1744 100755
--- a/src/components/CContactUser/CContactUser.vue
+++ b/src/components/CContactUser/CContactUser.vue
@@ -1,4 +1,5 @@
+
diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js
index 432d5ea1..3ee1bf5f 100755
--- a/src/db/lang/ws_it.js
+++ b/src/db/lang/ws_it.js
@@ -188,27 +188,16 @@ const msg_website_it = {
+ '👥 Aiutando a creare Gruppi Territoriali nella vostra città , impegnandosi a realizzare progetti per il Bene Comune, in onore ai principi Amorevoli e di condivisione.'
+ '🌱 Sostenendo le persone attorno a voi, e rispettando la nostra vera Casa: Madre Natura e Tutti gli Esseri Viventi. ❤️'
+ '👨🏻‍💻 Con una piccola donazione per le spese dei Server, manutenzione e per i continui sviluppi e miglioramenti' +
- '1) Tramite Paypal:
' +
- 'clicca sull\'importo per fare una donazione
' +
+ '1) Tramite Paypal:
' +
'
2) Tramite Satispay: Clicca qui
' +
'' +
'Se ancora non hai Satispay
Richiedila cliccando qui' +
- 'E\' consigliata se hai un conto bancario come alternativa alla costosa carta di credito/debito' +
- '👉🏻
Registrandoti entrambi riceviamo un Bonus di 5 €' +
'
' +
'
3) Tramite Bonifico Bancario:
' +
- '(Scrivi a Surya (surya@riso.app) per ricevere le coordinate' +
+ '(Scrivi a Surya (@surya1977) per le coordinate' +
'' +
- '4) In alternativa scegli tu una forma di scambio da donare a Paolo (per scrivergli su Telegram: Surya Paolo)
' +
- '❤ Sono graditi messaggi sia di suggerimenti che di apprezzamenti.
' +
+ '4) In alternativa scegli tu una forma di Dono
' +
'Grazie Mille per l\'Aiuto ed il Supporto' +
'
',
},
diff --git a/src/layouts/toolbar/coinsPopover/coinsPopover.vue b/src/layouts/toolbar/coinsPopover/coinsPopover.vue
index 3a29529a..809d5bf8 100755
--- a/src/layouts/toolbar/coinsPopover/coinsPopover.vue
+++ b/src/layouts/toolbar/coinsPopover/coinsPopover.vue
@@ -104,7 +104,7 @@
@@ -127,7 +127,7 @@
@@ -182,6 +182,7 @@
+
diff --git a/src/model/GlobalStore.ts b/src/model/GlobalStore.ts
index c68d691d..b460fa89 100755
--- a/src/model/GlobalStore.ts
+++ b/src/model/GlobalStore.ts
@@ -1115,6 +1115,8 @@ export interface IMovement {
export interface IMovVisu {
transactionDate: Date
+ groupfrom: IMyGroup
+ groupto: IMyGroup
userfrom: IUserFields
userto: IUserFields
circuitfrom: ICircuit
diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js
index 9e56335f..c1e91316 100755
--- a/src/statics/lang/it.js
+++ b/src/statics/lang/it.js
@@ -1051,7 +1051,7 @@ const msg_it = {
friends: 'Amici',
bacheca: 'Bacheca',
services: 'Servizi',
- handshake: 'Raporti di fiducia',
+ handshake: 'Rapporti di Fiducia',
hosp: 'OspitalitĂ ',
events: 'Eventi',
goods: 'Beni',
@@ -1139,6 +1139,7 @@ const msg_it = {
hidden_descr: 'il Gruppo non sarĂ visibile nella ricerca',
page: 'Pagina',
circuits: 'Circuiti',
+ groupname: '',
},
finder: {
search_skill: 'Cerca una specializzazione'
@@ -1289,7 +1290,9 @@ const msg_it = {
movement: {
transactionDate: 'Data Transazione',
accountFromId: 'Dal Conto',
+ accountFromComId: 'Dal Conto Com.',
accountToId: 'Al Conto',
+ accountToComId: 'Al Conto Com.',
amount_sent: 'QuantitĂ inviate',
amount_to_send: 'QuantitĂ da inviare',
amount: 'QuantitĂ ',
diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts
index b15a8301..78e85506 100755
--- a/src/store/Modules/fieldsTable.ts
+++ b/src/store/Modules/fieldsTable.ts
@@ -620,6 +620,31 @@ export const colmyMovement = [
noshowlabel: true,
}),
+ AddCol({
+ name: 'groupfrom.groupname',
+ label_trans: 'groups.groupname',
+ field: 'groupfrom',
+ subfield: 'groupname',
+ foredit: false,
+ tipovisu: costanti.TipoVisu.LINK,
+ fieldtype: costanti.FieldType.username_chip,
+ link: '/my/groupfrom.groupname',
+ noshowlabel: true,
+ extrafield: 'movement.from',
+ }),
+ AddCol({
+ name: 'groupto.groupname',
+ label_trans: 'groups.groupname',
+ field: 'groupto',
+ subfield: 'groupname',
+ foredit: false,
+ tipovisu: costanti.TipoVisu.LINK,
+ fieldtype: costanti.FieldType.username_chip,
+ link: '/my/groupto.groupname',
+ extrafield: 'movement.to',
+ noshowlabel: true,
+ }),
+
AddCol({
name: 'amount', label_trans: 'movement.amount',
fieldtype: costanti.FieldType.currency, required: true, tipovisu: costanti.TipoVisu.TESTO_BORDATO
@@ -632,7 +657,9 @@ export const colmyMovementTable = [
// AddCol({ name: '_id', label_trans: 'reg.id' }),
AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }),
AddCol({ name: 'userfrom.username', field: 'userfrom', subfield: 'username', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.string, required: true }),
+ AddCol({ name: 'groupfrom.groupname', field: 'groupfrom', subfield: 'groupname', label_trans: 'movement.accountFromComId', fieldtype: costanti.FieldType.string, required: true }),
AddCol({ name: 'userto.username', field: 'userto', subfield: 'username', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.string, required: true }),
+ AddCol({ name: 'groupto.groupname', field: 'groupto', subfield: 'groupname', label_trans: 'movement.accountToComId', fieldtype: costanti.FieldType.string, required: true }),
AddCol({
name: 'amount', label_trans: 'movement.amount',
diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts
index 4a3cb617..29be6b09 100644
--- a/src/store/Modules/tools.ts
+++ b/src/store/Modules/tools.ts
@@ -5653,7 +5653,11 @@ export const tools = {
acceptCoins($q: any, username: string, notif: any) {
const userStore = useUserStore()
+ const notifStore = useNotifStore()
+
notif.extrarec.notifId = notif._id
+ notif.extrarec.lastdr = notifStore.getLastDataRead(username)
+
userStore.setCircuitCmd($q, t, username, notif.extrarec.circuitname, shared_consts.CIRCUITCMD.SENDCOINS_ACCEPT, 0, notif.extrarec)
.then((res: any) => {
if (res) {
@@ -5671,7 +5675,10 @@ export const tools = {
refuseCoins($q: any, username: string, notif: any) {
const userStore = useUserStore()
+ const notifStore = useNotifStore()
+
notif.extrarec.notifId = notif._id
+ notif.extrarec.lastdr = notifStore.getLastDataRead(username)
userStore.setCircuitCmd($q, t, username, notif.extrarec.circuitname, shared_consts.CIRCUITCMD.SENDCOINS_REFUSE, 0, notif.extrarec)
.then((res: any) => {
if (res && res.result) {
@@ -7306,9 +7313,13 @@ export const tools = {
let type = costanti.TypeMov.Nessuno
if (rec && rec.userfrom) {
const userStore = useUserStore()
- if (userStore.my.username === rec.userfrom.username) {
+ if (rec.userfrom && userStore.my.username === rec.userfrom.username) {
type = costanti.TypeMov.Uscita
- } else if (userStore.my.username === rec.userto.username) {
+ } else if (rec.userto && userStore.my.username === rec.userto.username) {
+ type = costanti.TypeMov.Entrata
+ } else if (rec.groupfrom && tools.isUserAdminGroup(rec.groupfrom.groupname, userStore.my.username)) {
+ type = costanti.TypeMov.Uscita
+ } else if (rec.groupto && tools.isUserAdminGroup(rec.groupto.groupname, userStore.my.username)) {
type = costanti.TypeMov.Entrata
}
}
diff --git a/src/store/NotifStore.ts b/src/store/NotifStore.ts
index 2891aa5e..4a70455f 100755
--- a/src/store/NotifStore.ts
+++ b/src/store/NotifStore.ts
@@ -32,7 +32,7 @@ export const useNotifStore = defineStore('NotifStore', {
},
getnotifs_coinsreq: (mystate: INotifState) => (): INotif[] => {
- const ctrec = (mystate.last_notifs) ? mystate.last_notifs.slice(0, 20).filter((rec) => rec.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS && rec.typeid === shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ && rec.status === 0) : []
+ const ctrec = (mystate.last_notifs) ? mystate.last_notifs.slice(0, 20).filter((rec) => rec.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS && rec.typeid === shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ && rec.status === shared_consts.CircuitsNotif.STATUS_NONE) : []
return (ctrec)
},
@@ -84,6 +84,13 @@ export const useNotifStore = defineStore('NotifStore', {
}
}
},
+ updateArrRecNotifFromServer(arrrecnotif: INotif[]) {
+ if (arrrecnotif && arrrecnotif.length > 0) {
+ this.last_notifs = arrrecnotif
+
+ this.updateArrNotif()
+ }
+ },
async setBadgeIconApp() {
// Get our dummy count and update it,
@@ -244,6 +251,30 @@ export const useNotifStore = defineStore('NotifStore', {
setCountNotifs(num: number) {
this.countNotif = num
},
+
+ getLastNotif(username: string): any {
+ // Get msg for this chat
+ if (this.last_notifs)
+ return this.last_notifs.find((rec: INotif) => rec.dest === username)
+ // return users_msg_saved[username]
+ },
+
+ getLastDataRead(username: string): any {
+ // Get msg for this
+
+ let myrec = this.getLastNotif(username)
+ const lastdata: any = (myrec && myrec.lastdataread) ? myrec.lastdataread : tools.getLastDateReadReset()
+
+ let mydate = ''
+ if (!tools.isIsoDate(lastdata))
+ mydate = lastdata.toISOString()
+ else
+ return lastdata
+
+ return mydate
+ }
+
+
},
})
diff --git a/src/store/UserStore.ts b/src/store/UserStore.ts
index 4a43ee74..74bf0d71 100755
--- a/src/store/UserStore.ts
+++ b/src/store/UserStore.ts
@@ -491,8 +491,12 @@ export const useUserStore = defineStore('UserStore', {
let myrec = user
if (col && col.field === 'userto')
myrec = user.userto
+ if (col && col.field === 'groupto')
+ myrec = user.groupto
if (col && col.field === 'userfrom')
myrec = user.userfrom
+ if (col && col.field === 'groupfrom')
+ myrec = user.groupfrom
return myrec
},
@@ -1338,6 +1342,8 @@ export const useUserStore = defineStore('UserStore', {
const notifStore = useNotifStore()
notifStore.updateRecNotif(res.data.recnotif)
+
+ notifStore.updateArrRecNotifFromServer(res.data.arrrecnotif)
}
return res.data
}).catch((error) => {