mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add slots for transaction types, seperate decayinformations for evry type
This commit is contained in:
parent
ae75ba7487
commit
e81e420100
@ -15,7 +15,7 @@
|
|||||||
v-else-if="new Date(balanceDate).getTime() < new Date(decayStartBlock).getTime()"
|
v-else-if="new Date(balanceDate).getTime() < new Date(decayStartBlock).getTime()"
|
||||||
class="mt-3 mb-3 text-center"
|
class="mt-3 mb-3 text-center"
|
||||||
>
|
>
|
||||||
<b>{{ $t('decay.befor_startblock_transaction') }}</b>
|
<b>{{ $t('decay.before_startblock_transaction') }}</b>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
|||||||
@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-startblock">
|
||||||
|
<!-- if balanceDate < decayStartBlock - Wenn die transaktion vor dem einführen der dacay function liegt. -->
|
||||||
|
<div class="mt-3 mb-3 text-center">
|
||||||
|
<b>{{ $t('decay.before_startblock_transaction') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-StartBlock',
|
||||||
|
props: {
|
||||||
|
balanceDate: { type: String },
|
||||||
|
decayStartBlock: { type: String },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-decay">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div style="width: 100%" class="text-center pb-3">
|
||||||
|
<b-icon icon="droplet-half" height="12" class="mb-2" />
|
||||||
|
<b>{{ $t('decay.calculation_decay') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>
|
||||||
|
{{ $n(Number(balance) - Number(decay.decay), 'decimal') }}
|
||||||
|
GDD - {{ $n(Number(decay.decay) * -1, 'decimal') }} GDD =
|
||||||
|
<b>{{ $n(Number(balance), 'decimal') }} GDD</b>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-Decay',
|
||||||
|
props: {
|
||||||
|
balance: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -0,0 +1,92 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-startblock">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div style="width: 100%" class="text-center pb-3">
|
||||||
|
<b-icon icon="droplet-half" height="12" class="mb-2" />
|
||||||
|
<b>{{ $t('decay.calculation_decay') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>
|
||||||
|
<div class="display-4">{{ $t('decay.Starting_block_decay') }}</div>
|
||||||
|
<div>{{ $t('decay.decay_introduced') }} :</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<span v-if="decay.start">
|
||||||
|
{{ $d(new Date(decay.start * 1000), 'long') }}
|
||||||
|
{{ $i18n.locale === 'de' ? 'Uhr' : '' }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
|
||||||
|
<!-- Decay-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>- {{ $n(decay.decay, 'decimal') }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<hr class="mt-2 mb-2" />
|
||||||
|
<b-row>
|
||||||
|
<b-col class="text-center pt-3 pb-2">
|
||||||
|
<b>{{ $t('decay.calculation_total') }}</b>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<!-- Type-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div v-if="typeId === 'SEND'">{{ $t('decay.sent') }}</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">{{ $t('decay.received') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div v-if="typeId === 'SEND'">{{ $n(amount, 'decimal') }}</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">{{ $n(amount, 'decimal') }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<!-- Decay-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="5">
|
||||||
|
<div class="text-right">
|
||||||
|
<b-icon icon="droplet-half" height="15" class="mb-1" />
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="7">
|
||||||
|
<div class="gdd-transaction-list-item-decay">
|
||||||
|
<b>{{ $t('decay.Starting_block_decay') }}</b>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
|
||||||
|
<!-- Total-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.total') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div v-if="typeId === 'SEND'">
|
||||||
|
<b>{{ $n(Number(amount) - Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">
|
||||||
|
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
<div v-if="typeId === 'CREATION'">
|
||||||
|
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-StartBlock',
|
||||||
|
props: {
|
||||||
|
balanceDate: { type: String },
|
||||||
|
decayStartBlock: { type: String },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-first-transaction">
|
||||||
|
<div>
|
||||||
|
<!-- if decay.start === null - Wenn kein decay angegeben dan ist es die erste Transaktion -->
|
||||||
|
<div class="mt-3 mb-3 text-center">
|
||||||
|
<b>{{ $t('decay.first_transaction') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-FirstTransaction',
|
||||||
|
props: {
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -0,0 +1,109 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-long">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div style="width: 100%" class="text-center pb-3">
|
||||||
|
<b-icon icon="droplet-half" height="12" class="mb-2" />
|
||||||
|
<b>{{ $t('decay.calculation_decay') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.last_transaction') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>
|
||||||
|
<span>
|
||||||
|
{{ $d(new Date(decay.start), 'long') }}
|
||||||
|
{{ $i18n.locale === 'de' ? 'Uhr' : '' }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.past_time') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<span v-if="duration">
|
||||||
|
<span v-if="duration.years > 0">{{ duration.years }} {{ $t('decay.year') }},</span>
|
||||||
|
<span v-if="duration.months > 0">{{ duration.months }} {{ $t('decay.months') }},</span>
|
||||||
|
<span v-if="duration.days > 0">{{ duration.days }} {{ $t('decay.days') }},</span>
|
||||||
|
<span v-if="duration.hours > 0">{{ duration.hours }} {{ $t('decay.hours') }},</span>
|
||||||
|
<span v-if="duration.minutes > 0">{{ duration.minutes }} {{ $t('decay.minutes') }},</span>
|
||||||
|
<span v-if="duration.seconds > 0">{{ duration.seconds }} {{ $t('decay.seconds') }}</span>
|
||||||
|
</span>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
|
||||||
|
<!-- Decay-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>{{ $n(decay.decay, 'decimal') }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<hr class="mt-2 mb-2" />
|
||||||
|
<b-row>
|
||||||
|
<b-col class="text-center pt-3 pb-2">
|
||||||
|
<b>{{ $t('decay.calculation_total') }}</b>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<!-- Type-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div v-if="typeId === 'SEND'">{{ $t('decay.sent') }}</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">{{ $t('decay.received') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div v-if="typeId === 'SEND'">{{ $n(amount, 'decimal') }}</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">{{ $n(amount, 'decimal') }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<!-- Decay-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.decay') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div>{{ $n(decay.decay, 'decimal') }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
<!-- Total-->
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="6" class="text-right">
|
||||||
|
<div>{{ $t('decay.total') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="6">
|
||||||
|
<div v-if="typeId === 'SEND'">
|
||||||
|
<b>{{ $n(Number(amount) - Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
<div v-if="typeId === 'RECEIVE'">
|
||||||
|
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
<div v-if="typeId === 'CREATION'">
|
||||||
|
<b>{{ $n(Number(amount) + Number(decay.decay), 'decimal') }}</b>
|
||||||
|
</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-Long',
|
||||||
|
props: {
|
||||||
|
amount: { type: String, default: '0' },
|
||||||
|
typeId: { type: String, default: '' },
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
duration() {
|
||||||
|
return this.$moment.duration(new Date(this.decay.end) - new Date(this.decay.start))._data
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decayinformation-short">
|
||||||
|
<span>
|
||||||
|
{{ decay ? $n(decay.decay, 'decimal') : '' }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DecayInformation-Short',
|
||||||
|
props: {
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
16
frontend/src/components/TransactionListItem.vue
Normal file
16
frontend/src/components/TransactionListItem.vue
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<slot :name="typeId"></slot>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'TransactionList',
|
||||||
|
props: {
|
||||||
|
typeId: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div :class="visible ? 'bg-secondary' : ''">
|
||||||
<div @click="visible = !visible">
|
<div @click="visible = !visible">
|
||||||
{{ amount }}, {{ balance }}, {{ balanceDate }}, {{ decay }}, {{ id }}, {{ linkedUser }},
|
{{ amount }}, {{ balance }}, {{ balanceDate }}, {{ decay }}, {{ id }}, {{ linkedUser }},
|
||||||
{{ memo }}, {{ properties }}
|
{{ memo }}, {{ properties }}
|
||||||
@ -77,7 +77,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="7">
|
<b-col cols="7">
|
||||||
<div class="gdd-transaction-list-item-decay">
|
<div class="gdd-transaction-list-item-decay">
|
||||||
<decay-information v-if="decay" decaytyp="short" :decay="decay" />
|
<decay-information-short v-if="decay" decaytyp="short" :decay="decay" />
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -85,25 +85,24 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse class="pb-4" v-model="visible">
|
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information
|
<decay-information-first-transaction v-if="decay.start === null" :decay="decay" />
|
||||||
decaytyp="new"
|
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
|
||||||
:balanceDate="balanceDate"
|
|
||||||
/>
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import DecayInformation from '../DecayInformation'
|
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
|
||||||
|
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
||||||
|
import DecayInformationFirstTransaction from '../DecayInformations/DecayInformation-FirstTransaction'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-creation',
|
name: 'slot-creation',
|
||||||
components: {
|
components: {
|
||||||
DecayInformation,
|
DecayInformationShort,
|
||||||
|
DecayInformationLong,
|
||||||
|
DecayInformationFirstTransaction,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div :class="visible ? 'bg-secondary' : ''">
|
||||||
<div @click="visible = !visible">
|
<div @click="visible = !visible">
|
||||||
<!-- Collaps Icon -->
|
<!-- Collaps Icon -->
|
||||||
<div class="text-right" style="width: 95%; position: absolute">
|
<div class="text-right" style="width: 95%; position: absolute">
|
||||||
@ -43,40 +43,18 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse class="pb-4 pt-5" v-model="visible">
|
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||||
<div class="d-flex">
|
<decay-information-decay :balance="balance" :decay="decay" />
|
||||||
<div style="width: 100%" class="text-center pb-3">
|
|
||||||
<b-icon icon="droplet-half" height="12" class="mb-2" />
|
|
||||||
<b>{{ $t('decay.calculation_decay') }}</b>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<b-row>
|
|
||||||
<b-col cols="6" class="text-right">
|
|
||||||
<div>{{ $t('decay.decay') }}</div>
|
|
||||||
</b-col>
|
|
||||||
<b-col cols="6">
|
|
||||||
<div>
|
|
||||||
{{ Number(balance) + Number(decay.decay) * -1 }} :::: {{ Number(decay.decay) }} :::::
|
|
||||||
{{ $n(Number(balance) + Number(decay.decay) * -1, 'decimal') }}
|
|
||||||
GDD - {{ $n(Number(decay.decay) * -1, 'decimal') }} GDD =
|
|
||||||
<b>{{ $n(Number(balance), 'decimal') }} GDD</b>
|
|
||||||
</div>
|
|
||||||
</b-col>
|
|
||||||
</b-row>
|
|
||||||
<hr />
|
|
||||||
{{ amount }}, {{ balance }}, {{ balanceDate }}, {{ decay }}, {{ id }}, {{ linkedUser }},
|
|
||||||
{{ memo }}, {{ properties }},, {{ visible }}
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
// import DecayInformation from '../DecayInformation'
|
import DecayInformationDecay from '../DecayInformations/DecayInformation-Decay'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-decay',
|
name: 'slot-decay',
|
||||||
components: {
|
components: {
|
||||||
// DecayInformation,
|
DecayInformationDecay,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div :class="visible ? 'bg-secondary' : ''">
|
||||||
<div @click="visible = !visible">
|
<div @click="visible = !visible">
|
||||||
<!-- Collaps Icon -->
|
<!-- Collaps Icon -->
|
||||||
<div class="text-right" style="width: 95%; position: absolute">
|
<div class="text-right" style="width: 95%; position: absolute">
|
||||||
@ -74,7 +74,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="7">
|
<b-col cols="7">
|
||||||
<div class="gdd-transaction-list-item-decay">
|
<div class="gdd-transaction-list-item-decay">
|
||||||
<decay-information v-if="decay" decaytyp="short" :decay="decay" />
|
<decay-information-short decaytyp="short" :decay="decay" />
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -82,28 +82,24 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse class="pb-4" v-model="visible">
|
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information
|
<decay-information-first-transaction v-if="decay.start === null" :decay="decay" />
|
||||||
decaytyp="new"
|
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
|
||||||
:balanceDate="balanceDate"
|
|
||||||
/>
|
|
||||||
<hr />
|
|
||||||
{{ amount }}, {{ balance }}, {{ balanceDate }}, {{ decay }}, {{ id }}, {{ linkedUser }},
|
|
||||||
{{ memo }}, {{ properties }}
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import DecayInformation from '../DecayInformation'
|
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
|
||||||
|
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
||||||
|
import DecayInformationFirstTransaction from '../DecayInformations/DecayInformation-FirstTransaction'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-receive',
|
name: 'slot-receive',
|
||||||
components: {
|
components: {
|
||||||
DecayInformation,
|
DecayInformationShort,
|
||||||
|
DecayInformationLong,
|
||||||
|
DecayInformationFirstTransaction,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div :class="visible ? 'bg-secondary' : ''">
|
||||||
<div @click="visible = !visible">
|
<div @click="visible = !visible">
|
||||||
<!-- Collaps Icon -->
|
<!-- Collaps Icon -->
|
||||||
<div class="text-right" style="width: 95%; position: absolute">
|
<div class="text-right" style="width: 95%; position: absolute">
|
||||||
@ -74,7 +74,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="7">
|
<b-col cols="7">
|
||||||
<div class="gdd-transaction-list-item-decay">
|
<div class="gdd-transaction-list-item-decay">
|
||||||
<decay-information v-if="decay" decaytyp="short" :decay="decay" />
|
<decay-information-short decaytyp="short" :decay="decay" />
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -82,28 +82,23 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse class="pb-4" v-model="visible">
|
<b-collapse class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information
|
<decay-information-first-transaction v-if="decay.start === null" :decay="decay" />
|
||||||
decaytyp="new"
|
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
|
||||||
:balanceDate="balanceDate"
|
|
||||||
/>
|
|
||||||
<hr />
|
|
||||||
{{ amount }}, {{ balance }}, {{ balanceDate }}, {{ decay }}, {{ id }}, {{ linkedUser }},
|
|
||||||
{{ memo }}, {{ properties }}
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import DecayInformation from '../DecayInformation'
|
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
|
||||||
|
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
||||||
|
import DecayInformationFirstTransaction from '../DecayInformations/DecayInformation-FirstTransaction'
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-send',
|
name: 'slot-send',
|
||||||
components: {
|
components: {
|
||||||
DecayInformation,
|
DecayInformationShort,
|
||||||
|
DecayInformationLong,
|
||||||
|
DecayInformationFirstTransaction,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
||||||
},
|
},
|
||||||
"decay": {
|
"decay": {
|
||||||
"befor_startblock_transaction": "Diese Transaktion beinhaltet keine Vergänglichkeit.",
|
"before_startblock_transaction": "Diese Transaktion beinhaltet keine Vergänglichkeit.",
|
||||||
"calculation_decay": "Berechnung der Vergänglichkeit",
|
"calculation_decay": "Berechnung der Vergänglichkeit",
|
||||||
"calculation_total": "Berechnung der Gesamtsumme",
|
"calculation_total": "Berechnung der Gesamtsumme",
|
||||||
"created": "Geschöpft",
|
"created": "Geschöpft",
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
"switch-to-this-community": "Switch to this community"
|
"switch-to-this-community": "Switch to this community"
|
||||||
},
|
},
|
||||||
"decay": {
|
"decay": {
|
||||||
"befor_startblock_transaction": "This transaction does not include decay.",
|
"before_startblock_transaction": "This transaction does not include decay.",
|
||||||
"calculation_decay": "Calculation of Decay",
|
"calculation_decay": "Calculation of Decay",
|
||||||
"calculation_total": "Calculation of the total Amount",
|
"calculation_total": "Calculation of the total Amount",
|
||||||
"created": "Created",
|
"created": "Created",
|
||||||
|
|||||||
@ -17,34 +17,42 @@
|
|||||||
:key="id"
|
:key="id"
|
||||||
:style="typeId === 'DECAY' ? 'background-color:#f1e0ae3d' : ''"
|
:style="typeId === 'DECAY' ? 'background-color:#f1e0ae3d' : ''"
|
||||||
>
|
>
|
||||||
|
<transaction-list-item :typeId="typeId">
|
||||||
|
<template #DECAY>
|
||||||
<transaction-decay
|
<transaction-decay
|
||||||
class="list-group-item gdd-transaction-list-item"
|
class="list-group-item gdd-transaction-list-item"
|
||||||
v-if="typeId === 'DECAY'"
|
|
||||||
v-bind="transactions[index]"
|
v-bind="transactions[index]"
|
||||||
:properties="getProperties(typeId)"
|
:properties="getProperties(typeId)"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #SEND>
|
||||||
<transaction-send
|
<transaction-send
|
||||||
class="list-group-item gdd-transaction-list-item"
|
class="list-group-item gdd-transaction-list-item"
|
||||||
v-if="typeId === 'SEND'"
|
|
||||||
v-bind="transactions[index]"
|
v-bind="transactions[index]"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
:properties="getProperties(typeId)"
|
:properties="getProperties(typeId)"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #RECEIVE>
|
||||||
<transaction-receive
|
<transaction-receive
|
||||||
class="list-group-item gdd-transaction-list-item"
|
class="list-group-item gdd-transaction-list-item"
|
||||||
v-if="typeId === 'RECEIVE'"
|
|
||||||
v-bind="transactions[index]"
|
v-bind="transactions[index]"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
:properties="getProperties(typeId)"
|
:properties="getProperties(typeId)"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #CREATION>
|
||||||
<transaction-creation
|
<transaction-creation
|
||||||
class="list-group-item gdd-transaction-list-item"
|
class="list-group-item gdd-transaction-list-item"
|
||||||
v-if="typeId === 'CREATION'"
|
|
||||||
v-bind="transactions[index]"
|
v-bind="transactions[index]"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
:properties="getProperties(typeId)"
|
:properties="getProperties(typeId)"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
</transaction-list-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination-buttons
|
<pagination-buttons
|
||||||
@ -60,11 +68,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import TransactionListItem from '../../../components/TransactionListItem'
|
||||||
import PaginationButtons from '../../../components/PaginationButtons'
|
import PaginationButtons from '../../../components/PaginationButtons'
|
||||||
import TransactionDecay from '../../../components/transaction-slots/TransactionDecay'
|
import TransactionDecay from '../../../components/Transactions/TransactionDecay'
|
||||||
import TransactionSend from '../../../components/transaction-slots/TransactionSend'
|
import TransactionSend from '../../../components/Transactions/TransactionSend'
|
||||||
import TransactionReceive from '../../../components/transaction-slots/TransactionReceive'
|
import TransactionReceive from '../../../components/Transactions/TransactionReceive'
|
||||||
import TransactionCreation from '../../../components/transaction-slots/TransactionCreation'
|
import TransactionCreation from '../../../components/Transactions/TransactionCreation'
|
||||||
|
|
||||||
const iconsByType = {
|
const iconsByType = {
|
||||||
SEND: { icon: 'arrow-left-circle', classes: 'text-danger', operator: '−' },
|
SEND: { icon: 'arrow-left-circle', classes: 'text-danger', operator: '−' },
|
||||||
@ -76,6 +85,7 @@ const iconsByType = {
|
|||||||
export default {
|
export default {
|
||||||
name: 'gdd-transaction-list',
|
name: 'gdd-transaction-list',
|
||||||
components: {
|
components: {
|
||||||
|
TransactionListItem,
|
||||||
PaginationButtons,
|
PaginationButtons,
|
||||||
TransactionDecay,
|
TransactionDecay,
|
||||||
TransactionSend,
|
TransactionSend,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user