Files
myprojplanet_vite/src/store/Modules/costanti.ts

574 lines
11 KiB
TypeScript
Raw Normal View History

import { GROUPSCMD } from "@src/common/shared_nodejs"
export interface IMainCard {
visible: boolean
strsingolo?: string
title: string
to?: string
icon?: string
color: string
hint?: string
table: string
visuonstat?: boolean,
small?: boolean,
}
2021-08-31 18:09:59 +02:00
export const costanti = {
AdType: {
OFFRO: 1,
CERCO: 2,
},
2024-10-31 23:23:06 +01:00
POSIZ_TESTO: {
IN_BASSO: 0,
A_DESTRA: 1,
},
2024-10-26 17:12:05 +02:00
CATALOGO_FIELDS: [
'productTypes',
'excludeproductTypes',
'formato',
'idTipologie',
'idTipoFormato',
2024-11-19 19:19:14 +01:00
'misure',
2024-10-26 17:12:05 +02:00
'Categoria',
'editore',
'argomenti',
'idCollane',
2024-10-26 17:12:05 +02:00
'pdf',
'Printable',
'numschede_perCol',
'numschede_perRiga',
2024-10-31 23:23:06 +01:00
'text',
2024-10-26 17:12:05 +02:00
],
SCHEDA_FIELDS: [
2024-11-19 19:19:14 +01:00
// 'imgsfondo',
],
IMG_FIELDS: [
'imgsfondo',
'imgsfondo_def',
],
2023-04-07 21:10:16 +02:00
TIPOFAVBOOK: {
FAVORITE: 1,
BOOKMARK: 2,
2023-04-13 14:27:06 +02:00
SEEN: 3,
ATTEND: 4,
2023-04-07 21:10:16 +02:00
},
2023-01-12 01:03:19 +01:00
ENABLE_FRIENDS: false,
ENABLE_CONTI_COLLETTIVI: true,
2023-01-12 01:03:19 +01:00
ACTIONTYPE: {
NONE: 0,
SEND_RIS: 1,
LINK_REG: 2,
},
2023-01-12 01:03:19 +01:00
Lang: {
IT: 1,
EN: 2,
ES: 4,
FR: 8,
DE: 16,
},
ArrLang: [
{
label: 'Italiano',
value: 1,
},
{
label: 'Inglese',
value: 2,
},
{
label: 'Spagnolo',
value: 4,
},
{
label: 'Francese',
value: 8,
},
{
label: 'Tedesco',
value: 16,
},
],
2021-08-31 18:09:59 +02:00
ShowTypeTask: {
SHOW_LAST_N_COMPLETED: 200,
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
},
],
2021-08-31 18:09:59 +02:00
CONFIG_ID_CFG: '1',
CONFIG_ID_STATE_CONN: '2',
CONFIG_ID_SHOW_TYPE_TODOS: '3',
2022-01-12 00:38:31 +01:00
SHOW_USERINFO: 1,
2022-02-03 00:33:05 +01:00
SHOW_GROUPINFO: 5,
SHOW_MOVEMENTS: 8,
SHOW_MYCARD: 10,
2022-02-03 00:33:05 +01:00
MAINCARDS: [
{
visible: true,
annuncio: true,
title: ' Beni ',
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento',
strsingolo: 'Bene',
to: '/goods',
icon: 'fas fa-tshirt',
color: 'indigo-6',
hint: '',
table: 'mygoods',
visuonstat: true,
small: false,
2023-04-07 21:10:16 +02:00
showfavorite: true,
showinoptions: true,
showinprofile: true,
},
{
visible: true,
annuncio: true,
strsingolo: 'Servizio',
title: 'Servizi',
subtitle: 'Competenze, formazione, aiuti, benessere, casa',
to: '/services',
icon: 'fas fa-house-user',
color: 'red-6',
hint: '',
table: 'myskills',
visuonstat: true,
small: false,
2023-04-07 21:10:16 +02:00
showfavorite: true,
showinoptions: true,
showinprofile: true,
},
{
visible: true,
annuncio: true,
2022-05-07 09:22:47 +02:00
title: 'Ospitalità',
subtitle: 'Ospitare per brevi periodi, esplora altre città',
2022-05-07 09:22:47 +02:00
strsingolo: 'Ospitalità',
2022-05-05 23:56:23 +02:00
to: '/hosps',
icon: 'fas fa-bed',
2022-05-07 09:22:47 +02:00
color: 'lime-8',
textcolor: '',
hint: '',
2022-05-05 23:56:23 +02:00
disable: false,
small: false,
table: 'myhosps',
2022-05-07 09:22:47 +02:00
visuonstat: true,
2023-04-07 21:10:16 +02:00
showfavorite: true,
showinoptions: true,
showinprofile: true,
},
// {
// visible: false,
// title: 'Scuola',
// strsingolo: 'Scuola',
// to: '/school',
// icon: 'fas fa-book-open',
// color: 'orange-6',
// hint: '',
// disable: true,
// small: false,
// table: '',
// },
{
visible: true,
annuncio: true,
title: 'Eventi',
strsingolo: 'Evento',
subtitle: 'Mercatini, incontri, conferenze, corsi',
to: '/events',
icon: 'event',
color: 'green-6',
hint: 'eventi, last minute, offerte di lavoro',
disable: false,
table: 'mybachecas',
visuonstat: true,
small: false,
showfavorite: true,
showinoptions: true,
showinprofile: true,
},
{
visible: false,
title: 'Circuiti RIS',
strsingolo: 'Circuito',
subtitle: 'Strumento di scambio alternativo alle monete',
to: '/circuits',
table: 'circuits',
icon: 'fas fa-coins',
image: '/images/1ris_rosso_100.png',
color: 'orange-6',
hint: '',
disable: true,
small: true,
visuonstat: true,
showinprofile: true,
},
{
visible: false,
title: 'Organizzazioni',
strsingolo: 'Organizzazione',
subtitle: 'Gruppi, Associazioni, Aziende, Comunità',
to: '/groups',
table: 'mygroups',
icon: 'fas fa-users',
color: 'blue-6',
hint: '',
disable: true,
small: true,
visuonstat: true,
showinprofile: true,
},
// {
// visible: false,
// strsingolo: 'Luogo',
// title: 'Luoghi',
// to: '/places',
// icon: 'fas fa-map-marker-alt',
// color: 'blue-6',
// hint: '',
// disable: true,
// small: false,
// table: '',
// },
// {
// visible: false,
// strsingolo: 'Idea',
// title: 'Tue Idee',
// to: '/ideas',
// icon: 'fas fa-lightbulb',
// color: 'red-6',
// textcolor: '',
// hint: '',
// disable: true,
// small: true,
// table: '',
// },
2023-11-03 12:49:17 +01:00
/*{
visible: false,
title: 'Sostieni il Progetto',
to: '/fundraising',
icon: 'fas fa-hand-holding-heart',
2022-10-22 15:34:24 +02:00
color: 'green-6',
hint: '',
disable: false,
small: false,
link: true,
2022-12-01 16:55:22 +01:00
table: '',
},
{
2023-11-03 12:49:17 +01:00
visible: false,
2023-02-20 02:20:00 +01:00
title: 'Assistenza',
to: '/istruzioni',
icon: 'fas fa-question',
color: 'yellow',
hint: '',
disable: false,
small: true,
link: true,
2022-12-01 16:55:22 +01:00
table: '',
2023-11-03 12:49:17 +01:00
},*/
// {
// visible: false,
// title: 'Social',
// to: '/socialising',
// icon: 'fas fa-users',
// color: 'blue-6',
// hint: '',
// disable: true,
// small: true,
// table: '',
// },
// {
// visible: false,
// title: ' Attività ',
// subtitle: 'Artigiani, Aziende, Società, Negozi',
// strsingolo: 'Attivita',
// to: '/activities',
// icon: 'fas fa-tshirt',
// color: 'indigo-6',
// hint: '',
// table: 'attivitas',
// visuonstat: true,
// small: false,
// showfavorite: true,
// forgroup: true,
// showinoptions: false,
// },
],
GROUPCARDS: [
{
visible: true,
title: ' Attività ',
subtitle: 'Artigiani, Aziende, Società, Negozi',
strsingolo: 'Attivita',
to: '/activities',
icon: 'fas fa-tshirt',
color: 'indigo-6',
hint: '',
table: 'attivitas',
visuonstat: true,
small: false,
showfavorite: true,
},
],
2022-12-17 14:12:04 +01:00
2022-02-04 23:48:53 +01:00
BINARY_CHECK: 1,
VISUTABLE_LISTA: 2,
2022-02-03 00:33:05 +01:00
VISUTABLE_SCHEDA_USER: -1,
VISUTABLE_SCHEDA_GROUP: -3,
VISUTABLE_USER_TABGROUP: -4,
2022-08-30 17:00:32 +02:00
VISUTABLE_USER_TABCIRCUIT: -5,
2023-01-03 16:51:45 +01:00
VISUTABLE_GROUP_CIRCUIT: -6,
VISUTABLE_GRID_ORIZ: -10,
VISUTABLE_TABLELIST: -20,
2022-01-12 00:38:31 +01:00
DIR_UPLOAD: 'upload/',
2024-10-26 17:12:05 +02:00
DIR_PRODUCTS: 'products/',
DIR_CATALOGO: 'catalogo/',
DIR_SCHEDA: 'scheda/',
2022-01-12 00:38:31 +01:00
2022-01-05 19:11:47 +01:00
FRIENDS: 1,
ASK_TRUST: 2,
TRUSTED: 3,
REJECTED: 4,
REQ_FRIENDS: 5,
ASK_SENT_FRIENDS: 6,
2022-01-12 00:38:31 +01:00
FIND_PEOPLE: 10,
2022-01-05 19:11:47 +01:00
2022-02-03 00:33:05 +01:00
GROUPS: 11,
2022-08-26 03:32:50 +02:00
CIRCUITS: 12,
2022-02-03 00:33:05 +01:00
GRP_REJECTED: 14,
REQ_GROUP: 15,
ASK_SENT_GROUP: 16,
FIND_GROUP: 20,
MY_GROUPS: 21,
USER_GROUPS: 22,
2023-01-06 15:51:58 +01:00
HANDSHAKE: 23,
ASK_SENT_HANDSHAKE: 25,
2022-02-03 00:33:05 +01:00
CREATE_GROUP: 30,
MANAGE_GROUPS: 31,
2022-08-09 17:31:49 +02:00
ADMIN_GROUPS: 40,
2022-08-26 03:32:50 +02:00
FIND_CIRCUIT: 50,
MY_CIRCUITS: 51,
2022-08-26 03:32:50 +02:00
ADMIN_CIRCUITS: 54,
ASK_SENT_CIRCUIT: 55,
USER_CIRCUITS: 60,
REQ_CIRCUIT: 65,
ENTER_TO_THE_CIRCUIT: 70,
CMD_DELETE: 1,
CMD_MODIFY: 2,
CMD_SHOW_PAGE: 3,
2022-10-21 21:25:54 +02:00
CMD_OPEN_PAGE: 4,
CMD_DUPLICATE: 5,
CMD_CLONE: 6,
SHOW_ALL: 50,
2022-08-30 17:00:32 +02:00
REQ_ADD_USER_TO_GROUP: 100,
REQ_REMOVE_USER_TO_GROUP: 101,
REQ_ADD_USER_TO_CIRCUIT: 110,
REQ_REMOVE_USER_TO_CIRCUIT: 111,
REQ_ADD_GROUP_TO_CIRCUIT: 120,
REQ_REMOVE_GROUP_TO_CIRCUIT: 121,
2022-02-03 00:33:05 +01:00
FILTER_NESSUNO: 0,
2021-12-11 00:25:35 +01:00
FILTER_TUTTI: -100,
// TABLES_ARRAY: ['mygroups', 'circuits'],
TABLES_ARRAY: ['circuits'],
2022-02-03 00:33:05 +01:00
TABLES_USERNAME_DATE: ['friends', 'friendsandme'],
TABLES_IMG_USERNAME: ['friends', 'friendsandme'],
TABLES_WITH_STR_TUTTI: ['lista_editori', 'lista_referenti'],
FILTER_SEP: '_',
2021-12-11 00:25:35 +01:00
FILTER_TUTTI_STR: '[Tutti]',
2021-08-31 18:09:59 +02:00
FuncDialog: {
CANCEL_BOOKING: 1,
},
DRAGULA: false,
2022-02-04 23:48:53 +01:00
ALLOWCHAR_CODE: 1,
NESSUN_IMMAGINE: 'none',
showWhen: {
NewRec: 1,
InPage: 2,
InEdit: 4,
InView: 8,
InView_OnlyifExist: 16,
},
2021-08-31 18:09:59 +02:00
TABEVENTS: 'myevents',
NOFIELD: 'nofield',
MAX_PHASES: 5,
OtherTables: ['config', 'swmsg', 'notifications'],
2021-08-31 18:09:59 +02:00
// export const MainTables = ['todos', 'projects']
MainTables: [],
allMethod: ['sync_post_', 'sync_patch_', 'delete_', 'hide_'],
FieldType: {
boolean: 1,
date: 2,
string: 4,
binary: 8,
html: 16,
select: 32,
star3: 35,
star5: 40,
2021-08-31 18:09:59 +02:00
number: 64,
typeinrec: 128,
multiselect: 256,
password: 512,
listimages: 1024,
exact: 2048,
2025-08-12 19:43:36 +02:00
imagerec: 3000,
pdf: 3050,
image_and_filename: 3100,
2025-08-12 19:43:36 +02:00
imgfile_sfuso: 3150,
2022-11-17 08:10:43 +01:00
imgcard: 3500,
coordinates: 3800,
select_by_server: 4000,
multiselect_by_server: 4010,
2021-08-31 18:09:59 +02:00
nationality: 4096,
intcode: 5000,
option: 5500,
2021-08-31 18:09:59 +02:00
multioption: 6000,
onlydate: 7000,
hours: 8000,
crypted: 9000,
2022-02-04 23:48:53 +01:00
object: 10000,
2022-02-14 11:30:53 +01:00
separator: 11000,
username_chip: 12000,
link: 12500,
2022-05-05 23:56:23 +02:00
listobj: 13000,
label: 14000,
2022-09-12 18:36:54 +02:00
currency: 15000,
2022-11-13 22:39:25 +01:00
cards: 16000,
2022-11-23 10:27:36 +01:00
color: 17000,
arrmenu: 18000,
op_andor: 19000,
editor_nohtml: 20000,
verifica: 21000,
pickcolor: 22000,
username_telegram: 23000,
2021-08-31 18:09:59 +02:00
},
2022-01-03 21:53:41 +01:00
TypeMov: {
Nessuno: 0,
Entrata: 1,
Uscita: -1,
},
2021-08-31 18:09:59 +02:00
FieldTypeArr: [
{ label: 'Boolean', value: 1 },
{ label: 'Date', value: 2 },
{ label: 'String', value: 4 },
{ label: 'Binary', value: 8 },
{ label: 'Html', value: 16 },
{ label: 'Select', value: 32 },
{ label: 'Number', value: 64 },
{ label: 'crypted', value: 9000 },
2022-07-21 00:20:48 +02:00
{ label: 'object', value: 10000 },
{ label: 'separator', value: 11000 },
{ label: 'username_chip', value: 12000 },
{ label: 'link', value: 12500 },
{ label: 'listobj', value: 13000 },
2021-08-31 18:09:59 +02:00
],
2022-01-03 21:53:41 +01:00
TipoVisu: {
NONE: 0,
2022-01-03 21:53:41 +01:00
TESTO: 1,
LINK: 2,
BUTTON: 3,
LINKIMG: 4,
TESTO_BORDATO: 5,
2022-01-03 21:53:41 +01:00
},
2021-08-31 18:09:59 +02:00
2025-03-26 23:23:35 +01:00
CATALOGHI: {
PAG_INTRO_DEFAULT: 'introduttiva_default.png',
PAG_SFONDO_DEFAULT: 'sfondo_default.png',
2025-04-24 19:31:34 +02:00
},
DISP: {
TUTTI: '0',
DISPONIBILI: '1',
ESAURITI: '2',
},
RIGENERAMOD: {
SOVRASCRIVI: '0',
AGGIUNGI_SOLO: '1',
},
2025-04-24 19:31:34 +02:00
STATO: {
TUTTI: '0',
IN_COMMERCIO: '1',
SOLO_PROSSIMA_USCITA: '2',
PREVENDITA: '3',
NON_VENDIBILE: '4',
},
NO_CATEGORY: '__NOCATEGORY__',
VISUCAMPI: {
PER_TUTTI: 0,
PER_EDITORE: 1,
PER_ADMIN: 16,
PER_LOGGATI: 32,
},
2025-03-26 23:23:35 +01:00
OP_ANDOR: {
OP_OR: 0,
OP_AND: 1,
},
VALIDATO: {
NO: 0,
SI: 1,
TO_RESOLV: -1,
}
2021-08-31 18:09:59 +02:00
}