From e592a0805a94ee683cad94dafcfba874928c8888 Mon Sep 17 00:00:00 2001 From: kevinpauer Date: Wed, 6 Apr 2022 17:04:38 +0200 Subject: [PATCH 1/2] Fix placeholder bug and improve code quality --- frontend/src/app/Helpers/helper.service.ts | 3 ++- .../src/app/Views/bot-settings/bot-settings.component.html | 2 +- .../src/app/Views/bot-settings/bot-settings.component.ts | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/Helpers/helper.service.ts b/frontend/src/app/Helpers/helper.service.ts index 24d485e..60a57c6 100644 --- a/frontend/src/app/Helpers/helper.service.ts +++ b/frontend/src/app/Helpers/helper.service.ts @@ -28,7 +28,8 @@ export class HelperService { return shares; } - formatKeywordsData(keywords: Keyword[]) { + formatKeywordsData(): Keyword[] { + var keywords: Keyword[] = []; this.botService.getKeywords().subscribe((result) => { var data = JSON.parse(result); for (let i = 0; i < data.data.length; i++) { diff --git a/frontend/src/app/Views/bot-settings/bot-settings.component.html b/frontend/src/app/Views/bot-settings/bot-settings.component.html index cee4a8a..8318bb9 100644 --- a/frontend/src/app/Views/bot-settings/bot-settings.component.html +++ b/frontend/src/app/Views/bot-settings/bot-settings.component.html @@ -44,7 +44,7 @@ { From 7ada44ea2343bb83bc128b5b3816b4ab031b594c Mon Sep 17 00:00:00 2001 From: kevinpauer Date: Wed, 6 Apr 2022 19:44:09 +0200 Subject: [PATCH 2/2] Add depot mechanics2 --- .../Views/dashboard/dashboard.component.html | 47 +++++++++++++++++-- .../Views/dashboard/dashboard.component.scss | 34 ++++++++++++-- .../Views/dashboard/dashboard.component.ts | 22 +++++++-- 3 files changed, 89 insertions(+), 14 deletions(-) diff --git a/frontend/src/app/Views/dashboard/dashboard.component.html b/frontend/src/app/Views/dashboard/dashboard.component.html index b52475f..509ebbe 100644 --- a/frontend/src/app/Views/dashboard/dashboard.component.html +++ b/frontend/src/app/Views/dashboard/dashboard.component.html @@ -3,7 +3,7 @@
-
Aktienübersicht
+
Stocks
@@ -51,16 +51,55 @@
-
Depotübersicht
+
Depot
- + +
+
+
+
+

Portfolio Value

+
+
+
+
+

Portfolio Cost

+
+
+
+
+

Portfolio Profit

+
+
+
+
+
+
+ savings{{ depotCurrentValue.toFixed(2) }} +
+
+ paid{{ depotCost.toFixed(2) }} +
+
+ account_balance{{ profit.toFixed(2) }} +
+
+
+
-
Transaktionen
+
Transactions