forked from eclipse-che/che-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
branding.constant.ts
94 lines (86 loc) · 2.47 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
92
93
94
/*
* Copyright (c) 2018-2021 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;
certificate: string;
faq?: string;
storageTypes: string;
webSocketTroubleshooting: string;
};
export type BrandingConfiguration = {
cheCliTool: string;
prefetch?: PrefetchConfiguration;
};
export type PrefetchConfiguration = {
cheCDN?: string;
resources: string[];
};
export type Link = {
text: string;
href: string;
};
export enum TogglableFeature {
WORKSPACE_SHARING = 'workspaceSharing',
KUBERNETES_NAMESPACE_SELECTOR = 'kubernetesNamespaceSelector',
}
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:che-dev@eclipse.org',
},
{
text: 'Documentation',
href: 'https://www.eclipse.org/che/docs/che-7',
},
{
text: 'Community',
href: 'https://www.eclipse.org/che/',
},
],
docs: {
devfile: 'https://www.eclipse.org/che/docs/che-7/end-user-guide/authoring-devfiles/',
workspace: 'https://www.eclipse.org/che/docs/che-7/workspaces-overview/',
certificate: 'https://www.eclipse.org/che/docs/che-7/importing-certificates-to-browsers/',
general: 'https://www.eclipse.org/che/docs/che-7',
storageTypes: 'https://www.eclipse.org/che/docs/che-7/configuring-storage-types/',
webSocketTroubleshooting:
'https://www.eclipse.org/che/docs/che-7/troubleshooting-network-problems/#troubleshooting-websocket-secure-connections_troubleshooting-network-problems',
},
configuration: {
cheCliTool: 'chectl',
},
};