2020-11-11 18:09:10 +00:00
|
|
|
import { __ } from '~/locale';
|
|
|
|
|
2019-12-05 00:07:50 +00:00
|
|
|
export const MAX_MILESTONES_TO_DISPLAY = 5;
|
2020-03-04 09:08:20 +00:00
|
|
|
|
|
|
|
export const BACK_URL_PARAM = 'back_url';
|
2020-06-01 09:08:28 +00:00
|
|
|
|
|
|
|
export const ASSET_LINK_TYPE = Object.freeze({
|
|
|
|
OTHER: 'other',
|
|
|
|
IMAGE: 'image',
|
|
|
|
PACKAGE: 'package',
|
|
|
|
RUNBOOK: 'runbook',
|
|
|
|
});
|
|
|
|
|
|
|
|
export const DEFAULT_ASSET_LINK_TYPE = ASSET_LINK_TYPE.OTHER;
|
2020-09-18 15:09:22 +00:00
|
|
|
|
2021-01-12 18:11:03 +00:00
|
|
|
export const PAGE_SIZE = 10;
|
2020-11-11 18:09:10 +00:00
|
|
|
|
|
|
|
export const ASCENDING_ODER = 'asc';
|
|
|
|
export const DESCENDING_ORDER = 'desc';
|
|
|
|
export const RELEASED_AT = 'released_at';
|
|
|
|
export const CREATED_AT = 'created_at';
|
|
|
|
|
|
|
|
export const SORT_OPTIONS = [
|
|
|
|
{
|
|
|
|
orderBy: RELEASED_AT,
|
|
|
|
label: __('Released date'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
orderBy: CREATED_AT,
|
|
|
|
label: __('Created date'),
|
|
|
|
},
|
|
|
|
];
|