From 4ab160ec44ec04d1cea76d93deea0a4ed87f41e9 Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 5 Aug 2022 11:15:38 +0200 Subject: [PATCH] =?UTF-8?q?add=20query=20listContributionLinks=1B[D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/graphql/queries.js | 27 ++++++++++------ frontend/src/locales/de.json | 3 +- frontend/src/locales/en.json | 3 +- frontend/src/pages/InfoStatistic.vue | 46 +++++++++++++++++++++++++--- 4 files changed, 63 insertions(+), 16 deletions(-) diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index fdbbd1e93..ab7cc849f 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -164,16 +164,23 @@ export const listTransactionLinks = gql` ` export const listContributionLinks = gql` - query { - listContributionLinks { - startDate - endDate - name - memo - amount - cycle - repetition - maxAmount + query($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) { + listContributionLinks(currentPage: $currentPage, pageSize: $pageSize, order: $order) { + links { + id + amount + name + memo + code + link + createdAt + validFrom + validTo + maxAmountPerMonth + cycle + maxPerCycle + } + count } } ` diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 1db4d75a6..e98d53287 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -63,7 +63,8 @@ "updated": "Der Beitrag wurde geändert." }, "contribution-link": { - "thanksYouWith": "dankt dir mit" + "thanksYouWith": "dankt dir mit", + "unique":"( einmalig )" }, "decay": { "before_startblock_transaction": "Diese Transaktion beinhaltet keine Vergänglichkeit.", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 8c6caf7df..8b7cff5aa 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -63,7 +63,8 @@ "updated": "The contribution was changed." }, "contribution-link": { - "thanksYouWith": "thanks you with" + "thanksYouWith": "thanks you with", + "unique":"( unique )" }, "decay": { "before_startblock_transaction": "This transaction does not include decay.", diff --git a/frontend/src/pages/InfoStatistic.vue b/frontend/src/pages/InfoStatistic.vue index 6363292f7..464dfd1a9 100644 --- a/frontend/src/pages/InfoStatistic.vue +++ b/frontend/src/pages/InfoStatistic.vue @@ -17,17 +17,25 @@ {{ $t('community.openContributionLinkText', { _name_: CONFIG.COMMUNITY_NAME }) }} + Momentan gibt es aktuell {{ count }} Aktionen.
{{ $t('community.moderators') }}
- {{ supportMail }} + {{ supportMail }}

@@ -43,16 +51,46 @@