Skip to content

Commit

Permalink
add new subnets, show subnets full list
Browse files Browse the repository at this point in the history
  • Loading branch information
FedokDL committed Jan 24, 2025
1 parent 14f3b38 commit d264097
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 10 deletions.
45 changes: 45 additions & 0 deletions src/assets/predefined-builders-meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -658,5 +658,50 @@
"contributors": 0,
"githubStars": 0,
"totalStaked": 0
},
{
"id": "d9bc2735-4579-4f73-a0c9-f4b1afa076cb",
"name": "IamAI-Core",
"description": "",
"longDescription": "",
"image": "https://prod-files-secure.s3.us-west-2.amazonaws.com/3a01387c-361e-45b8-93e6-cdb5818741cc/e6f6b8ce-82b5-4390-9055-af20ea02cc20/Frame_427321695.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45FSPPWI6X%2F20250114%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250114T124517Z&X-Amz-Expires=3600&X-Amz-Signature=e4f49a63cfe2712f785daa89c0391fe0d16efedbd69ae2e5dcab4e7f52d6928f&X-Amz-SignedHeaders=host&x-id=GetObject",
"localImage": "images/iamai-core-icon-circle-512x512.png",
"tags": [],
"githubUrl": "",
"twitterUrl": "",
"discordUrl": "",
"contributors": 0,
"githubStars": 0,
"totalStaked": 0
},
{
"id": "d9bc2735-4579-4f73-a0c9-f4b1afa076cb",
"name": "Lumerin MOR Staking",
"description": "",
"longDescription": "",
"image": "https://prod-files-secure.s3.us-west-2.amazonaws.com/3a01387c-361e-45b8-93e6-cdb5818741cc/e6f6b8ce-82b5-4390-9055-af20ea02cc20/Frame_427321695.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45FSPPWI6X%2F20250114%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250114T124517Z&X-Amz-Expires=3600&X-Amz-Signature=e4f49a63cfe2712f785daa89c0391fe0d16efedbd69ae2e5dcab4e7f52d6928f&X-Amz-SignedHeaders=host&x-id=GetObject",
"localImage": "images/lumerin-6fd5736d-11a2-4fb1-986e-68bea06af328.png",
"tags": [],
"githubUrl": "",
"twitterUrl": "",
"discordUrl": "",
"contributors": 0,
"githubStars": 0,
"totalStaked": 0
},
{
"id": "d9bc2735-4579-4f73-a0c9-f4b1afa076cb",
"name": "Morlord MOR Staking",
"description": "",
"longDescription": "",
"image": "https://prod-files-secure.s3.us-west-2.amazonaws.com/3a01387c-361e-45b8-93e6-cdb5818741cc/e6f6b8ce-82b5-4390-9055-af20ea02cc20/Frame_427321695.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45FSPPWI6X%2F20250114%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250114T124517Z&X-Amz-Expires=3600&X-Amz-Signature=e4f49a63cfe2712f785daa89c0391fe0d16efedbd69ae2e5dcab4e7f52d6928f&X-Amz-SignedHeaders=host&x-id=GetObject",
"localImage": "images/morlord-faba9889-7550-41fe-8af3-81bf696bd412.jpg",
"tags": [],
"githubUrl": "",
"twitterUrl": "",
"discordUrl": "",
"contributors": 0,
"githubStars": 0,
"totalStaked": 0
}
]
1 change: 1 addition & 0 deletions src/const/request.const.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const DEFAULT_PAGE_LIMIT = 5
export const DEFAULT_BUILDERS_PAGE_LIMIT = 100
26 changes: 16 additions & 10 deletions src/pages/Builders/pages/BuildersList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</template>
<skeleton-table
v-else
:rows="DEFAULT_PAGE_LIMIT"
:rows="DEFAULT_BUILDERS_PAGE_LIMIT"
sizing="1fr"
:schemes="['medium']"
common-skeleton-class-names="min-h-[72px]"
Expand All @@ -63,10 +63,12 @@
<pagination
v-if="
listData.buildersCounters?.totalBuildersProjects &&
buildersProjectsState.isLoaded.value
buildersProjectsState.isLoaded.value &&
listData.buildersCounters?.totalBuildersProjects >
DEFAULT_BUILDERS_PAGE_LIMIT
"
v-model:current-page="currentPage"
:page-limit="DEFAULT_PAGE_LIMIT"
:page-limit="DEFAULT_BUILDERS_PAGE_LIMIT"
:total-items="+listData.buildersCounters?.totalBuildersProjects"
class="mt-6"
/>
Expand Down Expand Up @@ -96,7 +98,7 @@
</template>
<skeleton-table
v-else
:rows="DEFAULT_PAGE_LIMIT"
:rows="DEFAULT_BUILDERS_PAGE_LIMIT"
sizing="1fr"
:schemes="['medium']"
common-skeleton-class-names="min-h-[72px]"
Expand Down Expand Up @@ -131,7 +133,7 @@ import {
OrderDirection,
} from '@/types/graphql'
import { provide, ref } from 'vue'
import { DEFAULT_PAGE_LIMIT } from '@/const'
import { DEFAULT_BUILDERS_PAGE_LIMIT } from '@/const'
import { useRoute, useRouter } from 'vue-router'
import { useWeb3ProvidersStore } from '@/store'
import { ROUTE_NAMES } from '@/enums'
Expand Down Expand Up @@ -159,7 +161,7 @@ const { provider, networkType } = storeToRefs(useWeb3ProvidersStore())
const currentPage = ref(1)
const orderBy = ref(BuildersProject_OrderBy.TotalStaked)
const orderDirection = ref(OrderDirection.Asc)
const orderDirection = ref(OrderDirection.Desc)
const isCreateBuilderModalShown = ref(false)
Expand Down Expand Up @@ -247,8 +249,10 @@ const {
async () => {
if (networkType.value === NetworkTypes.Mainnet) {
return paginateThroughAllPredefinedBuilders({
first: DEFAULT_PAGE_LIMIT,
skip: currentPage.value * DEFAULT_PAGE_LIMIT - DEFAULT_PAGE_LIMIT,
first: DEFAULT_BUILDERS_PAGE_LIMIT,
skip:
currentPage.value * DEFAULT_BUILDERS_PAGE_LIMIT -
DEFAULT_BUILDERS_PAGE_LIMIT,
orderBy: orderBy.value,
orderDirection: orderDirection.value,
})
Expand All @@ -261,8 +265,10 @@ const {
query: CombinedBuildersList,
fetchPolicy: 'network-only',
variables: {
first: DEFAULT_PAGE_LIMIT,
skip: currentPage.value * DEFAULT_PAGE_LIMIT - DEFAULT_PAGE_LIMIT,
first: DEFAULT_BUILDERS_PAGE_LIMIT,
skip:
currentPage.value * DEFAULT_BUILDERS_PAGE_LIMIT -
DEFAULT_BUILDERS_PAGE_LIMIT,
orderBy: orderBy.value,
orderDirection: orderDirection.value,
Expand Down
Binary file added static/images/iamai-core-icon-circle-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d264097

Please sign in to comment.