All files / app/assets/javascripts/static_site_editor constants.js

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

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    7x 7x   7x 7x     7x     7x       7x       7x       7x   7x 7x 7x   7x   7x   7x  
import { s__, __ } from '~/locale';
 
export const BRANCH_SUFFIX_COUNT = 8;
export const ISSUABLE_TYPE = 'merge_request';
 
export const SUBMIT_CHANGES_BRANCH_ERROR = s__('StaticSiteEditor|Branch could not be created.');
export const SUBMIT_CHANGES_COMMIT_ERROR = s__(
  'StaticSiteEditor|Could not commit the content changes.',
);
export const SUBMIT_CHANGES_MERGE_REQUEST_ERROR = s__(
  'StaticSiteEditor|Could not create merge request.',
);
export const LOAD_CONTENT_ERROR = __(
  'An error occurred while loading your content. Please try again.',
);
 
export const DEFAULT_FORMATTING_CHANGES_COMMIT_MESSAGE = s__(
  'StaticSiteEditor|Automatic formatting changes',
);
 
export const DEFAULT_FORMATTING_CHANGES_COMMIT_DESCRIPTION = s__(
  'StaticSiteEditor|Markdown formatting preferences introduced by the Static Site Editor',
);
 
export const DEFAULT_HEADING = s__('StaticSiteEditor|Static site editor');
 
export const TRACKING_ACTION_CREATE_COMMIT = 'create_commit';
export const TRACKING_ACTION_CREATE_MERGE_REQUEST = 'create_merge_request';
export const TRACKING_ACTION_INITIALIZE_EDITOR = 'initialize_editor';
 
export const SERVICE_PING_TRACKING_ACTION_CREATE_COMMIT = 'static_site_editor_commits';
export const SERVICE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST =
  'static_site_editor_merge_requests';
 
export const MR_META_LOCAL_STORAGE_KEY = 'sse-merge-request-meta-storage-key';