2016-04-29 03:37:49 +00:00
|
|
|
// Global Stuff
|
|
|
|
export const LOCALSTORAGE_KEY = 'insomnia.state';
|
2016-05-11 05:43:51 +00:00
|
|
|
export const DB_PERSIST_INTERVAL = 1000;
|
2016-07-06 20:18:26 +00:00
|
|
|
export const DEBOUNCE_MILLIS = 100;
|
2016-07-07 20:10:55 +00:00
|
|
|
export const MASHAPE_URL = 'https://www.mashape.com/?utm_source=chrome&utm_medium=app&utm_campaign=insomnia-rest';
|
|
|
|
export const REQUEST_TIME_TO_SHOW_COUNTER = 1; // Seconds
|
2016-04-29 03:37:49 +00:00
|
|
|
|
2016-06-20 06:14:51 +00:00
|
|
|
// UI Stuff
|
|
|
|
export const MAX_SIDEBAR_REMS = 35;
|
|
|
|
export const MIN_SIDEBAR_REMS = 13;
|
|
|
|
export const MAX_PANE_WIDTH = 0.99;
|
|
|
|
export const MIN_PANE_WIDTH = 0.01;
|
2016-07-06 20:18:26 +00:00
|
|
|
export const DEFAULT_PANE_WIDTH = 0.5;
|
|
|
|
export const DEFAULT_SIDEBAR_WIDTH = 19;
|
2016-06-20 06:14:51 +00:00
|
|
|
|
2016-03-20 04:00:40 +00:00
|
|
|
// HTTP Methods
|
|
|
|
export const METHOD_GET = 'GET';
|
|
|
|
export const METHOD_PUT = 'PUT';
|
|
|
|
export const METHOD_POST = 'POST';
|
2016-04-07 01:11:16 +00:00
|
|
|
export const METHOD_PATCH = 'PATCH';
|
2016-03-20 04:00:40 +00:00
|
|
|
export const METHOD_DELETE = 'DELETE';
|
|
|
|
export const METHOD_OPTIONS = 'OPTIONS';
|
|
|
|
export const METHOD_HEAD = 'HEAD';
|
2016-04-04 07:15:30 +00:00
|
|
|
|
2016-03-20 20:42:27 +00:00
|
|
|
export const METHODS = [
|
|
|
|
METHOD_GET,
|
|
|
|
METHOD_PUT,
|
2016-04-07 01:11:16 +00:00
|
|
|
METHOD_PATCH,
|
2016-03-20 20:42:27 +00:00
|
|
|
METHOD_POST,
|
|
|
|
METHOD_DELETE,
|
|
|
|
METHOD_OPTIONS,
|
|
|
|
METHOD_HEAD
|
|
|
|
];
|
2016-04-04 07:15:30 +00:00
|
|
|
|
2016-04-26 07:29:24 +00:00
|
|
|
export const MODAL_WORKSPACE_RENAME = 'workspace.update.name';
|
2016-04-23 06:08:52 +00:00
|
|
|
export const MODAL_REQUEST_GROUP_RENAME = 'requestgroup.update.name';
|
2016-04-26 07:29:24 +00:00
|
|
|
export const MODAL_REQUEST_RENAME = 'request.update.name';
|
2016-07-06 20:18:26 +00:00
|
|
|
export const MODAL_REQUEST_SWITCHER = 'request.action.switch';
|
2016-04-23 06:08:52 +00:00
|
|
|
export const MODAL_ENVIRONMENT_EDITOR = 'environment.edit';
|
2016-05-07 17:29:24 +00:00
|
|
|
export const MODAL_SETTINGS = 'settings';
|