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

constants.js « groups_and_projects « organizations « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 529caa666a0329456938d260eaef8d173fbe9305 (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
import { __ } from '~/locale';

export const DISPLAY_QUERY_GROUPS = 'groups';
export const DISPLAY_QUERY_PROJECTS = 'projects';

export const ORGANIZATION_ROOT_ROUTE_NAME = 'root';

export const FILTERED_SEARCH_TERM_KEY = 'search';

export const DISPLAY_LISTBOX_ITEMS = [
  {
    value: DISPLAY_QUERY_GROUPS,
    text: __('Groups'),
  },
  {
    value: DISPLAY_QUERY_PROJECTS,
    text: __('Projects'),
  },
];

export const SORT_DIRECTION_ASC = 'asc';
export const SORT_DIRECTION_DESC = 'desc';

export const SORT_ITEM_CREATED = {
  name: 'created',
  text: __('Created'),
};

export const SORT_ITEMS = [SORT_ITEM_CREATED];