-
Balance
-
{{ formatUsd(balanceTotal) }}
+
+
Balance
+
{{ formatUsd(balanceTotal) }}
diff --git a/composables/useCopiedToClipboardUx.ts b/composables/useCopiedToClipboardUx.ts
new file mode 100644
index 0000000..618d6f5
--- /dev/null
+++ b/composables/useCopiedToClipboardUx.ts
@@ -0,0 +1,27 @@
+import { computed, ref } from "@nuxtjs/composition-api";
+
+export function useCopiedToClipboardUx() {
+ const copied = ref(false);
+ let copiedTimeout;
+
+ function onCopy() {
+ if (copiedTimeout) {
+ clearTimeout(copiedTimeout);
+ copiedTimeout = null;
+ }
+
+ copied.value = true;
+ copiedTimeout = setTimeout(() => {
+ copied.value = false;
+ copiedTimeout = null;
+ }, 1800);
+ }
+
+ const tooltip = computed(() => ({
+ content: "Copied!",
+ trigger: "manual",
+ show: copied.value
+ }));
+
+ return { onCopy, tooltip, copied };
+}
diff --git a/composables/useSidebar.ts b/composables/useSidebar.ts
index b06e6db..241884b 100644
--- a/composables/useSidebar.ts
+++ b/composables/useSidebar.ts
@@ -20,9 +20,12 @@ import SidebarAaveV2Payback from '~/components/sidebar/context/aaveV2/SidebarAav
//@ts-ignore
import SidebarOverview from '~/components/sidebar/context/overview/SidebarOverview.vue'
+//@ts-ignore
+import SidebarDepositOverview from '~/components/sidebar/context/SidebarDepositOverview.vue'
const sidebars = {
"#overview" : {component: SidebarOverview, back : false, close : true },
+ "#deposit-overview": {component: SidebarDepositOverview },
"/polygon/aave-v2": { component: null },
"/polygon/aave-v2#supply": { component: SidebarAaveV2Supply },
"/polygon/aave-v2#borrow": { component: SidebarAaveV2Borrow },
diff --git a/nuxt.config.js b/nuxt.config.js
index 0d38b0a..3eb756a 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -33,6 +33,7 @@ export default {
"~/plugins/v-click-outside.js",
"~/plugins/web3modal.js",
{ src: '~/plugins/v-tooltip', mode: 'client' },
+ { src: '~/plugins/v-clipboard2', mode: 'client' },
],
// Auto import components: https://go.nuxtjs.dev/config-components
diff --git a/package.json b/package.json
index 5d264cf..aaf8fa9 100644
--- a/package.json
+++ b/package.json
@@ -20,8 +20,10 @@
"css-color-function": "^1.3.3",
"dsa-connect": "^0.4.2",
"nuxt": "^2.15.7",
+ "qrcode": "^1.4.4",
"v-click-outside": "^3.1.2",
"v-tooltip": "^2.1.3",
+ "vue-clipboard2": "^0.3.1",
"vue-composable": "^1.0.0-beta.23",
"walletlink": "^2.1.6",
"web3": "^1.4.0",
diff --git a/pages/mainnet/aave-v2.vue b/pages/mainnet/aave-v2.vue
index fbbb9ca..7a677d2 100644
--- a/pages/mainnet/aave-v2.vue
+++ b/pages/mainnet/aave-v2.vue
@@ -113,6 +113,7 @@
diff --git a/pages/overview.vue b/pages/overview.vue
deleted file mode 100644
index 6dd494a..0000000
--- a/pages/overview.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-