@visualizevalue/mint-app-base 0.1.14 → 0.1.15
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,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ProfileHeader :address="id" />
|
|
3
|
+
|
|
4
|
+
<CollectionsOverview :id="id" :key="`${isMe}-${id}`">
|
|
5
|
+
<template #before="{ collections }">
|
|
6
|
+
<HeaderSection v-if="isMe && collections.length">
|
|
7
|
+
<h1>Your Collections</h1>
|
|
8
|
+
<Actions>
|
|
9
|
+
<ButtonAddCollection :id="id" />
|
|
10
|
+
</Actions>
|
|
11
|
+
</HeaderSection>
|
|
12
|
+
</template>
|
|
13
|
+
</CollectionsOverview>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
const id = useArtistId()
|
|
18
|
+
const isMe = useIsMe()
|
|
19
|
+
</script>
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<CollectionIntro :collection="collection" />
|
|
3
|
+
|
|
4
|
+
<TokenOverviewCard v-for="token of tokens" :key="token.tokenId" :token="token" />
|
|
5
|
+
|
|
6
|
+
<Loading v-if="loading" />
|
|
7
|
+
<div v-if="! tokens.length && !loading" >
|
|
8
|
+
<p>No tokens yet</p>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
const props = defineProps(['collection'])
|
|
14
|
+
const collection = computed(() => props.collection)
|
|
15
|
+
|
|
16
|
+
const store = useOnchainStore()
|
|
17
|
+
|
|
18
|
+
const tokens = computed(() => store.tokens(collection.value.address))
|
|
19
|
+
const loading = ref(false)
|
|
20
|
+
onMounted(async () => {
|
|
21
|
+
loading.value = true
|
|
22
|
+
await store.fetchCollectionTokens(collection.value.address)
|
|
23
|
+
loading.value = false
|
|
24
|
+
})
|
|
25
|
+
</script>
|
|
26
|
+
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<PageFrame :title="breadcrumb">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<TokenOverviewCard v-for="token of tokens" :key="token.tokenId" :token="token" />
|
|
6
|
-
|
|
7
|
-
<Loading v-if="loading" />
|
|
8
|
-
<div v-if="! tokens.length && !loading" >
|
|
9
|
-
<p>No tokens yet</p>
|
|
10
|
-
</div>
|
|
3
|
+
<CollectionDetail :collection="collection" />
|
|
11
4
|
</PageFrame>
|
|
12
5
|
</template>
|
|
13
6
|
|
|
@@ -37,15 +30,5 @@ const breadcrumb = computed(() => {
|
|
|
37
30
|
useMetaData({
|
|
38
31
|
title: `${collection.value.name}`,
|
|
39
32
|
})
|
|
40
|
-
|
|
41
|
-
const tokens = computed(() => store.tokens(collection.value.address))
|
|
42
|
-
const loading = ref(false)
|
|
43
|
-
onMounted(async () => {
|
|
44
|
-
loading.value = true
|
|
45
|
-
await store.fetchCollectionTokens(collection.value.address)
|
|
46
|
-
loading.value = false
|
|
47
|
-
})
|
|
48
33
|
</script>
|
|
49
34
|
|
|
50
|
-
<style scoped>
|
|
51
|
-
</style>
|
package/app/pages/[id]/index.vue
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<PageFrame :title="breadcrumb">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<CollectionsOverview :id="id" :key="`${isMe}-${id}`">
|
|
6
|
-
<template #before="{ collections }">
|
|
7
|
-
<HeaderSection v-if="isMe && collections.length">
|
|
8
|
-
<h1>Your Collections</h1>
|
|
9
|
-
<Actions>
|
|
10
|
-
<ButtonAddCollection :id="id" />
|
|
11
|
-
</Actions>
|
|
12
|
-
</HeaderSection>
|
|
13
|
-
</template>
|
|
14
|
-
</CollectionsOverview>
|
|
3
|
+
<ArtistDetail />
|
|
15
4
|
</PageFrame>
|
|
16
5
|
</template>
|
|
17
6
|
|
|
18
7
|
<script setup>
|
|
19
8
|
const id = useArtistId()
|
|
20
|
-
const isMe = useIsMe()
|
|
21
9
|
const store = useOnchainStore()
|
|
22
10
|
|
|
23
11
|
const appTitle = useAppTitle()
|