Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « filtered_search « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b328ae6a8721ca70fb57d085d1ba6a205100f28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import {
  TOKEN_TYPE_APPROVED_BY,
  TOKEN_TYPE_ASSIGNEE,
  TOKEN_TYPE_AUTHOR,
  TOKEN_TYPE_REVIEWER,
} from '~/vue_shared/components/filtered_search_bar/constants';

export const USER_TOKEN_TYPES = [
  TOKEN_TYPE_AUTHOR,
  TOKEN_TYPE_ASSIGNEE,
  TOKEN_TYPE_APPROVED_BY,
  TOKEN_TYPE_REVIEWER,
  'attention',
];

export const DROPDOWN_TYPE = {
  hint: 'hint',
  operator: 'operator',
};

export const FILTER_TYPE = {
  none: 'none',
  any: 'any',
};

export const MAX_HISTORY_SIZE = 5;

export const FILTERED_SEARCH = {
  MERGE_REQUESTS: 'merge_requests',
  ISSUES: 'issues',
};