ver 0.5.71:
- Info Conto - Admin: poter modificare Fido e QtaMax.
This commit is contained in:
@@ -62,6 +62,27 @@ export const costanti = {
|
||||
SHOW_ONLY_TOCOMPLETE: 201,
|
||||
SHOW_ALL: 202,
|
||||
},
|
||||
|
||||
ParamTypeAccount: {
|
||||
FIDO_CONCESSO: 1,
|
||||
QTA_MAXCONCESSA: 2,
|
||||
},
|
||||
|
||||
ParamTypeAccountStr: [
|
||||
{
|
||||
labeltrans: 'account.fidoConcesso',
|
||||
value: 1, // FIDO_CONCESSO
|
||||
field: 'fidoConcesso',
|
||||
type: 4, //string
|
||||
},
|
||||
{
|
||||
labeltrans: 'account.qta_maxConcessa',
|
||||
field: 'qta_maxConcessa',
|
||||
value: 2, // QTA_MAXCONCESSA
|
||||
type: 4, //string
|
||||
},
|
||||
],
|
||||
|
||||
CONFIG_ID_CFG: '1',
|
||||
CONFIG_ID_STATE_CONN: '2',
|
||||
CONFIG_ID_SHOW_TYPE_TODOS: '3',
|
||||
@@ -75,7 +96,7 @@ export const costanti = {
|
||||
{
|
||||
visible: true,
|
||||
title: ' Beni ',
|
||||
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento ...',
|
||||
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento, attrezzature, arredamento',
|
||||
strsingolo: 'Bene',
|
||||
to: '/goods',
|
||||
icon: 'fas fa-tshirt',
|
||||
@@ -89,7 +110,7 @@ export const costanti = {
|
||||
visible: true,
|
||||
strsingolo: 'Servizio',
|
||||
title: 'Servizi',
|
||||
subtitle: 'Competenze, formazione, aiuti, benessere, comunità',
|
||||
subtitle: 'Competenze, formazione, aiuti, benessere, salute, casa, riparazioni',
|
||||
to: '/services',
|
||||
icon: 'fas fa-house-user',
|
||||
color: 'red-6',
|
||||
@@ -101,7 +122,7 @@ export const costanti = {
|
||||
{
|
||||
visible: true,
|
||||
title: 'Ospitalità',
|
||||
subtitle: 'Conosci persone, ospita viaggiatori, esplora nuovi paesi',
|
||||
subtitle: 'Conosci persone nuove, ospita viaggiatori o esplora tu nuovi paesi',
|
||||
strsingolo: 'Ospitalità',
|
||||
to: '/hosps',
|
||||
icon: 'fas fa-bed',
|
||||
@@ -125,11 +146,38 @@ export const costanti = {
|
||||
small: false,
|
||||
table: '',
|
||||
},
|
||||
{
|
||||
visible: false,
|
||||
title: 'Circuiti RIS',
|
||||
subtitle: 'Unisciti al circuito della tua provincia per utilizzare <strong>i RIS come moneta di scambio</strong>',
|
||||
to: '/circuits',
|
||||
table: 'circuits',
|
||||
icon: 'fas fa-coins',
|
||||
image: 'images/1ris_rosso_100.png',
|
||||
color: 'orange-6',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
visuonstat: true,
|
||||
},
|
||||
{
|
||||
visible: false,
|
||||
title: 'Gruppi',
|
||||
subtitle: 'Conosci gruppi locali, associazioni, progetti, comunità',
|
||||
to: '/groups',
|
||||
table: 'mygroups',
|
||||
icon: 'fas fa-users',
|
||||
color: 'blue-6',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
visuonstat: true,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
title: 'Eventi',
|
||||
strsingolo: 'Evento',
|
||||
subtitle: 'Mercatini, incontri, corsi, feste',
|
||||
subtitle: 'Mercatini, incontri, conferenze, corsi formativi, feste e divertimento',
|
||||
to: '/events',
|
||||
icon: 'event',
|
||||
color: 'green-6',
|
||||
@@ -199,38 +247,9 @@ export const costanti = {
|
||||
small: true,
|
||||
table: '',
|
||||
},
|
||||
{
|
||||
visible: false,
|
||||
title: 'Gruppi', // ! IND_MYGROUPS
|
||||
subtitle: 'Conosci gruppi, associazioni, progetti, comunità',
|
||||
to: '/groups',
|
||||
table: 'mygroups',
|
||||
icon: 'fas fa-users',
|
||||
color: 'blue-6',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
visuonstat: true,
|
||||
},
|
||||
{
|
||||
visible: false, // ! IND_CIRCUIT: 11,
|
||||
title: 'Circuiti RIS',
|
||||
subtitle: 'Entra nel territorio e <strong>Invia e Ricevi monete</strong>',
|
||||
to: '/circuits',
|
||||
table: 'circuits',
|
||||
icon: 'fas fa-coins',
|
||||
image: 'images/1ris_rosso_100.png',
|
||||
color: 'orange-6',
|
||||
hint: '',
|
||||
disable: true,
|
||||
small: true,
|
||||
visuonstat: true,
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
IND_CIRCUIT: 11,
|
||||
IND_MYGROUPS: 10,
|
||||
|
||||
BINARY_CHECK: 1,
|
||||
|
||||
|
||||
@@ -7663,6 +7663,32 @@ export const tools = {
|
||||
})
|
||||
},
|
||||
|
||||
isDevelop() {
|
||||
return process.env.DEV
|
||||
},
|
||||
|
||||
getIndMainCardsByTable(table: string) {
|
||||
for (let i = 0; i < costanti.MAINCARDS.length; i++) {
|
||||
if (costanti.MAINCARDS[i].table === table)
|
||||
return i
|
||||
}
|
||||
return -1
|
||||
},
|
||||
|
||||
getStrByParamTypeAccount(paramTypeAccount: string): string {
|
||||
const myrec = costanti.ParamTypeAccountStr.find((rec: any) => rec.value === paramTypeAccount)
|
||||
return myrec ? translate(myrec.labeltrans) : ''
|
||||
},
|
||||
|
||||
getTypeByParamTypeAccount(paramTypeAccount: string): number {
|
||||
const myrec = costanti.ParamTypeAccountStr.find((rec: any) => rec.value === paramTypeAccount)
|
||||
return myrec ? myrec.type : 0
|
||||
},
|
||||
getFieldByParamTypeAccount(paramTypeAccount: string): string {
|
||||
const myrec = costanti.ParamTypeAccountStr.find((rec: any) => rec.value === paramTypeAccount)
|
||||
return myrec ? myrec.field : ''
|
||||
},
|
||||
|
||||
// FINE !
|
||||
|
||||
// getLocale() {
|
||||
|
||||
Reference in New Issue
Block a user