debian-mirror-gitlab/app/assets/javascripts/ide/constants.js

83 lines
1.7 KiB
JavaScript
Raw Normal View History

2018-10-15 14:42:47 +05:30
export const MAX_WINDOW_HEIGHT_COMPACT = 750;
// Commit message textarea
export const MAX_TITLE_LENGTH = 50;
export const MAX_BODY_LENGTH = 72;
export const activityBarViews = {
edit: 'ide-tree',
commit: 'commit-section',
review: 'ide-review',
};
export const viewerTypes = {
mr: 'mrdiff',
edit: 'editor',
diff: 'diff',
};
2018-11-08 19:23:39 +05:30
export const diffModes = {
replaced: 'replaced',
new: 'new',
deleted: 'deleted',
renamed: 'renamed',
2019-02-15 15:39:39 +05:30
mode_changed: 'mode_changed',
2018-11-08 19:23:39 +05:30
};
2019-07-07 11:18:12 +05:30
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',
});
2018-11-08 19:23:39 +05:30
export const rightSidebarViews = {
2018-12-05 23:21:45 +05:30
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-11-08 19:23:39 +05:30
};
export const stageKeys = {
unstaged: 'unstaged',
staged: 'staged',
};
2018-11-18 11:00:15 +05:30
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',
},
};
export const modalTypes = {
rename: 'rename',
tree: 'tree',
};
2019-07-31 22:56:46 +05:30
export const commitActionTypes = {
move: 'move',
delete: 'delete',
create: 'create',
update: 'update',
};
2018-11-18 11:00:15 +05:30
export const packageJsonPath = 'package.json';