From cc7778b55d1baaa7be2d9440480e0fb27bb9a930 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 8 Jul 2021 15:55:32 +0200 Subject: [PATCH] fix style decay startblick --- frontend/src/components/DecayInformation.vue | 116 +++++++++++++----- frontend/src/locales/de.json | 22 +++- frontend/src/locales/en.json | 20 ++- .../AccountOverview/GddTransactionList.vue | 64 +++++++--- 4 files changed, 174 insertions(+), 48 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 84b9a1310..c18bfdb3c 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -1,34 +1,90 @@ @@ -41,6 +97,7 @@ export default { decay_duration: '', decay_start: 0, decay_end: 0, + decay_start_block: 0, }, decaytyp: '', }, @@ -50,22 +107,21 @@ export default { b: 0, duration: {}, diff: {}, + decay_start_block_text_short: this.decay.decay_start_block + ? ' - Startblock Decay am: ' + this.$d(this.$moment.unix(this.decay.decay_start_block)) + : '', } }, - created() { - console.log("start", start) - }, methods: { - getDuration(start, end) { - console.log("start", start) - console.log("end", end) - this.a = new Date(start) - this.b = new Date(end) - this.a = this.$moment.unix(this.a) - this.b = this.$moment.unix(this.b) - this.diff = this.$moment.duration(this.a.diff(this.b)) - this.duration = this.diff._data - + getDuration(start, end) { + // console.log("start", start) + // console.log("end", end) + this.a = new Date(start) + this.b = new Date(end) + this.a = this.$moment.unix(this.a) + this.b = this.$moment.unix(this.b) + this.diff = this.$moment.duration(this.a.diff(this.b)) + this.duration = this.diff._data }, }, } diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 3c8098346..1781ea1cd 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -18,9 +18,25 @@ "de": "Deutsch", "en": "English" }, - "decay": "Vergänglichkeit", - "resieve": "", - + "decay": { + "decay": "Vergänglichkeit", + "decay_since_last_transaction":"Vergänglichkeit seit der letzten Transaktion", + "calculation_decay":"Berechnung der Vergänglichkeit", + "Starting_block_decay":"Startblock Vergänglichkeit", + "decay_introduced":"Die Vergänglichkeit wurde Eingeführt am", + "last_transaction":"Letzte Transaktion", + "past_time":"Vergangene Zeit", + "since_introduction":"seit Einführung der Vergänglichkeit", + "year":"Jahre", + "months":"Monate", + "days":"Tage", + "hours":"Stunden", + "minutes":"Minuten", + "seconds":"Sekunden", + "received":"empfangen", + "sent":"gesendet", + "created":"geschöpft" + }, "form": { "cancel": "Abbrechen", "reset": "Zurücksetzen", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 987605bd8..29a9b49c1 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -18,7 +18,25 @@ "de": "Deutsch", "en": "English" }, - "decay": "Decay", + "decay": { + "decay": "Decay", + "decay_since_last_transaction":"Decay since the last transaction", + "calculation_decay": "Calculation of Decay", + "Starting_block_decay": "Starting Block Decay", + "decay_introduced": "Decay was Introduced on", + "last_transaction": "Last transaction:", + "past_time": "Past time", + "since_introduction": "Since the introduction of Decay", + "year": "Years", + "months": "Months", + "days": "Days", + "hours": "Hours", + "minutes": "Minutes", + "seconds": "Seconds", + "received":"received", + "sent":"sent", + "created":"created" + }, "form": { "cancel":"Cancel", "reset": "Reset", diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 100385d9b..8524a87bb 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -6,11 +6,13 @@ v-bind:key="item.transaction_id" :style="item.type === 'decay' ? 'background-color:#f1e0ae3d' : ''" > +
+
- +
{{ getProperties(item).operator }} {{ $n(item.balance, 'decimal') }} @@ -22,43 +24,75 @@
- +
{{ item.name ? item.name : '' }} - Vergänglichkeit seit der letzten Transaktion + {{ $t('decay.decay_since_last_transaction') }}
{{ $d($moment(item.date), 'long') }}
- +
i
- + + + + +
+
+ {{ item.type === 'receive' ? 'von:' : 'an:' }} +
+
+ {{ item.name }} + +
+
+
+
+ {{ item.type === 'receive' ? 'Nachricht:' : 'Nachricht:' }} +
+
+ {{ item.memo }} +
+
+
+
+ + +
+
Schöpfung
+
Aus der Community
+
+
+
+ +
+ t.transaction_id === id) }, - updateTransactions() { this.$emit('update-transactions', { firstPage: this.currentPage, @@ -224,4 +260,4 @@ export default { padding-left: 0px; padding-right: 0px; } - \ No newline at end of file +