diff --git a/bizmatch/package.json b/bizmatch/package.json index f5cd830..3da7020 100644 --- a/bizmatch/package.json +++ b/bizmatch/package.json @@ -20,6 +20,7 @@ "@angular/core": "^18.1.3", "@angular/fire": "^18.0.1", "@angular/forms": "^18.1.3", + "@angular/google-maps": "^18.2.14", "@angular/platform-browser": "^18.1.3", "@angular/platform-browser-dynamic": "^18.1.3", "@angular/platform-server": "^18.1.3", diff --git a/bizmatch/src/app/app.component.html b/bizmatch/src/app/app.component.html index 6b0901e..d861bbd 100644 --- a/bizmatch/src/app/app.component.html +++ b/bizmatch/src/app/app.component.html @@ -6,7 +6,6 @@
- diff --git a/bizmatch/src/app/app.component.ts b/bizmatch/src/app/app.component.ts index 4dc0bdf..f23989f 100644 --- a/bizmatch/src/app/app.component.ts +++ b/bizmatch/src/app/app.component.ts @@ -43,38 +43,11 @@ export class AppComponent { while (currentRoute.children[0] !== undefined) { currentRoute = currentRoute.children[0]; } - // Hier haben Sie Zugriff auf den aktuellen Route-Pfad this.actualRoute = currentRoute.snapshot.url[0].path; }); } - ngOnInit() { - // this.keycloakService.keycloakEvents$.subscribe({ - // next: event => { - // if (event.type === KeycloakEventType.OnTokenExpired) { - // this.handleTokenExpiration(); - // } - // }, - // }); - } - // private async handleTokenExpiration(): Promise { - // try { - // // Versuche, den Token zu erneuern - // const refreshed = await this.keycloakService.updateToken(); - // if (!refreshed) { - // // Wenn der Token nicht erneuert werden kann, leite zur Login-Seite weiter - // this.keycloakService.login({ - // redirectUri: window.location.href, // oder eine andere Seite - // }); - // } - // } catch (error) { - // if (error.error === 'invalid_grant' && error.error_description === 'Token is not active') { - // // Hier wird der Fehler "invalid_grant" abgefangen - // this.keycloakService.login({ - // redirectUri: window.location.href, - // }); - // } - // } - // } + ngOnInit() {} + @HostListener('window:keydown', ['$event']) handleKeyboardEvent(event: KeyboardEvent) { if (event.shiftKey && event.ctrlKey && event.key === 'V') { diff --git a/bizmatch/src/app/app.routes.ts b/bizmatch/src/app/app.routes.ts index 3b0bdd6..f3a96f2 100644 --- a/bizmatch/src/app/app.routes.ts +++ b/bizmatch/src/app/app.routes.ts @@ -28,17 +28,14 @@ export const routes: Routes = [ { path: 'businessListings', component: BusinessListingsComponent, - runGuardsAndResolvers: 'always', }, { path: 'commercialPropertyListings', component: CommercialPropertyListingsComponent, - runGuardsAndResolvers: 'always', }, { path: 'brokerListings', component: BrokerListingsComponent, - runGuardsAndResolvers: 'always', }, { path: 'home', diff --git a/bizmatch/src/app/components/footer/footer.component.html b/bizmatch/src/app/components/footer/footer.component.html index 4d6f7fe..88ceeac 100644 --- a/bizmatch/src/app/components/footer/footer.component.html +++ b/bizmatch/src/app/components/footer/footer.component.html @@ -1,29 +1,79 @@ -