From 6581b621fe2e9336b766954787f7be29a2f8fcb4 Mon Sep 17 00:00:00 2001 From: Tim Herbst Date: Tue, 22 Dec 2020 07:55:54 +0100 Subject: [PATCH] change api-url to it-schwarz due to local-errors --- .../project-3/frontend/src/app/map/pop-up/pop-up.component.ts | 4 ++-- projects/project-3/frontend/src/app/service/pop-up.service.ts | 4 ++-- projects/project-3/frontend/src/environments/environment.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/project-3/frontend/src/app/map/pop-up/pop-up.component.ts b/projects/project-3/frontend/src/app/map/pop-up/pop-up.component.ts index f4ddf59..371813b 100644 --- a/projects/project-3/frontend/src/app/map/pop-up/pop-up.component.ts +++ b/projects/project-3/frontend/src/app/map/pop-up/pop-up.component.ts @@ -1,5 +1,5 @@ import {Component, OnInit} from '@angular/core'; -import {IBikeStation} from '../../service/domain/bike-station'; +import {IMapBikePoint} from '../../service/domain/map-bike-point'; import {Router} from '@angular/router'; import {ApexChart, ApexNonAxisChartSeries, ApexPlotOptions} from 'ng-apexcharts'; @@ -18,7 +18,7 @@ export type ChartOptions = { styleUrls: ['./pop-up.component.scss'] }) export class PopUpComponent implements OnInit { - station: IBikeStation; + station: IMapBikePoint; public chartOptions: Partial; constructor(private router: Router) { diff --git a/projects/project-3/frontend/src/app/service/pop-up.service.ts b/projects/project-3/frontend/src/app/service/pop-up.service.ts index 4fc8984..9ff3161 100644 --- a/projects/project-3/frontend/src/app/service/pop-up.service.ts +++ b/projects/project-3/frontend/src/app/service/pop-up.service.ts @@ -1,5 +1,5 @@ import {ComponentFactoryResolver, Injectable, Injector} from '@angular/core'; -import {IBikeStation} from './domain/bike-station'; +import {IMapBikePoint} from './domain/map-bike-point'; import {PopUpComponent} from '../map/pop-up/pop-up.component'; @Injectable({ @@ -13,7 +13,7 @@ export class PopUpService { ) { } - makeAvailabilityPopUp(station: IBikeStation): any { + makeAvailabilityPopUp(station: IMapBikePoint): any { const factory = this.componentFactoryResolver.resolveComponentFactory(PopUpComponent); const component = factory.create(this.injector); diff --git a/projects/project-3/frontend/src/environments/environment.ts b/projects/project-3/frontend/src/environments/environment.ts index 8b0a1c5..b0c73a0 100644 --- a/projects/project-3/frontend/src/environments/environment.ts +++ b/projects/project-3/frontend/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - apiUrl: 'http://localhost:8080/api/' + apiUrl: 'https://it-schwarz.net/api/' }; /*