vn-verdnaturachat/app/views/NotificationPreferencesView/options.js

140 lines
1.7 KiB
JavaScript
Raw Normal View History

[NEW] User notification preferences (#2403) * Button to preferences view Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Create screen to preferences and listItem to notifications Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Refactoring NotificationPreferencesView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * List notification preferences Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Adding translations to labels Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * SetUserPreferences api call Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Saving new user preference in API Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Fix lint Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Add in-app notification test Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Fix in app mentions preference Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Improve object in testInAppNotification Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Removing improper options for NotificationpreferencesView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Adding API version Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Use redux in UserNotificationPrefView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Remove in app test Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Use components from another view Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Removing verification for testing in-app notifications Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Move to ProfileView Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-08-21 13:30:11 +00:00
export const OPTIONS = {
desktopNotifications: [
{
label: 'Default',
value: 'default'
},
{
label: 'All_Messages',
value: 'all'
},
{
label: 'Mentions',
value: 'mentions'
},
{
label: 'Nothing',
value: 'nothing'
}
],
audioNotifications: [
{
label: 'Default',
value: 'default'
},
{
label: 'All_Messages',
value: 'all'
},
{
label: 'Mentions',
value: 'mentions'
},
{
label: 'Nothing',
value: 'nothing'
}
],
mobilePushNotifications: [
{
label: 'Default',
value: 'default'
},
{
label: 'All_Messages',
value: 'all'
},
{
label: 'Mentions',
value: 'mentions'
},
{
label: 'Nothing',
value: 'nothing'
}
],
emailNotifications: [
{
label: 'Default',
value: 'default'
},
{
label: 'All_Messages',
value: 'all'
},
{
label: 'Mentions',
value: 'mentions'
},
{
label: 'Nothing',
value: 'nothing'
}
],
desktopNotificationDuration: [
{
label: 'Default',
value: 0
},
{
label: 'Seconds',
second: 1,
value: 1
},
{
label: 'Seconds',
second: 2,
value: 2
},
{
label: 'Seconds',
second: 3,
value: 3
},
{
label: 'Seconds',
second: 4,
value: 4
},
{
label: 'Seconds',
second: 5,
value: 5
}
],
audioNotificationValue: [
{
label: 'None',
value: 'none None'
},
{
label: 'Default',
value: '0 Default'
},
{
label: 'Beep',
value: 'beep Beep'
},
{
label: 'Ding',
value: 'ding Ding'
},
{
label: 'Chelle',
value: 'chelle Chelle'
},
{
label: 'Droplet',
value: 'droplet Droplet'
},
{
label: 'Highbell',
value: 'highbell Highbell'
},
{
label: 'Seasons',
value: 'seasons Seasons'
}
]
[NEW] User notification preferences (#2403) * Button to preferences view Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Create screen to preferences and listItem to notifications Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Refactoring NotificationPreferencesView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * List notification preferences Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Adding translations to labels Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * SetUserPreferences api call Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Saving new user preference in API Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Fix lint Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Add in-app notification test Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Fix in app mentions preference Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Improve object in testInAppNotification Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Removing improper options for NotificationpreferencesView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Adding API version Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Use redux in UserNotificationPrefView Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Remove in app test Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Use components from another view Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Removing verification for testing in-app notifications Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com> * Move to ProfileView Co-authored-by: Diego Mello <diegolmello@gmail.com>
2020-08-21 13:30:11 +00:00
};