-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbranding.constant.ts
91 lines (84 loc) · 2.46 KB
/
branding.constant.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
* Copyright (c) 2018-2024 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
*/
export type BrandingData = {
title: string;
name: string;
productVersion?: string;
links?: Link[];
logoTextFile: string;
logoFile: string;
docs: BrandingDocs;
configuration: BrandingConfiguration;
header?: BrandingHeader;
};
export type BrandingHeader = {
warning: string;
};
export type BrandingDocs = {
devfile: string;
workspace: string;
general: string;
faq?: string;
storageTypes: string;
webSocketTroubleshooting: string;
startWorkspaceFromGit: string;
};
export type BrandingConfiguration = {
/* deprecated field */
cheCliTool?: string;
prefetch?: PrefetchConfiguration;
};
export type PrefetchConfiguration = {
cheCDN?: string;
resources: string[];
};
export type Link = {
text: string;
href: string;
};
export const BRANDING_DEFAULT: BrandingData = {
title: 'Eclipse Che',
name: 'Eclipse Che',
logoFile: 'che-logo.svg',
logoTextFile: 'che-logo-text.svg',
// the following commented lines can't be overridden
// in case customization is needed these files should be defined in
// favicon: '/assets/branding/favicon.ico',
// loader: '/assets/branding/loader.svg',
links: [
{
text: 'Make a wish',
href: 'mailto:[email protected]',
},
{
text: 'Documentation',
href: 'https://www.eclipse.org/che/docs/stable/overview/introduction-to-eclipse-che/',
},
{
text: 'Community',
href: 'https://www.eclipse.org/che/',
},
],
docs: {
devfile: 'https://www.eclipse.org/che/docs/stable/end-user-guide/devfile-introduction/',
workspace:
'https://www.eclipse.org/che/docs/stable/end-user-guide/customizing-workspace-components/',
general: 'https://www.eclipse.org/che/docs/stable/overview/introduction-to-eclipse-che/',
storageTypes:
'https://www.eclipse.org/che/docs/stable/end-user-guide/url-parameter-for-the-workspace-storage/',
webSocketTroubleshooting:
'https://www.eclipse.org/che/docs/stable/end-user-guide/troubleshooting-network-problems/',
startWorkspaceFromGit:
'https://eclipse.dev/che/docs/stable/end-user-guide/starting-a-workspace-from-a-git-repository-url/',
},
configuration: {},
};