constants.js 738 字节
Newer Older
1
/* eslint-disable @gitlab/require-i18n-strings */
2 3
import { __ } from '~/locale';

4 5
export const ANY_AUTHOR = 'Any';

6 7 8 9 10
const DEFAULT_LABEL_NO_LABEL = { value: 'No label', text: __('No label') };
export const DEFAULT_LABEL_NONE = { value: 'None', text: __('None') };
export const DEFAULT_LABEL_ANY = { value: 'Any', text: __('Any') };

export const DEFAULT_LABELS = [DEFAULT_LABEL_NO_LABEL];
11

12 13 14 15 16 17
export const DEBOUNCE_DELAY = 200;

export const SortDirection = {
  descending: 'descending',
  ascending: 'ascending',
};
18

19 20 21
export const DEFAULT_MILESTONES = [
  DEFAULT_LABEL_NONE,
  DEFAULT_LABEL_ANY,
22 23 24
  { value: 'Upcoming', text: __('Upcoming') },
  { value: 'Started', text: __('Started') },
];
25 26

/* eslint-enable @gitlab/require-i18n-strings */