Pannello Utente

Aggiornamento Yarn
- Notifiche (1)
This commit is contained in:
Paolo Arena
2022-07-10 01:25:19 +02:00
parent c8324f0de4
commit ba99b72e69
10 changed files with 383 additions and 43 deletions

View File

@@ -569,6 +569,20 @@ module.exports = {
'options'];
},
allfieldSendNotif: function() {
return [
'type',
'userId',
'sender',
'dest',
'descr',
'datenotif',
'read',
'deleted',
'idapp',
'status'];
},
allfieldTodo: function() {
return [
'userId',
@@ -2912,4 +2926,12 @@ module.exports = {
});
},
removeAtChar(mystr) {
if (mystr && mystr[0] === '@'){
return mystr = mystr.substring(1);
}
return mystr;
},
};

View File

@@ -127,7 +127,7 @@ module.exports = {
'mygoods',
'mygroups',
'circuits',
'movements'],
'movements'],
TABLES_USER_ID: ['mygroups', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
TABLES_UPDATE_LASTMODIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'bots'],
@@ -254,7 +254,6 @@ module.exports = {
CANCELED: 10,
},
ConfSite: {
Notif_Reg_Bot_ToManagers: 1,
Notif_Reg_Push_Admin: 2,
@@ -262,12 +261,12 @@ module.exports = {
},
MsgTeleg: {
SHARE_MSGREG: 1
SHARE_MSGREG: 1,
},
TypeMsgTemplate: {
MSG_BENVENUTO: 2010,
MS_SHARE_LINK: 2000
MS_SHARE_LINK: 2000,
},
TypeSend: {
@@ -275,6 +274,25 @@ module.exports = {
TELEGRAM: 2,
},
// Tipi di Notifiche:
Notif: {
UPDATE_APP: 1,
NEW_GOOD_MY_PROVINCE: 12,
NEW_GOOD_MY_COMUNE: 13,
NEW_SERVICE_MY_PROVINCE: 14,
NEW_SERVICE_MY_COMUNE: 15,
NEW_HOSP_MY_PROVINCE: 16,
NEW_HOSP_MY_COMUNE: 17,
REQ_NEW_FRIEND: 20,
ACCEPTED_NEW_FRIEND_REQ: 21,
RIS_RECEIVED: 50,
RIS_SENT_CONFIRMED: 51,
RIS_SENT_REFUSED: 52,
},
fieldsUserToChange() {
return [
'_id',
@@ -302,5 +320,4 @@ module.exports = {
'qualified'];
},
};