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

✨ update sorting options #5642

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
✨ update sorting options
  • Loading branch information
roiLeo committed Apr 13, 2023
commit ae2b4c736c817cfb88f74b8e854e721f5cd1e144
2 changes: 1 addition & 1 deletion components/explore/ExploreSort.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:icon="isActive ? 'chevron-up' : 'chevron-down'"
class="has-text-left is-hidden-mobile"
data-cy="explore-sort">
Sort By
{{ $i18n.t('sort.collection.sortBy') }}
</NeoButton>
<NeoButton
type="button"
Expand Down
24 changes: 4 additions & 20 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,15 +542,7 @@
}
},
"sort": {
"EMOTES_COUNT_DESC": "Most reacted",
"BLOCK_NUMBER_DESC": "Recently Created",
"BLOCK_NUMBER_ASC": "Oldest",
"UPDATED_AT_DESC": "Recently Interacted",
"UPDATED_AT_ASC": "Unpopular",
"PRICE_DESC": "Price: High to Low",
"PRICE_ASC": "Price: Low to High",
"SN_ASC": "Serial Number Ascending",
"blockNumber_DESC": "Recently Created",
"blockNumber_DESC": "Newest",
"blockNumber_ASC": "Oldest",
"updatedAt_DESC": "Recently Interacted",
"updatedAt_ASC": "Unpopular",
Expand All @@ -561,8 +553,8 @@
"own": "Own",
"clearAll": "Clear All",
"collection": {
"blockNumber_DESC": "New first",
"blockNumber_ASC": "Old first",
"blockNumber_DESC": "Newest",
"blockNumber_ASC": "Oldest",
"updatedAt_DESC": "Recently Interacted",
"updatedAt_ASC": "Unpopular",
"supply_DESC": "Most Supply",
Expand All @@ -571,15 +563,7 @@
"price_ASC": "Price: Low to High",
"sn_ASC": "Serial Number Ascending",
"listed": "Buy now",
"sortBy": "Sort By",
"EMOTES_COUNT_DESC": "Most reacted",
"BLOCK_NUMBER_DESC": "Recently Created",
"BLOCK_NUMBER_ASC": "Oldest",
"UPDATED_AT_DESC": "Recently Interacted",
"UPDATED_AT_ASC": "Unpopular",
"PRICE_DESC": "Price: High to Low",
"PRICE_ASC": "Price: Low to High",
"SN_ASC": "Serial Number Ascending"
"sortBy": "Sort By"
}
},
"query": {
Expand Down
31 changes: 20 additions & 11 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,29 @@
}
},
"sort": {
"EMOTES_COUNT_DESC": "Les plus réagis",
"BLOCK_NUMBER_DESC": "Nouveau",
"BLOCK_NUMBER_ASC": "Ancien",
"UPDATED_AT_DESC": "Dernier échange",
"UPDATED_AT_ASC": "Longtemps sans interaction",
"blockNumber_DESC": "Nouveau",
"blockNumber_ASC": "Ancien",
"updatedAt_DESC": "Dernier échange",
"updatedAt_ASC": "Longtemps sans interaction",
"PRICE_DESC": "Prix descendant",
"PRICE_ASC": "Prix ascendant",
"SN_ASC": "Numéro de série ascendant",
"updatedAt_DESC": "Récemment interagi",
"updatedAt_ASC": "Peu populaire",
"price_DESC": "Prix : du plus haut au plus bas",
"price_ASC": "Prix : du plus bas au plus haut",
"sn_ASC": "Numéro de série ascendant",
"listed": "En vente",
"own": "Possédé"
"own": "Possédé",
"clearAll": "Tout effacer",
"collection": {
"blockNumber_DESC": "Nouveau",
"blockNumber_ASC": "Ancien",
"updatedAt_DESC": "Récemment interagi",
"updatedAt_ASC": "Peu populaire",
"supply_DESC": "Most Supply",
"supply_ASC": "Least Supply",
"price_DESC": "Prix : du plus haut au plus bas",
"price_ASC": "Prix : du plus bas au plus haut",
"sn_ASC": "Numéro de série ascendant",
"listed": "En vente",
"sortBy": "Trier par"
}
},
"mint": {
"submit": "Cliquez pour créer des NFT(s)",
Expand Down
4 changes: 2 additions & 2 deletions utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const NFT_SQUID_SORT_CONDITION_LIST: string[] = [
'blockNumber_ASC',
'updatedAt_DESC',
'updatedAt_ASC',
'price_DESC',
'price_ASC',
'sn_ASC',
'price_DESC',
// 'sn_ASC',
]

export const NFT_SQUID_SORT_CONDITION_LIST_FOR_MOONRIVER: string[] = [
Expand Down