2021-06-08 01:23:25 +05:30
|
|
|
import { s__ } from '~/locale';
|
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
export const RUNNER_PAGE_SIZE = 20;
|
2021-09-30 23:02:18 +05:30
|
|
|
export const RUNNER_JOB_COUNT_LIMIT = 1000;
|
2021-09-04 01:27:46 +05:30
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
export const I18N_FETCH_ERROR = s__('Runners|Something went wrong while fetching runner data.');
|
2021-06-08 01:23:25 +05:30
|
|
|
export const I18N_DETAILS_TITLE = s__('Runners|Runner #%{runner_id}');
|
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
export const RUNNER_TAG_BADGE_VARIANT = 'info';
|
|
|
|
export const RUNNER_TAG_BG_CLASS = 'gl-bg-blue-100';
|
2021-06-08 01:23:25 +05:30
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
// Filtered search parameter names
|
|
|
|
// - Used for URL params names
|
|
|
|
// - GlFilteredSearch tokens type
|
|
|
|
|
|
|
|
export const PARAM_KEY_STATUS = 'status';
|
|
|
|
export const PARAM_KEY_RUNNER_TYPE = 'runner_type';
|
2021-09-30 23:02:18 +05:30
|
|
|
export const PARAM_KEY_TAG = 'tag';
|
|
|
|
export const PARAM_KEY_SEARCH = 'search';
|
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
export const PARAM_KEY_SORT = 'sort';
|
|
|
|
export const PARAM_KEY_PAGE = 'page';
|
|
|
|
export const PARAM_KEY_AFTER = 'after';
|
|
|
|
export const PARAM_KEY_BEFORE = 'before';
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
// CiRunnerType
|
|
|
|
|
|
|
|
export const INSTANCE_TYPE = 'INSTANCE_TYPE';
|
|
|
|
export const GROUP_TYPE = 'GROUP_TYPE';
|
|
|
|
export const PROJECT_TYPE = 'PROJECT_TYPE';
|
2021-09-04 01:27:46 +05:30
|
|
|
|
|
|
|
// CiRunnerStatus
|
|
|
|
|
|
|
|
export const STATUS_ACTIVE = 'ACTIVE';
|
|
|
|
export const STATUS_PAUSED = 'PAUSED';
|
|
|
|
export const STATUS_ONLINE = 'ONLINE';
|
|
|
|
export const STATUS_OFFLINE = 'OFFLINE';
|
|
|
|
export const STATUS_NOT_CONNECTED = 'NOT_CONNECTED';
|
|
|
|
|
|
|
|
// CiRunnerAccessLevel
|
|
|
|
|
|
|
|
export const ACCESS_LEVEL_NOT_PROTECTED = 'NOT_PROTECTED';
|
|
|
|
export const ACCESS_LEVEL_REF_PROTECTED = 'REF_PROTECTED';
|
|
|
|
|
|
|
|
// CiRunnerSort
|
|
|
|
|
|
|
|
export const CREATED_DESC = 'CREATED_DESC';
|
|
|
|
export const CREATED_ASC = 'CREATED_ASC'; // TODO Add this to the API
|
|
|
|
export const CONTACTED_DESC = 'CONTACTED_DESC'; // TODO Add this to the API
|
|
|
|
export const CONTACTED_ASC = 'CONTACTED_ASC';
|
|
|
|
|
|
|
|
export const DEFAULT_SORT = CREATED_DESC;
|