@instadapp/avocado-base 0.0.0-dev.bea2ccb → 0.0.0-dev.bf10ad8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,16 +47,16 @@ const contactName = computed(() => {
|
|
|
47
47
|
<span class="uppercase">{{ token?.symbol }}</span>
|
|
48
48
|
</span>
|
|
49
49
|
<img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
|
|
50
|
-
<SvgoArrowRight class="w-4 h-4 text-slate-400" />
|
|
50
|
+
<SvgoArrowRight class="w-4 h-4 text-slate-400 mx-2" />
|
|
51
51
|
<NuxtLink
|
|
52
52
|
class="text-primary"
|
|
53
53
|
target="_blank"
|
|
54
54
|
external
|
|
55
|
+
v-tippy="{ content: metadata.receiver, maxWidth: 'none', interactive: true, }"
|
|
55
56
|
:to="
|
|
56
57
|
getExplorerUrl(chain_id, `/address/${metadata.receiver}`)
|
|
57
58
|
"
|
|
58
|
-
>
|
|
59
|
-
<Address :address="metadata.receiver"/>
|
|
59
|
+
>{{ shortenHash(metadata.receiver) }}
|
|
60
60
|
</NuxtLink>
|
|
61
61
|
<span v-if="contactName">
|
|
62
62
|
({{ contactName }})
|
package/package.json
CHANGED
package/components/Address.vue
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
const props = defineProps<{
|
|
4
|
-
address: string
|
|
5
|
-
}>();
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function onMouseEnter() {
|
|
9
|
-
const elements = document.querySelectorAll(`[data-highlight-target="${props.address}"]`);
|
|
10
|
-
|
|
11
|
-
elements.forEach((element) => {
|
|
12
|
-
element.classList.add('address-active');
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function onMouseLeave() {
|
|
17
|
-
const elements = document.querySelectorAll(`[data-highlight-target="${props.address}"]`);
|
|
18
|
-
|
|
19
|
-
elements.forEach((element) => {
|
|
20
|
-
element.classList.remove('address-active');
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<div
|
|
27
|
-
v-tippy="{ content: address, maxWidth: 'none', placement : 'bottom' }"
|
|
28
|
-
class="px-1 leading-[18px] border border-dashed border-opacity-0 border-yellow-500" @mouseenter="onMouseEnter" @mouseleave="onMouseLeave" :data-highlight-target="address">{{ shortenHash(address) }}
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<style>
|
|
34
|
-
.address-active {
|
|
35
|
-
@apply border-opacity-100 bg-yellow-500/10;
|
|
36
|
-
border-radius: 0.375rem;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
</style>
|