Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bsx landing page add lastest and newest list #3693

Merged
merged 6 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/landing/Landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
<LazyCuratedList />
</div>
</div>
<div v-if="prefix === 'rmrk'">
<div v-if="prefix === 'rmrk' || prefix === 'bsx'">
<LazyGalleryLatestSales class="my-5" />
<LazyGalleryPopularCollections class="my-5" />
<span v-if="prefix === 'rmrk'">
<LazyGalleryPopularCollections class="my-5" />
</span>
<LazyGalleryNewestList class="my-5" />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/rmrk/Gallery/LatestSales.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="column is-four-fifths">
<h1 class="title is-2">{{ $t('general.latestSales') }}</h1>
<p class="subtitle is-size-5">
{{ $t('general.latestSalesheading') }}
{{ $t('general.latestSalesheading') }} {{ urlPrefix }}
</p>
</div>
<div class="column has-text-right">
Expand Down
2 changes: 1 addition & 1 deletion langDir/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
"latestSales": "Latest sales",
"searchResultsText": "Showing results for",
"ksmDiscoverText": "Discover, collect and sell Kusama NFTs",
"latestSalesheading": "Discover the most recent sales on rmrk",
"latestSalesheading": "Discover the most recent sales on",
"newestListDesc": "Discover the latest items on sale",
"newestListHeading": "Newest List",
"popularCollectionsHeading": "Popular Collections",
Expand Down
5 changes: 2 additions & 3 deletions queries/rmrk/subsquid/lastNftListByEvent.graphql
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
query lastNftListByEvent($limit: Float!, $event: String!, $passionAccount: String) {
query lastNftListByEvent($limit: Float!, $event: String!) {
events: lastEvent(
limit: $limit
offset: 0
interaction: $event
passionAccount: $passionAccount
) {
meta: value
timestamp
Expand All @@ -14,4 +13,4 @@ query lastNftListByEvent($limit: Float!, $event: String!, $passionAccount: Strin
metadata
image
}
}
}