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-10-07 11:08:40 -04:00
|
|
|
suppress_header: true
|
|
|
|
extra_css:
|
|
|
|
- sales-and-free-trial-common.css
|
|
|
|
- form-to-resource.css
|
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',
|
2020-10-07 11:08:40 -04:00
|
|
|
suppress_header: true,
|
|
|
|
extra_css: ['sales-and-free-trial-common.css', 'form-to-resource.css'],
|
2020-09-10 08:08:54 -04:00
|
|
|
};
|
|
|
|
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-10-30 14:08:56 -04:00
|
|
|
export const project = 'user1/project1';
|
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-10-01 23:08:28 -04:00
|
|
|
export const mergeRequestMeta = {
|
|
|
|
title: `Update ${sourcePath} file`,
|
|
|
|
description: 'Copy update',
|
|
|
|
};
|
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',
|
|
|
|
},
|
|
|
|
};
|
2020-11-02 13:09:03 -05:00
|
|
|
export const mergeRequestTemplates = [
|
|
|
|
{ key: 'Template1', name: 'Template 1', content: 'This is template 1!' },
|
|
|
|
{ key: 'Template2', name: 'Template 2', content: 'This is template 2!' },
|
|
|
|
];
|
2020-04-10 02:09:41 -04:00
|
|
|
|
|
|
|
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'],
|
|
|
|
]);
|
2020-10-26 17:08:22 -04:00
|
|
|
|
|
|
|
export const mounts = [
|
|
|
|
{
|
2020-11-09 07:09:24 -05:00
|
|
|
source: 'default/source/',
|
2020-10-26 17:08:22 -04:00
|
|
|
target: '',
|
|
|
|
},
|
2020-11-09 07:09:24 -05:00
|
|
|
{
|
|
|
|
source: 'source/with/target',
|
|
|
|
target: 'target',
|
|
|
|
},
|
2020-10-26 17:08:22 -04:00
|
|
|
];
|
2020-11-08 07:09:30 -05:00
|
|
|
|
2020-11-09 07:09:24 -05:00
|
|
|
export const branch = 'master';
|
|
|
|
|
|
|
|
export const baseUrl = '/user1/project1/-/sse/master%2Ftest.md';
|
|
|
|
|
2020-11-08 07:09:30 -05:00
|
|
|
export const imageRoot = 'source/images/';
|