mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into 2294-Contribution-Links-on-its-own-Page
This commit is contained in:
commit
e81fcbdba1
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="content-footer">
|
<div class="content-footer">
|
||||||
<hr />
|
<hr />
|
||||||
<b-row align-v="center" class="mt-4 justify-content-lg-between">
|
<div align-v="center" class="mt-4 mb-4 justify-content-lg-between">
|
||||||
<b-col>
|
<b-col>
|
||||||
<div class="copyright text-center text-lg-center text-muted">
|
<div class="copyright text-center text-lg-center text-muted">
|
||||||
{{ $t('footer.copyright.year', { year }) }}
|
{{ $t('footer.copyright.year', { year }) }}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="contribution-link-list">
|
<div class="contribution-link-list">
|
||||||
<b-table striped hover :items="items" :fields="fields">
|
<b-table :items="items" :fields="fields" striped hover stacked="lg">
|
||||||
<template #cell(delete)="data">
|
<template #cell(delete)="data">
|
||||||
<b-button
|
<b-button
|
||||||
variant="danger"
|
variant="danger"
|
||||||
|
|||||||
@ -63,6 +63,8 @@ export class StatisticsResolver {
|
|||||||
.where('transaction.decay IS NOT NULL')
|
.where('transaction.decay IS NOT NULL')
|
||||||
.getRawOne()
|
.getRawOne()
|
||||||
|
|
||||||
|
await queryRunner.release()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
totalUsers,
|
totalUsers,
|
||||||
activeUsers,
|
activeUsers,
|
||||||
|
|||||||
@ -198,6 +198,75 @@ describe('ContributionForm', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('date with the 31st day of the month', () => {
|
||||||
|
describe('same month', () => {
|
||||||
|
beforeEach(async () => {
|
||||||
|
await wrapper.setData({
|
||||||
|
maximalDate: new Date('2022-10-31T00:00:00.000Z'),
|
||||||
|
form: { date: new Date('2022-10-31T00:00:00.000Z') },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('minimalDate', () => {
|
||||||
|
it('has "2022-09-01T00:00:00.000Z"', () => {
|
||||||
|
expect(wrapper.vm.minimalDate.toISOString()).toBe('2022-09-01T00:00:00.000Z')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('isThisMonth', () => {
|
||||||
|
it('has true', () => {
|
||||||
|
expect(wrapper.vm.isThisMonth).toBe(true)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('date with the 28th day of the month', () => {
|
||||||
|
describe('same month', () => {
|
||||||
|
beforeEach(async () => {
|
||||||
|
await wrapper.setData({
|
||||||
|
maximalDate: new Date('2023-02-28T00:00:00.000Z'),
|
||||||
|
form: { date: new Date('2023-02-28T00:00:00.000Z') },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('minimalDate', () => {
|
||||||
|
it('has "2023-01-01T00:00:00.000Z"', () => {
|
||||||
|
expect(wrapper.vm.minimalDate.toISOString()).toBe('2023-01-01T00:00:00.000Z')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('isThisMonth', () => {
|
||||||
|
it('has true', () => {
|
||||||
|
expect(wrapper.vm.isThisMonth).toBe(true)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('date with 29.02.2024 leap year', () => {
|
||||||
|
describe('same month', () => {
|
||||||
|
beforeEach(async () => {
|
||||||
|
await wrapper.setData({
|
||||||
|
maximalDate: new Date('2024-02-29T00:00:00.000Z'),
|
||||||
|
form: { date: new Date('2024-02-29T00:00:00.000Z') },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('minimalDate', () => {
|
||||||
|
it('has "2024-01-01T00:00:00.000Z"', () => {
|
||||||
|
expect(wrapper.vm.minimalDate.toISOString()).toBe('2024-01-01T00:00:00.000Z')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('isThisMonth', () => {
|
||||||
|
it('has true', () => {
|
||||||
|
expect(wrapper.vm.isThisMonth).toBe(true)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('set contrubtion', () => {
|
describe('set contrubtion', () => {
|
||||||
|
|||||||
@ -131,10 +131,8 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
minimalDate() {
|
minimalDate() {
|
||||||
// sets the date to the 1st of the previous month
|
const date = new Date(this.maximalDate)
|
||||||
let date = new Date(this.maximalDate) // has to be a new object, because of 'setMonth' changes the objects date
|
return new Date(date.setMonth(date.getMonth() - 1, 1))
|
||||||
date = new Date(date.setMonth(date.getMonth() - 1))
|
|
||||||
return new Date(date.getFullYear(), date.getMonth(), 1)
|
|
||||||
},
|
},
|
||||||
disabled() {
|
disabled() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
"submitContribution": "Beitrag einreichen",
|
"submitContribution": "Beitrag einreichen",
|
||||||
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
||||||
},
|
},
|
||||||
|
"contact": "Kontakt",
|
||||||
"contribution": {
|
"contribution": {
|
||||||
"activity": "Tätigkeit",
|
"activity": "Tätigkeit",
|
||||||
"alert": {
|
"alert": {
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
"submitContribution": "Submit contribution",
|
"submitContribution": "Submit contribution",
|
||||||
"switch-to-this-community": "Switch to this community"
|
"switch-to-this-community": "Switch to this community"
|
||||||
},
|
},
|
||||||
|
"contact": "Contact",
|
||||||
"contribution": {
|
"contribution": {
|
||||||
"activity": "Activity",
|
"activity": "Activity",
|
||||||
"alert": {
|
"alert": {
|
||||||
|
|||||||
@ -44,6 +44,9 @@
|
|||||||
{{ item.firstName }} {{ item.lastName }}
|
{{ item.firstName }} {{ item.lastName }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</b-container>
|
||||||
|
<b-container>
|
||||||
|
<div class="h3">{{ $t('contact') }}</div>
|
||||||
<b-link href="mailto: abc@example.com">{{ supportMail }}</b-link>
|
<b-link href="mailto: abc@example.com">{{ supportMail }}</b-link>
|
||||||
</b-container>
|
</b-container>
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user