2020-09-01 05:10:28 -04:00
|
|
|
export const sourceContentHeaderYAML = `---
|
2020-04-06 11:10:04 -04:00
|
|
|
layout: handbook-page-toc
|
|
|
|
title: Handbook
|
2020-09-10 08:08:54 -04:00
|
|
|
twitter_image: /images/tweets/handbook-gitlab.png
|
2020-06-10 11:08:07 -04:00
|
|
|
---`;
|
2020-09-10 08:08:54 -04:00
|
|
|
export const sourceContentHeaderObjYAML = {
|
|
|
|
layout: 'handbook-page-toc',
|
|
|
|
title: 'Handbook',
|
|
|
|
twitter_image: '/images/tweets/handbook-gitlab.png',
|
|
|
|
};
|
|
|
|
export const sourceContentSpacing = `\n`;
|
2020-06-10 11:08:07 -04:00
|
|
|
export const sourceContentBody = `## On this page
|
2020-04-06 11:10:04 -04:00
|
|
|
{:.no_toc .hidden-md .hidden-lg}
|
|
|
|
|
|
|
|
- TOC
|
|
|
|
{:toc .hidden-md .hidden-lg}
|
2020-07-08 08:09:33 -04:00
|
|
|
|
2020-09-10 08:08:54 -04:00
|
|
|
![image](path/to/image1.png)`;
|
2020-09-01 05:10:28 -04:00
|
|
|
export const sourceContentYAML = `${sourceContentHeaderYAML}${sourceContentSpacing}${sourceContentBody}`;
|
2020-04-06 11:10:04 -04:00
|
|
|
export const sourceContentTitle = 'Handbook';
|
|
|
|
|
2020-04-10 02:09:41 -04:00
|
|
|
export const username = 'gitlabuser';
|
2020-04-06 11:10:04 -04:00
|
|
|
export const projectId = '123456';
|
2020-04-15 05:09:46 -04:00
|
|
|
export const returnUrl = 'https://www.gitlab.com';
|
2020-04-06 11:10:04 -04:00
|
|
|
export const sourcePath = 'foobar.md.html';
|
2020-04-10 02:09:41 -04:00
|
|
|
|
|
|
|
export const savedContentMeta = {
|
|
|
|
branch: {
|
|
|
|
label: 'foobar',
|
2020-04-21 11:21:10 -04:00
|
|
|
url: 'foobar/-/tree/foobar',
|
2020-04-10 02:09:41 -04:00
|
|
|
},
|
|
|
|
commit: {
|
2020-04-21 11:21:10 -04:00
|
|
|
label: 'c1461b08',
|
2020-04-10 02:09:41 -04:00
|
|
|
url: 'foobar/-/c1461b08',
|
|
|
|
},
|
|
|
|
mergeRequest: {
|
|
|
|
label: '123',
|
|
|
|
url: 'foobar/-/merge_requests/123',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const submitChangesError = 'Could not save changes';
|
2020-04-30 14:09:38 -04:00
|
|
|
export const commitBranchResponse = {
|
|
|
|
web_url: '/tree/root-master-patch-88195',
|
|
|
|
};
|
2020-04-14 05:09:34 -04:00
|
|
|
export const commitMultipleResponse = {
|
|
|
|
short_id: 'ed899a2f4b5',
|
|
|
|
web_url: '/commit/ed899a2f4b5',
|
|
|
|
};
|
|
|
|
export const createMergeRequestResponse = {
|
|
|
|
iid: '123',
|
|
|
|
web_url: '/merge_requests/123',
|
|
|
|
};
|
2020-05-12 23:08:26 -04:00
|
|
|
|
|
|
|
export const trackingCategory = 'projects:static_site_editor:show';
|
2020-07-08 08:09:33 -04:00
|
|
|
|
|
|
|
export const images = new Map([
|
|
|
|
['path/to/image1.png', 'image1-content'],
|
|
|
|
['path/to/image2.png', 'image2-content'],
|
|
|
|
]);
|