From fecaa6a71a6f3a5bf673842258b093e4868f151d Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Wed, 16 Aug 2023 17:04:52 +0000 Subject: [PATCH] web/satellite/vuetify-poc: enable claiming wallets This change adds the ability to claim STORJ wallets and display token balance. Issue: https://github.com/storj/storj/issues/6096 Change-Id: Ifc89b586c0e3ed876905ff0a5b270e718cbb689c --- .../components/StorjTokenCardComponent.vue | 125 ++++++++++++++++++ .../vuetify-poc/src/views/Billing.vue | 25 +--- 2 files changed, 132 insertions(+), 18 deletions(-) create mode 100644 web/satellite/vuetify-poc/src/components/StorjTokenCardComponent.vue diff --git a/web/satellite/vuetify-poc/src/components/StorjTokenCardComponent.vue b/web/satellite/vuetify-poc/src/components/StorjTokenCardComponent.vue new file mode 100644 index 000000000..ad256de2a --- /dev/null +++ b/web/satellite/vuetify-poc/src/components/StorjTokenCardComponent.vue @@ -0,0 +1,125 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + + + \ No newline at end of file diff --git a/web/satellite/vuetify-poc/src/views/Billing.vue b/web/satellite/vuetify-poc/src/views/Billing.vue index 7cf500367..0c3a44c2a 100644 --- a/web/satellite/vuetify-poc/src/views/Billing.vue +++ b/web/satellite/vuetify-poc/src/views/Billing.vue @@ -125,21 +125,7 @@ - - - STORJ - - -

Deposit Address

- 0x0683 . . . 2759 - -

Total Balance

- $5,284 - - + Add STORJ Tokens - View Transactions -
-
+
@@ -253,8 +239,6 @@ import { VChip, VDivider, VBtn, - VExpansionPanels, - VExpansionPanel, VTextField, VProgressCircular, VIcon, @@ -273,8 +257,9 @@ import { useProjectsStore } from '@/store/modules/projectsStore'; import CreditCardComponent from '@poc/components/CreditCardComponent.vue'; import AddCreditCardComponent from '@poc/components/AddCreditCardComponent.vue'; import UsageAndChargesComponent from '@poc/components/billing/UsageAndChargesComponent.vue'; +import StorjTokenCardComponent from '@poc/components/StorjTokenCardComponent.vue'; -const tab = ref('Overview'); +const tab = ref(0); const search = ref(''); const selected = ref([]); @@ -383,6 +368,10 @@ const isCouponActive = computed((): boolean => { return !!c && (c.duration === 'forever' || (!!c.expiresAt && now < c.expiresAt.getTime())); }); +function goToTransactionsTab() { + tab.value = 2; +} + function getColor(status: string): string { if (status === 'Paid') return 'success'; if (status === 'Pending') return 'warning';