Browse Source

Task/simplify webauthn page (#7305)

Simplify webauthn page
pull/6947/merge
Thomas Kaul 2 days ago
committed by GitHub
parent
commit
d0d458347d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/client/src/app/app.routes.ts
  2. 3
      apps/client/src/app/pages/webauthn/webauthn-page.component.ts
  3. 6
      apps/client/src/app/pages/webauthn/webauthn-page.html
  4. 2
      libs/common/src/lib/routes/interfaces/internal-route.interface.ts
  5. 3
      libs/common/src/lib/routes/routes.ts

3
apps/client/src/app/app.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,

3
apps/client/src/app/pages/webauthn/webauthn-page.component.ts

@ -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'

6
apps/client/src/app/pages/webauthn/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" />

2
libs/common/src/lib/routes/interfaces/internal-route.interface.ts

@ -5,5 +5,5 @@ export interface InternalRoute {
path?: string;
routerLink: string[];
subRoutes?: Record<string, InternalRoute>;
title: string;
title?: string;
}

3
libs/common/src/lib/routes/routes.ts

@ -153,8 +153,7 @@ export const internalRoutes = {
webauthn: {
excludeFromAssistant: true,
path: 'webauthn',
routerLink: ['/webauthn'],
title: $localize`Sign in`
routerLink: ['/webauthn']
},
zen: {
excludeFromAssistant: true,

Loading…
Cancel
Save