From 09de5294435b183fb51111fcb1f8f7f0f986520e Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 8 Mar 2022 04:21:47 +0100 Subject: [PATCH 01/12] feat: Use Vue Filter for Amounts --- .../components/DecayInformations/DecayInformation-Short.vue | 2 +- .../src/components/Transactions/TransactionCreation.vue | 2 +- frontend/src/components/Transactions/TransactionDecay.vue | 3 +-- frontend/src/components/Transactions/TransactionReceive.vue | 2 +- frontend/src/components/Transactions/TransactionSend.vue | 3 +-- frontend/src/filters/amount.js | 6 ++++++ frontend/src/main.js | 2 ++ 7 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 frontend/src/filters/amount.js diff --git a/frontend/src/components/DecayInformations/DecayInformation-Short.vue b/frontend/src/components/DecayInformations/DecayInformation-Short.vue index 8dba700d5..990ded29b 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-Short.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-Short.vue @@ -1,6 +1,6 @@ From 2e75ceb73e4ce580b7c96ed4a8a24442065c3f12 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 8 Mar 2022 07:35:34 +0100 Subject: [PATCH 11/12] remove unnecesesary divs --- .../DecayInformation-DecayStartblock.vue | 16 ++++------------ .../DecayInformations/DecayInformation-Long.vue | 16 ++++------------ 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue b/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue index 9bde154ae..6f7e3f466 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue @@ -33,24 +33,16 @@ {{ $t(`decay.${typeId.toLowerCase()}`) }} - -
{{ amount | GDD }}
-
+ {{ amount | GDD }}
- -
{{ $t('decay.decay') }}
-
- -
{{ decay.decay | GDD }}
-
+ {{ $t('decay.decay') }} + {{ decay.decay | GDD }}
- -
{{ $t('decay.total') }}
-
+ {{ $t('decay.total') }} {{ (Number(amount) + Number(decay.decay)) | GDD }} diff --git a/frontend/src/components/DecayInformations/DecayInformation-Long.vue b/frontend/src/components/DecayInformations/DecayInformation-Long.vue index fad50ddab..6a0b6a1c1 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-Long.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-Long.vue @@ -34,9 +34,7 @@
{{ $t('decay.decay') }}
- -
{{ decay.decay | GDD }}
-
+ {{ decay.decay | GDD }}

@@ -47,18 +45,12 @@ {{ $t(`decay.${typeId.toLowerCase()}`) }} - -
{{ amount | GDD }}
-
+ {{ amount | GDD }}
- -
{{ $t('decay.decay') }}
-
- -
{{ decay.decay | GDD }}
-
+ {{ $t('decay.decay') }} + {{ decay.decay | GDD }}
From eafa00b3bf9ed352baeb7af732422cd2e4a2b7dd Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 8 Mar 2022 07:37:28 +0100 Subject: [PATCH 12/12] less divs --- .../DecayInformation-DecayStartblock.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue b/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue index 6f7e3f466..2ee9ecc2c 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-DecayStartblock.vue @@ -17,12 +17,8 @@ - -
{{ $t('decay.decay') }}
-
- -
{{ decay.decay | GDD }}
-
+ {{ $t('decay.decay') }} + {{ decay.decay | GDD }}