-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (171 loc) · 7.82 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Auth Playground</title>
<script src="https://unpkg.com/vue@3.0.4"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.12/auth0-spa-js.production.js"></script>
<script src="https://cdn.auth0.com/js/auth0/9.18.0/auth0.min.js"></script>
<link rel="modulepreload" href="https://unpkg.com/vue@3.0.4/dist/vue.runtime.esm-browser.js">
<link rel="modulepreload" href="https://unpkg.com/htm@3.0.4/dist/htm.module.js?module">
<style>
body {
font-family: Menlo, Monaco, monospace;
}
.playground {
width: 70%;
max-width: 986px;
margin: 0 auto 20px auto;
}
.step {
position: relative;
padding-bottom: 55px;
}
.step::before {
content: '';
display: inline-block;
height: 100%;
width: 1px;
background-color: #f8931d;
position: absolute;
left: 22px;
top: 44px;
transition: all 1s;
}
.step .step-number {
display: inline-block;
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #f8931d;
background-color: #fff;
text-align: center;
line-height: 40px;
font-size: 18px;
color: #f8931d;
transition: all 1s;
}
.step .step-content {
display: block;
padding-left: 65px;
}
.step .text {
padding: 10px 0;
}
.request .title {
border: 1px #888 solid;
font-weight: bold;
padding: 20px;
}
.request .block, .block {
background-color:#222228;
color:#fff;
padding: 20px;
overflow-x: hidden;
}
.request .block .param {
padding-left: 20px;
width: max-content;
}
.request .block a {
color: #44c7f4;
text-decoration: none;
}
.request .block a:hover::after {
content: 'EDIT';
padding-left: 20px;
color: #fff;
}
.request .body {
overflow-x: scroll
}
.request .body::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}
.request .body::-webkit-scrollbar
{
width: 6px;
height: 6px;
background-color: #F5F5F5;
}
.request .body::-webkit-scrollbar-thumb
{
background-color: #000000;
}
button {
padding: 15px;
}
button.jwt {
float: right;
position: relative;
border-radius: 50px;
padding: 8px 10px;
padding-left: 38px;
font-weight: bold;
text-transform: uppercase;
background-color: #000;
color: #fff;
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTlweCIgaGVpZ2h0PSIxOXB4IiB2aWV3Qm94PSIwIDAgMTkgMTkiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iR3JvdXAtQ29weS00IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cG9seWdvbiBpZD0iU2hhcGUiIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iMTAuODc3MzY5MyA1LjA4NzU4NTM4IDEwLjg3NzM2OTMgMS43MDUzMDI1N2UtMTMgOC4wNDQ3MjEwOCAxLjcwNTMwMjU3ZS0xMyA4LjA0NDc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5MyA3LjQ2MTc5MTg4Ij48L3BvbHlnb24+CiAgICA8L2c+Cjwvc3ZnPgo=);
background-position: 10px center;
background-repeat: no-repeat;
background-size: 19px 19px;
}
.modal {
display: flex;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.modal .dialog {
margin: auto auto;
position: relative;
background-color: #fff;
box-shadow: 0 0 0 9999px rgb(0 0 0 / 50%);
-webkit-box-shadow: 0 0 0 9999px rgb(0 0 0 / 50%);
-moz-box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);;
}
@media only screen and (max-width: 728px) {
.playground {
width: 100%;
}
.step .step-content {
padding-left: 52px;
}
}
@media only screen and (min-width: 728px) and (max-width: 868px) {
.playground {
width: 90%;
}
}
@media only screen and (min-width: 868px) and (max-width: 968px) {
.playground {
width: 80%;
}
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module">
import App from './src/app.js';
window.__callbackKey = `tfso:auth-playground:temp_qp`
if(window.opener && window.opener.app) {
// redirect from auth-provider
window.localStorage.setItem(window.__callbackKey, (/code|token|error/.test(window.location.hash)) ? window.location.hash.substring(1) : window.location.search.substring(1))
window.close()
}
else {
// https://github.com/maoberlehner/goodbye-webpack-building-vue-applications-without-webpack
const application = Vue.createApp(App)
window.app = application.mount('#app');
}
</script>
</body>
</html>