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

46 lines
1.6 KiB
JavaScript
Raw Normal View History

2021-04-29 21:17:54 +05:30
// Values for CI_CONFIG_STATUS_* comes from lint graphQL
2021-02-22 17:27:13 +05:30
export const CI_CONFIG_STATUS_INVALID = 'INVALID';
2021-04-29 21:17:54 +05:30
export const CI_CONFIG_STATUS_VALID = 'VALID';
// Values for EDITOR_APP_STATUS_* are frontend specifics and
// represent the global state of the pipeline editor app.
export const EDITOR_APP_STATUS_EMPTY = 'EMPTY';
export const EDITOR_APP_STATUS_ERROR = 'ERROR';
export const EDITOR_APP_STATUS_INVALID = CI_CONFIG_STATUS_INVALID;
export const EDITOR_APP_STATUS_LOADING = 'LOADING';
export const EDITOR_APP_STATUS_VALID = CI_CONFIG_STATUS_VALID;
2021-03-11 19:13:27 +05:30
export const COMMIT_FAILURE = 'COMMIT_FAILURE';
export const COMMIT_SUCCESS = 'COMMIT_SUCCESS';
export const DEFAULT_FAILURE = 'DEFAULT_FAILURE';
2021-06-08 01:23:25 +05:30
export const DEFAULT_SUCCESS = 'DEFAULT_SUCCESS';
2021-03-11 19:13:27 +05:30
export const LOAD_FAILURE_UNKNOWN = 'LOAD_FAILURE_UNKNOWN';
export const CREATE_TAB = 'CREATE_TAB';
export const LINT_TAB = 'LINT_TAB';
export const MERGED_TAB = 'MERGED_TAB';
export const VISUALIZE_TAB = 'VISUALIZE_TAB';
export const TABS_WITH_COMMIT_FORM = [CREATE_TAB, LINT_TAB, VISUALIZE_TAB];
2021-04-17 20:07:23 +05:30
export const COMMIT_ACTION_CREATE = 'CREATE';
export const COMMIT_ACTION_UPDATE = 'UPDATE';
2021-06-08 01:23:25 +05:30
export const DRAWER_EXPANDED_KEY = 'pipeline_editor_drawer_expanded';
export const BRANCH_PAGINATION_LIMIT = 20;
export const BRANCH_SEARCH_DEBOUNCE = '500';
2021-09-04 01:27:46 +05:30
export const STARTER_TEMPLATE_NAME = 'Getting-Started';
2021-09-30 23:02:18 +05:30
export const pipelineEditorTrackingOptions = {
label: 'pipeline_editor',
actions: {
browse_templates: 'browse_templates',
},
};
export const TEMPLATE_REPOSITORY_URL =
'https://gitlab.com/gitlab-org/gitlab-foss/tree/master/lib/gitlab/ci/templates';