All files / ee/app/assets/javascripts/geo_nodes constants.js

100% Statements 13/13
100% Branches 0/0
100% Functions 0/0
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76      14x   14x   14x         14x       14x         14x       14x       14x                                                       14x                     14x   14x   14x   14x  
import { helpPagePath } from '~/helpers/help_page_helper';
import { __, s__ } from '~/locale';
 
export const GEO_INFO_URL = helpPagePath('administration/geo/index.md');
 
export const GEO_FEATURE_URL = 'https://about.gitlab.com/features/gitlab-geo/';
 
export const HELP_NODE_HEALTH_URL = helpPagePath(
  'administration/geo/replication/troubleshooting.html',
  { anchor: 'check-the-health-of-the-secondary-node' },
);
 
export const GEO_TROUBLESHOOTING_URL = helpPagePath(
  'administration/geo/replication/troubleshooting.html',
);
 
export const HELP_INFO_URL = helpPagePath(
  'administration/geo/disaster_recovery/background_verification.html',
  { anchor: 'repository-verification' },
);
 
export const REPLICATION_PAUSE_URL = helpPagePath('administration/geo/index.html', {
  anchor: 'pausing-and-resuming-replication',
});
 
export const GEO_REPLICATION_TYPES_URL = helpPagePath(
  'administration/geo/replication/datatypes.html',
);
 
export const HEALTH_STATUS_UI = {
  healthy: {
    icon: 'status_success',
    variant: 'success',
    text: s__('Geo|Healthy'),
  },
  unhealthy: {
    icon: 'status_failed',
    variant: 'danger',
    text: s__('Geo|Unhealthy'),
  },
  disabled: {
    icon: 'status_canceled',
    variant: 'neutral',
    text: s__('Geo|Disabled'),
  },
  unknown: {
    icon: 'status_notfound',
    variant: 'neutral',
    text: s__('Geo|Unknown'),
  },
  offline: {
    icon: 'status_canceled',
    variant: 'neutral',
    text: s__('Geo|Offline'),
  },
};
 
export const REPLICATION_STATUS_UI = {
  enabled: {
    color: 'gl-text-green-600',
    text: __('Enabled'),
  },
  disabled: {
    color: 'gl-text-orange-600',
    text: __('Paused'),
  },
};
 
export const STATUS_DELAY_THRESHOLD_MS = 600000;
 
export const REPOSITORY = 'repository';
 
export const BLOB = 'blob';
 
export const REMOVE_NODE_MODAL_ID = 'remove-node-modal';