2022-01-27 10:14:51 -05:00
|
|
|
import { __, s__ } from '~/locale';
|
2021-05-05 05:10:02 -04:00
|
|
|
|
2021-06-01 20:09:56 -04:00
|
|
|
export const RUNNER_PAGE_SIZE = 20;
|
2021-12-10 10:10:24 -05:00
|
|
|
export const RUNNER_JOB_COUNT_LIMIT = 1000;
|
2021-06-01 20:09:56 -04:00
|
|
|
|
2022-02-12 07:15:45 -05:00
|
|
|
export const RUNNER_DETAILS_PROJECTS_PAGE_SIZE = 5;
|
2022-02-15 13:14:39 -05:00
|
|
|
export const RUNNER_DETAILS_JOBS_PAGE_SIZE = 30;
|
2022-02-12 07:15:45 -05:00
|
|
|
|
2021-07-02 08:08:31 -04:00
|
|
|
export const I18N_FETCH_ERROR = s__('Runners|Something went wrong while fetching runner data.');
|
2021-05-05 05:10:02 -04:00
|
|
|
export const I18N_DETAILS_TITLE = s__('Runners|Runner #%{runner_id}');
|
|
|
|
|
2021-11-08 07:12:07 -05:00
|
|
|
// Type
|
2022-01-28 04:15:22 -05:00
|
|
|
|
|
|
|
export const I18N_ALL_TYPES = s__('Runners|All');
|
|
|
|
export const I18N_INSTANCE_TYPE = s__('Runners|Instance');
|
|
|
|
export const I18N_GROUP_TYPE = s__('Runners|Group');
|
|
|
|
export const I18N_PROJECT_TYPE = s__('Runners|Project');
|
2021-10-06 08:11:40 -04:00
|
|
|
export const I18N_INSTANCE_RUNNER_DESCRIPTION = s__('Runners|Available to all projects');
|
|
|
|
export const I18N_GROUP_RUNNER_DESCRIPTION = s__(
|
|
|
|
'Runners|Available to all projects and subgroups in the group',
|
|
|
|
);
|
|
|
|
export const I18N_PROJECT_RUNNER_DESCRIPTION = s__('Runners|Associated with one or more projects');
|
2021-11-08 07:12:07 -05:00
|
|
|
|
2022-03-31 11:08:32 -04:00
|
|
|
// Status help popover
|
|
|
|
export const I18N_STATUS_POPOVER_TITLE = s__('Runners|Runner statuses');
|
|
|
|
|
|
|
|
export const I18N_STATUS_POPOVER_NEVER_CONTACTED = s__('Runners|Never contacted:');
|
|
|
|
export const I18N_STATUS_POPOVER_NEVER_CONTACTED_DESCRIPTION = s__(
|
|
|
|
'Runners|Runner has never contacted GitLab (when you register a runner, use %{codeStart}gitlab-runner run%{codeEnd} to bring it online)',
|
|
|
|
);
|
|
|
|
export const I18N_STATUS_POPOVER_ONLINE = s__('Runners|Online:');
|
|
|
|
export const I18N_STATUS_POPOVER_ONLINE_DESCRIPTION = s__(
|
|
|
|
'Runners|Runner has contacted GitLab within the last %{elapsedTime}',
|
|
|
|
);
|
|
|
|
export const I18N_STATUS_POPOVER_OFFLINE = s__('Runners|Offline:');
|
|
|
|
export const I18N_STATUS_POPOVER_OFFLINE_DESCRIPTION = s__(
|
|
|
|
'Runners|Runner has not contacted GitLab in more than %{elapsedTime}',
|
|
|
|
);
|
|
|
|
export const I18N_STATUS_POPOVER_STALE = s__('Runners|Stale:');
|
|
|
|
export const I18N_STATUS_POPOVER_STALE_DESCRIPTION = s__(
|
|
|
|
'Runners|Runner has not contacted GitLab in more than %{elapsedTime}',
|
|
|
|
);
|
|
|
|
|
2022-03-23 14:08:47 -04:00
|
|
|
// Status tooltips
|
|
|
|
export const I18N_ONLINE_TIMEAGO_TOOLTIP = s__(
|
2021-11-08 07:12:07 -05:00
|
|
|
'Runners|Runner is online; last contact was %{timeAgo}',
|
|
|
|
);
|
2022-03-23 14:08:47 -04:00
|
|
|
export const I18N_NEVER_CONTACTED_TOOLTIP = s__('Runners|Runner has never contacted this instance');
|
|
|
|
export const I18N_OFFLINE_TIMEAGO_TOOLTIP = s__(
|
|
|
|
'Runners|Runner is offline; last contact was %{timeAgo}',
|
2021-11-08 07:12:07 -05:00
|
|
|
);
|
2022-03-23 14:08:47 -04:00
|
|
|
export const I18N_STALE_TIMEAGO_TOOLTIP = s__(
|
|
|
|
'Runners|Runner is stale; last contact was %{timeAgo}',
|
2021-12-06 19:14:07 -05:00
|
|
|
);
|
2022-03-23 14:08:47 -04:00
|
|
|
export const I18N_STALE_NEVER_CONTACTED_TOOLTIP = s__(
|
|
|
|
'Runners|Runner is stale; it has never contacted this instance',
|
2021-12-06 19:14:07 -05:00
|
|
|
);
|
2021-11-08 07:12:07 -05:00
|
|
|
|
2022-02-24 22:16:18 -05:00
|
|
|
// Actions
|
|
|
|
export const I18N_EDIT = __('Edit');
|
2022-03-16 11:07:32 -04:00
|
|
|
|
2022-01-27 10:14:51 -05:00
|
|
|
export const I18N_PAUSE = __('Pause');
|
2022-03-16 11:07:32 -04:00
|
|
|
export const I18N_PAUSE_TOOLTIP = s__('Runners|Pause from accepting jobs');
|
|
|
|
export const I18N_PAUSED_DESCRIPTION = s__('Runners|Not accepting jobs');
|
|
|
|
|
2022-01-27 10:14:51 -05:00
|
|
|
export const I18N_RESUME = __('Resume');
|
2022-03-16 11:07:32 -04:00
|
|
|
export const I18N_RESUME_TOOLTIP = s__('Runners|Resume accepting jobs');
|
|
|
|
|
2022-02-21 04:15:42 -05:00
|
|
|
export const I18N_DELETE_RUNNER = s__('Runners|Delete runner');
|
2022-03-19 23:08:51 -04:00
|
|
|
export const I18N_DELETE_DISABLED_MANY_PROJECTS = s__(
|
|
|
|
'Runners|Multi-project runners cannot be deleted',
|
|
|
|
);
|
|
|
|
export const I18N_DELETE_DISABLED_UNKNOWN_REASON = s__(
|
|
|
|
'Runners|Runner cannot be deleted, please contact your administrator',
|
|
|
|
);
|
2022-03-04 01:18:17 -05:00
|
|
|
export const I18N_DELETED_TOAST = s__('Runners|Runner %{name} was deleted');
|
2022-01-27 10:14:51 -05:00
|
|
|
|
2022-03-30 23:09:26 -04:00
|
|
|
export const I18N_LOCKED_RUNNER_DESCRIPTION = s__(
|
|
|
|
'Runners|Runner is locked and available for currently assigned projects only. Only administrators can change the assigned projects.',
|
|
|
|
);
|
2021-10-06 08:11:40 -04:00
|
|
|
|
2022-02-12 07:15:45 -05:00
|
|
|
// Runner details
|
|
|
|
|
|
|
|
export const I18N_ASSIGNED_PROJECTS = s__('Runners|Assigned Projects (%{projectCount})');
|
|
|
|
export const I18N_NONE = __('None');
|
2022-03-31 11:08:32 -04:00
|
|
|
export const I18N_NO_JOBS_FOUND = s__('Runners|This runner has not run any jobs.');
|
2022-02-12 07:15:45 -05:00
|
|
|
|
|
|
|
// Styles
|
|
|
|
|
2021-11-11 07:10:41 -05:00
|
|
|
export const RUNNER_TAG_BADGE_VARIANT = 'neutral';
|
2021-06-23 08:07:58 -04:00
|
|
|
export const RUNNER_TAG_BG_CLASS = 'gl-bg-blue-100';
|
|
|
|
|
2021-05-26 08:10:41 -04:00
|
|
|
// Filtered search parameter names
|
|
|
|
// - Used for URL params names
|
|
|
|
// - GlFilteredSearch tokens type
|
|
|
|
|
|
|
|
export const PARAM_KEY_STATUS = 'status';
|
2022-04-04 14:08:38 -04:00
|
|
|
export const PARAM_KEY_PAUSED = 'paused';
|
2021-05-26 08:10:41 -04:00
|
|
|
export const PARAM_KEY_RUNNER_TYPE = 'runner_type';
|
2021-06-23 08:07:58 -04:00
|
|
|
export const PARAM_KEY_TAG = 'tag';
|
|
|
|
export const PARAM_KEY_SEARCH = 'search';
|
|
|
|
|
2021-05-26 08:10:41 -04:00
|
|
|
export const PARAM_KEY_SORT = 'sort';
|
2021-06-01 20:09:56 -04:00
|
|
|
export const PARAM_KEY_PAGE = 'page';
|
|
|
|
export const PARAM_KEY_AFTER = 'after';
|
|
|
|
export const PARAM_KEY_BEFORE = 'before';
|
2021-05-26 08:10:41 -04:00
|
|
|
|
2021-05-05 05:10:02 -04:00
|
|
|
// CiRunnerType
|
|
|
|
|
|
|
|
export const INSTANCE_TYPE = 'INSTANCE_TYPE';
|
|
|
|
export const GROUP_TYPE = 'GROUP_TYPE';
|
|
|
|
export const PROJECT_TYPE = 'PROJECT_TYPE';
|
2021-05-26 08:10:41 -04:00
|
|
|
|
|
|
|
// CiRunnerStatus
|
|
|
|
|
|
|
|
export const STATUS_ONLINE = 'ONLINE';
|
2021-12-10 13:14:42 -05:00
|
|
|
export const STATUS_NEVER_CONTACTED = 'NEVER_CONTACTED';
|
2021-12-06 19:14:07 -05:00
|
|
|
export const STATUS_OFFLINE = 'OFFLINE';
|
|
|
|
export const STATUS_STALE = 'STALE';
|
2021-05-26 08:10:41 -04:00
|
|
|
|
2021-06-11 14:10:13 -04:00
|
|
|
// CiRunnerAccessLevel
|
|
|
|
|
|
|
|
export const ACCESS_LEVEL_NOT_PROTECTED = 'NOT_PROTECTED';
|
|
|
|
export const ACCESS_LEVEL_REF_PROTECTED = 'REF_PROTECTED';
|
|
|
|
|
2021-05-26 08:10:41 -04:00
|
|
|
// CiRunnerSort
|
|
|
|
|
|
|
|
export const CREATED_DESC = 'CREATED_DESC';
|
2022-02-18 07:15:31 -05:00
|
|
|
export const CREATED_ASC = 'CREATED_ASC';
|
|
|
|
export const CONTACTED_DESC = 'CONTACTED_DESC';
|
2021-05-26 08:10:41 -04:00
|
|
|
export const CONTACTED_ASC = 'CONTACTED_ASC';
|
|
|
|
|
|
|
|
export const DEFAULT_SORT = CREATED_DESC;
|
2021-08-23 11:10:43 -04:00
|
|
|
|
|
|
|
// Local storage namespaces
|
|
|
|
|
|
|
|
export const ADMIN_FILTERED_SEARCH_NAMESPACE = 'admin_runners';
|
|
|
|
export const GROUP_FILTERED_SEARCH_NAMESPACE = 'group_runners';
|