From ae75ba74872013fd70efc18a3ab4fe401699ddfd Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 1 Mar 2022 21:33:02 +0100 Subject: [PATCH] interim status of the revised transaction list --- frontend/src/components/DecayInformation.vue | 207 +++++++++-------- .../transaction-slots/TransactionCreation.vue | 147 ++++++++++++ .../transaction-slots/TransactionDecay.vue | 116 ++++++++++ .../transaction-slots/TransactionReceive.vue | 147 ++++++++++++ .../transaction-slots/TransactionSend.vue | 147 ++++++++++++ frontend/src/graphql/queries.js | 1 + .../AccountOverview/GddTransactionList.vue | 211 ++++-------------- 7 files changed, 715 insertions(+), 261 deletions(-) create mode 100644 frontend/src/components/transaction-slots/TransactionCreation.vue create mode 100644 frontend/src/components/transaction-slots/TransactionDecay.vue create mode 100644 frontend/src/components/transaction-slots/TransactionReceive.vue create mode 100644 frontend/src/components/transaction-slots/TransactionSend.vue diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 066eec5e1..807b9c516 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -5,104 +5,121 @@
-
-
- - {{ $t('decay.calculation_decay') }} -
+ +
+ {{ $t('decay.first_transaction') }}
- - - -
{{ $t('decay.last_transaction') }}
-
- -
- - {{ $d(new Date(decay.start), 'long') }} - {{ $i18n.locale === 'de' ? 'Uhr' : '' }} - -
-
-
- - - -
{{ $t('decay.past_time') }}
-
- - - {{ duration.years }} {{ $t('decay.year') }}, - {{ duration.months }} {{ $t('decay.months') }}, - {{ duration.days }} {{ $t('decay.days') }}, - {{ duration.hours }} {{ $t('decay.hours') }}, - - {{ duration.minutes }} {{ $t('decay.minutes') }}, - - - {{ duration.seconds }} {{ $t('decay.seconds') }} - - - -
+ +
+ {{ $t('decay.befor_startblock_transaction') }} +
- - - -
{{ $t('decay.decay') }}
-
- -
- {{ $n(decay.decay, 'decimal') }}
-
- {{ $n(decay.decay + amount, 'decimal') }} GDD - {{ $n(decay.decay, 'decimal') }} GDD = - {{ $n(amount, 'decimal') }} GDD +
+
+
+ + {{ $t('decay.calculation_decay') }}
- - -
- - - {{ $t('decay.calculation_total') }} - - - - - -
{{ $t('decay.sent') }}
-
{{ $t('decay.received') }}
-
- -
{{ $n(amount, 'decimal') }}
-
{{ $n(amount, 'decimal') }}
-
-
- - - -
{{ $t('decay.decay') }}
-
- -
{{ $n(decay.decay, 'decimal') }}
-
-
- - - -
{{ $t('decay.total') }}
-
- -
- {{ $n(amount + decay.decay, 'decimal') }} -
-
- {{ $n(amount - decay.decay, 'decimal') }} -
-
- {{ $n(amount - decay.decay, 'decimal') }} -
-
-
+
+ + + + +
{{ $t('decay.last_transaction') }}
+
+ +
+ + {{ $d(new Date(decay.start), 'long') }} + {{ $i18n.locale === 'de' ? 'Uhr' : '' }} + +
+
+
+ + + +
{{ $t('decay.past_time') }}
+
+ + + {{ duration.years }} {{ $t('decay.year') }}, + + {{ duration.months }} {{ $t('decay.months') }}, + + {{ duration.days }} {{ $t('decay.days') }}, + {{ duration.hours }} {{ $t('decay.hours') }}, + + {{ duration.minutes }} {{ $t('decay.minutes') }}, + + + {{ duration.seconds }} {{ $t('decay.seconds') }} + + + +
+ + + + +
{{ $t('decay.decay') }}
+
+ +
- {{ $n(decay.decay, 'decimal') }}
+
+ {{ $n(decay.decay + amount, 'decimal') }} GDD - {{ $n(decay.decay, 'decimal') }} GDD = + {{ $n(amount, 'decimal') }} GDD +
+
+
+
+ + + {{ $t('decay.calculation_total') }} + + + + + +
{{ $t('decay.sent') }}
+
{{ $t('decay.received') }}
+
+ +
{{ $n(amount, 'decimal') }}
+
{{ $n(amount, 'decimal') }}
+
+
+ + + +
{{ $t('decay.decay') }}
+
+ +
{{ $n(decay.decay, 'decimal') }}
+
+
+ + + +
{{ $t('decay.total') }}
+
+ +
+ {{ $n(amount + decay.decay, 'decimal') }} +
+
+ {{ $n(amount - decay.decay, 'decimal') }} +
+
+ {{ $n(amount - decay.decay, 'decimal') }} +
+
+
+
@@ -112,6 +129,8 @@ export default { props: { amount: { type: String, default: '0' }, typeId: { type: String, default: '' }, + balanceDate: { type: String }, + decayStartBlock: { type: String }, decay: { decay: '', start: 0, diff --git a/frontend/src/components/transaction-slots/TransactionCreation.vue b/frontend/src/components/transaction-slots/TransactionCreation.vue new file mode 100644 index 000000000..8f11bb2a9 --- /dev/null +++ b/frontend/src/components/transaction-slots/TransactionCreation.vue @@ -0,0 +1,147 @@ + + diff --git a/frontend/src/components/transaction-slots/TransactionDecay.vue b/frontend/src/components/transaction-slots/TransactionDecay.vue new file mode 100644 index 000000000..9245a532e --- /dev/null +++ b/frontend/src/components/transaction-slots/TransactionDecay.vue @@ -0,0 +1,116 @@ + + diff --git a/frontend/src/components/transaction-slots/TransactionReceive.vue b/frontend/src/components/transaction-slots/TransactionReceive.vue new file mode 100644 index 000000000..db6b7e18a --- /dev/null +++ b/frontend/src/components/transaction-slots/TransactionReceive.vue @@ -0,0 +1,147 @@ + + diff --git a/frontend/src/components/transaction-slots/TransactionSend.vue b/frontend/src/components/transaction-slots/TransactionSend.vue new file mode 100644 index 000000000..3ee4b3bf0 --- /dev/null +++ b/frontend/src/components/transaction-slots/TransactionSend.vue @@ -0,0 +1,147 @@ + + diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index c833fb845..94a5e59f3 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -63,6 +63,7 @@ export const transactionsQuery = gql` id typeId amount + balance balanceDate memo linkedUser { diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 56c246006..e3e7df505 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -13,172 +13,58 @@
-
- -
- -
- -
- - - -
- -
-
+ v-if="typeId === 'DECAY'" + v-bind="transactions[index]" + :properties="getProperties(typeId)" + /> - - - - -
- - {{ getProperties(typeId).operator }} - - - {{ $n(amount, 'decimal') }} - -
-
- -
- {{ - typeId !== 'DECAY' - ? linkedUser.firstName + ' ' + linkedUser.lastName - : $t('decay.decay_since_last_transaction') - }} -
-
-
- - - - -
{{ $t('form.memo') }}
-
- -
{{ memo }}
-
-
- - - - -
{{ $t('form.date') }}
-
- -
- {{ $d(new Date(balanceDate), 'long') }} - {{ $i18n.locale === 'de' ? 'Uhr' : '' }} -
-
-
- - - - -
- -
-
- -
- -
-
-
- -
-
-
- - - -
- - - -
- {{ $t('decay.first_transaction') }} -
- - -
- {{ $t('decay.befor_startblock_transaction') }} -
- -
- -
-
-
- - -
-
- -
- {{ $t('transaction.nullTransactions') }} + + +
+ +
+ {{ $t('transaction.nullTransactions') }} +