2018-05-03 06:41:05 -04:00
|
|
|
export const MAX_WINDOW_HEIGHT_COMPACT = 750;
|
|
|
|
|
2018-04-18 09:19:11 -04:00
|
|
|
// Commit message textarea
|
2018-04-16 10:08:04 -04:00
|
|
|
export const MAX_TITLE_LENGTH = 50;
|
|
|
|
export const MAX_BODY_LENGTH = 72;
|
2018-04-20 04:48:29 -04:00
|
|
|
|
2020-05-28 14:08:37 -04:00
|
|
|
export const SIDEBAR_INIT_WIDTH = 340;
|
|
|
|
export const SIDEBAR_MIN_WIDTH = 340;
|
|
|
|
export const SIDEBAR_NAV_WIDTH = 60;
|
2020-05-20 02:08:06 -04:00
|
|
|
|
2019-07-23 18:13:36 -04:00
|
|
|
// File view modes
|
|
|
|
export const FILE_VIEW_MODE_EDITOR = 'editor';
|
|
|
|
export const FILE_VIEW_MODE_PREVIEW = 'preview';
|
|
|
|
|
2020-02-14 10:09:08 -05:00
|
|
|
export const PERMISSION_CREATE_MR = 'createMergeRequestIn';
|
|
|
|
export const PERMISSION_READ_MR = 'readMergeRequest';
|
2020-04-09 05:10:17 -04:00
|
|
|
export const PERMISSION_PUSH_CODE = 'pushCode';
|
2020-02-14 10:09:08 -05:00
|
|
|
|
2018-05-04 08:03:35 -04:00
|
|
|
export const viewerTypes = {
|
|
|
|
mr: 'mrdiff',
|
|
|
|
edit: 'editor',
|
|
|
|
diff: 'diff',
|
|
|
|
};
|
2018-05-23 06:44:47 -04:00
|
|
|
|
2018-06-13 05:35:52 -04:00
|
|
|
export const diffModes = {
|
|
|
|
replaced: 'replaced',
|
|
|
|
new: 'new',
|
|
|
|
deleted: 'deleted',
|
|
|
|
renamed: 'renamed',
|
2018-12-06 09:39:29 -05:00
|
|
|
mode_changed: 'mode_changed',
|
2018-06-13 05:35:52 -04:00
|
|
|
};
|
|
|
|
|
2019-02-15 12:56:50 -05:00
|
|
|
export const diffViewerModes = Object.freeze({
|
|
|
|
not_diffable: 'not_diffable',
|
|
|
|
no_preview: 'no_preview',
|
|
|
|
added: 'added',
|
|
|
|
deleted: 'deleted',
|
|
|
|
renamed: 'renamed',
|
|
|
|
mode_changed: 'mode_changed',
|
|
|
|
text: 'text',
|
|
|
|
image: 'image',
|
|
|
|
});
|
|
|
|
|
|
|
|
export const diffViewerErrors = Object.freeze({
|
|
|
|
too_large: 'too_large',
|
|
|
|
stored_externally: 'server_side_but_stored_externally',
|
|
|
|
});
|
|
|
|
|
2020-02-18 01:09:06 -05:00
|
|
|
export const leftSidebarViews = {
|
2020-09-24 05:09:35 -04:00
|
|
|
edit: { name: 'ide-tree' },
|
|
|
|
review: { name: 'ide-review' },
|
|
|
|
commit: { name: 'repo-commit-section' },
|
2020-02-18 01:09:06 -05:00
|
|
|
};
|
|
|
|
|
2018-05-23 06:44:47 -04:00
|
|
|
export const rightSidebarViews = {
|
2018-09-27 17:57:30 -04:00
|
|
|
pipelines: { name: 'pipelines-list', keepAlive: true },
|
|
|
|
jobsDetail: { name: 'jobs-detail', keepAlive: false },
|
|
|
|
mergeRequestInfo: { name: 'merge-request-info', keepAlive: true },
|
|
|
|
clientSidePreview: { name: 'clientside', keepAlive: false },
|
2020-05-29 14:08:26 -04:00
|
|
|
terminal: { name: 'terminal', keepAlive: true },
|
2018-05-23 06:44:47 -04:00
|
|
|
};
|
2018-06-13 05:10:24 -04:00
|
|
|
|
|
|
|
export const stageKeys = {
|
|
|
|
unstaged: 'unstaged',
|
|
|
|
staged: 'staged',
|
|
|
|
};
|
2018-07-26 10:56:56 -04:00
|
|
|
|
|
|
|
export const commitItemIconMap = {
|
|
|
|
addition: {
|
|
|
|
icon: 'file-addition',
|
|
|
|
class: 'ide-file-addition',
|
|
|
|
},
|
|
|
|
modified: {
|
|
|
|
icon: 'file-modified',
|
|
|
|
class: 'ide-file-modified',
|
|
|
|
},
|
|
|
|
deleted: {
|
|
|
|
icon: 'file-deletion',
|
|
|
|
class: 'ide-file-deletion',
|
|
|
|
},
|
|
|
|
};
|
2018-08-02 11:18:38 -04:00
|
|
|
|
|
|
|
export const modalTypes = {
|
|
|
|
rename: 'rename',
|
|
|
|
tree: 'tree',
|
2020-05-08 08:09:37 -04:00
|
|
|
blob: 'blob',
|
2018-08-02 11:18:38 -04:00
|
|
|
};
|
2018-06-13 12:06:35 -04:00
|
|
|
|
2019-04-24 04:45:03 -04:00
|
|
|
export const commitActionTypes = {
|
|
|
|
move: 'move',
|
|
|
|
delete: 'delete',
|
|
|
|
create: 'create',
|
|
|
|
update: 'update',
|
|
|
|
};
|
|
|
|
|
2018-06-13 12:06:35 -04:00
|
|
|
export const packageJsonPath = 'package.json';
|
2020-05-21 11:08:18 -04:00
|
|
|
|
|
|
|
export const SIDE_LEFT = 'left';
|
|
|
|
export const SIDE_RIGHT = 'right';
|