@visualizevalue/mint-app-base 0.1.14 → 0.1.16

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,24 @@
1
+ <template>
2
+ <slot name="before" />
3
+
4
+ <ProfileHeader :address="id" />
5
+
6
+ <CollectionsOverview :id="id" :key="`${isMe}-${id}`">
7
+ <template #before="{ collections }">
8
+ <HeaderSection v-if="isMe && collections.length">
9
+ <h1>Your Collections</h1>
10
+ <Actions>
11
+ <ButtonAddCollection :id="id" />
12
+ </Actions>
13
+ </HeaderSection>
14
+ </template>
15
+ </CollectionsOverview>
16
+
17
+ <slot name="after" />
18
+ </template>
19
+
20
+ <script setup>
21
+ const id = useArtistId()
22
+ const isMe = useIsMe()
23
+ </script>
24
+
@@ -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
- <CollectionIntro :collection="collection" />
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>
@@ -1,23 +1,11 @@
1
1
  <template>
2
2
  <PageFrame :title="breadcrumb">
3
- <ProfileHeader :address="id" />
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {