@kadoa/mcp 0.3.3-rc.0 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +194 -139
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54149,188 +54149,206 @@ function renderLoginPage(state, error48) {
|
|
|
54149
54149
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
54150
54150
|
|
|
54151
54151
|
body {
|
|
54152
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
54153
|
-
background:
|
|
54154
|
-
color:
|
|
54155
|
-
min-height:
|
|
54152
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
54153
|
+
background: hsl(0 0% 98%);
|
|
54154
|
+
color: #18181b;
|
|
54155
|
+
min-height: 100dvh;
|
|
54156
54156
|
display: flex;
|
|
54157
54157
|
align-items: center;
|
|
54158
54158
|
justify-content: center;
|
|
54159
|
+
background-image: radial-gradient(circle, #d4d4d8 1px, transparent 1px);
|
|
54160
|
+
background-size: 24px 24px;
|
|
54161
|
+
background-position: center top;
|
|
54159
54162
|
}
|
|
54160
54163
|
|
|
54161
|
-
.
|
|
54164
|
+
.card {
|
|
54162
54165
|
width: 100%;
|
|
54163
|
-
max-width:
|
|
54164
|
-
|
|
54166
|
+
max-width: 460px;
|
|
54167
|
+
background: #fff;
|
|
54168
|
+
padding: 1rem;
|
|
54169
|
+
display: flex;
|
|
54170
|
+
flex-direction: column;
|
|
54171
|
+
gap: 1rem;
|
|
54172
|
+
min-height: 100dvh;
|
|
54165
54173
|
}
|
|
54166
54174
|
|
|
54167
|
-
|
|
54168
|
-
|
|
54169
|
-
margin-bottom: 2rem;
|
|
54175
|
+
@media (min-width: 768px) {
|
|
54176
|
+
.card { padding: 3rem; min-height: auto; border-left: 1px solid #e0e1e5; border-right: 1px solid #e0e1e5; }
|
|
54170
54177
|
}
|
|
54171
54178
|
|
|
54179
|
+
.logo { display: grid; place-content: center; }
|
|
54180
|
+
|
|
54172
54181
|
h1 {
|
|
54173
|
-
font-size:
|
|
54182
|
+
font-size: 20px;
|
|
54174
54183
|
font-weight: 600;
|
|
54175
54184
|
text-align: center;
|
|
54176
|
-
|
|
54177
|
-
color: oklch(0.17 0.02 228);
|
|
54185
|
+
color: #18181b;
|
|
54178
54186
|
}
|
|
54179
54187
|
|
|
54180
|
-
.
|
|
54181
|
-
|
|
54182
|
-
color: oklch(0.56 0.02 228);
|
|
54183
|
-
font-size: 0.875rem;
|
|
54184
|
-
margin-bottom: 1.5rem;
|
|
54185
|
-
}
|
|
54188
|
+
.spacer { height: 0; }
|
|
54189
|
+
@media (min-width: 768px) { .spacer { height: 3rem; } }
|
|
54186
54190
|
|
|
54187
54191
|
.error {
|
|
54188
|
-
background:
|
|
54189
|
-
color:
|
|
54190
|
-
border: 1px solid
|
|
54191
|
-
border-radius:
|
|
54192
|
-
padding: 0.
|
|
54193
|
-
font-size:
|
|
54194
|
-
margin-bottom: 1rem;
|
|
54192
|
+
background: #fef2f2;
|
|
54193
|
+
color: #991b1b;
|
|
54194
|
+
border: 1px solid #fecaca;
|
|
54195
|
+
border-radius: 4px;
|
|
54196
|
+
padding: 0.6rem 0.875rem;
|
|
54197
|
+
font-size: 15px;
|
|
54195
54198
|
}
|
|
54196
54199
|
|
|
54197
|
-
|
|
54200
|
+
/* Buttons — matching KUI default + primary looks */
|
|
54201
|
+
.btn {
|
|
54202
|
+
width: 100%;
|
|
54203
|
+
padding: 0.6em 1em;
|
|
54204
|
+
border-radius: 4px;
|
|
54205
|
+
font-size: 16px;
|
|
54206
|
+
font-weight: 500;
|
|
54207
|
+
cursor: pointer;
|
|
54198
54208
|
display: flex;
|
|
54199
54209
|
align-items: center;
|
|
54200
|
-
|
|
54201
|
-
|
|
54202
|
-
|
|
54210
|
+
justify-content: center;
|
|
54211
|
+
gap: 0.5rem;
|
|
54212
|
+
transition: background 0.15s, border-color 0.15s;
|
|
54213
|
+
text-decoration: none;
|
|
54203
54214
|
}
|
|
54204
54215
|
|
|
54205
|
-
.
|
|
54206
|
-
|
|
54207
|
-
|
|
54208
|
-
border
|
|
54216
|
+
.btn-default {
|
|
54217
|
+
background: #fff;
|
|
54218
|
+
color: #18181b;
|
|
54219
|
+
border: 1px solid #d4d4d8;
|
|
54220
|
+
box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.03), 0 1px 0px 1px rgba(255,255,255,0.5), 0 -1px 0px 1px rgba(0,0,0,0.02);
|
|
54221
|
+
}
|
|
54222
|
+
|
|
54223
|
+
.btn-default:hover {
|
|
54224
|
+
background: rgba(113,113,122,0.1);
|
|
54225
|
+
}
|
|
54226
|
+
|
|
54227
|
+
.btn-primary {
|
|
54228
|
+
background: hsl(212 70% 27%);
|
|
54229
|
+
color: #fff;
|
|
54230
|
+
border: 1px solid hsl(214 70% 23%);
|
|
54231
|
+
box-shadow: inset 0 2px 0 0 rgba(56,189,248,0.2), 0 -1px 0px 1px rgba(0,0,0,0.02);
|
|
54209
54232
|
}
|
|
54210
54233
|
|
|
54211
|
-
.
|
|
54234
|
+
.btn-primary:hover {
|
|
54235
|
+
background: hsl(212 70% 33%);
|
|
54236
|
+
}
|
|
54237
|
+
|
|
54238
|
+
/* OR divider */
|
|
54239
|
+
.line-or {
|
|
54240
|
+
display: flex;
|
|
54241
|
+
align-items: center;
|
|
54242
|
+
gap: 0.5rem;
|
|
54243
|
+
font-weight: 500;
|
|
54244
|
+
color: rgba(24,24,27,0.6);
|
|
54245
|
+
font-size: 14px;
|
|
54246
|
+
margin: 0.5rem 0;
|
|
54247
|
+
}
|
|
54212
54248
|
|
|
54249
|
+
.line-or hr {
|
|
54250
|
+
flex: 1;
|
|
54251
|
+
border: none;
|
|
54252
|
+
border-top: 1px solid rgba(113,113,122,0.15);
|
|
54253
|
+
}
|
|
54254
|
+
|
|
54255
|
+
/* Form inputs — matching KUI input style */
|
|
54213
54256
|
label {
|
|
54214
54257
|
display: block;
|
|
54215
|
-
font-size:
|
|
54258
|
+
font-size: 16px;
|
|
54216
54259
|
font-weight: 500;
|
|
54217
|
-
margin-bottom: 0.
|
|
54218
|
-
color:
|
|
54260
|
+
margin-bottom: 0.25rem;
|
|
54261
|
+
color: #18181b;
|
|
54219
54262
|
}
|
|
54220
54263
|
|
|
54221
54264
|
input[type="email"], input[type="password"] {
|
|
54222
54265
|
width: 100%;
|
|
54223
|
-
padding: 0.
|
|
54224
|
-
border: 1px solid
|
|
54225
|
-
border-radius:
|
|
54226
|
-
font-size:
|
|
54227
|
-
|
|
54228
|
-
color:
|
|
54229
|
-
background:
|
|
54266
|
+
padding: 0.35em 0.5em;
|
|
54267
|
+
border: 1px solid #d4d4d8;
|
|
54268
|
+
border-radius: 4px;
|
|
54269
|
+
font-size: 18px;
|
|
54270
|
+
font-family: inherit;
|
|
54271
|
+
color: #18181b;
|
|
54272
|
+
background: #fff;
|
|
54230
54273
|
outline: none;
|
|
54274
|
+
box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.025);
|
|
54231
54275
|
transition: border-color 0.15s;
|
|
54276
|
+
caret-color: hsl(25 98% 53%);
|
|
54232
54277
|
}
|
|
54233
54278
|
|
|
54234
|
-
input[type="email"]:
|
|
54235
|
-
border-color:
|
|
54279
|
+
input[type="email"]:hover, input[type="password"]:hover {
|
|
54280
|
+
border-color: hsl(31 99% 72%);
|
|
54236
54281
|
}
|
|
54237
54282
|
|
|
54238
|
-
|
|
54239
|
-
|
|
54240
|
-
|
|
54241
|
-
border: 1px solid oklch(0.5 0.02 228 / 0.4);
|
|
54242
|
-
border-radius: 0.3rem;
|
|
54243
|
-
font-size: 15px;
|
|
54244
|
-
font-weight: 500;
|
|
54245
|
-
cursor: pointer;
|
|
54246
|
-
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
|
|
54247
|
-
box-shadow: 0px 1px 1px 0px oklch(0.68 0.01 60.13 / 0.11);
|
|
54248
|
-
display: flex;
|
|
54249
|
-
align-items: center;
|
|
54250
|
-
justify-content: center;
|
|
54251
|
-
gap: 0.5rem;
|
|
54252
|
-
}
|
|
54253
|
-
|
|
54254
|
-
.btn-primary {
|
|
54255
|
-
background: oklch(0.17 0.02 228);
|
|
54256
|
-
color: oklch(1 0 0);
|
|
54257
|
-
border-color: oklch(0.17 0.02 228);
|
|
54283
|
+
input[type="email"]:focus, input[type="password"]:focus {
|
|
54284
|
+
border-color: hsl(25 98% 53%);
|
|
54285
|
+
box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.025), 0 0 0 2px rgba(249,115,22,0.2);
|
|
54258
54286
|
}
|
|
54259
54287
|
|
|
54260
|
-
.
|
|
54288
|
+
.field { margin-bottom: 0.75rem; }
|
|
54261
54289
|
|
|
54262
|
-
.
|
|
54263
|
-
|
|
54264
|
-
|
|
54290
|
+
hr.separator {
|
|
54291
|
+
border: none;
|
|
54292
|
+
border-top: 1px solid rgba(113,113,122,0.15);
|
|
54293
|
+
margin: 0.5rem 0;
|
|
54265
54294
|
}
|
|
54266
54295
|
|
|
54267
|
-
.
|
|
54268
|
-
|
|
54269
|
-
border-color: oklch(0.7 0.18 42);
|
|
54270
|
-
}
|
|
54296
|
+
.google-icon { width: 18px; height: 18px; }
|
|
54297
|
+
.key-icon { width: 16px; height: 16px; }
|
|
54271
54298
|
|
|
54299
|
+
/* Tabs for email/SSO — keep simple, same visual weight */
|
|
54272
54300
|
.tabs {
|
|
54273
|
-
display:
|
|
54274
|
-
margin-bottom: 1.25rem;
|
|
54275
|
-
border-bottom: 1px solid oklch(0.5 0.02 228 / 0.3);
|
|
54301
|
+
display: none;
|
|
54276
54302
|
}
|
|
54277
54303
|
|
|
54278
|
-
.tab {
|
|
54279
|
-
|
|
54280
|
-
|
|
54304
|
+
.tab-content { display: none; }
|
|
54305
|
+
.tab-content.active { display: block; }
|
|
54306
|
+
|
|
54307
|
+
.tab-switch {
|
|
54281
54308
|
text-align: center;
|
|
54282
|
-
|
|
54283
|
-
font-weight: 500;
|
|
54284
|
-
color: oklch(0.56 0.02 228);
|
|
54285
|
-
cursor: pointer;
|
|
54286
|
-
border-bottom: 2px solid transparent;
|
|
54287
|
-
background: none;
|
|
54288
|
-
border-top: none;
|
|
54289
|
-
border-left: none;
|
|
54290
|
-
border-right: none;
|
|
54291
|
-
transition: color 0.15s, border-color 0.15s;
|
|
54309
|
+
margin-top: 0.25rem;
|
|
54292
54310
|
}
|
|
54293
54311
|
|
|
54294
|
-
.tab
|
|
54295
|
-
|
|
54296
|
-
|
|
54312
|
+
.tab-switch a {
|
|
54313
|
+
font-size: 15px;
|
|
54314
|
+
color: #18181b;
|
|
54315
|
+
text-decoration: underline;
|
|
54316
|
+
text-decoration-color: rgba(251,146,60,0.5);
|
|
54317
|
+
text-underline-offset: 2px;
|
|
54318
|
+
cursor: pointer;
|
|
54297
54319
|
}
|
|
54298
54320
|
|
|
54299
|
-
.tab:hover {
|
|
54300
|
-
|
|
54301
|
-
|
|
54302
|
-
.tab-content.active { display: block; }
|
|
54303
|
-
|
|
54304
|
-
.google-icon {
|
|
54305
|
-
width: 18px;
|
|
54306
|
-
height: 18px;
|
|
54321
|
+
.tab-switch a:hover {
|
|
54322
|
+
background: rgba(251,146,60,0.1);
|
|
54323
|
+
border-radius: 2px;
|
|
54307
54324
|
}
|
|
54308
54325
|
</style>
|
|
54309
54326
|
</head>
|
|
54310
54327
|
<body>
|
|
54311
|
-
<div class="
|
|
54328
|
+
<div class="card">
|
|
54329
|
+
<!-- Logo {k} -->
|
|
54312
54330
|
<div class="logo">
|
|
54313
|
-
<svg width="
|
|
54314
|
-
<
|
|
54315
|
-
|
|
54316
|
-
|
|
54317
|
-
|
|
54318
|
-
|
|
54319
|
-
|
|
54320
|
-
<path d="M34.6334 26.308C33.4014 26.308 32.3187 26.0093 31.3854 25.412C30.4521 24.8147 29.7241 23.9653 29.2014 22.864C28.6787 21.7627 28.4174 20.4373 28.4174 18.888C28.4174 17.3573 28.6787 16.0413 29.2014 14.94C29.7241 13.8387 30.4521 12.9987 31.3854 12.42C32.3187 11.8227 33.4014 11.524 34.6334 11.524C35.7721 11.524 36.7894 11.804 37.6854 12.364C38.6001 12.9053 39.1974 13.6427 39.4774 14.576H39.1694L39.5054 11.804H43.5654C43.5094 12.42 43.4534 13.0453 43.3974 13.68C43.3601 14.296 43.3414 14.9027 43.3414 15.5V26H39.1414L39.1134 23.34H39.4494C39.1507 24.236 38.5534 24.9547 37.6574 25.496C36.7614 26.0373 35.7534 26.308 34.6334 26.308ZM35.9214 23.116C36.8921 23.116 37.6761 22.7707 38.2734 22.08C38.8707 21.3893 39.1694 20.3253 39.1694 18.888C39.1694 17.4507 38.8707 16.396 38.2734 15.724C37.6761 15.052 36.8921 14.716 35.9214 14.716C34.9507 14.716 34.1667 15.052 33.5694 15.724C32.9721 16.396 32.6734 17.4507 32.6734 18.888C32.6734 20.3253 32.9627 21.3893 33.5414 22.08C34.1387 22.7707 34.9321 23.116 35.9214 23.116Z" fill="#18181B"/>
|
|
54321
|
-
<path d="M13.736 26V5.392H17.964V17.712H18.02L23.284 11.804H28.324L21.52 19.364V17.824L28.688 26H23.508L18.02 19.84H17.964V26H13.736Z" fill="#18181B"/>
|
|
54322
|
-
</g>
|
|
54323
|
-
<defs><clipPath id="clip0"><rect width="108" height="32" fill="white"/></clipPath></defs>
|
|
54331
|
+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54332
|
+
<path opacity="0.15" d="M25.3196 6.25H14.6804C14.6804 7.49264 13.6596 8.5 12.4005 8.5C11.3808 8.5 10.8312 8.67478 10.5466 8.82497C10.3001 8.95506 10.147 9.11941 10.0189 9.38005C9.85482 9.7141 9.74438 10.1712 9.68281 10.8152C9.62136 11.458 9.61405 12.2133 9.61405 13.125L9.61416 13.3731C9.61532 14.9118 9.61694 17.0733 8.75235 18.8332C8.55109 19.2428 8.30266 19.6357 8 20C8.30266 20.3643 8.55109 20.7572 8.75235 21.1668C9.61694 22.9267 9.61532 25.0882 9.61416 26.6269L9.61405 26.875C9.61405 27.7867 9.62136 28.542 9.68281 29.1848C9.74438 29.8288 9.85482 30.2859 10.0189 30.6199C10.147 30.8806 10.3001 31.0449 10.5466 31.175C10.8312 31.3252 11.3808 31.5 12.4005 31.5C13.6596 31.5 14.6804 32.5074 14.6804 33.75H25.3196C25.3196 32.5074 26.3404 31.5 27.5995 31.5C28.6192 31.5 29.1688 31.3252 29.4534 31.175C29.6999 31.0449 29.853 30.8806 29.9811 30.6199C30.1452 30.2859 30.2556 29.8288 30.3172 29.1848C30.3786 28.542 30.386 27.7867 30.386 26.875L30.3858 26.6269C30.3847 25.0882 30.3831 22.9267 31.2477 21.1668C31.4489 20.7572 31.6973 20.3643 32 20C31.6973 19.6357 31.4489 19.2428 31.2477 18.8332C30.3831 17.0733 30.3847 14.9118 30.3858 13.3731L30.386 13.125C30.386 12.2133 30.3786 11.458 30.3172 10.8152C30.2556 10.1712 30.1452 9.7141 29.9811 9.38005C29.853 9.11941 29.6999 8.95506 29.4534 8.82497C29.1688 8.67478 28.6192 8.5 27.5995 8.5C26.3404 8.5 25.3196 7.49264 25.3196 6.25Z" fill="#fd7412"/>
|
|
54333
|
+
<path d="M12.5 6.25C2.5 6.25 12.5 20 2.5 20C12.5 20 2.5 33.75 12.5 33.75" stroke="#fd7412" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
|
|
54334
|
+
<path d="M16 10V29" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
|
|
54335
|
+
<path d="M27.5 6.25C37.5 6.25 27.5 20 37.5 20C27.5 20 37.5 33.75 27.5 33.75" stroke="#fd7412" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
|
|
54336
|
+
<path d="M16 23L25 18" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
|
|
54337
|
+
<path d="M25 29L16 23" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
|
|
54324
54338
|
</svg>
|
|
54325
54339
|
</div>
|
|
54340
|
+
|
|
54341
|
+
<!-- Heading -->
|
|
54326
54342
|
<h1>Sign in to Kadoa</h1>
|
|
54327
|
-
|
|
54343
|
+
|
|
54344
|
+
<div class="spacer"></div>
|
|
54345
|
+
|
|
54328
54346
|
${errorHtml}
|
|
54329
54347
|
|
|
54330
|
-
<!-- Google -->
|
|
54348
|
+
<!-- Continue with Google -->
|
|
54331
54349
|
<form method="POST" action="/auth/google">
|
|
54332
54350
|
<input type="hidden" name="state" value="${escapeHtml(state)}" />
|
|
54333
|
-
<button type="submit" class="btn btn-
|
|
54351
|
+
<button type="submit" class="btn btn-default">
|
|
54334
54352
|
<svg class="google-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
54335
54353
|
<path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"/>
|
|
54336
54354
|
<path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/>
|
|
@@ -54341,44 +54359,81 @@ function renderLoginPage(state, error48) {
|
|
|
54341
54359
|
</button>
|
|
54342
54360
|
</form>
|
|
54343
54361
|
|
|
54344
|
-
|
|
54362
|
+
<!-- Continue with SSO -->
|
|
54363
|
+
<div id="sso-button-wrapper">
|
|
54364
|
+
<form method="POST" action="/auth/sso" id="sso-direct-form" style="display:none">
|
|
54365
|
+
<input type="hidden" name="state" value="${escapeHtml(state)}" />
|
|
54366
|
+
<input type="hidden" name="email" id="sso-email-hidden" />
|
|
54367
|
+
</form>
|
|
54368
|
+
<button type="button" class="btn btn-default" id="sso-toggle-btn">
|
|
54369
|
+
<svg class="key-icon" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54370
|
+
<path d="M10 1a5 5 0 0 0-4.546 7.066l-4.161 4.16a.5.5 0 0 0-.146.354V14.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V14h1a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .354-.146l.94-.94A5 5 0 1 0 10 1zm1.5 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill="currentColor"/>
|
|
54371
|
+
</svg>
|
|
54372
|
+
Continue with SSO
|
|
54373
|
+
</button>
|
|
54374
|
+
</div>
|
|
54345
54375
|
|
|
54346
|
-
<!--
|
|
54347
|
-
<div class="
|
|
54348
|
-
<
|
|
54349
|
-
|
|
54376
|
+
<!-- OR divider -->
|
|
54377
|
+
<div class="line-or">
|
|
54378
|
+
<hr />
|
|
54379
|
+
OR
|
|
54380
|
+
<hr />
|
|
54350
54381
|
</div>
|
|
54351
54382
|
|
|
54352
|
-
<!-- Email + Password
|
|
54383
|
+
<!-- Email + Password form -->
|
|
54353
54384
|
<div class="tab-content active" id="tab-email">
|
|
54354
54385
|
<form method="POST" action="/auth/login">
|
|
54355
54386
|
<input type="hidden" name="state" value="${escapeHtml(state)}" />
|
|
54356
|
-
<
|
|
54357
|
-
|
|
54358
|
-
|
|
54359
|
-
|
|
54360
|
-
<
|
|
54387
|
+
<div class="field">
|
|
54388
|
+
<label for="email">Sign in with email:</label>
|
|
54389
|
+
<input type="email" id="email" name="email" required autocomplete="email" />
|
|
54390
|
+
</div>
|
|
54391
|
+
<div class="field">
|
|
54392
|
+
<label for="password">Your password:</label>
|
|
54393
|
+
<input type="password" id="password" name="password" required autocomplete="current-password" />
|
|
54394
|
+
</div>
|
|
54395
|
+
<button type="submit" class="btn btn-primary">Continue</button>
|
|
54361
54396
|
</form>
|
|
54362
54397
|
</div>
|
|
54363
54398
|
|
|
54364
|
-
<!-- SSO
|
|
54399
|
+
<!-- SSO form (shown when "Continue with SSO" is clicked) -->
|
|
54365
54400
|
<div class="tab-content" id="tab-sso">
|
|
54366
54401
|
<form method="POST" action="/auth/sso">
|
|
54367
54402
|
<input type="hidden" name="state" value="${escapeHtml(state)}" />
|
|
54368
|
-
<
|
|
54369
|
-
|
|
54370
|
-
|
|
54403
|
+
<div class="field">
|
|
54404
|
+
<label for="sso-email">Work email:</label>
|
|
54405
|
+
<input type="email" id="sso-email" name="email" required autocomplete="email" />
|
|
54406
|
+
</div>
|
|
54407
|
+
<button type="submit" class="btn btn-primary">Continue with SSO</button>
|
|
54371
54408
|
</form>
|
|
54409
|
+
<div class="tab-switch">
|
|
54410
|
+
<a id="back-to-email">Sign in with email instead</a>
|
|
54411
|
+
</div>
|
|
54372
54412
|
</div>
|
|
54373
54413
|
|
|
54414
|
+
<div style="flex:1"></div>
|
|
54415
|
+
|
|
54374
54416
|
<script>
|
|
54375
|
-
document.
|
|
54376
|
-
|
|
54377
|
-
|
|
54378
|
-
|
|
54379
|
-
|
|
54380
|
-
|
|
54381
|
-
|
|
54417
|
+
var ssoBtn = document.getElementById('sso-toggle-btn');
|
|
54418
|
+
var tabEmail = document.getElementById('tab-email');
|
|
54419
|
+
var tabSso = document.getElementById('tab-sso');
|
|
54420
|
+
var ssoWrapper = document.getElementById('sso-button-wrapper');
|
|
54421
|
+
var lineOr = document.querySelector('.line-or');
|
|
54422
|
+
var backLink = document.getElementById('back-to-email');
|
|
54423
|
+
|
|
54424
|
+
ssoBtn.addEventListener('click', function() {
|
|
54425
|
+
tabEmail.classList.remove('active');
|
|
54426
|
+
tabSso.classList.add('active');
|
|
54427
|
+
ssoWrapper.style.display = 'none';
|
|
54428
|
+
lineOr.style.display = 'none';
|
|
54429
|
+
document.getElementById('sso-email').focus();
|
|
54430
|
+
});
|
|
54431
|
+
|
|
54432
|
+
backLink.addEventListener('click', function() {
|
|
54433
|
+
tabSso.classList.remove('active');
|
|
54434
|
+
tabEmail.classList.add('active');
|
|
54435
|
+
ssoWrapper.style.display = '';
|
|
54436
|
+
lineOr.style.display = '';
|
|
54382
54437
|
});
|
|
54383
54438
|
</script>
|
|
54384
54439
|
</div>
|