From ad746282dfb155e7b326727323b0edccb587fc23 Mon Sep 17 00:00:00 2001 From: Prachi Darshana Date: Fri, 3 Jun 2022 18:17:21 -0700 Subject: [PATCH] #2775 Adding popular collections to landing --- components/base/CarouselCardList.vue | 6 +- components/landing/Landing.vue | 1 + .../rmrk/Gallery/PopularCollections.vue | 83 +++++++++++++++++++ .../subsquid/popularCollectionList.graphql | 22 +++++ 4 files changed, 109 insertions(+), 3 deletions(-) create mode 100644 components/rmrk/Gallery/PopularCollections.vue create mode 100644 queries/rmrk/subsquid/popularCollectionList.graphql diff --git a/components/base/CarouselCardList.vue b/components/base/CarouselCardList.vue index 54519ce6d4..f142c992f1 100644 --- a/components/base/CarouselCardList.vue +++ b/components/base/CarouselCardList.vue @@ -28,7 +28,7 @@
- + {{ list.name }}
@@ -63,7 +63,7 @@ class="force-clip is-ellipsis" />
-
+
diff --git a/components/rmrk/Gallery/PopularCollections.vue b/components/rmrk/Gallery/PopularCollections.vue new file mode 100644 index 0000000000..31ad792f4f --- /dev/null +++ b/components/rmrk/Gallery/PopularCollections.vue @@ -0,0 +1,83 @@ + + + diff --git a/queries/rmrk/subsquid/popularCollectionList.graphql b/queries/rmrk/subsquid/popularCollectionList.graphql new file mode 100644 index 0000000000..c45ad25899 --- /dev/null +++ b/queries/rmrk/subsquid/popularCollectionList.graphql @@ -0,0 +1,22 @@ +query popularCollectionList( + $limit: Float + $orderBy: String + $dateRange: String + $orderDirection: String +) { + seriesInsightTable( + limit: $limit + orderBy: $orderBy + orderDirection: $orderDirection + dateRange: $dateRange + ) { + id + image + metadata + sold + name + issuer + total + buys + } +}