2018-04-16 10:08:04 -04:00
|
|
|
// Fuzzy file finder
|
2018-04-16 09:22:13 -04:00
|
|
|
export const MAX_FILE_FINDER_RESULTS = 40;
|
|
|
|
export const FILE_FINDER_ROW_HEIGHT = 55;
|
|
|
|
export const FILE_FINDER_EMPTY_ROW_HEIGHT = 33;
|
2018-04-18 09:19:11 -04:00
|
|
|
|
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
|
|
|
|
2018-04-26 09:06:35 -04:00
|
|
|
export const activityBarViews = {
|
2018-04-20 04:48:29 -04:00
|
|
|
edit: 'ide-tree',
|
|
|
|
commit: 'commit-section',
|
2018-04-20 04:09:19 -04:00
|
|
|
review: 'ide-review',
|
2018-04-20 04:48:29 -04: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-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 },
|
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',
|
|
|
|
};
|
2018-06-13 12:06:35 -04:00
|
|
|
|
|
|
|
export const packageJsonPath = 'package.json';
|