@instadapp/avocado-base 0.0.61 → 0.0.63
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_13856_490518)">
|
|
3
|
+
<path d="M7 -6.11959e-07C3.13401 -9.49935e-07 9.49935e-07 3.13401 6.11959e-07 7C2.73984e-07 10.866 3.13401 14 7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 -2.73984e-07 7 -6.11959e-07Z" fill="currentColor"/>
|
|
4
|
+
<path d="M7.00391 9.72217L7.00391 7.38883" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M7.00391 4.27783L6.99391 4.27783" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_13856_490518">
|
|
9
|
+
<rect width="14" height="14" fill="white" transform="translate(14 14) rotate(-180)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -7,7 +7,7 @@ defineProps<{
|
|
|
7
7
|
|
|
8
8
|
const randomId = Math.random().toString(36).substr(2, 9);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
function generateColor(address: string): string {
|
|
11
11
|
const hash = XXH.h32(address, 0xABCD).toNumber()
|
|
12
12
|
|
|
13
13
|
const hue = hash % 360
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Tippy } from 'vue-tippy'
|
|
3
|
-
|
|
3
|
+
import Info2 from '~/assets/images/icons/info-2.svg'
|
|
4
|
+
|
|
5
|
+
defineProps<{
|
|
4
6
|
metadata: {
|
|
5
7
|
type: MetadataTypes,
|
|
6
8
|
[key: string]: any
|
|
@@ -10,30 +12,30 @@ const props = defineProps<{
|
|
|
10
12
|
</script>
|
|
11
13
|
|
|
12
14
|
<template>
|
|
13
|
-
<div>
|
|
15
|
+
<div class="font-medium">
|
|
14
16
|
<div v-if="!compact || metadata.addresses.length < 3" class="flex gap-[14px] flex-wrap">
|
|
15
|
-
<div v-for="address of metadata.addresses" :key="address" class="flex gap-
|
|
17
|
+
<div v-for="address of metadata.addresses" :key="address" class="flex gap-2 rounded-full bg-slate-100 dark:bg-slate-800 justify-start items-center px-2 py-1.5">
|
|
16
18
|
<AuthorityAvatar :address="address" class="w-[18px] h-[18px]" />
|
|
17
|
-
<p class="text-xs leading-5">
|
|
19
|
+
<p class="text-xs leading-5 text-slate-500 dark:text-slate-400">
|
|
18
20
|
{{ shortenHash(address, compact ? 2 : 4) }}
|
|
19
21
|
</p>
|
|
20
22
|
</div>
|
|
21
23
|
</div>
|
|
22
24
|
<div v-else class="flex gap-2 flex-wrap items-center">
|
|
23
|
-
<div v-for="address of [metadata.addresses[0], metadata.addresses[1]]" :key="address" class="flex gap-
|
|
25
|
+
<div v-for="address of [metadata.addresses[0], metadata.addresses[1]]" :key="address" class="flex gap-2 rounded-full bg-slate-100 dark:bg-slate-800 justify-start items-center px-2 py-1.5">
|
|
24
26
|
<AuthorityAvatar :address="address" class="w-[18px] h-[18px]" />
|
|
25
|
-
<p class="text-xs leading-5">
|
|
27
|
+
<p class="text-xs leading-5 text-slate-400">
|
|
26
28
|
{{ shortenHash(address, 2) }}
|
|
27
29
|
</p>
|
|
28
30
|
</div>
|
|
29
31
|
...
|
|
30
32
|
<Tippy max-width="none" interactive tag="button" content-tag="div" content-class="content-wrapper">
|
|
31
33
|
<template #default>
|
|
32
|
-
<
|
|
34
|
+
<Info2 class="w-[16px] h-[16px] text-slate-500 rounded-full" />
|
|
33
35
|
</template>
|
|
34
36
|
<template #content>
|
|
35
37
|
<ul class="flex flex-col gap-2.5">
|
|
36
|
-
<li v-for="address in metadata.addresses" :key="address" class="flex text-xs items-center gap-2.5">
|
|
38
|
+
<li v-for="address in metadata.addresses" :key="address" class="flex text-xs text-slate-400 items-center gap-2.5">
|
|
37
39
|
<AuthorityAvatar class="shrink-0 w-5 h-5" :address="address" />
|
|
38
40
|
{{ address }}
|
|
39
41
|
</li>
|