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

constants.js « observability « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b0a0941779d70c9cdb95e39074c7dd737bf647cd (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { __ } from '~/locale';

export const MESSAGE_EVENT_TYPE = Object.freeze({
  GOUI_LOADED: 'GOUI_LOADED',
  GOUI_ROUTE_UPDATE: 'GOUI_ROUTE_UPDATE',
});

export const OBSERVABILITY_ROUTES = Object.freeze({
  DASHBOARDS: 'observability/dashboards',
  EXPLORE: 'observability/explore',
  MANAGE: 'observability/manage',
});

export const SKELETON_VARIANTS_BY_ROUTE = Object.freeze({
  [OBSERVABILITY_ROUTES.DASHBOARDS]: 'dashboards',
  [OBSERVABILITY_ROUTES.EXPLORE]: 'explore',
  [OBSERVABILITY_ROUTES.MANAGE]: 'manage',
});

export const SKELETON_VARIANT_EMBED = 'embed';
export const SKELETON_SPINNER_VARIANT = 'spinner';

export const SKELETON_STATE = Object.freeze({
  ERROR: 'error',
  VISIBLE: 'visible',
  HIDDEN: 'hidden',
});

export const DEFAULT_TIMERS = Object.freeze({
  TIMEOUT_MS: 20000,
  CONTENT_WAIT_MS: 500,
});

export const TIMEOUT_ERROR_LABEL = __('Unable to load the page');
export const TIMEOUT_ERROR_MESSAGE = __('Reload the page to try again.');

export const INLINE_EMBED_DIMENSIONS = Object.freeze({
  HEIGHT: '366px',
  WIDTH: '768px',
});

export const FULL_APP_DIMENSIONS = Object.freeze({
  HEIGHT: '100%',
  WIDTH: '100%',
});