{links.map(({ label, url }: ActionLinkTypeLink) => {
@@ -76,7 +73,7 @@ export default function ProjectExtraLinks({
{label}
diff --git a/components/project/project-filters-bar.tsx b/components/project/project-filters-bar.tsx
index 123e081..d22d2e1 100644
--- a/components/project/project-filters-bar.tsx
+++ b/components/project/project-filters-bar.tsx
@@ -18,8 +18,8 @@ import { IThemeStatus, IThemesButton, LangProps } from "@/types/common"
import {
ProjectSectionLabelMapping,
ProjectSections,
+ ProjectStatus,
ProjectStatusLabelMapping,
- ProjectStatusList,
} from "@/lib/types"
import { cn, queryStringToObject } from "@/lib/utils"
import { useTranslation } from "@/app/i18n/client"
@@ -288,8 +288,9 @@ export default function ProjectFiltersBar({ lang }: LangProps["params"]) {
className="hidden"
label={t("filterLabels.projectStatus")}
>
- {ProjectStatusList.map((section) => {
- const label = ProjectStatusLabelMapping[section]
+ {Object.keys(ProjectStatus).map((section: any) => {
+ // @ts-ignore
+ const label = ProjectStatusLabelMapping?.[section]
return
})}
@@ -297,7 +298,7 @@ export default function ProjectFiltersBar({ lang }: LangProps["params"]) {
{t("whatDoYouWantDoToday")}
-
+
{t("clearAll")}
diff --git a/components/project/project-link.tsx b/components/project/project-link.tsx
index e8a81d5..be9243e 100644
--- a/components/project/project-link.tsx
+++ b/components/project/project-link.tsx
@@ -1,20 +1,20 @@
"use client"
import Image from "next/image"
-import { ProjectLinkIconMap } from "@/data/projects"
import { ProjectLinkWebsite } from "@/lib/types"
+import { ProjectLinkIconMap } from "./project-links"
+
interface ProjectLinkProps {
url: string
website: ProjectLinkWebsite
}
export function ProjectLink({ website, url }: ProjectLinkProps) {
- const image = ProjectLinkIconMap?.[website as ProjectLinkWebsite]
+ const icon = ProjectLinkIconMap?.[website as ProjectLinkWebsite]
- // TODO: add support for youtube, discord and other links
- if (!image) return null
+ if (!icon) return null
return (
-
+ {icon}
)
}
diff --git a/components/project/project-links.tsx b/components/project/project-links.tsx
new file mode 100644
index 0000000..e42547f
--- /dev/null
+++ b/components/project/project-links.tsx
@@ -0,0 +1,11 @@
+import { RiTelegramLine as TelegramIcon } from "react-icons/ri"
+
+import { Icons } from "../icons"
+
+export const ProjectLinkIconMap: Record
= {
+ github: ,
+ website: ,
+ twitter: ,
+ telegram: ,
+ discord: ,
+}
diff --git a/components/ui/label.tsx b/components/ui/label.tsx
index a60b4ba..14f93a1 100644
--- a/components/ui/label.tsx
+++ b/components/ui/label.tsx
@@ -7,22 +7,22 @@ interface LabelProps {
const SectionTitle = ({ label, className = "" }: LabelProps) => {
return (
-
{label}
-
+
)
}
const MainPageTitle = ({ label }: LabelProps) => {
return (
-
+
{label}
-
+
)
}
diff --git a/data/projects.ts b/data/projects.ts
index 4802ba9..00a7d15 100644
--- a/data/projects.ts
+++ b/data/projects.ts
@@ -1,8 +1,4 @@
-import GithubIcon from "@/public/social-medias/github-fill.svg"
-import GlobeIcon from "@/public/social-medias/global-line.svg"
-import TwitterIcon from "@/public/social-medias/twitter-fill.svg"
-
-import { ProjectInterface, ProjectLinkType } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
import { anonAadhaar } from "./projects/anon-aadhaar"
import { anonKlub } from "./projects/anon-klub"
@@ -43,12 +39,6 @@ import { zkml } from "./projects/zkml"
import { Zkopru } from "./projects/zkopru"
import { zkp2p } from "./projects/zkp2p"
-export const ProjectLinkIconMap: ProjectLinkType = {
- github: GithubIcon,
- website: GlobeIcon,
- twitter: TwitterIcon,
-}
-
/**
* List of Projects
*
diff --git a/data/projects/anon-aadhaar.ts b/data/projects/anon-aadhaar.ts
index d2db933..c768d30 100644
--- a/data/projects/anon-aadhaar.ts
+++ b/data/projects/anon-aadhaar.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const anonAadhaar: ProjectInterface = {
id: "anon-aadhaar",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "anon-aadhaar.svg",
name: "Anon Aadhaar",
links: {
diff --git a/data/projects/anon-klub.ts b/data/projects/anon-klub.ts
index 9bac1f6..b03bff2 100644
--- a/data/projects/anon-klub.ts
+++ b/data/projects/anon-klub.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const anonKlub: ProjectInterface = {
id: "anon-klub",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "anonklub.svg",
name: "AnonKlub",
links: {
diff --git a/data/projects/bandada.ts b/data/projects/bandada.ts
index b1ecbef..e1ccd62 100644
--- a/data/projects/bandada.ts
+++ b/data/projects/bandada.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const bandada: ProjectInterface = {
id: "bandada",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "bandada.webp",
name: "Bandada",
links: {
diff --git a/data/projects/channel-4.ts b/data/projects/channel-4.ts
index 95e2306..7c49e9d 100644
--- a/data/projects/channel-4.ts
+++ b/data/projects/channel-4.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const channel4: ProjectInterface = {
id: "channel-4",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "channel4.svg",
name: "Channel 4",
links: {
diff --git a/data/projects/chiquito.ts b/data/projects/chiquito.ts
index a0c22fc..4b7e5b3 100644
--- a/data/projects/chiquito.ts
+++ b/data/projects/chiquito.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const chiquito: ProjectInterface = {
id: "chiquito",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "",
name: "chiquito",
links: {
diff --git a/data/projects/coco.ts b/data/projects/coco.ts
index 525c8de..623d6be 100644
--- a/data/projects/coco.ts
+++ b/data/projects/coco.ts
@@ -1,11 +1,11 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const Coco: ProjectInterface = {
id: "coco",
section: "pse",
image: "coco.svg",
name: "COCO",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
tags: {
keywords: ["prediction market", "scaling"],
},
diff --git a/data/projects/cryptkeeper.ts b/data/projects/cryptkeeper.ts
index e2e6bd6..87ea90a 100644
--- a/data/projects/cryptkeeper.ts
+++ b/data/projects/cryptkeeper.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const cryptkeeper: ProjectInterface = {
id: "cryptkeeper",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "cryptkeeper.webp",
name: "CryptKeeper",
links: {
diff --git a/data/projects/discreetly.ts b/data/projects/discreetly.ts
index 40f422f..5d1ac58 100644
--- a/data/projects/discreetly.ts
+++ b/data/projects/discreetly.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const discreetly: ProjectInterface = {
id: "discreetly",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "discreetly.svg",
name: "Discreetly",
links: {
diff --git a/data/projects/dsl-working-group.ts b/data/projects/dsl-working-group.ts
index 2cf7a7b..76a84dc 100644
--- a/data/projects/dsl-working-group.ts
+++ b/data/projects/dsl-working-group.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const dslWorkingGroup: ProjectInterface = {
id: "dsl-working-group",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "",
imageAlt: "DSL Working Group",
name: "DSL Working Group",
diff --git a/data/projects/ecip-halo2.ts b/data/projects/ecip-halo2.ts
index 8a8db83..3d464fa 100644
--- a/data/projects/ecip-halo2.ts
+++ b/data/projects/ecip-halo2.ts
@@ -1,4 +1,4 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const ECIPHalo2: ProjectInterface = {
id: "ecip-halo2",
@@ -6,7 +6,7 @@ export const ECIPHalo2: ProjectInterface = {
image: "",
imageAlt: "ECIP + Halo 2",
name: "ECIP (Elliptic Curve Inner Products) Halo 2 Implementation",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
links: {
github: "https://github.com/levs57/sage-circuits/",
website: "https://perpetualpowersoftau.com/",
diff --git a/data/projects/eigen-trust.ts b/data/projects/eigen-trust.ts
index c32b3f1..4df042c 100644
--- a/data/projects/eigen-trust.ts
+++ b/data/projects/eigen-trust.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const eigenTrust: ProjectInterface = {
id: "eigen-trust",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "",
name: "EigenTrust",
links: {
diff --git a/data/projects/interep.ts b/data/projects/interep.ts
index d9f3fa6..d4b4741 100644
--- a/data/projects/interep.ts
+++ b/data/projects/interep.ts
@@ -1,11 +1,11 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const Interep: ProjectInterface = {
id: "interep",
section: "pse",
image: "interep.svg",
name: "Interep",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
tags: {
keywords: ["social", "reputation"],
},
diff --git a/data/projects/jubmoji.ts b/data/projects/jubmoji.ts
index 24d24a5..42b2559 100644
--- a/data/projects/jubmoji.ts
+++ b/data/projects/jubmoji.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const jubmoji: ProjectInterface = {
id: "jubmoji",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "",
name: "jubmoji.quest",
links: {
diff --git a/data/projects/maci-rpgf.ts b/data/projects/maci-rpgf.ts
index b412831..9483271 100644
--- a/data/projects/maci-rpgf.ts
+++ b/data/projects/maci-rpgf.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const maciRPGF: ProjectInterface = {
id: "maci-rpgf",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "maci-rpgf.png",
name: "MACI RPGF",
links: {
diff --git a/data/projects/maci.ts b/data/projects/maci.ts
index ffdac1c..c18794b 100644
--- a/data/projects/maci.ts
+++ b/data/projects/maci.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const maci: ProjectInterface = {
id: "maci",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "maci.png",
name: "MACI",
links: {
diff --git a/data/projects/nfctap.ts b/data/projects/nfctap.ts
index 95b65c4..cd64bd0 100644
--- a/data/projects/nfctap.ts
+++ b/data/projects/nfctap.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const nfctap: ProjectInterface = {
id: "nfctap",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "",
name: "nfctap.xyz",
links: {
diff --git a/data/projects/openpassport.ts b/data/projects/openpassport.ts
index b6a7444..68ee7cb 100644
--- a/data/projects/openpassport.ts
+++ b/data/projects/openpassport.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const OpenPassport: ProjectInterface = {
id: "openpassport",
section: "grant",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "openpassport.jpg",
name: "OpenPassport",
links: {
diff --git a/data/projects/p0tion.ts b/data/projects/p0tion.ts
index 43c1d2f..0f88add 100644
--- a/data/projects/p0tion.ts
+++ b/data/projects/p0tion.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const p0tion: ProjectInterface = {
id: "p0tion",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "p0tion.png",
name: "p0tion",
links: {
diff --git a/data/projects/p256.ts b/data/projects/p256.ts
index 06e9c62..f737178 100644
--- a/data/projects/p256.ts
+++ b/data/projects/p256.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const p256: ProjectInterface = {
id: "p256",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "",
name: "P256",
links: {
diff --git a/data/projects/pollen-labs.ts b/data/projects/pollen-labs.ts
index eeff45d..9c50b40 100644
--- a/data/projects/pollen-labs.ts
+++ b/data/projects/pollen-labs.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const pollenLabs: ProjectInterface = {
id: "pollen-labs",
section: "collaboration",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "pollen-labs.svg",
name: "Pollen Labs",
links: {
diff --git a/data/projects/powers-of-tau.ts b/data/projects/powers-of-tau.ts
index 10311fe..e11375d 100644
--- a/data/projects/powers-of-tau.ts
+++ b/data/projects/powers-of-tau.ts
@@ -1,11 +1,11 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const PerpetualPowersOfTau: ProjectInterface = {
id: "perpetual-powers-of-tau",
section: "pse",
image: "powers-of-tau.png",
name: "Perpetual Powers of Tau",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
tags: {
keywords: ["scaling"],
},
diff --git a/data/projects/pse-security.ts b/data/projects/pse-security.ts
index 1e66080..24bf9cf 100644
--- a/data/projects/pse-security.ts
+++ b/data/projects/pse-security.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const pseSecurity: ProjectInterface = {
id: "pse-security",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "pse-security.png",
name: "PSE Security",
links: {
diff --git a/data/projects/rln.ts b/data/projects/rln.ts
index d2189f3..cf86043 100644
--- a/data/projects/rln.ts
+++ b/data/projects/rln.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const rln: ProjectInterface = {
id: "rln",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "rln.svg",
name: "Rate-Limiting Nullifier",
links: {
diff --git a/data/projects/semaphore.ts b/data/projects/semaphore.ts
index cc43af5..aec20c2 100644
--- a/data/projects/semaphore.ts
+++ b/data/projects/semaphore.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const semaphore: ProjectInterface = {
id: "semaphore",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "semaphore.webp",
previousBrandImage: "semaphorePrevious.jpg",
license: "MIT",
diff --git a/data/projects/summa.ts b/data/projects/summa.ts
index 2888b85..ae764db 100644
--- a/data/projects/summa.ts
+++ b/data/projects/summa.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const summa: ProjectInterface = {
id: "summa",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "summa.svg",
name: "Summa",
links: {
diff --git a/data/projects/tlsn.ts b/data/projects/tlsn.ts
index 59ced8c..fcbd38f 100644
--- a/data/projects/tlsn.ts
+++ b/data/projects/tlsn.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const tlsn: ProjectInterface = {
id: "tlsn",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "tlsn.webp",
name: "TLSNotary",
links: {
diff --git a/data/projects/trusted-setups.ts b/data/projects/trusted-setups.ts
index f99608e..2780773 100644
--- a/data/projects/trusted-setups.ts
+++ b/data/projects/trusted-setups.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const trustedSetups: ProjectInterface = {
id: "trusted-setups",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "trusted-setups.svg",
name: "Trusted Setups",
links: {
diff --git a/data/projects/unirep-protocol.ts b/data/projects/unirep-protocol.ts
index a292f94..6de6894 100644
--- a/data/projects/unirep-protocol.ts
+++ b/data/projects/unirep-protocol.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const unirepProtocol: ProjectInterface = {
id: "unirep-protocol",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "unirep.svg",
license: "MIT",
previousBrandImage: "unirep-previousBrand.png",
diff --git a/data/projects/voice-deck.ts b/data/projects/voice-deck.ts
index bee05c4..1df8253 100644
--- a/data/projects/voice-deck.ts
+++ b/data/projects/voice-deck.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const voicedeck: ProjectInterface = {
id: "voice-deck",
section: "collaboration",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "voiceDeck.svg",
name: "VoiceDeck",
links: {
diff --git a/data/projects/wax.ts b/data/projects/wax.ts
index 9939864..08044df 100644
--- a/data/projects/wax.ts
+++ b/data/projects/wax.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const wax: ProjectInterface = {
id: "wax",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "wax.webp",
name: "Wallet Account eXperiments - WAX",
links: {
diff --git a/data/projects/zk-email.ts b/data/projects/zk-email.ts
index 2d61d93..e19ca88 100644
--- a/data/projects/zk-email.ts
+++ b/data/projects/zk-email.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zkemail: ProjectInterface = {
id: "zk-email",
section: "collaboration",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "zk-email.jpeg",
name: "zk-email",
links: {
diff --git a/data/projects/zk-kit.ts b/data/projects/zk-kit.ts
index 603932c..2e013bf 100644
--- a/data/projects/zk-kit.ts
+++ b/data/projects/zk-kit.ts
@@ -1,11 +1,11 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const ZKKit: ProjectInterface = {
id: "zk-kit",
section: "pse",
image: "zk-kit.svg",
name: "ZK-Kit",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
links: {
website: "https://zkkit.pse.dev",
github: "https://github.com/privacy-scaling-explorations/zk-kit",
diff --git a/data/projects/zk3.ts b/data/projects/zk3.ts
index d7190c1..8c43d5c 100644
--- a/data/projects/zk3.ts
+++ b/data/projects/zk3.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zk3: ProjectInterface = {
id: "zk3",
section: "grant",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "zk3.svg",
name: "zk3",
links: {
diff --git a/data/projects/zkevm-community.ts b/data/projects/zkevm-community.ts
index 23135cf..13e4f23 100644
--- a/data/projects/zkevm-community.ts
+++ b/data/projects/zkevm-community.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zkevmCommunity: ProjectInterface = {
id: "zkevm-community",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "zkevm.jpg",
name: "zkEVM Community Edition",
links: {
diff --git a/data/projects/zkitter.ts b/data/projects/zkitter.ts
index 6a5e14d..3b4aff0 100644
--- a/data/projects/zkitter.ts
+++ b/data/projects/zkitter.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zkitter: ProjectInterface = {
id: "zkitter",
section: "pse",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
image: "zkitter.webp",
name: "Zkitter",
links: {
diff --git a/data/projects/zkml.ts b/data/projects/zkml.ts
index 0f4b3fb..82f5a14 100644
--- a/data/projects/zkml.ts
+++ b/data/projects/zkml.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zkml: ProjectInterface = {
id: "zkml",
section: "pse",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "zkml.png",
name: "ZKML",
links: {
diff --git a/data/projects/zkopru.ts b/data/projects/zkopru.ts
index 3e775ac..f808f35 100644
--- a/data/projects/zkopru.ts
+++ b/data/projects/zkopru.ts
@@ -1,11 +1,11 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const Zkopru: ProjectInterface = {
id: "zkopru",
section: "pse",
image: "zkopru.svg",
name: "ZKOPRU",
- projectStatus: "inactive",
+ projectStatus: ProjectStatus.INACTIVE,
links: {
website: "https://zkopru.network/",
github: "https://github.com/zkopru-network",
diff --git a/data/projects/zkp2p.ts b/data/projects/zkp2p.ts
index 51158cb..defee93 100644
--- a/data/projects/zkp2p.ts
+++ b/data/projects/zkp2p.ts
@@ -1,9 +1,9 @@
-import { ProjectInterface } from "@/lib/types"
+import { ProjectInterface, ProjectStatus } from "@/lib/types"
export const zkp2p: ProjectInterface = {
id: "zkp2p",
section: "grant",
- projectStatus: "active",
+ projectStatus: ProjectStatus.ACTIVE,
image: "zkp2p.webp",
name: "ZKP2P",
links: {
diff --git a/lib/types.ts b/lib/types.ts
index d666260..6136de9 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -4,20 +4,21 @@ import { ReactNode } from "react"
export const ProjectSections = ["pse", "grant", "collaboration"] as const
export type ProjectSection = (typeof ProjectSections)[number]
+export enum ProjectStatus {
+ ACTIVE = "active",
+ INACTIVE = "inactive",
+}
export interface Faq {
question: string
answer: ReactNode
}
-export const ProjectStatusList = ["active", "inactive"] as const
-export type ProjectStatusType = (typeof ProjectStatusList)[number]
-
export const ProjectSectionLabelMapping: Record = {
pse: "PSE projects",
grant: "Grants",
collaboration: "Collaborations",
}
-export const ProjectStatusLabelMapping: Record = {
+export const ProjectStatusLabelMapping: Record = {
active: "Active",
inactive: "Not Currently Active",
}
@@ -53,7 +54,7 @@ export type ProjectLinkWebsite =
| "youtube"
| "telegram"
-export type ProjectLinkType = Partial>
+export type ProjectLinkType = Partial>
export type ProjectExtraLinkType = "buildWith" | "play" | "research" | "learn"
export type TagType =
| "types"
@@ -82,7 +83,7 @@ export interface ProjectInterface {
tldr?: string // this is managed by the specific translation file in /i18n/locales
description?: string // this is managed by the specific translation file /i18n/locales
links?: ProjectLinkType
- projectStatus: ProjectStatusType
+ projectStatus: ProjectStatus
tags?: ProjectTags
extraLinks?: ActionLinkType
}
diff --git a/lib/utils.ts b/lib/utils.ts
index 098986e..9065e90 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -40,3 +40,7 @@ export function convertDirtyStringToHtml(string: string) {
.replace(pseudoUrlPattern, '$1$2')
.toLowerCase()
}
+
+export function removeProtocol(url: string) {
+ return url?.replace(/^https?:\/\//, "")
+}
diff --git a/public/social-medias/github-fill.svg b/public/social-medias/github-fill.svg
deleted file mode 100644
index e5ca733..0000000
--- a/public/social-medias/github-fill.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/public/social-medias/global-line.svg b/public/social-medias/global-line.svg
deleted file mode 100644
index 16f6555..0000000
--- a/public/social-medias/global-line.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/public/social-medias/twitter-fill.svg b/public/social-medias/twitter-fill.svg
deleted file mode 100644
index 2d87267..0000000
--- a/public/social-medias/twitter-fill.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/public/social-medias/youtube-fill.svg b/public/social-medias/youtube-fill.svg
deleted file mode 100644
index 013652c..0000000
--- a/public/social-medias/youtube-fill.svg
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/types/common.ts b/types/common.ts
index d357bcf..b468bb3 100644
--- a/types/common.ts
+++ b/types/common.ts
@@ -1,4 +1,4 @@
-import { ProjectStatusType } from "@/lib/types"
+import { ProjectStatus } from "@/lib/types"
import { LocaleTypes } from "@/app/i18n/settings"
export interface LangProps {
@@ -9,7 +9,7 @@ export interface LangProps {
export type IThemeStatus = Partial<
Record<
- ProjectStatusType,
+ ProjectStatus,
{
label: string
icon: any