- Griglia Orizzontale a Carosello

- Aggiornato Tabella Eventi
- Lista Ultimi Movimenti
- Ultime strette di mano
- Ultimi Invitanti alla App
This commit is contained in:
Surya Paolo
2024-10-17 00:35:29 +02:00
parent ec356c70d9
commit eb2cadb490
32 changed files with 2107 additions and 490 deletions

View File

@@ -310,6 +310,7 @@ export const costanti = {
VISUTABLE_USER_TABGROUP: -4,
VISUTABLE_USER_TABCIRCUIT: -5,
VISUTABLE_GROUP_CIRCUIT: -6,
VISUTABLE_GRID_ORIZ: -10,
DIR_UPLOAD: 'upload/',

View File

@@ -165,6 +165,7 @@ export const colmyelems = [
AddCol({ name: 'parambool2', label_trans: 'myelems.parambool2', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'parambool3', label_trans: 'myelems.parambool3', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'number', label_trans: 'myelems.number', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'num2', label_trans: 'myelems.num2', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'imgback', label_trans: 'myelems.imgback' }),
AddCol({ name: 'size', label_trans: 'myelems.size' }),
AddCol({ name: 'ratio', label_trans: 'myelems.ratio' }),

View File

@@ -3309,6 +3309,11 @@ export const tools = {
if (mytimestamp) return date.formatDate(mytimestamp, 'DD/MM HH:mm')
return ''
},
getstrDateTimeLong(mytimestamp: Date | number | string | undefined) {
// console.log('getstrDate', mytimestamp)
if (mytimestamp) return date.formatDate(mytimestamp, 'DD/MMM/YYYY HH:mm')
return ''
},
getstrDateMonthTimeShort(mytimestamp: Date | number | string | undefined) {
// console.log('getstrDate', mytimestamp)

View File

@@ -683,12 +683,12 @@ export const useUserStore = defineStore('UserStore', {
},
getLinkProfileAndRIS(username: string, qtyris: string, causale: string = ''): string {
let myparams = ''
if (username === '')
username = this.my.username
let mylink = tools.getUrlSite() + '/my/' + username
let myval = tools.strToVal(qtyris, true)
if (myval !== null) {
if (myparams)
@@ -773,7 +773,7 @@ export const useUserStore = defineStore('UserStore', {
return myrec
},
getNameToShow(user: any, col: any = null): string {
getNameToShow(user: any, col: any = null, options: any = {}): string {
let name = ''
let myrec = this.getRecByCol(user, col)
@@ -812,14 +812,27 @@ export const useUserStore = defineStore('UserStore', {
if (!name && myrec.extrarec && myrec.extrarec.hasOwnProperty('contoComDest'))
return myrec.extrarec.contoComDest
return name
return name + (options && options.showprov ? this.getProvinceByUser(myrec, options ? options.html : false) : '')
},
getUserNameOnlyIfToShow(user: any, col: any = null): string {
getProvinceByUser(user: IUserFields, html: boolean = false) {
let mystr = ''
if (user && user.profile && user.profile.resid_province)
mystr = `(${user.profile.resid_province})`
if (html) {
mystr = `<span style='text-align: right'>${mystr}</span>`
}
return mystr
},
getUserNameOnlyIfToShow(user: any, col: any = null, options: any): string {
let myrec = this.getRecByCol(user, col)
if (myrec.name || myrec.surname) {
return myrec.username
return myrec.username + ((options && options.showprov) ? this.getProvinceByUser(myrec, options.html) : '')
}
return ''