2020-11-24 15:15:51 +05:30
|
|
|
export const sourceContentHeaderYAML = `---
|
2020-04-22 19:07:51 +05:30
|
|
|
layout: handbook-page-toc
|
|
|
|
title: Handbook
|
2020-11-24 15:15:51 +05:30
|
|
|
twitter_image: /images/tweets/handbook-gitlab.png
|
2021-01-03 14:25:43 +05:30
|
|
|
suppress_header: true
|
|
|
|
extra_css:
|
|
|
|
- sales-and-free-trial-common.css
|
|
|
|
- form-to-resource.css
|
2020-06-23 00:09:42 +05:30
|
|
|
---`;
|
2020-11-24 15:15:51 +05:30
|
|
|
export const sourceContentHeaderObjYAML = {
|
|
|
|
layout: 'handbook-page-toc',
|
|
|
|
title: 'Handbook',
|
|
|
|
twitter_image: '/images/tweets/handbook-gitlab.png',
|
2021-01-03 14:25:43 +05:30
|
|
|
suppress_header: true,
|
|
|
|
extra_css: ['sales-and-free-trial-common.css', 'form-to-resource.css'],
|
2020-11-24 15:15:51 +05:30
|
|
|
};
|
|
|
|
export const sourceContentSpacing = `\n`;
|
2020-06-23 00:09:42 +05:30
|
|
|
export const sourceContentBody = `## On this page
|
2020-04-22 19:07:51 +05:30
|
|
|
{:.no_toc .hidden-md .hidden-lg}
|
|
|
|
|
|
|
|
- TOC
|
|
|
|
{:toc .hidden-md .hidden-lg}
|
2020-07-28 23:09:34 +05:30
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
![image](path/to/image1.png)`;
|
|
|
|
export const sourceContentYAML = `${sourceContentHeaderYAML}${sourceContentSpacing}${sourceContentBody}`;
|
2020-04-22 19:07:51 +05:30
|
|
|
export const sourceContentTitle = 'Handbook';
|
|
|
|
|
|
|
|
export const username = 'gitlabuser';
|
|
|
|
export const projectId = '123456';
|
|
|
|
export const returnUrl = 'https://www.gitlab.com';
|
|
|
|
export const sourcePath = 'foobar.md.html';
|
2021-01-03 14:25:43 +05:30
|
|
|
export const mergeRequestMeta = {
|
|
|
|
title: `Update ${sourcePath} file`,
|
|
|
|
description: 'Copy update',
|
|
|
|
};
|
2020-04-22 19:07:51 +05:30
|
|
|
export const savedContentMeta = {
|
|
|
|
branch: {
|
|
|
|
label: 'foobar',
|
|
|
|
url: 'foobar/-/tree/foobar',
|
|
|
|
},
|
|
|
|
commit: {
|
|
|
|
label: 'c1461b08',
|
|
|
|
url: 'foobar/-/c1461b08',
|
|
|
|
},
|
|
|
|
mergeRequest: {
|
|
|
|
label: '123',
|
|
|
|
url: 'foobar/-/merge_requests/123',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const submitChangesError = 'Could not save changes';
|
2020-05-24 23:13:21 +05:30
|
|
|
export const commitBranchResponse = {
|
|
|
|
web_url: '/tree/root-master-patch-88195',
|
|
|
|
};
|
2020-04-22 19:07:51 +05:30
|
|
|
export const commitMultipleResponse = {
|
|
|
|
short_id: 'ed899a2f4b5',
|
|
|
|
web_url: '/commit/ed899a2f4b5',
|
|
|
|
};
|
|
|
|
export const createMergeRequestResponse = {
|
|
|
|
iid: '123',
|
|
|
|
web_url: '/merge_requests/123',
|
|
|
|
};
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
export const trackingCategory = 'projects:static_site_editor:show';
|
2020-07-28 23:09:34 +05:30
|
|
|
|
|
|
|
export const images = new Map([
|
|
|
|
['path/to/image1.png', 'image1-content'],
|
|
|
|
['path/to/image2.png', 'image2-content'],
|
|
|
|
]);
|