From feb21f5b4f56f073a509bbc08fa48b0b39c10d0b Mon Sep 17 00:00:00 2001 From: hassnian Date: Tue, 2 Jul 2024 16:56:47 +0500 Subject: [PATCH 01/12] add(ProfileDetail.vue): curated generative drops section --- components/profile/CuratedDrops.vue | 68 +++++++++++++++++++ components/profile/ProfileDetail.vue | 6 ++ .../subsquid/general/collectionIds.graphql | 5 ++ 3 files changed, 79 insertions(+) create mode 100644 components/profile/CuratedDrops.vue create mode 100644 queries/subsquid/general/collectionIds.graphql diff --git a/components/profile/CuratedDrops.vue b/components/profile/CuratedDrops.vue new file mode 100644 index 0000000000..05fbd356a2 --- /dev/null +++ b/components/profile/CuratedDrops.vue @@ -0,0 +1,68 @@ + + diff --git a/components/profile/ProfileDetail.vue b/components/profile/ProfileDetail.vue index c630466312..665f0a3842 100644 --- a/components/profile/ProfileDetail.vue +++ b/components/profile/ProfileDetail.vue @@ -249,6 +249,12 @@ @click-followers="onFollowersClick" @click-following="onFollowingClick" /> + +
+ +
+
diff --git a/queries/subsquid/general/collectionIds.graphql b/queries/subsquid/general/collectionIds.graphql new file mode 100644 index 0000000000..3218d4ab58 --- /dev/null +++ b/queries/subsquid/general/collectionIds.graphql @@ -0,0 +1,5 @@ +query collectionIds($search: CollectionEntityWhereInput) { + collectionEntities(where: $search, orderBy: updatedAt_DESC) { + id + } +} From 3faa661930d208e24a831baef212c0b8e737c8a0 Mon Sep 17 00:00:00 2001 From: hassnian Date: Wed, 3 Jul 2024 10:36:15 +0500 Subject: [PATCH 02/12] fix(CuratedDrops): get artist drops by creator --- components/profile/CuratedDrops.vue | 86 +++++++++---------- components/profile/ProfileDetail.vue | 13 +-- locales/en.json | 5 ++ params/types.ts | 1 + .../subsquid/general/collectionIds.graphql | 5 -- 5 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 queries/subsquid/general/collectionIds.graphql diff --git a/components/profile/CuratedDrops.vue b/components/profile/CuratedDrops.vue index 05fbd356a2..fbd59ba97c 100644 --- a/components/profile/CuratedDrops.vue +++ b/components/profile/CuratedDrops.vue @@ -1,9 +1,40 @@ diff --git a/components/profile/ProfileDetail.vue b/components/profile/ProfileDetail.vue index 665f0a3842..0332e5d477 100644 --- a/components/profile/ProfileDetail.vue +++ b/components/profile/ProfileDetail.vue @@ -35,7 +35,7 @@
+ class="pt-6 pb-7 max-sm:mx-5 mx-12 2xl:mx-auto flex justify-between max-w-[89rem]">
@@ -239,6 +239,12 @@ @click-followers="onFollowersClick" @click-following="onFollowingClick" />
+ +
+ +
+
-
- -
-
diff --git a/locales/en.json b/locales/en.json index 67971f98c8..24ced87954 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1911,6 +1911,11 @@ "title": "Unsuccessful Connection", "message": "Somehting went wrong linking with your farcaster account, please try again." } + }, + "curatedGenerativDrops": { + "title": "Curated Generative Drops", + "howThisWorks": "How this works?", + "explainHowThisWorks": "Discover generative art collections owned by this artist. Each curated drop is created using algorithms, resulting in unique and dynamic artworks that blend creativity with computational precision." } }, "createPlaceholder": { diff --git a/params/types.ts b/params/types.ts index 726567513d..996e7bec9c 100644 --- a/params/types.ts +++ b/params/types.ts @@ -80,4 +80,5 @@ export type DropItem = { userLocation?: string userAccess?: boolean start_at?: string + creator?: string } diff --git a/queries/subsquid/general/collectionIds.graphql b/queries/subsquid/general/collectionIds.graphql deleted file mode 100644 index 3218d4ab58..0000000000 --- a/queries/subsquid/general/collectionIds.graphql +++ /dev/null @@ -1,5 +0,0 @@ -query collectionIds($search: CollectionEntityWhereInput) { - collectionEntities(where: $search, orderBy: updatedAt_DESC) { - id - } -} From 0ce8946178dd384e5cf1cd4facac0aedff894ac0 Mon Sep 17 00:00:00 2001 From: hassnian Date: Wed, 3 Jul 2024 15:46:24 +0500 Subject: [PATCH 03/12] ref(CuratedDrops.vue): filter creator using worker --- components/profile/CuratedDrops.vue | 12 +++--------- services/fxart.ts | 1 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/components/profile/CuratedDrops.vue b/components/profile/CuratedDrops.vue index fbd59ba97c..3cbb38ab59 100644 --- a/components/profile/CuratedDrops.vue +++ b/components/profile/CuratedDrops.vue @@ -1,7 +1,5 @@