style: Run linters
This commit is contained in:
parent
3fc290ecd1
commit
a0751ae3c6
@ -51,6 +51,7 @@ export const appConfig: ApplicationConfig = {
|
|||||||
provide: HTTP_INTERCEPTORS,
|
provide: HTTP_INTERCEPTORS,
|
||||||
useClass: KeycloakBearerInterceptor,
|
useClass: KeycloakBearerInterceptor,
|
||||||
multi: true,
|
multi: true,
|
||||||
}, provideAnimationsAsync(),
|
},
|
||||||
|
provideAnimationsAsync(),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { Routes } from '@angular/router';
|
import {Routes} from '@angular/router';
|
||||||
import { LandingComponent } from './feature/landing/landing.component';
|
import {LandingComponent} from './feature/landing/landing.component';
|
||||||
import { HomeComponent } from './feature/home/home.component';
|
import {HomeComponent} from './feature/home/home.component';
|
||||||
import { authGuard } from './auth.guard';
|
import {authGuard} from './auth.guard';
|
||||||
import { DepositComponent } from './feature/deposit/deposit.component';
|
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
<h2 mat-dialog-title class="text-xl font-semibold">Guthaben aufladen</h2>
|
<h2 mat-dialog-title class="text-xl font-semibold">Guthaben aufladen</h2>
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
<form [formGroup]="form">
|
<form [formGroup]="form">
|
||||||
<div *ngIf="errorMsg">
|
<div *ngIf="errorMsg">
|
||||||
{{ errorMsg }}
|
{{ errorMsg }}
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<label for="amount">Betrag</label>
|
<label for="amount">Betrag</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="amount"
|
id="amount"
|
||||||
formControlName="amount"
|
formControlName="amount"
|
||||||
class="w-full px-2 py-1 bg-white text-black"
|
class="w-full px-2 py-1 bg-white text-black"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
<mat-dialog-actions>
|
<mat-dialog-actions>
|
||||||
<button mat-flat-button (click)="closeDialog()">Abbrechen</button>
|
<button mat-flat-button (click)="closeDialog()">Abbrechen</button>
|
||||||
<button mat-flat-button (click)="submit()">Einzahlen</button>
|
<button mat-flat-button (click)="submit()">Einzahlen</button>
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
|
@ -10,14 +10,22 @@ import {
|
|||||||
MatDialogClose,
|
MatDialogClose,
|
||||||
MatDialogContent,
|
MatDialogContent,
|
||||||
MatDialogRef,
|
MatDialogRef,
|
||||||
MatDialogTitle
|
MatDialogTitle,
|
||||||
} from "@angular/material/dialog";
|
} from '@angular/material/dialog';
|
||||||
import {MatButton} from "@angular/material/button";
|
import { MatButton } from '@angular/material/button';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deposit',
|
selector: 'app-deposit',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [ReactiveFormsModule, NgIf, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose, MatButton],
|
imports: [
|
||||||
|
ReactiveFormsModule,
|
||||||
|
NgIf,
|
||||||
|
MatDialogTitle,
|
||||||
|
MatDialogContent,
|
||||||
|
MatDialogActions,
|
||||||
|
MatDialogClose,
|
||||||
|
MatButton,
|
||||||
|
],
|
||||||
templateUrl: './deposit.component.html',
|
templateUrl: './deposit.component.html',
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
|
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
||||||
import {KeycloakService} from 'keycloak-angular';
|
import { KeycloakService } from 'keycloak-angular';
|
||||||
import {MatDialog} from "@angular/material/dialog";
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import {DepositComponent} from "../deposit/deposit.component";
|
import { DepositComponent } from '../deposit/deposit.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-homepage',
|
selector: 'app-homepage',
|
||||||
|
@ -6,9 +6,12 @@
|
|||||||
<base href="/" />
|
<base href="/" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
<link
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
|
||||||
</head>
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
<body class="mat-typography">
|
<body class="mat-typography">
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user