From 8250db60c2388203000479b5d7720fa8385750de Mon Sep 17 00:00:00 2001 From: myelinated-wackerow <263208946+myelinated-wackerow@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:04:31 -0700 Subject: [PATCH] fix: circular import; extract REFERENCE to own namespace Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com> --- app/[locale]/10years/page-jsonld.tsx | 3 ++- app/[locale]/[...slug]/page-jsonld.tsx | 3 ++- app/[locale]/apps/[application]/page-jsonld.tsx | 3 ++- .../categories/[catetgoryName]/page-jsonld.tsx | 3 ++- app/[locale]/apps/page-jsonld.tsx | 3 ++- app/[locale]/assets/page-jsonld.tsx | 3 ++- app/[locale]/bug-bounty/page-jsonld.tsx | 3 ++- app/[locale]/collectibles/page-jsonld.tsx | 3 ++- .../community/events/conferences/page-jsonld.tsx | 3 ++- .../community/events/meetups/page-jsonld.tsx | 3 ++- app/[locale]/community/events/page-jsonld.tsx | 3 ++- .../community/events/search/page-jsonld.tsx | 3 ++- app/[locale]/community/page-jsonld.tsx | 3 ++- app/[locale]/community/support/page-jsonld.tsx | 3 ++- .../acknowledgements/page-jsonld.tsx | 3 ++- .../contributors/page-jsonld.tsx | 3 ++- .../translatathon/leaderboard/page-jsonld.tsx | 3 ++- app/[locale]/developers/page-jsonld.tsx | 3 ++- .../developers/tools/[category]/page-jsonld.tsx | 3 ++- app/[locale]/developers/tools/page-jsonld.tsx | 3 ++- .../developers/tutorials/page-jsonld.tsx | 3 ++- .../page-jsonld.tsx | 3 ++- app/[locale]/ethereum-vs-bitcoin/page-jsonld.tsx | 3 ++- app/[locale]/founders/page-jsonld.tsx | 3 ++- app/[locale]/gas/page-jsonld.tsx | 3 ++- app/[locale]/get-eth/page-jsonld.tsx | 3 ++- app/[locale]/layer-2/learn/page-jsonld.tsx | 3 ++- app/[locale]/layer-2/networks/page-jsonld.tsx | 3 ++- app/[locale]/layer-2/page-jsonld.tsx | 3 ++- app/[locale]/learn/page-jsonld.tsx | 3 ++- app/[locale]/page-jsonld.tsx | 3 ++- app/[locale]/quizzes/page-jsonld.tsx | 3 ++- app/[locale]/resources/page-jsonld.tsx | 3 ++- app/[locale]/roadmap/_vision/page-jsonld.tsx | 3 ++- app/[locale]/roadmap/page-jsonld.tsx | 3 ++- app/[locale]/run-a-node/page-jsonld.tsx | 3 ++- app/[locale]/stablecoins/page-jsonld.tsx | 3 ++- .../staking/deposit-contract/page-jsonld.tsx | 3 ++- app/[locale]/staking/page-jsonld.tsx | 3 ++- app/[locale]/start/page-jsonld.tsx | 3 ++- .../trillion-dollar-security/page-jsonld.tsx | 3 ++- app/[locale]/use-cases/page-jsonld.tsx | 3 ++- app/[locale]/videos/[slug]/page-jsonld.tsx | 3 ++- app/[locale]/videos/page-jsonld.tsx | 3 ++- app/[locale]/wallets/find-wallet/page-jsonld.tsx | 3 ++- app/[locale]/wallets/page-jsonld.tsx | 3 ++- app/[locale]/what-is-ether/page-jsonld.tsx | 3 ++- app/[locale]/what-is-ethereum/page-jsonld.tsx | 3 ++- .../what-is-the-ethereum-network/page-jsonld.tsx | 3 ++- ...-developers-tutorials-gasless-token-data.json | 14 ++++++++++++++ src/lib/jsonld/constants.ts | 16 +--------------- src/lib/jsonld/organizations.ts | 2 +- src/lib/jsonld/references.ts | 14 ++++++++++++++ src/lib/jsonld/utils.ts | 2 +- 54 files changed, 129 insertions(+), 66 deletions(-) create mode 100644 src/data/placeholders/content-developers-tutorials-gasless-token-data.json create mode 100644 src/lib/jsonld/references.ts diff --git a/app/[locale]/10years/page-jsonld.tsx b/app/[locale]/10years/page-jsonld.tsx index 5c0c81e2d86..89804c96a95 100644 --- a/app/[locale]/10years/page-jsonld.tsx +++ b/app/[locale]/10years/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function TenYearJsonLD({ locale, diff --git a/app/[locale]/[...slug]/page-jsonld.tsx b/app/[locale]/[...slug]/page-jsonld.tsx index 32dfe10e803..8be6569206f 100644 --- a/app/[locale]/[...slug]/page-jsonld.tsx +++ b/app/[locale]/[...slug]/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" import { resolveAuthorsFromFrontmatter } from "@/lib/jsonld/utils" export default async function SlugJsonLD({ diff --git a/app/[locale]/apps/[application]/page-jsonld.tsx b/app/[locale]/apps/[application]/page-jsonld.tsx index bdb7ec1e395..f4955dd32f0 100644 --- a/app/[locale]/apps/[application]/page-jsonld.tsx +++ b/app/[locale]/apps/[application]/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd, slugify } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" // Map internal app categories to schema.org enumerated applicationCategory values // https://schema.org/applicationCategory diff --git a/app/[locale]/apps/categories/[catetgoryName]/page-jsonld.tsx b/app/[locale]/apps/categories/[catetgoryName]/page-jsonld.tsx index 4c51a07988f..0faabae657c 100644 --- a/app/[locale]/apps/categories/[catetgoryName]/page-jsonld.tsx +++ b/app/[locale]/apps/categories/[catetgoryName]/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function AppsCategoryJsonLD({ locale, diff --git a/app/[locale]/apps/page-jsonld.tsx b/app/[locale]/apps/page-jsonld.tsx index dffac2f2a38..0f5fe952c5a 100644 --- a/app/[locale]/apps/page-jsonld.tsx +++ b/app/[locale]/apps/page-jsonld.tsx @@ -8,7 +8,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import { appsCategories } from "@/data/apps/categories" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function AppsJsonLD({ locale, diff --git a/app/[locale]/assets/page-jsonld.tsx b/app/[locale]/assets/page-jsonld.tsx index 0012c2321e8..7456f9a2a47 100644 --- a/app/[locale]/assets/page-jsonld.tsx +++ b/app/[locale]/assets/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function AssetsJsonLD({ locale, diff --git a/app/[locale]/bug-bounty/page-jsonld.tsx b/app/[locale]/bug-bounty/page-jsonld.tsx index 99e30b86438..5220fc9cdc4 100644 --- a/app/[locale]/bug-bounty/page-jsonld.tsx +++ b/app/[locale]/bug-bounty/page-jsonld.tsx @@ -6,8 +6,9 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" import { KNOWN_PERSONS } from "@/lib/jsonld/persons" +import { REFERENCE } from "@/lib/jsonld/references" import { personReference } from "@/lib/jsonld/utils" export default async function BugBountyJsonLD({ diff --git a/app/[locale]/collectibles/page-jsonld.tsx b/app/[locale]/collectibles/page-jsonld.tsx index 60354eb9c9e..f846e2bb1a0 100644 --- a/app/[locale]/collectibles/page-jsonld.tsx +++ b/app/[locale]/collectibles/page-jsonld.tsx @@ -9,7 +9,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import { COLLECTIBLES_BASE_URL } from "./constants" import type { Badge, Stats } from "./types" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function CollectiblesJsonLD({ locale, diff --git a/app/[locale]/community/events/conferences/page-jsonld.tsx b/app/[locale]/community/events/conferences/page-jsonld.tsx index 5b156f01494..0d76ad0326e 100644 --- a/app/[locale]/community/events/conferences/page-jsonld.tsx +++ b/app/[locale]/community/events/conferences/page-jsonld.tsx @@ -7,7 +7,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { getLocaleYear } from "@/lib/utils/date" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" function eventTypeFor( event: EventItem diff --git a/app/[locale]/community/events/meetups/page-jsonld.tsx b/app/[locale]/community/events/meetups/page-jsonld.tsx index 5aa989fb620..fd36a419db5 100644 --- a/app/[locale]/community/events/meetups/page-jsonld.tsx +++ b/app/[locale]/community/events/meetups/page-jsonld.tsx @@ -7,7 +7,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { getLocaleYear } from "@/lib/utils/date" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" function toEventNode(event: EventItem) { return { diff --git a/app/[locale]/community/events/page-jsonld.tsx b/app/[locale]/community/events/page-jsonld.tsx index fddc0291a74..45c5e47a9cb 100644 --- a/app/[locale]/community/events/page-jsonld.tsx +++ b/app/[locale]/community/events/page-jsonld.tsx @@ -10,7 +10,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import { communityHubSchemas } from "@/data/community-hub-schemas" import communityHubs from "@/data/community-hubs" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" function buildHubSchemaNodes( hub: (typeof communityHubs)[number], diff --git a/app/[locale]/community/events/search/page-jsonld.tsx b/app/[locale]/community/events/search/page-jsonld.tsx index ee85535a610..28d6eb1e7ac 100644 --- a/app/[locale]/community/events/search/page-jsonld.tsx +++ b/app/[locale]/community/events/search/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function EventsSearchJsonLD({ locale, diff --git a/app/[locale]/community/page-jsonld.tsx b/app/[locale]/community/page-jsonld.tsx index 63aa81b48f4..ebaeaf7f9fd 100644 --- a/app/[locale]/community/page-jsonld.tsx +++ b/app/[locale]/community/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function CommunityJsonLD({ locale, diff --git a/app/[locale]/community/support/page-jsonld.tsx b/app/[locale]/community/support/page-jsonld.tsx index 6e709eb215b..4d2ccb7d43e 100644 --- a/app/[locale]/community/support/page-jsonld.tsx +++ b/app/[locale]/community/support/page-jsonld.tsx @@ -8,7 +8,8 @@ import { isExternal, normalizeUrlForJsonLd } from "@/lib/utils/url" import { sections } from "./data" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function SupportJsonLD({ locale, diff --git a/app/[locale]/contributing/translation-program/acknowledgements/page-jsonld.tsx b/app/[locale]/contributing/translation-program/acknowledgements/page-jsonld.tsx index 00b324e8455..6ed5841836b 100644 --- a/app/[locale]/contributing/translation-program/acknowledgements/page-jsonld.tsx +++ b/app/[locale]/contributing/translation-program/acknowledgements/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function AcknowledgementsJsonLD({ locale, diff --git a/app/[locale]/contributing/translation-program/contributors/page-jsonld.tsx b/app/[locale]/contributing/translation-program/contributors/page-jsonld.tsx index 6fe48b3b382..6d55a4525d5 100644 --- a/app/[locale]/contributing/translation-program/contributors/page-jsonld.tsx +++ b/app/[locale]/contributing/translation-program/contributors/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function ContributorsJsonLD({ locale, diff --git a/app/[locale]/contributing/translation-program/translatathon/leaderboard/page-jsonld.tsx b/app/[locale]/contributing/translation-program/translatathon/leaderboard/page-jsonld.tsx index 6afbee664fa..8545953b4c6 100644 --- a/app/[locale]/contributing/translation-program/translatathon/leaderboard/page-jsonld.tsx +++ b/app/[locale]/contributing/translation-program/translatathon/leaderboard/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function TranslatathonLeaderboardJsonLD({ locale, diff --git a/app/[locale]/developers/page-jsonld.tsx b/app/[locale]/developers/page-jsonld.tsx index bff93c429aa..08da7e1bc2b 100644 --- a/app/[locale]/developers/page-jsonld.tsx +++ b/app/[locale]/developers/page-jsonld.tsx @@ -8,7 +8,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import { DevelopersPath, VideoCourse } from "./types" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function DevelopersPageJsonLD({ locale, diff --git a/app/[locale]/developers/tools/[category]/page-jsonld.tsx b/app/[locale]/developers/tools/[category]/page-jsonld.tsx index 11f72e69e92..545b4352faa 100644 --- a/app/[locale]/developers/tools/[category]/page-jsonld.tsx +++ b/app/[locale]/developers/tools/[category]/page-jsonld.tsx @@ -8,7 +8,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import type { DeveloperTool, DeveloperToolCategorySlug } from "../types" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function DevelopersToolsCategoryJsonLD({ locale, diff --git a/app/[locale]/developers/tools/page-jsonld.tsx b/app/[locale]/developers/tools/page-jsonld.tsx index f562ad57084..777ec3c2d10 100644 --- a/app/[locale]/developers/tools/page-jsonld.tsx +++ b/app/[locale]/developers/tools/page-jsonld.tsx @@ -8,7 +8,8 @@ import { normalizeUrlForJsonLd } from "@/lib/utils/url" import { DEV_TOOL_CATEGORIES } from "./constants" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function DevelopersToolsJsonLD({ locale, diff --git a/app/[locale]/developers/tutorials/page-jsonld.tsx b/app/[locale]/developers/tutorials/page-jsonld.tsx index 1b1eef5124f..6472a7e8b72 100644 --- a/app/[locale]/developers/tutorials/page-jsonld.tsx +++ b/app/[locale]/developers/tutorials/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function TutorialsPageJsonLD({ locale, diff --git a/app/[locale]/ethereum-history-founder-and-ownership/page-jsonld.tsx b/app/[locale]/ethereum-history-founder-and-ownership/page-jsonld.tsx index 9b55a42df12..7f49dfdfb0b 100644 --- a/app/[locale]/ethereum-history-founder-and-ownership/page-jsonld.tsx +++ b/app/[locale]/ethereum-history-founder-and-ownership/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function EthereumHistoryFounderAndOwnershipPageJsonLD({ locale, diff --git a/app/[locale]/ethereum-vs-bitcoin/page-jsonld.tsx b/app/[locale]/ethereum-vs-bitcoin/page-jsonld.tsx index dc7c322e559..9e9fcf3b32c 100644 --- a/app/[locale]/ethereum-vs-bitcoin/page-jsonld.tsx +++ b/app/[locale]/ethereum-vs-bitcoin/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function EthereumVsBitcoinPageJsonLD({ locale, diff --git a/app/[locale]/founders/page-jsonld.tsx b/app/[locale]/founders/page-jsonld.tsx index 456ab1d1b28..21bda14080a 100644 --- a/app/[locale]/founders/page-jsonld.tsx +++ b/app/[locale]/founders/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function FoundersPageJsonLD({ locale, diff --git a/app/[locale]/gas/page-jsonld.tsx b/app/[locale]/gas/page-jsonld.tsx index 8676563a757..3d0a12fad76 100644 --- a/app/[locale]/gas/page-jsonld.tsx +++ b/app/[locale]/gas/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function GasPageJsonLD({ locale, diff --git a/app/[locale]/get-eth/page-jsonld.tsx b/app/[locale]/get-eth/page-jsonld.tsx index 3b20bb6a92b..e6705a2894d 100644 --- a/app/[locale]/get-eth/page-jsonld.tsx +++ b/app/[locale]/get-eth/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function GetEthPageJsonLD({ locale, diff --git a/app/[locale]/layer-2/learn/page-jsonld.tsx b/app/[locale]/layer-2/learn/page-jsonld.tsx index 66fbb90ea28..fc44c7a1564 100644 --- a/app/[locale]/layer-2/learn/page-jsonld.tsx +++ b/app/[locale]/layer-2/learn/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function Layer2LearnPageJsonLD({ locale, diff --git a/app/[locale]/layer-2/networks/page-jsonld.tsx b/app/[locale]/layer-2/networks/page-jsonld.tsx index d0010f369cc..b9a59d2c52c 100644 --- a/app/[locale]/layer-2/networks/page-jsonld.tsx +++ b/app/[locale]/layer-2/networks/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function Layer2NetworksPageJsonLD({ locale, diff --git a/app/[locale]/layer-2/page-jsonld.tsx b/app/[locale]/layer-2/page-jsonld.tsx index ceefd927cd2..02ade820034 100644 --- a/app/[locale]/layer-2/page-jsonld.tsx +++ b/app/[locale]/layer-2/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function Layer2PageJsonLD({ locale, diff --git a/app/[locale]/learn/page-jsonld.tsx b/app/[locale]/learn/page-jsonld.tsx index 47bf0e19b60..fdb8ac516ec 100644 --- a/app/[locale]/learn/page-jsonld.tsx +++ b/app/[locale]/learn/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function LearnPageJsonLD({ locale, contributors }) { const t = await getTranslations("page-learn") diff --git a/app/[locale]/page-jsonld.tsx b/app/[locale]/page-jsonld.tsx index 48a7af14fe8..acc0c0523c1 100644 --- a/app/[locale]/page-jsonld.tsx +++ b/app/[locale]/page-jsonld.tsx @@ -4,8 +4,9 @@ import { Lang } from "@/lib/types" import PageJsonLD from "@/components/PageJsonLD" -import { ETHEREUM_ORG_WEBSITE, REFERENCE } from "@/lib/jsonld/constants" +import { ETHEREUM_ORG_WEBSITE } from "@/lib/jsonld/constants" import { KNOWN_ORGANIZATIONS } from "@/lib/jsonld/organizations" +import { REFERENCE } from "@/lib/jsonld/references" export default async function IndexPageJsonLD({ locale, diff --git a/app/[locale]/quizzes/page-jsonld.tsx b/app/[locale]/quizzes/page-jsonld.tsx index b43e00a635d..1522fc96588 100644 --- a/app/[locale]/quizzes/page-jsonld.tsx +++ b/app/[locale]/quizzes/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function QuizzesPageJsonLD({ locale, diff --git a/app/[locale]/resources/page-jsonld.tsx b/app/[locale]/resources/page-jsonld.tsx index 2d1534662d0..fedf027a844 100644 --- a/app/[locale]/resources/page-jsonld.tsx +++ b/app/[locale]/resources/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function ResourcesPageJsonLD({ locale, diff --git a/app/[locale]/roadmap/_vision/page-jsonld.tsx b/app/[locale]/roadmap/_vision/page-jsonld.tsx index 4c0626b7191..a0274dc5baf 100644 --- a/app/[locale]/roadmap/_vision/page-jsonld.tsx +++ b/app/[locale]/roadmap/_vision/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function RoadmapVisionPageJsonLD({ locale, diff --git a/app/[locale]/roadmap/page-jsonld.tsx b/app/[locale]/roadmap/page-jsonld.tsx index f3c239073e8..09af6b65614 100644 --- a/app/[locale]/roadmap/page-jsonld.tsx +++ b/app/[locale]/roadmap/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function RoadmapPageJsonLD({ locale, diff --git a/app/[locale]/run-a-node/page-jsonld.tsx b/app/[locale]/run-a-node/page-jsonld.tsx index 78fc9f02b9d..e065060d074 100644 --- a/app/[locale]/run-a-node/page-jsonld.tsx +++ b/app/[locale]/run-a-node/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function RunANodePageJsonLD({ locale, diff --git a/app/[locale]/stablecoins/page-jsonld.tsx b/app/[locale]/stablecoins/page-jsonld.tsx index 16030ba946a..ac64c5fed79 100644 --- a/app/[locale]/stablecoins/page-jsonld.tsx +++ b/app/[locale]/stablecoins/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function StablecoinsPageJsonLD({ locale, contributors }) { const t = await getTranslations("page-stablecoins") diff --git a/app/[locale]/staking/deposit-contract/page-jsonld.tsx b/app/[locale]/staking/deposit-contract/page-jsonld.tsx index cd00290c5c2..685528ebd17 100644 --- a/app/[locale]/staking/deposit-contract/page-jsonld.tsx +++ b/app/[locale]/staking/deposit-contract/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function DepositContractJsonLD({ locale, diff --git a/app/[locale]/staking/page-jsonld.tsx b/app/[locale]/staking/page-jsonld.tsx index 9bf96c4e09c..2e5312f85de 100644 --- a/app/[locale]/staking/page-jsonld.tsx +++ b/app/[locale]/staking/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function StakingPageJsonLD({ locale, diff --git a/app/[locale]/start/page-jsonld.tsx b/app/[locale]/start/page-jsonld.tsx index 80380294f51..b0a0daef071 100644 --- a/app/[locale]/start/page-jsonld.tsx +++ b/app/[locale]/start/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function StartPageJsonLD({ locale, diff --git a/app/[locale]/trillion-dollar-security/page-jsonld.tsx b/app/[locale]/trillion-dollar-security/page-jsonld.tsx index 87ac9bb8349..9351a4a0577 100644 --- a/app/[locale]/trillion-dollar-security/page-jsonld.tsx +++ b/app/[locale]/trillion-dollar-security/page-jsonld.tsx @@ -6,8 +6,9 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" import { KNOWN_PERSONS } from "@/lib/jsonld/persons" +import { REFERENCE } from "@/lib/jsonld/references" import { personReference } from "@/lib/jsonld/utils" export default async function TrillionDollarSecurityPageJsonLD({ diff --git a/app/[locale]/use-cases/page-jsonld.tsx b/app/[locale]/use-cases/page-jsonld.tsx index 6d88b088fd8..0eb8c8b905b 100644 --- a/app/[locale]/use-cases/page-jsonld.tsx +++ b/app/[locale]/use-cases/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function UseCasesPageJsonLD({ locale, contributors }) { const t = await getTranslations("page-use-cases") diff --git a/app/[locale]/videos/[slug]/page-jsonld.tsx b/app/[locale]/videos/[slug]/page-jsonld.tsx index 9dd6b72f614..c6316e807c8 100644 --- a/app/[locale]/videos/[slug]/page-jsonld.tsx +++ b/app/[locale]/videos/[slug]/page-jsonld.tsx @@ -8,7 +8,8 @@ import { stripMarkdown } from "@/lib/utils/md" import { toIsoDuration } from "@/lib/utils/time" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" import { resolveAuthorsFromFrontmatter } from "@/lib/jsonld/utils" export default async function VideoPageJsonLD({ diff --git a/app/[locale]/videos/page-jsonld.tsx b/app/[locale]/videos/page-jsonld.tsx index 44a650591a0..4c58f9a48cb 100644 --- a/app/[locale]/videos/page-jsonld.tsx +++ b/app/[locale]/videos/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function VideosPageJsonLD({ locale, diff --git a/app/[locale]/wallets/find-wallet/page-jsonld.tsx b/app/[locale]/wallets/find-wallet/page-jsonld.tsx index 20b1d27eb91..8fa9ef95be3 100644 --- a/app/[locale]/wallets/find-wallet/page-jsonld.tsx +++ b/app/[locale]/wallets/find-wallet/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function FindWalletPageJsonLD({ locale, diff --git a/app/[locale]/wallets/page-jsonld.tsx b/app/[locale]/wallets/page-jsonld.tsx index a05422322f7..ca2fd8eb674 100644 --- a/app/[locale]/wallets/page-jsonld.tsx +++ b/app/[locale]/wallets/page-jsonld.tsx @@ -4,7 +4,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function WalletsPageJsonLD({ locale, diff --git a/app/[locale]/what-is-ether/page-jsonld.tsx b/app/[locale]/what-is-ether/page-jsonld.tsx index 1e262a3463c..941b0eab6fd 100644 --- a/app/[locale]/what-is-ether/page-jsonld.tsx +++ b/app/[locale]/what-is-ether/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function WhatIsEtherPageJsonLD({ locale, diff --git a/app/[locale]/what-is-ethereum/page-jsonld.tsx b/app/[locale]/what-is-ethereum/page-jsonld.tsx index ea24f1ac53a..ec09807e0b6 100644 --- a/app/[locale]/what-is-ethereum/page-jsonld.tsx +++ b/app/[locale]/what-is-ethereum/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function WhatIsEthereumPageJsonLD({ locale, diff --git a/app/[locale]/what-is-the-ethereum-network/page-jsonld.tsx b/app/[locale]/what-is-the-ethereum-network/page-jsonld.tsx index 23f03440c77..8306690ad72 100644 --- a/app/[locale]/what-is-the-ethereum-network/page-jsonld.tsx +++ b/app/[locale]/what-is-the-ethereum-network/page-jsonld.tsx @@ -6,7 +6,8 @@ import PageJsonLD from "@/components/PageJsonLD" import { normalizeUrlForJsonLd } from "@/lib/utils/url" -import { BASE_GRAPH_NODES, REFERENCE } from "@/lib/jsonld/constants" +import { BASE_GRAPH_NODES } from "@/lib/jsonld/constants" +import { REFERENCE } from "@/lib/jsonld/references" export default async function WhatIsTheEthereumNetworkPageJsonLD({ locale, diff --git a/src/data/placeholders/content-developers-tutorials-gasless-token-data.json b/src/data/placeholders/content-developers-tutorials-gasless-token-data.json new file mode 100644 index 00000000000..8ed679833d1 --- /dev/null +++ b/src/data/placeholders/content-developers-tutorials-gasless-token-data.json @@ -0,0 +1,14 @@ +{ + "/content/developers/tutorials/gasless-token/fig-1-opaque-calldata.png": { + "hash": "50bd0276", + "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAANCAYAAACgu+4kAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABxElEQVR4nK1SW0sbQRgdwSt4RUR9KIhWUmoQfBCF+iYI/QXWhyj+A+k/EHozUbxE3MR4pUolGxUkBB/MWuIGREutLphN20QkKlQTlPUlJOqR+TYV64sXeuAwwzfnnPmYb5iiqNC0c0SjMcRip9A0DZvfFHw0O+AYE9E/OA1L/yQCaginZ2ek4+Se9Y0tsFA4gmQigds4OPyDmS9uLC5JxDnXMoXfxfZOgAfsQZZl2O0OrHgljE9MQbDZMSKMwGq1wmYT4Pa4MT4xicGhYTidIj6ZLaTlXTHeQVfXW+TmF5NAFOdpff+hBz2WXlqd4gI+z8xCsI3C5ZpHX98A/H6/HhA5OEJHRyfKyp+hrc2EGmMd6htewfDCSGxobEJFZTWqDTWoem4gcm3rGxN+hfbBNja3SJiVXQDGMsHSc1FUXEodFRSWkDktI4/IWE5Klw5Te6cesBsI4qWxFowxCuDC5pbXkKRV4orXC0n6Cp8sw7e2dlMPh/eg7P7U34AXurvfweNZhqoGEY/HifeBphBQf9Ps/+K2OZlI4vLqKrXXR31xeXFznhpj5B/jQ26+8w/0gKfg/wR8/6HQHz8+iT6K3OOT13ENdsCgCOj72ZoAAAAASUVORK5CYII=" + }, + "/content/developers/tutorials/gasless-token/fig-2-transparent-signature.png": { + "hash": "924f4956", + "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAACXBIWXMAAA7DAAAOwwHHb6hkAAABkUlEQVR4nK1QPUiCURR9BQ1NTUJzDWG/Rj/Sz1BDGBREaGFGBQ39CC5RQWXQEFG0RUs0SEFb2NRUNkRRWET5gZoa6Yf6qVEpDdaQJ979cDAJMjpw3r2cd9/hvMvsV7d49It4eBSpcjrdPthOLnB6ZseR7ZzINT6TZjAs4dJ+AxaNxvAdV9cCDCNTMJqWMDo2B53eBIdwnzUnRZ7APB4fAgER8XiCaliSiJFIBH6/H6FwCK+vL3SX1uT5OEQxKBsYBodQUlqGjY1NTM/Mor29Az09WrS0thEnJ00wDA5D09lFva5PD01nNwTBCcbd+vsHwBiD3jCEefMitra2MT5hxOraOpLJJMXlNd3LSMkJEok3zC+YyZ3lF6KgsAhqdTMZMpaHGlU9GhqbUKOqg7K8GhVVtaTxlC63l3/BC6WykmIdH9uwvLxCCX4DWuL7+wcslh0oFMXo1fZRb7UegOuZkX8wuL1zwOW+pw1z5gIyiMWeM8TsZeVogFwT8IPjM5XKiRwhKfYPCXb39mE9OPwT+dsvg5z1eJ2JS34AAAAASUVORK5CYII=" + }, + "/content/developers/tutorials/gasless-token/fig-3-truncated-addresses.png": { + "hash": "8973a2b6", + "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAQCAYAAAAvf+5AAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAB0ElEQVR4nF2R3WoTURDHBwSv1VAFEYNe1Auv/Eh9A++EgtA+iX0Ir/oY3gUilBYhhIrQJGa7m5p0zX402XQ92+TsdrskbtgQ/zIT8MIDw5lzzm9m/meG3t16ire3n2OLHuAVlfCC7oi9pBIqdB9v6CFe0wbo0/5HfD2oYZJcI45j/L+WyyVc2wHZ7SbCCx8qihCGIbTW0HGMKIqQpqnAKlKgPwBmsxkODg9R+1zD0dEX1Ot1VKtVnJqmgEEQgBaLhZTkaLYkSXCdpsiyTHZ+50rE0NnZDzkwyOdYTxHHCfr9c1hWF57ngzgDg7b9E543hG+bcHpNuTs5aWIwcNYg6wuCMbSORWua3uAmyzCf5eLP578xHI5ADLQ7hmRQKkKsE2idSJZutwfHceH5/ho8NS15iNQU6irAuWvg+PgbGo0G2u3vcBxnDRqGiV6vjyC4xGR6hYuRi9EwEMi0unA9D8TNZY2TyVR0/goVDMNCq9USsNMx4DHIAP+OBXNLZDJaiz8eX4r2wWDA7Unh+4H8kH3uY1EsxfJ8gdVqJeOkPM+lpGlaUEqhKApsbj4DEeHuvZLsOzu7IJ4GR/i+/28629vvUS4/QaWyhUePy/iwt4e/C3sb8fdXuNsAAAAASUVORK5CYII=" + } +} \ No newline at end of file diff --git a/src/lib/jsonld/constants.ts b/src/lib/jsonld/constants.ts index 0a15b2125e6..a648f9c1498 100644 --- a/src/lib/jsonld/constants.ts +++ b/src/lib/jsonld/constants.ts @@ -4,21 +4,7 @@ */ import { KNOWN_ORGANIZATIONS } from "./organizations" - -export const REFERENCE = { - /** - * Reference to Ethereum Foundation organization (for use when the full object is already defined elsewhere) - */ - ETHEREUM_FOUNDATION: { "@id": "https://ethereum.foundation/#organization" }, - /** - * Reference to Ethereum Community organization (for use when the full object is already defined elsewhere) - */ - ETHEREUM_COMMUNITY: { "@id": "https://ethereum.org/#community-organization" }, - /** - * Reference to the ethereum.org WebSite entity (for use when the full object is already defined elsewhere in the graph) - */ - ETHEREUM_ORG_WEBSITE: { "@id": "https://ethereum.org/#website" }, -} as const +import { REFERENCE } from "./references" /** * ethereum.org WebSite entity diff --git a/src/lib/jsonld/organizations.ts b/src/lib/jsonld/organizations.ts index 09f86885790..bcdf439340b 100644 --- a/src/lib/jsonld/organizations.ts +++ b/src/lib/jsonld/organizations.ts @@ -1,4 +1,4 @@ -import { REFERENCE } from "./constants" +import { REFERENCE } from "./references" /** * Known Organization profiles for JSON-LD attribution diff --git a/src/lib/jsonld/references.ts b/src/lib/jsonld/references.ts new file mode 100644 index 00000000000..9078759fc00 --- /dev/null +++ b/src/lib/jsonld/references.ts @@ -0,0 +1,14 @@ +export const REFERENCE = { + /** + * Reference to Ethereum Foundation organization (for use when the full object is already defined elsewhere) + */ + ETHEREUM_FOUNDATION: { "@id": "https://ethereum.foundation/#organization" }, + /** + * Reference to Ethereum Community organization (for use when the full object is already defined elsewhere) + */ + ETHEREUM_COMMUNITY: { "@id": "https://ethereum.org/#community-organization" }, + /** + * Reference to the ethereum.org WebSite entity (for use when the full object is already defined elsewhere in the graph) + */ + ETHEREUM_ORG_WEBSITE: { "@id": "https://ethereum.org/#website" }, +} as const diff --git a/src/lib/jsonld/utils.ts b/src/lib/jsonld/utils.ts index d01a1da9fba..4bc27e061a8 100644 --- a/src/lib/jsonld/utils.ts +++ b/src/lib/jsonld/utils.ts @@ -1,8 +1,8 @@ import * as Sentry from "@sentry/nextjs" -import { REFERENCE } from "./constants" import { KNOWN_ORGANIZATIONS } from "./organizations" import { KNOWN_PERSONS } from "./persons" +import { REFERENCE } from "./references" import type { KnownEntity } from "./types" /**