forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (76 loc) · 3.38 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<base href="[[ .ServerFlags.BasePath ]]" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
[[ if .ServerFlags.CustomProductName ]]
<title>[[ .ServerFlags.CustomProductName ]]</title>
<meta name="application-name" content="[[ .ServerFlags.CustomProductName ]]" />
[[ else ]] [[ if eq .ServerFlags.Branding "okd" ]]
<title>OKD</title>
<meta name="application-name" content="OKD" />
[[ end ]] [[ if eq .ServerFlags.Branding "openshift" ]]
<title>Red Hat OpenShift</title>
<meta name="application-name" content="Red Hat OpenShift" />
[[ end ]] [[ if eq .ServerFlags.Branding "ocp" ]]
<title>Red Hat OpenShift</title>
<meta name="application-name" content="Red Hat OpenShift" />
[[ end ]] [[ if eq .ServerFlags.Branding "online" ]]
<title>Red Hat OpenShift Online</title>
<meta name="application-name" content="Red Hat OpenShift Online" />
[[ end ]] [[ if eq .ServerFlags.Branding "dedicated" ]]
<title>Red Hat OpenShift Dedicated</title>
<meta name="application-name" content="Red Hat OpenShift Dedicated" />
[[ end ]] [[ if eq .ServerFlags.Branding "azure" ]]
<title>Azure Red Hat OpenShift</title>
<meta name="application-name" content="Azure Red Hat OpenShift" />
[[ end ]] [[ if eq .ServerFlags.Branding "rosa" ]]
<title>Red Hat OpenShift Service on AWS</title>
<meta name="application-name" content="Red Hat OpenShift Service on AWS" />
[[ end ]] [[ if eq .ServerFlags.Branding "okd" ]]
<link rel="icon" href="<%= require('./imgs/okd-favicon.png') %>" />
<link
rel="apple-touch-icon-precomposed"
sizes="144x144"
href="<%= require('./imgs/okd-apple-touch-icon-precomposed.png') %>"
/>
<link rel="mask-icon" href="<%= require('./imgs/okd-mask-icon.svg') %>" color="#DB242F" />
<meta name="msapplication-TileColor" content="#000000" />
<meta
name="msapplication-TileImage"
content="<%= require('./imgs/okd-mstile-144x144.png') %>"
/>
[[ else ]]
<link rel="icon" href="<%= require('./imgs/openshift-favicon.png') %>" />
<link
rel="apple-touch-icon-precomposed"
sizes="144x144"
href="<%= require('./imgs/openshift-apple-touch-icon-precomposed.png') %>"
/>
<link rel="mask-icon" href="<%= require('./imgs/openshift-mask-icon.svg') %>" color="#DB242F" />
<meta name="msapplication-TileColor" content="#000000" />
<meta
name="msapplication-TileImage"
content="<%= require('./imgs/openshift-mstile-144x144.png') %>"
/>
[[ end ]] [[ end ]]
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="text/javascript" nonce="[[ .ScriptNonce ]]">
window.SERVER_FLAGS = [[ .ServerFlags ]];
let theme = localStorage.getItem('bridge/theme') || 'systemDefault';
if (theme === 'systemDefault' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
theme = 'dark';
}
if (theme === 'dark') {
document.documentElement.classList.add('pf-v6-theme-dark', 'pf-v5-theme-dark'); // legacy pf-theme-dark class needed for PF5 component styling
}
</script>
</head>
<body>
<noscript>JavaScript must be enabled.</noscript>
<div id="popper-container"></div>
<div id="app"></div>
</body>
</html>