1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-23 21:00:17 +00:00
bramw_baserow/web-frontend/modules/core/enums.js
Petr Stribny 6ec4d2b246 Merge branch '2264-email-verification' into 'develop'
Email verification

Closes 

See merge request 
2024-04-25 08:34:01 +00:00

28 lines
860 B
JavaScript

export const IMAGE_FILE_TYPES = ['image/jpeg', 'image/jpg', 'image/png']
export const FAVICON_IMAGE_FILE_TYPES = [...IMAGE_FILE_TYPES, 'image/x-icon']
// Keep these in sync with the backend options in
// baserow.core.models.Settings.EmailVerificationOptions
export const EMAIL_VERIFICATION_OPTIONS = {
NO_VERIFICATION: 'no_verification',
RECOMMENDED: 'recommended',
ENFORCED: 'enforced',
}
// Keep these in sync with the backend options in
// baserow.core.models.UserProfile.EmailNotificationFrequencyOptions
export const EMAIL_NOTIFICATIONS_FREQUENCY_OPTIONS = {
INSTANT: 'instant',
DAILY: 'daily',
WEEKLY: 'weekly',
NEVER: 'never',
}
export const DATA_TYPE_TO_ICON_MAP = {
string: 'iconoir-text',
number: 'baserow-icon-hashtag',
boolean: 'baserow-icon-circle-checked',
}
export const UNKNOWN_DATA_TYPE_ICON = 'iconoir-question-mark'