2020-05-08 18:09:55 +00:00
|
|
|
import { s__, __ } from '~/locale';
|
2020-04-14 09:09:34 +00:00
|
|
|
|
|
|
|
export const BRANCH_SUFFIX_COUNT = 8;
|
2020-11-10 09:08:45 +00:00
|
|
|
export const ISSUABLE_TYPE = 'merge_request';
|
2020-04-14 09:09:34 +00:00
|
|
|
|
|
|
|
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.',
|
|
|
|
);
|
2020-05-08 18:09:55 +00:00
|
|
|
export const LOAD_CONTENT_ERROR = __(
|
2021-02-19 12:11:06 +00:00
|
|
|
'An error occurred while loading your content. Please try again.',
|
2020-05-08 18:09:55 +00:00
|
|
|
);
|
2020-04-15 09:09:46 +00:00
|
|
|
|
2020-12-09 15:10:12 +00:00
|
|
|
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',
|
|
|
|
);
|
|
|
|
|
2020-04-15 09:09:46 +00:00
|
|
|
export const DEFAULT_HEADING = s__('StaticSiteEditor|Static site editor');
|
2020-05-13 03:08:26 +00:00
|
|
|
|
|
|
|
export const TRACKING_ACTION_CREATE_COMMIT = 'create_commit';
|
2020-06-10 06:08:18 +00:00
|
|
|
export const TRACKING_ACTION_CREATE_MERGE_REQUEST = 'create_merge_request';
|
2020-06-10 15:08:07 +00:00
|
|
|
export const TRACKING_ACTION_INITIALIZE_EDITOR = 'initialize_editor';
|
2020-07-08 12:09:33 +00:00
|
|
|
|
2021-06-29 12:08:48 +00:00
|
|
|
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';
|
2020-12-07 15:09:49 +00:00
|
|
|
|
2020-10-22 12:08:41 +00:00
|
|
|
export const MR_META_LOCAL_STORAGE_KEY = 'sse-merge-request-meta-storage-key';
|