Riso: Ris Italia, altre modifiche grafiche

Lista Utenti da Verificare
This commit is contained in:
Surya Paolo
2023-11-30 01:48:29 +01:00
parent fdf232b351
commit ee5235549e
42 changed files with 863 additions and 197 deletions

View File

@@ -103,7 +103,7 @@ export const costanti = {
{
visible: true,
title: ' Beni ',
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento, attrezzature, arredamento',
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento',
strsingolo: 'Bene',
to: '/goods',
icon: 'fas fa-tshirt',
@@ -118,7 +118,7 @@ export const costanti = {
visible: true,
strsingolo: 'Servizio',
title: 'Servizi',
subtitle: 'Competenze, formazione, aiuti, benessere, salute, casa, riparazioni',
subtitle: 'Competenze, formazione, aiuti, benessere, casa',
to: '/services',
icon: 'fas fa-house-user',
color: 'red-6',
@@ -131,7 +131,7 @@ export const costanti = {
{
visible: true,
title: 'Ospitalità',
subtitle: 'Conosci persone nuove, ospita viaggiatori o esplora tu nuovi paesi',
subtitle: 'Ospitare per brevi periodi, esplora altre città',
strsingolo: 'Ospitalità',
to: '/hosps',
icon: 'fas fa-bed',
@@ -160,7 +160,7 @@ export const costanti = {
visible: false,
title: 'Circuiti RIS',
strsingolo: 'Circuito',
subtitle: 'Unisciti al circuito della tua provincia per utilizzare <strong>i RIS come strumento di scambio</strong>',
subtitle: 'Strumento di scambio alternativa alle monete',
to: '/circuits',
table: 'circuits',
icon: 'fas fa-coins',
@@ -175,7 +175,7 @@ export const costanti = {
visible: false,
title: 'Gruppi',
strsingolo: 'Gruppo',
subtitle: 'Conosci gruppi locali, associazioni, progetti, comunità',
subtitle: 'Associazioni, progetti, comunità, negozi',
to: '/groups',
table: 'mygroups',
icon: 'fas fa-users',
@@ -189,7 +189,7 @@ export const costanti = {
visible: true,
title: 'Eventi',
strsingolo: 'Evento',
subtitle: 'Mercatini, incontri, conferenze, corsi formativi, feste e divertimento',
subtitle: 'Mercatini, incontri, conferenze, corsi',
to: '/events',
icon: 'event',
color: 'green-6',

View File

@@ -3719,6 +3719,14 @@ export const tools = {
}
},
isVerifiedByUser(user: IUserFields) {
try {
return user.verified_by_aportador
} catch (e) {
return false
}
},
addMinutes(mydate: Date, minutes: number) {
return date.addToDate(mydate, { minutes })
},
@@ -5560,6 +5568,27 @@ export const tools = {
})
},
addToMyTrust($q: any, username: string, usernameDest: string) {
const userStore = useUserStore()
const notifStore = useNotifStore()
$q.dialog({
message: t('db.domanda_trusted', { username: usernameDest }),
ok: { label: t('dialog.yes'), push: true },
cancel: { label: t('dialog.cancel') },
title: t('db.domanda')
}).onOk(() => {
userStore.setFriendsCmd($q, t, username, usernameDest, shared_consts.FRIENDSCMD.SETTRUST, null)
.then((res: any) => {
if (res) {
userStore.my.profile.userstoverify = userStore.my.profile.userstoverify.filter((rec: any) => rec.username !== usernameDest)
tools.showPositiveNotif($q, t('db.trusted'))
}
})
})
},
removeFromMyFriends($q: any, username: string, usernameDest: string) {
const userStore = useUserStore()
@@ -6437,7 +6466,7 @@ export const tools = {
if (res.useraccounts && res.useraccounts.length > 0) {
userStore.my.profile.useraccounts = res.useraccounts
}
$router.push('/circuit')
$router.push('/circuits')
tools.showPositiveNotif($q, t('circuit.coins_sendrequest_sent'))
} else {
tools.showNegativeNotif($q, res.errormsg)
@@ -6854,6 +6883,8 @@ export const tools = {
tools.blockUser($q, username, dest)
} else if (cmd === shared_consts.FRIENDSCMD.SETFRIEND) {
tools.addToMyFriends($q, username, dest)
} else if (cmd === shared_consts.FRIENDSCMD.SETTRUST) {
tools.addToMyTrust($q, username, dest)
} else if (cmd === shared_consts.FRIENDSCMD.REQFRIEND) {
tools.setRequestFriendship($q, username, dest, value)
} else if (cmd === shared_consts.FRIENDSCMD.REMOVE_FROM_MYFRIENDS) {