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

constants.js « gitlab_version_check « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5cef29d73f3945800c1b7bdb693aae9dbfd98836 (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
import { helpPagePath } from '~/helpers/help_page_helper';
import { PROMO_URL } from 'jh_else_ce/lib/utils/url_utility';

export const STATUS_TYPES = {
  SUCCESS: 'success',
  WARNING: 'warning',
  DANGER: 'danger',
};

export const UPGRADE_DOCS_URL = helpPagePath('update/index');

export const ABOUT_RELEASES_PAGE = `${PROMO_URL}/releases/categories/releases/`;

export const ALERT_MODAL_ID = 'security-patch-upgrade-alert-modal';

export const COOKIE_EXPIRATION = 3;

export const COOKIE_SUFFIX = '-hide-alert-modal';

export const TRACKING_ACTIONS = {
  RENDER: 'render',
  CLICK_LINK: 'click_link',
  CLICK_BUTTON: 'click_button',
};

export const TRACKING_LABELS = {
  MODAL: 'security_patch_upgrade_alert_modal',
  LEARN_MORE_LINK: 'security_patch_upgrade_alert_modal_learn_more',
  REMIND_ME_BTN: 'security_patch_upgrade_alert_modal_remind_3_days',
  UPGRADE_BTN_LINK: 'security_patch_upgrade_alert_modal_upgrade_now',
  DISMISS: 'security_patch_upgrade_alert_modal_close',
};