Skip to content

Commit

Permalink
🔥 Add isHidden field to ecosystem project (#618)
Browse files Browse the repository at this point in the history
Co-authored-by: EndritKr <endritkr@users.noreply.github.com>
  • Loading branch information
0xlny and EndritKr authored Mar 28, 2024
1 parent 698dfd3 commit a76b078
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 11 deletions.
62 changes: 52 additions & 10 deletions data/ecosystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface Project {
token?: string;
technologies?: any;
socialMetrics?: SocialMetrics;
isHidden?: boolean;
}

export interface ProjectItf extends Project {
Expand Down Expand Up @@ -87,6 +88,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "abd25d78-ffb6-4a1d-94c0-d2f9016d6015",
Expand Down Expand Up @@ -163,6 +165,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "affdebf1-c5c1-4e44-9c9c-649dbddc5f26",
Expand Down Expand Up @@ -276,6 +279,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "36df24b3-2007-4822-8110-5a44b01afb0f",
Expand All @@ -286,7 +290,7 @@ export const allProjects: Array<Project> = [
tags: ["tools", "infrastructure"],
image: "viewblock.png",
network: {
website: "https://v2.viewblock.io/starknet",
website: "https://viewblock.io/fr/starknet",
github: "https://github.com/ViewBlock",
twitter: "https://twitter.com/ViewBlock",
medium: "https://blog.viewblock.io",
Expand Down Expand Up @@ -405,7 +409,7 @@ export const allProjects: Array<Project> = [
discord: "https://discord.gg/gAD2wuzeNf",
telegram: "https://t.me/SithWars",
},
isLive: false,
isLive: true,
isTestnetLive: false,
},
{
Expand Down Expand Up @@ -576,6 +580,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "502b0dbc-5169-4db6-8796-36a968a798fd",
Expand Down Expand Up @@ -655,6 +660,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "8529056c-2383-48b5-b174-9950b6624ad9",
Expand All @@ -673,6 +679,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "030a7fa5-d6cf-4cb5-99e7-492b548c5530",
Expand Down Expand Up @@ -711,6 +718,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "79bd1dc2-a627-4f09-a85b-8757b6406b8e",
Expand All @@ -730,6 +738,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "dce4260c-807e-48d0-b57c-d8488dbe8889",
Expand Down Expand Up @@ -861,6 +870,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "55f5c20e-064d-4709-ba1e-6c77d4b3d867",
Expand Down Expand Up @@ -1089,6 +1099,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "47b08857-89fe-4016-8cfe-e057c2857449",
Expand Down Expand Up @@ -1316,6 +1327,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "1337ab03-25d7-406c-a339-5dccbefeaa18",
Expand Down Expand Up @@ -1416,6 +1428,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "48b43f8b-c067-46e4-9f2b-d8b0d58fbbc3",
Expand All @@ -1434,6 +1447,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "59425c28-b470-455f-b433-06c488b4dbf7",
Expand Down Expand Up @@ -1712,6 +1726,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "5cec890e-fc90-48d0-b7eb-011b6a0dc13b",
Expand Down Expand Up @@ -1752,6 +1767,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "19c738b6-2b7e-4826-bb5d-15f2c4330001",
Expand Down Expand Up @@ -1790,6 +1806,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "349d3549-025c-4571-a1c7-8c40639fc5b6",
Expand All @@ -1809,6 +1826,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "8dad20af-ae23-4ecd-9a90-32da6e270498",
Expand All @@ -1828,6 +1846,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "798bee63-b429-4802-917a-b47104871249",
Expand All @@ -1847,6 +1866,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "69d057c0-7343-4fc9-98aa-5a7432c9ca06",
Expand All @@ -1867,6 +1887,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "cc3d0bf3-67e8-408d-aa54-d72fb2fa1240",
Expand Down Expand Up @@ -2056,6 +2077,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "d2979ad1-12c6-4080-9c1a-4e58d2271356",
Expand All @@ -2075,21 +2097,22 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "30c7c562-75de-404d-bc95-570118d00653",
name: "Brine Finance",
shortName: "Brine",
name: "tanX Finance",
shortName: "tanX",
description:
"The decentralized order-book exchange for traders crafted by traders 🚀 Gasless | Instant | Multi-Chain | Secure | Trustless.",
"Reliable, self custodial and high performance liquidity network for traders, institutions and exchanges.",
tags: ["defi", "infrastructure"],
image: "brine.png",
image: "tanx.png",
network: {
website: "https://www.brine.finance/",
website: "https://tanx.fi/",
github: "",
twitter: "https://twitter.com/BrineFinance",
medium: "https://medium.com/@brine.finance",
discord: "https://discord.gg/wuPHBr9e9y",
twitter: "https://twitter.com/tanXfinance",
medium: "",
discord: "",
telegram: "",
},
isLive: false,
Expand Down Expand Up @@ -2335,6 +2358,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "91c05ece-ccf9-4e80-91e9-0ed4fad81b25",
Expand Down Expand Up @@ -2392,6 +2416,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "8980449e-08de-4617-8e17-6d9590f56eae",
Expand Down Expand Up @@ -2488,6 +2513,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "320d804a-cf3c-49eb-9013-b2873d17a8ae",
Expand All @@ -2506,6 +2532,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "5b54b8c6-ae8c-403e-ae55-0dc64d577cb6",
Expand Down Expand Up @@ -2582,6 +2609,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "1d796be5-4bd5-4689-aebf-f810c3d0fbd9",
Expand All @@ -2601,6 +2629,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: true,
isHidden: true,
},
{
id: "f7c7eecd-21d2-4729-adad-d94109864b30",
Expand All @@ -2619,6 +2648,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "4e95f7dc-9a31-40bb-829e-0a19098521e5",
Expand All @@ -2637,6 +2667,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "f47cfe5d-bb7d-4382-94cb-b979b7f8e518",
Expand All @@ -2656,6 +2687,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "4b4e4bd6-119d-4202-b26e-bafd803940da",
Expand All @@ -2675,6 +2707,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "ee574078-7642-4bd9-8a30-f7c0031d43ab",
Expand Down Expand Up @@ -2801,6 +2834,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "2603b4ea-42ce-4881-bbaf-aca81dcc4824",
Expand Down Expand Up @@ -2971,6 +3005,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "e0ae7230-84d9-43c0-93e8-189f78e4c331",
Expand Down Expand Up @@ -3009,6 +3044,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "d6d98ff4-25aa-42b5-b22b-f696eae0ea19",
Expand All @@ -3028,6 +3064,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "58bebd20-2314-464b-b2f7-e95da6da41e1",
Expand Down Expand Up @@ -3138,6 +3175,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "adf0c80f-2e8a-455d-9312-2f02fba41ec8",
Expand All @@ -3153,6 +3191,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: true,
isHidden: true,
},
{
id: "8a79276c-3b5b-11ee-be56-0242ac120002",
Expand Down Expand Up @@ -3478,6 +3517,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "99c4de9e-4e82-4268-a734-1aed4854d1f5",
Expand Down Expand Up @@ -3687,6 +3727,7 @@ export const allProjects: Array<Project> = [
},
isLive: true,
isTestnetLive: false,
isHidden: true,
},
{
id: "d7329bec-5e43-4d8a-a44d-c162084e0069",
Expand Down Expand Up @@ -3725,6 +3766,7 @@ export const allProjects: Array<Project> = [
},
isLive: false,
isTestnetLive: false,
isHidden: true,
},
{
id: "0a4a005d-9a00-4bca-a1b9-aea1dd3db683",
Expand Down
5 changes: 4 additions & 1 deletion src/services/ecosystem-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const fetchEcosystemProjects = (size: number): Promise<Project[]> =>
}
return response.json();
})
.then((response) => response.content);
.then((response) => response.content)
.then((projects) => {
return projects.filter((project: Project) => !project.isHidden);
});

const fetchProjectById = (id: string): Promise<Project> =>
fetch(`${STARKNET_DB_BASE_URL}/projects/${id}`).then((response: Response) => {
Expand Down

0 comments on commit a76b078

Please sign in to comment.