-
Notifications
You must be signed in to change notification settings - Fork 1
/
html.go
86 lines (75 loc) · 3.47 KB
/
html.go
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
package api
const succesHTML = `<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css" />
<link rel="stylesheet" href="https://unpkg.com/carbon-components/css/carbon-components.min.css">
<style>
/* Suppress custom element until styles are loaded */
bx-header:not(:defined) {
display: none;
}
#app {
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
width: 100%;
margin-top: 2rem;
}
</style>
<script type="module" src="https://1.www.s81c.com/common/carbon/web-components/tag/latest/ui-shell.min.js"></script>
<script type="module" src=" https://unpkg.com/carbon-components/scripts/carbon-components.min.js"></script>
<script type="module"
src="https://1.www.s81c.com/common/carbon/web-components/tag/latest/notification.min.js"></script>
</head>
<body>
<div id="app">
<bx-header aria-label="IBM Platform Name">
<bx-header-menu-button button-label-active="Close menu"
button-label-inactive="Open menu"></bx-header-menu-button>
<bx-header-name href="javascript:void 0" prefix="IBM">Technology Zone</bx-header-name>
</bx-header>
<main class="bx--content bx-ce-demo-devenv--ui-shell-content">
<bx-inline-notification style="min-width: 30rem; margin-bottom: .5rem" hide-close-button kind="success"
title="ITZCLI Login Success!"
subtitle="Hello {{.Preferredfirstname}} {{.Preferredlastname}}! You are now authenticated with ITZCLI. You may close this browser and return to the terminal.">
</bx-inline-notification>
</main>
</div>
</body>
</html>`
const errorHTML = `<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css" />
<link rel="stylesheet" href="https://unpkg.com/carbon-components/css/carbon-components.min.css">
<style>
/* Suppress custom element until styles are loaded */
bx-header:not(:defined) {
display: none;
}
#app {
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
width: 100%;
margin-top: 2rem;
}
</style>
<script type="module" src="https://1.www.s81c.com/common/carbon/web-components/tag/latest/ui-shell.min.js"></script>
<script type="module" src=" https://unpkg.com/carbon-components/scripts/carbon-components.min.js"></script>
<script type="module"
src="https://1.www.s81c.com/common/carbon/web-components/tag/latest/notification.min.js"></script>
</head>
<body>
<div id="app">
<bx-header aria-label="IBM Platform Name">
<bx-header-menu-button button-label-active="Close menu"
button-label-inactive="Open menu"></bx-header-menu-button>
<bx-header-name href="javascript:void 0" prefix="IBM">Technology Zone</bx-header-name>
</bx-header>
<main class="bx--content bx-ce-demo-devenv--ui-shell-content">
<bx-inline-notification style="min-width: 30rem; margin-bottom: .5rem" hide-close-button kind="error"
title="ITZCLI Login ERROR!"
subtitle="Error trying to login via the CLI. Please close the browser and try again from the terminal.">
</bx-inline-notification>
</main>
</div>
</body>
</html>`