forked from eclipse-che/che-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbranding.constant.ts
79 lines (72 loc) · 2.29 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
/*
* Copyright (c) 2018-2020 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;
logoTextFile: string;
logoFile: string;
helpPath: string;
helpTitle: string;
supportEmail: 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 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',
helpPath: 'https://www.eclipse.org/che/',
helpTitle: 'Community',
supportEmail: '[email protected]',
docs: {
devfile: 'https://www.eclipse.org/che/docs/che-7/making-a-workspace-portable-using-a-devfile/',
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'
},
};