From ee19dc7c29f6431630f070f7ac024e87db499b24 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Wed, 12 Feb 2025 11:38:08 +0100 Subject: [PATCH] style: format code with prettier --- frontend/src/app/app.config.ts | 13 +++++++------ frontend/src/app/app.routes.ts | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/app.config.ts b/frontend/src/app/app.config.ts index fad1cf3..9fcf41f 100644 --- a/frontend/src/app/app.config.ts +++ b/frontend/src/app/app.config.ts @@ -3,15 +3,16 @@ import { ApplicationConfig, provideExperimentalZonelessChangeDetection, } from '@angular/core'; -import {provideRouter} from '@angular/router'; +import { provideRouter } from '@angular/router'; -import {routes} from './app.routes'; +import { routes } from './app.routes'; import { KeycloakAngularModule, - KeycloakBearerInterceptor, KeycloakEventType, + KeycloakBearerInterceptor, + KeycloakEventType, KeycloakService, } from 'keycloak-angular'; -import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http'; +import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; export const initializeKeycloak = (keycloak: KeycloakService) => async () => { keycloak.keycloakEvents$.subscribe({ @@ -19,7 +20,7 @@ export const initializeKeycloak = (keycloak: KeycloakService) => async () => { if (e.type === KeycloakEventType.OnAuthSuccess) { alert('Login erfolreich'); } - } + }, }); return await keycloak.init({ @@ -36,7 +37,7 @@ export const initializeKeycloak = (keycloak: KeycloakService) => async () => { redirectUri: 'http://localhost:4200', }, }); -} +}; function initializeApp(keycloak: KeycloakService): () => Promise { return () => initializeKeycloak(keycloak)(); diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 2d53d28..02b958c 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -12,5 +12,5 @@ export const routes: Routes = [ path: 'home', component: HomepageComponent, canActivate: [authGuard], - } + }, ];