-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
50 lines (44 loc) · 1.1 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Contact information
*/
export const VERSION = 'v1.0.0-beta'
export const CONTACT_EMAIL = '[email protected]'
export const NOTIFICATION_DURATION = 3500
export const DEFAULT_DEBOUNCE_DELAY = 150
export const THEME_STORAGE_KEY = 'theme'
export const AUTH = {
TOKEN_STORAGE_KEY: 'token',
DEFAULT_REDIRECT_ROUTE: '/admin/login',
}
/**
* Defines the default file formats that will be accepted
* by the {@link FileUploadInput} component.
*/
export const DEFAULT_ACCEPT_FORMATS = ['image/png', 'image/jpeg', 'image/jpg', 'image/gif']
/**
* Defines the default form settings.
*/
export const DEFAULT_FORM_PROPS: any = {
mode: 'onBlur',
reValidateMode: 'onBlur',
shouldFocusError: true,
}
/**
* Defines the default modal form settings.
*/
export const DEFAULT_MODAL_FORM_PROPS: any = {
mode: 'onSubmit',
reValidateMode: 'onBlur',
shouldFocusError: true,
}
/**
* Defines constant values for localization
*/
export const LOCALES = {
ADMIN: {
DEFAULT_NAMESPACES: ['common', 'admin-common'],
},
CLIENT: {
DEFAULT_NAMESPACES: ['common'],
},
}