Skip to content

Commit

Permalink
chore: comments for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Mar 25, 2020
1 parent 814008f commit fccb155
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ export const QUERY_KEY_FOR_LOGIN_TO = '__from'
*/
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']

0 comments on commit fccb155

Please sign in to comment.