debian-mirror-gitlab/app/assets/javascripts/static_site_editor/constants.js

36 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
import { s__, __ } from '~/locale';
2020-04-22 19:07:51 +05:30
export const BRANCH_SUFFIX_COUNT = 8;
export const DEFAULT_TARGET_BRANCH = 'master';
2021-01-29 00:20:46 +05:30
export const ISSUABLE_TYPE = 'merge_request';
2020-04-22 19:07:51 +05:30
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-24 23:13:21 +05:30
export const LOAD_CONTENT_ERROR = __(
'An error ocurred while loading your content. Please try again.',
);
2020-04-22 19:07:51 +05:30
2021-02-22 17:27:13 +05:30
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-22 19:07:51 +05:30
export const DEFAULT_HEADING = s__('StaticSiteEditor|Static site editor');
2020-05-24 23:13:21 +05:30
export const TRACKING_ACTION_CREATE_COMMIT = 'create_commit';
2020-06-23 00:09:42 +05:30
export const TRACKING_ACTION_CREATE_MERGE_REQUEST = 'create_merge_request';
export const TRACKING_ACTION_INITIALIZE_EDITOR = 'initialize_editor';
2020-07-28 23:09:34 +05:30
2021-02-22 17:27:13 +05:30
export const USAGE_PING_TRACKING_ACTION_CREATE_COMMIT = 'static_site_editor_commits';
export const USAGE_PING_TRACKING_ACTION_CREATE_MERGE_REQUEST = 'static_site_editor_merge_requests';
2021-01-29 00:20:46 +05:30
export const MR_META_LOCAL_STORAGE_KEY = 'sse-merge-request-meta-storage-key';