2020-05-10 21:06:42 +02:00
|
|
|
import { translation } from '@src/store/Modules/translation'
|
|
|
|
|
import { Privacy } from '@src/model'
|
|
|
|
|
|
2019-10-13 20:46:09 +02:00
|
|
|
export const shared_consts = {
|
2020-03-10 21:42:30 +01:00
|
|
|
|
2020-02-07 22:08:01 +01:00
|
|
|
Accepted: {
|
2020-03-10 21:42:30 +01:00
|
|
|
CHECK_READ_GUIDELINES: {
|
|
|
|
|
value: 1,
|
|
|
|
|
label: 'steps.linee_guida',
|
|
|
|
|
icon: 'fas fa-user-shield',
|
|
|
|
|
color: 'red'
|
|
|
|
|
},
|
|
|
|
|
CHECK_SEE_VIDEO_PRINCIPI: {
|
|
|
|
|
value: 2,
|
|
|
|
|
label: 'steps.video_intro',
|
|
|
|
|
icon: 'fas fa-tools',
|
|
|
|
|
color: 'green'
|
|
|
|
|
},
|
2020-02-07 22:08:01 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
ALL_SAW_AND_ACCEPTED: 3,
|
2019-10-13 20:46:09 +02:00
|
|
|
|
2020-02-02 04:07:24 +01:00
|
|
|
FILTER_EXTRALIST_NOT_REGISTERED: 1,
|
|
|
|
|
FILTER_EXTRALIST_NOT_CONTACTED: 2,
|
|
|
|
|
FILTER_EXTRALIST_WITH_NOTE: 4,
|
|
|
|
|
FILTER_USER_NO_ZOOM: 8,
|
|
|
|
|
FILTER_USER_NO_INVITANTE: 16,
|
|
|
|
|
FILTER_USER_NO_TELEGRAM_ID: 32,
|
|
|
|
|
FILTER_USER_CODICE_AUTH_TELEGRAM: 64,
|
|
|
|
|
FILTER_USER_NO_EMAIL_VERIFICATA: 128,
|
|
|
|
|
FILTER_USER_NO_DREAM: 256,
|
2020-02-19 16:10:05 +01:00
|
|
|
FILTER_EXTRALIST_DELETED: 512,
|
|
|
|
|
FILTER_USER_TELEGRAM_BLOCKED: 1024,
|
2020-05-19 00:18:55 +02:00
|
|
|
FILTER_ATTIVI: 2048,
|
|
|
|
|
FILTER_NASCOSTI: 4096,
|
2020-06-08 13:31:44 +02:00
|
|
|
FILTER_NAVI_NON_PRESENTI: 8192,
|
2020-09-04 00:08:36 +02:00
|
|
|
FILTER_QUALIFIED: 16384,
|
|
|
|
|
FILTER_ASK_ZOOM_VISTO: 32768,
|
2021-02-11 02:21:36 +01:00
|
|
|
FILTER_HOURS_MYLIST: 65536,
|
|
|
|
|
FILTER_HOURS_ALL: 131072,
|
2020-02-02 04:07:24 +01:00
|
|
|
|
2019-10-14 20:32:15 +02:00
|
|
|
Permissions: {
|
2019-10-28 16:00:37 +01:00
|
|
|
Admin: {
|
|
|
|
|
value: 1,
|
2019-10-28 19:00:06 +01:00
|
|
|
label: 'pages.Admin',
|
2019-10-28 22:01:47 +01:00
|
|
|
icon: 'fas fa-user-shield',
|
|
|
|
|
color: 'red'
|
2019-10-28 16:00:37 +01:00
|
|
|
},
|
|
|
|
|
Manager: {
|
|
|
|
|
value: 2,
|
2019-10-28 19:00:06 +01:00
|
|
|
label: 'otherpages.manage.manager',
|
2019-10-28 22:01:47 +01:00
|
|
|
icon: 'fas fa-tools',
|
|
|
|
|
color: 'green'
|
2019-10-28 16:00:37 +01:00
|
|
|
},
|
|
|
|
|
Teacher: {
|
|
|
|
|
value: 4,
|
2019-10-28 19:00:06 +01:00
|
|
|
label: 'event.teacher',
|
2019-10-28 22:01:47 +01:00
|
|
|
icon: 'fas fa-user-tie',
|
|
|
|
|
color: 'blue'
|
2020-04-07 14:33:56 +02:00
|
|
|
},
|
|
|
|
|
Tutor: {
|
|
|
|
|
value: 8,
|
|
|
|
|
label: 'dashboard.tutor',
|
|
|
|
|
icon: 'fas fa-user-tie',
|
2020-05-10 21:06:42 +02:00
|
|
|
color: 'fuchsia'
|
|
|
|
|
},
|
|
|
|
|
Traduttrici: {
|
|
|
|
|
value: 16,
|
|
|
|
|
label: 'dashboard.traduttrici',
|
|
|
|
|
icon: 'fas fa-user-tie',
|
|
|
|
|
color: 'orange'
|
2020-09-04 00:08:36 +02:00
|
|
|
},
|
|
|
|
|
Zoomeri: {
|
|
|
|
|
value: 32,
|
|
|
|
|
label: 'dashboard.zoomeri',
|
|
|
|
|
icon: 'fas fa-user-tie',
|
|
|
|
|
color: 'yellow'
|
2021-02-03 01:32:56 +01:00
|
|
|
},
|
|
|
|
|
Department: {
|
|
|
|
|
value: 64,
|
|
|
|
|
label: 'pages.department',
|
|
|
|
|
icon: 'fas fa-user-tie',
|
|
|
|
|
color: 'yellow'
|
2019-10-28 16:00:37 +01:00
|
|
|
}
|
2019-10-14 20:32:15 +02:00
|
|
|
},
|
|
|
|
|
|
2019-10-27 00:37:00 +02:00
|
|
|
MessageOptions: {
|
|
|
|
|
Notify_ByEmail: 2,
|
|
|
|
|
Notify_ByPushNotification: 4
|
|
|
|
|
},
|
|
|
|
|
|
2020-05-10 21:06:42 +02:00
|
|
|
TypeMsg: {
|
|
|
|
|
SEND_TO_ALL: 1,
|
2021-01-18 00:48:53 +01:00
|
|
|
SEND_TO_SOCI: 2,
|
|
|
|
|
SEND_TO_SOCIO_RESIDENTE: 3,
|
|
|
|
|
SEND_TO_NON_SOCI: 10
|
2020-05-10 21:06:42 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
TypeMsg_Actions: {
|
|
|
|
|
NORMAL: 0,
|
|
|
|
|
YESNO: 1,
|
2021-02-03 01:32:56 +01:00
|
|
|
OPZ1_2: 2
|
2020-05-10 21:06:42 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
selectActions: [
|
|
|
|
|
{
|
|
|
|
|
id: 0,
|
|
|
|
|
label: 'Normale',
|
|
|
|
|
value: 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: 'Si / No',
|
|
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: 'Opzione 1 / Opzione 2',
|
|
|
|
|
value: 2
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
2021-01-18 00:48:53 +01:00
|
|
|
selectDestination: [
|
|
|
|
|
{
|
|
|
|
|
id: 0,
|
|
|
|
|
label: 'A Tutti',
|
|
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: 'Solo ai Soci',
|
|
|
|
|
value: 2
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: 'Solo ai Soci Residenti',
|
|
|
|
|
value: 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: 'Solo ai NON Soci',
|
|
|
|
|
value: 10
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
OrderStatus: {
|
|
|
|
|
NONE: 0,
|
|
|
|
|
IN_CART: 1,
|
2021-02-03 01:32:56 +01:00
|
|
|
CHECKOUT_SENT: 2,
|
|
|
|
|
ORDER_CONFIRMED: 3,
|
|
|
|
|
PAYED: 4,
|
|
|
|
|
DELIVEDED: 5,
|
|
|
|
|
RECEIVED: 6,
|
|
|
|
|
CANCELED: 10
|
2021-01-18 00:48:53 +01:00
|
|
|
},
|
|
|
|
|
|
2021-02-03 01:32:56 +01:00
|
|
|
OrderStatusStr: [
|
|
|
|
|
{
|
|
|
|
|
label: 'Nessuno',
|
|
|
|
|
value: 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'In Carrello',
|
|
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Ordine Inviato',
|
|
|
|
|
value: 2
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Ordine Confermato',
|
|
|
|
|
value: 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Pagato',
|
|
|
|
|
value: 4
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Spedito',
|
|
|
|
|
value: 5
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Ricevuto',
|
|
|
|
|
value: 6
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Cancellato',
|
|
|
|
|
value: 10
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
getStatusStr(status) {
|
|
|
|
|
const trovatorec = this.OrderStatusStr.find((rec) => rec.value === status)
|
|
|
|
|
return (!!trovatorec) ? trovatorec.label : ''
|
|
|
|
|
},
|
2021-01-18 00:48:53 +01:00
|
|
|
|
2019-10-13 20:46:09 +02:00
|
|
|
fieldsUserToChange() {
|
2019-12-29 01:54:00 +01:00
|
|
|
return ['_id', 'username', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'img', 'ipaddr', 'lasttimeonline', 'profile', 'news_on']
|
2019-10-13 20:46:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|