Files
salvato.newfreeplanet/src/store/Modules/costanti.ts

428 lines
8.2 KiB
TypeScript
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export interface IMainCard {
visible: boolean
strsingolo?: string
title: string
to?: string
icon?: string
color: string
hint?: string
table: string
visuonstat?: boolean,
small?: boolean,
}
export const costanti = {
AdType: {
OFFRO: 1,
CERCO: 2,
},
TIPOFAVBOOK: {
FAVORITE: 1,
BOOKMARK: 2,
SEEN: 3,
ATTEND: 4,
},
ENABLE_FRIENDS: false,
ENABLE_CONTI_COLLETTIVI: true,
AccountType: {
USER: 0,
COLLECTIVE_ACCOUNT: 1,
COMMUNITY_ACCOUNT: 2,
},
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,
},
],
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
},
],
CONFIG_ID_CFG: '1',
CONFIG_ID_STATE_CONN: '2',
CONFIG_ID_SHOW_TYPE_TODOS: '3',
SHOW_USERINFO: 1,
SHOW_GROUPINFO: 5,
SHOW_MOVEMENTS: 8,
SHOW_MYCARD: 10,
MAINCARDS: [
{
visible: true,
title: ' Beni ',
subtitle: 'Autoproduzioni, artigianato, cibo, abbigliamento, attrezzature, arredamento',
strsingolo: 'Bene',
to: '/goods',
icon: 'fas fa-tshirt',
color: 'indigo-6',
hint: '',
table: 'mygoods',
visuonstat: true,
small: false,
showfavorite: true,
},
{
visible: true,
strsingolo: 'Servizio',
title: 'Servizi',
subtitle: 'Competenze, formazione, aiuti, benessere, salute, casa, riparazioni',
to: '/services',
icon: 'fas fa-house-user',
color: 'red-6',
hint: '',
table: 'myskills',
visuonstat: true,
small: false,
showfavorite: true,
},
{
visible: true,
title: 'Ospitalità',
subtitle: 'Conosci persone nuove, ospita viaggiatori o esplora tu nuovi paesi',
strsingolo: 'Ospitalità',
to: '/hosps',
icon: 'fas fa-bed',
color: 'lime-8',
textcolor: '',
hint: '',
disable: false,
small: false,
table: 'myhosps',
visuonstat: true,
showfavorite: true,
},
{
visible: false,
title: 'Scuola',
strsingolo: 'Scuola',
to: '/school',
icon: 'fas fa-book-open',
color: 'orange-6',
hint: '',
disable: true,
small: false,
table: '',
},
{
visible: false,
title: 'Circuiti RIS',
subtitle: 'Unisciti al circuito della tua provincia per utilizzare <strong>i RIS come strumento 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, conferenze, corsi formativi, feste e divertimento',
to: '/events',
icon: 'event',
color: 'green-6',
hint: 'eventi, last minute, offerte di lavoro',
disable: false,
table: 'mybachecas',
visuonstat: true,
small: false,
showfavorite: 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&nbsp;Idee',
to: '/ideas',
icon: 'fas fa-lightbulb',
color: 'red-6',
textcolor: '',
hint: '',
disable: true,
small: true,
table: '',
},
{
visible: true,
title: 'Sostieni il Progetto',
to: '/fundraising',
icon: 'fas fa-hand-holding-heart',
color: 'green-6',
hint: '',
disable: false,
small: false,
link: true,
table: '',
},
{
visible: true,
title: 'Assistenza',
to: '/istruzioni',
icon: 'fas fa-question',
color: 'yellow',
hint: '',
disable: false,
small: true,
link: true,
table: '',
},
{
visible: false,
title: 'Social',
to: '/socialising',
icon: 'fas fa-users',
color: 'blue-6',
hint: '',
disable: true,
small: true,
table: '',
},
],
BINARY_CHECK: 1,
VISUTABLE_LISTA: 2,
VISUTABLE_SCHEDA_USER: -1,
VISUTABLE_SCHEDA_GROUP: -3,
VISUTABLE_USER_TABGROUP: -4,
VISUTABLE_USER_TABCIRCUIT: -5,
VISUTABLE_GROUP_CIRCUIT: -6,
DIR_UPLOAD: 'upload/', // upload/
FRIENDS: 1,
ASK_TRUST: 2,
TRUSTED: 3,
REJECTED: 4,
REQ_FRIENDS: 5,
ASK_SENT_FRIENDS: 6,
FIND_PEOPLE: 10,
GROUPS: 11,
CIRCUITS: 12,
GRP_REJECTED: 14,
REQ_GROUP: 15,
ASK_SENT_GROUP: 16,
FIND_GROUP: 20,
MY_GROUPS: 21,
USER_GROUPS: 22,
HANDSHAKE: 23,
ASK_SENT_HANDSHAKE: 25,
CREATE_GROUP: 30,
MANAGE_GROUPS: 31,
ADMIN_GROUPS: 40,
FIND_CIRCUIT: 50,
MY_CIRCUITS: 51,
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,
CMD_OPEN_PAGE: 4,
CMD_DUPLICATE: 5,
CMD_CLONE: 6,
SHOW_ALL: 50,
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,
FILTER_NESSUNO: 0,
FILTER_TUTTI: -100,
TABLES_ARRAY: ['mygroups', 'circuits'],
TABLES_USERNAME_DATE: ['friends', 'friendsandme'],
TABLES_IMG_USERNAME: ['friends', 'friendsandme'],
FuncDialog: {
CANCEL_BOOKING: 1,
},
DRAGULA: false,
ALLOWCHAR_CODE: 1,
NESSUN_IMMAGINE: 'none',
showWhen: {
NewRec: 1,
InPage: 2,
InEdit: 4,
InView: 8,
InView_OnlyifExist: 16,
},
TABEVENTS: 'myevents',
NOFIELD: 'nofield',
MAX_PHASES: 5,
OtherTables: ['config', 'swmsg', 'notifications'],
// 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,
number: 64,
typeinrec: 128,
multiselect: 256,
password: 512,
listimages: 1024,
exact: 2048,
image: 3000,
imgcard: 3500,
select_by_server: 4000,
multiselect_by_server: 4010,
nationality: 4096,
intcode: 5000,
option: 5500,
multioption: 6000,
onlydate: 7000,
hours: 8000,
crypted: 9000,
object: 10000,
separator: 11000,
username_chip: 12000,
link: 12500,
listobj: 13000,
label: 14000,
currency: 15000,
cards: 16000,
color: 17000,
},
TypeMov: {
Nessuno: 0,
Entrata: 1,
Uscita: -1,
},
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 },
{ label: 'object', value: 10000 },
{ label: 'separator', value: 11000 },
{ label: 'username_chip', value: 12000 },
{ label: 'link', value: 12500 },
{ label: 'listobj', value: 13000 },
],
TipoVisu: {
NONE: 0,
TESTO: 1,
LINK: 2,
BUTTON: 3,
LINKIMG: 4,
TESTO_BORDATO: 5,
},
}