Thomas Kaul
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
4 additions and
13 deletions
-
apps/client/src/app/app.routes.ts
-
apps/client/src/app/pages/webauthn/webauthn-page.component.ts
-
apps/client/src/app/pages/webauthn/webauthn-page.html
-
libs/common/src/lib/routes/interfaces/internal-route.interface.ts
-
libs/common/src/lib/routes/routes.ts
|
|
|
@ -128,8 +128,7 @@ export const routes: Routes = [ |
|
|
|
import('./pages/webauthn/webauthn-page.component').then( |
|
|
|
(c) => c.GfWebauthnPageComponent |
|
|
|
), |
|
|
|
path: internalRoutes.webauthn.path, |
|
|
|
title: internalRoutes.webauthn.title |
|
|
|
path: internalRoutes.webauthn.path |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: internalRoutes.zen.path, |
|
|
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; |
|
|
|
import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service'; |
|
|
|
import { GfLogoComponent } from '@ghostfolio/ui/logo'; |
|
|
|
|
|
|
|
import { |
|
|
|
ChangeDetectorRef, |
|
|
|
@ -15,7 +14,7 @@ import { Router } from '@angular/router'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
host: { class: 'page' }, |
|
|
|
imports: [GfLogoComponent, MatButtonModule, MatProgressSpinnerModule], |
|
|
|
imports: [MatButtonModule, MatProgressSpinnerModule], |
|
|
|
selector: 'gf-webauthn-page', |
|
|
|
styleUrls: ['./webauthn-page.scss'], |
|
|
|
templateUrl: './webauthn-page.html' |
|
|
|
|
|
|
|
@ -1,12 +1,6 @@ |
|
|
|
<div class="container"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col"> |
|
|
|
<div |
|
|
|
class="align-items-center d-flex flex-column justify-content-center mb-4 w-100" |
|
|
|
> |
|
|
|
<gf-logo size="medium" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
@if (!hasError) { |
|
|
|
<div class="col d-flex justify-content-center"> |
|
|
|
<mat-spinner [diameter]="20" /> |
|
|
|
|
|
|
|
@ -5,5 +5,5 @@ export interface InternalRoute { |
|
|
|
path?: string; |
|
|
|
routerLink: string[]; |
|
|
|
subRoutes?: Record<string, InternalRoute>; |
|
|
|
title: string; |
|
|
|
title?: string; |
|
|
|
} |
|
|
|
|
|
|
|
@ -153,8 +153,7 @@ export const internalRoutes = { |
|
|
|
webauthn: { |
|
|
|
excludeFromAssistant: true, |
|
|
|
path: 'webauthn', |
|
|
|
routerLink: ['/webauthn'], |
|
|
|
title: $localize`Sign in` |
|
|
|
routerLink: ['/webauthn'] |
|
|
|
}, |
|
|
|
zen: { |
|
|
|
excludeFromAssistant: true, |
|
|
|
|