mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
35 lines
966 B
JavaScript
35 lines
966 B
JavaScript
// Global Stuff
|
|
export const LOCALSTORAGE_KEY = 'insomnia.state';
|
|
export const DB_PERSIST_INTERVAL = 1000;
|
|
|
|
// 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;
|
|
|
|
// HTTP Methods
|
|
export const METHOD_GET = 'GET';
|
|
export const METHOD_PUT = 'PUT';
|
|
export const METHOD_POST = 'POST';
|
|
export const METHOD_PATCH = 'PATCH';
|
|
export const METHOD_DELETE = 'DELETE';
|
|
export const METHOD_OPTIONS = 'OPTIONS';
|
|
export const METHOD_HEAD = 'HEAD';
|
|
|
|
export const METHODS = [
|
|
METHOD_GET,
|
|
METHOD_PUT,
|
|
METHOD_PATCH,
|
|
METHOD_POST,
|
|
METHOD_DELETE,
|
|
METHOD_OPTIONS,
|
|
METHOD_HEAD
|
|
];
|
|
|
|
export const MODAL_WORKSPACE_RENAME = 'workspace.update.name';
|
|
export const MODAL_REQUEST_GROUP_RENAME = 'requestgroup.update.name';
|
|
export const MODAL_REQUEST_RENAME = 'request.update.name';
|
|
export const MODAL_ENVIRONMENT_EDITOR = 'environment.edit';
|
|
export const MODAL_SETTINGS = 'settings';
|