Optimize code
This commit is contained in:
35
src/constants/common.constants.ts
Normal file
35
src/constants/common.constants.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export const PRODUCTION_NAME = 'FatWeb'
|
||||
export const STORAGE_TOKEN_KEY = 'JWT_TOKEN'
|
||||
export const STORAGE_USER_INFO_KEY = 'USER_INFO'
|
||||
export const COLOR_PRODUCTION = '#00D4FF'
|
||||
export const COLOR_BACKGROUND = '#F5F5F5'
|
||||
export const COLOR_TOP = 'rgba(234,46,13,0.85)'
|
||||
export const COLOR_FONT_MAIN = '#4D4D4D'
|
||||
export const COLOR_FONT_SECONDARY = '#9E9E9E'
|
||||
export const SIZE_ICON_XS = '16px'
|
||||
export const SIZE_ICON_SM = '20px'
|
||||
export const SIZE_ICON_MD = '24px'
|
||||
export const SIZE_ICON_LG = '32px'
|
||||
export const SIZE_ICON_XL = '64px'
|
||||
|
||||
/**
|
||||
* Response code
|
||||
*/
|
||||
export const SYSTEM_OK = 10000
|
||||
export const SYSTEM_LOGIN_SUCCESS = 10020
|
||||
export const SYSTEM_PASSWORD_CHANGE_SUCCESS = 10021
|
||||
export const SYSTEM_LOGOUT_SUCCESS = 10022
|
||||
export const SYSTEM_TOKEN_RENEW_SUCCESS = 10023
|
||||
export const SYSTEM_UNAUTHORIZED = 10030
|
||||
export const SYSTEM_USERNAME_NOT_FOUND = 10031
|
||||
export const SYSTEM_ACCESS_DENIED = 10032
|
||||
export const SYSTEM_USER_DISABLE = 10033
|
||||
export const SYSTEM_LOGIN_USERNAME_PASSWORD_ERROR = 10034
|
||||
export const SYSTEM_OLD_PASSWORD_NOT_MATCH = 10035
|
||||
export const SYSTEM_LOGOUT_FAILED = 10036
|
||||
export const SYSTEM_TOKEN_ILLEGAL = 10037
|
||||
export const SYSTEM_TOKEN_HAS_EXPIRED = 10038
|
||||
export const SYSTEM_REQUEST_ILLEGAL = 10040
|
||||
export const SYSTEM_ARGUMENT_NOT_VALID = 10041
|
||||
export const SYSTEM_ERROR = 10050
|
||||
export const SYSTEM_TIMEOUT = 10051
|
||||
Reference in New Issue
Block a user