From 36e3368f58dc6bba9c5ce1468d1c28c39861e1b1 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Wed, 21 Dec 2022 19:35:03 -0300 Subject: [PATCH 01/18] Add initial listing component Co-authored-by: Enzo Gabriel --- src/components/ListComponent.vue | 82 +++++++++--------- src/components/ListingComponent.vue | 129 ++++++++++++++++++++++++++++ 2 files changed, 170 insertions(+), 41 deletions(-) create mode 100644 src/components/ListingComponent.vue diff --git a/src/components/ListComponent.vue b/src/components/ListComponent.vue index 4211256..4a8ef45 100644 --- a/src/components/ListComponent.vue +++ b/src/components/ListComponent.vue @@ -65,50 +65,50 @@ const openEtherscanUrl = (url: string) => { >Últimas transações -
-
- Valor - Tipo de transação - Checar transação -
-
- - {{ formatEventsAmount(release?.args.amount) }} BRZ - - - {{ "Compra" }} - -
- Etherscan - Redirect image +
+
+ Valor + Tipo de transação + Checar transação
-
-
- -
+ + {{ formatEventsAmount(release?.args.amount) }} BRZ + + + {{ "Compra" }} + +
+ Etherscan + Redirect image +
+
+
+ +
-

- Não há nenhuma transação anterior -

-
+

+ Não há nenhuma transação anterior +

+
diff --git a/src/components/ListingComponent.vue b/src/components/ListingComponent.vue new file mode 100644 index 0000000..c5726e1 --- /dev/null +++ b/src/components/ListingComponent.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file From d70b009b93a44b002b73629eae1bb88dbfd1e668 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Sun, 25 Dec 2022 23:26:43 -0300 Subject: [PATCH 02/18] change from div click to routerling inside top bar menu --- src/components/TopBar.vue | 86 +++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 36 deletions(-) diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index 25989d0..f68aed8 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -35,24 +35,38 @@ const formatWalletBalance = (): String => { const disconnectUser = () => { etherStore.setWalletAddress(""); - const currentRoute = router.currentRoute.value.path; - if (currentRoute !== "/") { - router.push("/"); - } else { - window.location.reload(); - } + closeMenu(); + window.location.reload(); +}; + +const closeMenu = () => { + menuOpenToggle.value = false; }; diff --git a/src/components/ListingComponent.vue b/src/components/ListingComponent.vue index c5726e1..a2d2995 100644 --- a/src/components/ListingComponent.vue +++ b/src/components/ListingComponent.vue @@ -1,13 +1,21 @@ \ No newline at end of file + diff --git a/src/views/BidHistoryView.vue b/src/views/BidHistoryView.vue index a89deb3..fcbd4d5 100644 --- a/src/views/BidHistoryView.vue +++ b/src/views/BidHistoryView.vue @@ -1,5 +1,4 @@ - +