mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Mere changes with wip
This commit is contained in:
commit
443b95b978
@ -40,6 +40,9 @@ export class TransactionLink {
|
|||||||
@Field(() => Date)
|
@Field(() => Date)
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
|
|
||||||
|
@Field(() => Date, { nullable: true })
|
||||||
|
deletedAt: Date | null
|
||||||
|
|
||||||
@Field(() => Date)
|
@Field(() => Date)
|
||||||
validUntil: Date
|
validUntil: Date
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import CONFIG from '@/config'
|
|||||||
import { sendAccountActivationEmail } from '@/mailer/sendAccountActivationEmail'
|
import { sendAccountActivationEmail } from '@/mailer/sendAccountActivationEmail'
|
||||||
// import { klicktippSignIn } from '@/apis/KlicktippController'
|
// import { klicktippSignIn } from '@/apis/KlicktippController'
|
||||||
|
|
||||||
jest.setTimeout(10000)
|
jest.setTimeout(1000000)
|
||||||
|
|
||||||
jest.mock('@/mailer/sendAccountActivationEmail', () => {
|
jest.mock('@/mailer/sendAccountActivationEmail', () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import Decimal from 'decimal.js-light'
|
||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn } from 'typeorm'
|
||||||
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer'
|
||||||
|
|
||||||
@Entity('transaction_links')
|
@Entity('transaction_links')
|
||||||
@ -41,6 +41,9 @@ export class TransactionLink extends BaseEntity {
|
|||||||
})
|
})
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
|
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deletedAt?: Date | null
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'datetime',
|
type: 'datetime',
|
||||||
nullable: false,
|
nullable: false,
|
||||||
|
|||||||
@ -13,6 +13,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
|
|||||||
\`memo\` varchar(255) NOT NULL,
|
\`memo\` varchar(255) NOT NULL,
|
||||||
\`code\` varchar(24) NOT NULL,
|
\`code\` varchar(24) NOT NULL,
|
||||||
\`createdAt\` datetime NOT NULL,
|
\`createdAt\` datetime NOT NULL,
|
||||||
|
\`deletedAt\` datetime DEFAULT NULL,
|
||||||
\`validUntil\` datetime NOT NULL,
|
\`validUntil\` datetime NOT NULL,
|
||||||
\`showEmail\` boolean NOT NULL DEFAULT false,
|
\`showEmail\` boolean NOT NULL DEFAULT false,
|
||||||
\`redeemedAt\` datetime,
|
\`redeemedAt\` datetime,
|
||||||
|
|||||||
@ -232,6 +232,11 @@
|
|||||||
"receiverNotFound": "Empfänger nicht gefunden",
|
"receiverNotFound": "Empfänger nicht gefunden",
|
||||||
"show_all": "Alle <strong>{count}</strong> Transaktionen ansehen"
|
"show_all": "Alle <strong>{count}</strong> Transaktionen ansehen"
|
||||||
},
|
},
|
||||||
|
"transaction-link": {
|
||||||
|
"button": "einlösen",
|
||||||
|
"send_you": "sendet dir",
|
||||||
|
"subtitle": "subtitle"
|
||||||
|
},
|
||||||
"transactions": "Transaktionen",
|
"transactions": "Transaktionen",
|
||||||
"whitepaper": "Whitepaper"
|
"whitepaper": "Whitepaper"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -232,6 +232,11 @@
|
|||||||
"receiverNotFound": "Recipient not found",
|
"receiverNotFound": "Recipient not found",
|
||||||
"show_all": "View all <strong>{count}</strong> transactions."
|
"show_all": "View all <strong>{count}</strong> transactions."
|
||||||
},
|
},
|
||||||
|
"transaction-link": {
|
||||||
|
"button": "redeem",
|
||||||
|
"send_you": "wants to send you",
|
||||||
|
"subtitle": "subtitle"
|
||||||
|
},
|
||||||
"transactions": "Transactions",
|
"transactions": "Transactions",
|
||||||
"whitepaper": "Whitepaper"
|
"whitepaper": "Whitepaper"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,7 +77,6 @@ export default {
|
|||||||
this.currentTransactionStep = 1
|
this.currentTransactionStep = 1
|
||||||
},
|
},
|
||||||
async sendTransaction() {
|
async sendTransaction() {
|
||||||
console.log('TESTETESTESTES')
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.error = false
|
this.error = false
|
||||||
if (this.transactionData.selected === 'send') {
|
if (this.transactionData.selected === 'send') {
|
||||||
@ -101,7 +100,7 @@ export default {
|
|||||||
variables: { amount: this.transactionData.amount, memo: this.transactionData.memo },
|
variables: { amount: this.transactionData.amount, memo: this.transactionData.memo },
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(result)
|
alert(result)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.toastError(error)
|
this.toastError(error)
|
||||||
|
|||||||
@ -4,14 +4,15 @@
|
|||||||
<div class="header py-7 py-lg-8 pt-lg-9">
|
<div class="header py-7 py-lg-8 pt-lg-9">
|
||||||
<b-container>
|
<b-container>
|
||||||
<div class="header-body text-center mb-7">
|
<div class="header-body text-center mb-7">
|
||||||
|
<div class="mb-5">resultDB : {{ resultDB }}</div>
|
||||||
<p class="h1">
|
<p class="h1">
|
||||||
{{ displaySetup.user.firstName }} {{ displaySetup.user.lastName }}
|
{{ displaySetup.user.firstName }} {{ displaySetup.user.lastName }}
|
||||||
{{ $t('wants to send you') }} {{ displaySetup.amount | GDD }}
|
{{ $t('transaction-link.send_you') }} {{ displaySetup.amount | GDD }}
|
||||||
</p>
|
</p>
|
||||||
<p class="h4">{{ $t(displaySetup.subtitle) }}</p>
|
<p class="h4">{{ displaySetup.memo }}</p>
|
||||||
<hr />
|
<hr />
|
||||||
<b-button v-if="displaySetup.linkTo" :to="displaySetup.linkTo">
|
<b-button v-if="displaySetup.linkTo" :to="displaySetup.linkTo">
|
||||||
{{ $t(displaySetup.button) }}
|
{{ $t('transaction-link.button') }}
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</b-container>
|
</b-container>
|
||||||
@ -25,7 +26,18 @@ export default {
|
|||||||
name: 'ShowTransactionLinkInformations',
|
name: 'ShowTransactionLinkInformations',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
displaySetup: {},
|
resultDB: {},
|
||||||
|
displaySetup: {
|
||||||
|
amount: '123456',
|
||||||
|
linkTo: '',
|
||||||
|
memo: 'Test Memo, Test Memo von Ogerly, Test Memo von Ogerly für testuser',
|
||||||
|
user: {
|
||||||
|
publisherId: 1,
|
||||||
|
firstName: 'testName',
|
||||||
|
lastName: 'testOgerly',
|
||||||
|
email: 'test@example.de',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -41,6 +53,7 @@ export default {
|
|||||||
const {
|
const {
|
||||||
data: { queryTransactionLink },
|
data: { queryTransactionLink },
|
||||||
} = result
|
} = result
|
||||||
|
this.resultDB = queryTransactionLink
|
||||||
this.displaySetup = queryTransactionLink
|
this.displaySetup = queryTransactionLink
|
||||||
this.$store.commit('publisherId', queryTransactionLink.user.publisherId)
|
this.$store.commit('publisherId', queryTransactionLink.user.publisherId)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user