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

274 lines
5.0 KiB
TypeScript
Raw Normal View History

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,
},
2021-08-31 18:09:59 +02:00
ShowTypeTask: {
SHOW_LAST_N_COMPLETED: 200,
SHOW_ONLY_TOCOMPLETE: 201,
SHOW_ALL: 202,
},
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_MYCARD: 10,
2022-02-03 00:33:05 +01:00
MAINCARDS: [
{
visible: true,
title: ' Beni ',
strsingolo: 'Bene',
to: '/goods',
icon: 'fas fa-tshirt',
color: 'indigo-6',
hint: '',
table: 'mygoods',
visuonstat: true,
small: false,
},
{
visible: true,
strsingolo: 'Servizio',
title: 'Servizi',
to: '/services',
icon: 'fas fa-house-user',
color: 'red-6',
hint: '',
table: 'myskills',
visuonstat: true,
small: false,
},
{
visible: true,
title: 'Scambio Ospitalità',
strsingolo: 'Scambio Ospitalità',
to: '/places',
icon: 'fas fa-taxi',
color: 'lime-6',
textcolor: '',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: false,
},
{
visible: true,
title: 'Scuola',
strsingolo: 'Scuola',
to: '/school',
icon: 'fas fa-book-open',
color: 'orange-6',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: false,
},
{
visible: true,
title: 'Eventi',
strsingolo: 'Evento',
to: '/events',
icon: 'event',
color: 'green-6',
hint: 'eventi, last minute, offerte di lavoro',
disable: false,
table: 'mybachecas',
visuonstat: true,
small: false,
},
{
visible: true,
strsingolo: 'Luogo',
title: 'Luoghi',
to: '/places',
icon: 'fas fa-map-marker-alt',
color: 'blue-6',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: false,
},
{
visible: true,
strsingolo: 'Idea',
title: 'Tue Idee',
to: '/ideas',
icon: 'fas fa-lightbulb',
color: 'red-6',
textcolor: '',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: true,
},
{
visible: true,
title: 'Help',
to: '/help',
icon: 'fas fa-users',
color: 'green-6',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: true,
},
{
visible: true,
title: 'Social',
to: '/socialising',
icon: 'fas fa-users',
color: 'blue-6',
hint: '',
disable: true,
small: true,
},
{
visible: false,
title: 'Gruppi',
to: '',
table: 'mygroups',
icon: 'fas fa-users',
color: 'blue-6',
hint: '',
2022-02-21 18:14:38 +01:00
disable: true,
small: true,
visuonstat: true,
},
],
2022-02-04 23:48:53 +01:00
BINARY_CHECK: 1,
RISERVATO_PASSWORD: 1,
NASCOSTO_CERCA: 2,
VISUTABLE_LISTA: 2,
2022-02-03 00:33:05 +01:00
VISUTABLE_SCHEDA_USER: -1,
VISUTABLE_SCHEDA_GROUP: -3,
VISUTABLE_USER_TABGROUP: -4,
2022-01-12 00:38:31 +01:00
DIR_UPLOAD: 'upload/', // upload/
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,
GRP_REJECTED: 14,
REQ_GROUP: 15,
ASK_SENT_GROUP: 16,
FIND_GROUP: 20,
MY_GROUPS: 21,
CREATE_GROUP: 30,
MANAGE_GROUPS: 31,
CMD_DELETE: 1,
CMD_MODIFY: 2,
CMD_SHOW_PAGE: 3,
SHOW_ALL: 50,
REQ_ADD_USER_TO_GROUP: 40,
REQ_REMOVE_USER_TO_GROUP: 41,
2022-02-03 00:33:05 +01:00
FILTER_NESSUNO: 0,
2021-12-11 00:25:35 +01:00
FILTER_TUTTI: -100,
2022-02-03 00:33:05 +01:00
TABLES_ARRAY: ['mygroups'],
TABLES_USERNAME_DATE: ['friends', 'friendsandme'],
TABLES_IMG_USERNAME: ['friends', 'friendsandme'],
2021-12-11 00:25:35 +01:00
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'],
// 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,
image: 3000,
select_by_server: 4000,
multiselect_by_server: 4010,
2021-08-31 18:09:59 +02:00
nationality: 4096,
intcode: 5000,
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,
2021-08-31 18:09:59 +02:00
},
2022-01-03 21:53:41 +01:00
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 },
2021-08-31 18:09:59 +02:00
],
2022-01-03 21:53:41 +01:00
TipoVisu: {
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
}