From 32540659d5069ed6481fff6e4819dd99d8be0ec9 Mon Sep 17 00:00:00 2001 From: kevinpauer Date: Thu, 17 Mar 2022 18:03:27 +0100 Subject: [PATCH] Change API for user --- frontend/src/app/Services/auth.service.ts | 2 +- .../Views/dashboard/dashboard.component.ts | 10 +++++++++ .../app/Views/header/header.component.html | 7 ------ .../src/app/Views/login/login.component.html | 1 + .../src/app/Views/login/login.component.scss | 5 +++++ .../Views/register/register.component.html | 1 + .../Views/register/register.component.scss | 5 +++++ frontend/src/app/app.component.ts | 22 +++++++++---------- frontend/src/styles.scss | 1 + 9 files changed, 35 insertions(+), 19 deletions(-) diff --git a/frontend/src/app/Services/auth.service.ts b/frontend/src/app/Services/auth.service.ts index 8b4a90f..db051dc 100644 --- a/frontend/src/app/Services/auth.service.ts +++ b/frontend/src/app/Services/auth.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; -const AUTH_API = 'https://aktienbot.flokaiser.com/api/'; +const AUTH_API = 'https://aktienbot.flokaiser.com/api/user'; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }), }; diff --git a/frontend/src/app/Views/dashboard/dashboard.component.ts b/frontend/src/app/Views/dashboard/dashboard.component.ts index d4ac0dd..5752606 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.ts +++ b/frontend/src/app/Views/dashboard/dashboard.component.ts @@ -7,6 +7,16 @@ export interface PeriodicElement { symbol: string; } +export interface Stock { + symbol: string; + count: Float32Array; + lastTransaction: Date; + boughtPrice: Float32Array; + currentPrice: Float32Array; +} + +//symbol count lastTransaction boughtPrice currentPrice(+?) + const ELEMENT_DATA: PeriodicElement[] = [ { position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H' }, { position: 2, name: 'Helium', weight: 4.0026, symbol: 'He' }, diff --git a/frontend/src/app/Views/header/header.component.html b/frontend/src/app/Views/header/header.component.html index 7588ebb..531c85e 100644 --- a/frontend/src/app/Views/header/header.component.html +++ b/frontend/src/app/Views/header/header.component.html @@ -1,11 +1,4 @@ - Aktienbot