-
Notifications
You must be signed in to change notification settings - Fork 8
/
constants.ts
48 lines (39 loc) · 974 Bytes
/
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
/**
* This file is used to record all **symbolic constants**.
*/
/**
* the root router-view layout
*/
export const DEFAULT_LAYOUT = 'RAdmin'
/**
* the max value of history records and should be greater than 1
*/
export const RECORD_MAX_VAL = 20
/**
* Used to forbid unauthorized access
*/
export const FORBIDDEN_ROUTE = '/forbidden'
/**
* Used to redirect to target path when login successfully
*/
export const QUERY_KEY_FOR_LOGIN_TO = '__from'
/**
* Default icon for navigation item
*/
export const DEFAULT_NAV_ICON = 'work_outline'
/**
* Base URL for HTTP request
*/
export const REQUEST_BASE_URL = process.env.VUE_APP_REQUEST_BASE_URL
/**
* How long HTTP request should be abort
*/
export const REQUEST_TIMEOUT_THRESHOLD = 1000 * 15
/**
* Key for implementing global persisted state
*/
export const PERSISTED_STATE_KEY = '__VX__'
/**
* Which store namespace should be persisted
*/
export const SHOULD_BE_PERSISTED_STATE = ['history', 'user']