From 259131ee3fb64148a185f9f7634b32b709879865 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Tue, 15 Nov 2022 19:28:36 -0600 Subject: [PATCH] feat(transactions): UI updates by @negue --- website/client/src/assets/svg/gem-red.svg | 10 + .../client/src/assets/svg/hourglass-red.svg | 10 + .../admin-panel/user-support/index.vue | 1 + .../admin-panel/user-support/transactions.vue | 12 + .../components/ui/purchaseHistoryTable.vue | 368 ++++++++++++++---- website/common/locales/en/settings.json | 31 +- website/server/controllers/api-v3/hall.js | 2 +- website/server/models/transaction.js | 2 +- 8 files changed, 350 insertions(+), 86 deletions(-) create mode 100644 website/client/src/assets/svg/gem-red.svg create mode 100644 website/client/src/assets/svg/hourglass-red.svg diff --git a/website/client/src/assets/svg/gem-red.svg b/website/client/src/assets/svg/gem-red.svg new file mode 100644 index 0000000000..aa1504893d --- /dev/null +++ b/website/client/src/assets/svg/gem-red.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website/client/src/assets/svg/hourglass-red.svg b/website/client/src/assets/svg/hourglass-red.svg new file mode 100644 index 0000000000..7a7a9e0d32 --- /dev/null +++ b/website/client/src/assets/svg/hourglass-red.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/website/client/src/components/admin-panel/user-support/index.vue b/website/client/src/components/admin-panel/user-support/index.vue index 8d156077f2..91be09e8b6 100644 --- a/website/client/src/components/admin-panel/user-support/index.vue +++ b/website/client/src/components/admin-panel/user-support/index.vue @@ -49,6 +49,7 @@ -
-
-

{{ $t('gemTransactions') }}

- {{ $t('noGemTransactions') }} - - +
+
+
- - - - -
- {{ entry.createdAt | timeAgo }} - - - {{ entry.amount * 4 }} - - {{ transactionTypeText(entry.transactionType) }} - - -
-
-
-

{{ $t('hourglassTransactions') }}

- {{ $t('noHourglassTransactions') }} - - + - - - - -
- {{ entry.createdAt | timeAgo }} - - - {{ entry.amount }} - - {{ transactionTypeText(entry.transactionType) }} - - -
+ {{ $t('mysticHourglass', { amount: ''}) }} + +
+ +
+
+ + {{ $t('noGemTransactions') }} + + + + + + + + + + + + + + +
+ {{ $t('timestamp')}} + + {{ $t('amount')}} + + {{ $t('action')}} + + {{ $t('note')}} +
+ {{ entry.createdAt | timeAgo }} + +
+ + {{ entry.amount * 4 }} +
+ + +
+ {{ $t('remainingBalance') }}: + + {{ entry.currentAmount * 4 }} +
+
+
+ + + + + @{{ entry.referenceText }} + + + + + + + + + + + ({{entry.reference}}) + +
+
+
+ + {{ $t('noHourglassTransactions') }} + + + + + + + + + + + + + + +
+ {{ $t('timestamp')}} + + {{ $t('amount')}} + + {{ $t('action')}} + + {{ $t('note')}} +
+ {{ entry.createdAt | timeAgo }} + +
+ + {{ entry.amount }} +
+ + +
+ {{ $t('remainingBalance') }}: + + {{ entry.currentAmount }} +
+
+
+ + + +
+
+
+ - @@ -107,9 +310,15 @@