2020-09-01 09:10:28 +00:00
|
|
|
export const sourceContentHeaderYAML = `---
|
2020-04-06 15:10:04 +00:00
|
|
|
layout: handbook-page-toc
|
|
|
|
title: Handbook
|
2020-09-10 12:08:54 +00:00
|
|
|
twitter_image: /images/tweets/handbook-gitlab.png
|
2020-10-07 15:08:40 +00:00
|
|
|
suppress_header: true
|
|
|
|
extra_css:
|
|
|
|
- sales-and-free-trial-common.css
|
|
|
|
- form-to-resource.css
|
2020-06-10 15:08:07 +00:00
|
|
|
---`;
|
2020-09-10 12:08:54 +00:00
|
|
|
export const sourceContentHeaderObjYAML = {
|
|
|
|
layout: 'handbook-page-toc',
|
|
|
|
title: 'Handbook',
|
|
|
|
twitter_image: '/images/tweets/handbook-gitlab.png',
|
2020-10-07 15:08:40 +00:00
|
|
|
suppress_header: true,
|
|
|
|
extra_css: ['sales-and-free-trial-common.css', 'form-to-resource.css'],
|
2020-09-10 12:08:54 +00:00
|
|
|
};
|
|
|
|
export const sourceContentSpacing = `\n`;
|
2020-06-10 15:08:07 +00:00
|
|
|
export const sourceContentBody = `## On this page
|
2020-04-06 15:10:04 +00:00
|
|
|
{:.no_toc .hidden-md .hidden-lg}
|
|
|
|
|
|
|
|
- TOC
|
|
|
|
{:toc .hidden-md .hidden-lg}
|
2020-07-08 12:09:33 +00:00
|
|
|
|
2020-09-10 12:08:54 +00:00
|
|
|
![image](path/to/image1.png)`;
|
2020-09-01 09:10:28 +00:00
|
|
|
export const sourceContentYAML = `${sourceContentHeaderYAML}${sourceContentSpacing}${sourceContentBody}`;
|
2020-04-06 15:10:04 +00:00
|
|
|
export const sourceContentTitle = 'Handbook';
|
|
|
|
|
2020-04-10 06:09:41 +00:00
|
|
|
export const username = 'gitlabuser';
|
2020-04-06 15:10:04 +00:00
|
|
|
export const projectId = '123456';
|
2020-10-30 18:08:56 +00:00
|
|
|
export const project = 'user1/project1';
|
2020-04-15 09:09:46 +00:00
|
|
|
export const returnUrl = 'https://www.gitlab.com';
|
2020-04-06 15:10:04 +00:00
|
|
|
export const sourcePath = 'foobar.md.html';
|
2020-10-02 03:08:28 +00:00
|
|
|
export const mergeRequestMeta = {
|
|
|
|
title: `Update ${sourcePath} file`,
|
|
|
|
description: 'Copy update',
|
|
|
|
};
|
2020-04-10 06:09:41 +00:00
|
|
|
export const savedContentMeta = {
|
|
|
|
branch: {
|
|
|
|
label: 'foobar',
|
2020-04-21 15:21:10 +00:00
|
|
|
url: 'foobar/-/tree/foobar',
|
2020-04-10 06:09:41 +00:00
|
|
|
},
|
|
|
|
commit: {
|
2020-04-21 15:21:10 +00:00
|
|
|
label: 'c1461b08',
|
2020-04-10 06:09:41 +00:00
|
|
|
url: 'foobar/-/c1461b08',
|
|
|
|
},
|
|
|
|
mergeRequest: {
|
|
|
|
label: '123',
|
|
|
|
url: 'foobar/-/merge_requests/123',
|
|
|
|
},
|
|
|
|
};
|
2020-11-02 18:09:03 +00: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 06:09:41 +00:00
|
|
|
|
|
|
|
export const submitChangesError = 'Could not save changes';
|
2020-04-30 18:09:38 +00:00
|
|
|
export const commitBranchResponse = {
|
2021-05-07 09:10:27 +00:00
|
|
|
web_url: '/tree/root-main-patch-88195',
|
2020-04-30 18:09:38 +00:00
|
|
|
};
|
2020-04-14 09:09:34 +00:00
|
|
|
export const commitMultipleResponse = {
|
|
|
|
short_id: 'ed899a2f4b5',
|
|
|
|
web_url: '/commit/ed899a2f4b5',
|
|
|
|
};
|
|
|
|
export const createMergeRequestResponse = {
|
|
|
|
iid: '123',
|
|
|
|
web_url: '/merge_requests/123',
|
|
|
|
};
|
2020-05-13 03:08:26 +00:00
|
|
|
|
|
|
|
export const trackingCategory = 'projects:static_site_editor:show';
|
2020-07-08 12:09:33 +00:00
|
|
|
|
|
|
|
export const images = new Map([
|
|
|
|
['path/to/image1.png', 'image1-content'],
|
|
|
|
['path/to/image2.png', 'image2-content'],
|
|
|
|
]);
|
2020-10-26 21:08:22 +00:00
|
|
|
|
|
|
|
export const mounts = [
|
|
|
|
{
|
2020-11-09 12:09:24 +00:00
|
|
|
source: 'default/source/',
|
2020-10-26 21:08:22 +00:00
|
|
|
target: '',
|
|
|
|
},
|
2020-11-09 12:09:24 +00:00
|
|
|
{
|
|
|
|
source: 'source/with/target',
|
|
|
|
target: 'target',
|
|
|
|
},
|
2020-10-26 21:08:22 +00:00
|
|
|
];
|
2020-11-08 12:09:30 +00:00
|
|
|
|
2021-05-07 09:10:27 +00:00
|
|
|
export const branch = 'main';
|
2020-11-09 12:09:24 +00:00
|
|
|
|
2021-05-07 09:10:27 +00:00
|
|
|
export const baseUrl = '/user1/project1/-/sse/main%2Ftest.md';
|
2020-11-09 12:09:24 +00:00
|
|
|
|
2020-11-08 12:09:30 +00:00
|
|
|
export const imageRoot = 'source/images/';
|