Skip to content

Commit 8fcd87e

Browse files
committed
Merge branch 'dev' into 10-year-anniversary
2 parents 990e33b + 8cf69f1 commit 8fcd87e

File tree

163 files changed

+794
-509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+794
-509
lines changed

.all-contributorsrc

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12730,7 +12730,10 @@
1273012730
"name": "João Paulo Hotequil",
1273112731
"avatar_url": "https://avatars.githubusercontent.com/u/46814712?v=4",
1273212732
"profile": "https://github.com/hotequil",
12733-
"contributions": ["code", "translation"]
12733+
"contributions": [
12734+
"code",
12735+
"translation"
12736+
]
1273412737
},
1273512738
{
1273612739
"login": "microHoffman",
@@ -12749,6 +12752,24 @@
1274912752
"contributions": [
1275012753
"bug"
1275112754
]
12755+
},
12756+
{
12757+
"login": "aolson078",
12758+
"name": "Alex Olson",
12759+
"avatar_url": "https://avatars.githubusercontent.com/u/69769089?v=4",
12760+
"profile": "https://github.com/aolson078",
12761+
"contributions": [
12762+
"bug"
12763+
]
12764+
},
12765+
{
12766+
"login": "adminsuci",
12767+
"name": "SUCI - Blockchain Hub Team",
12768+
"avatar_url": "https://avatars.githubusercontent.com/u/155696196?v=4",
12769+
"profile": "https://www.suci.io/",
12770+
"contributions": [
12771+
"maintenance"
12772+
]
1275212773
}
1275312774
],
1275412775
"contributorsPerLine": 7,

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
19471947
</tr>
19481948
<tr>
19491949
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JJOptimist"><img src="https://avatars.githubusercontent.com/u/86833563?v=4?s=100" width="100px;" alt="JJOptimist"/><br /><sub><b>JJOptimist</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AJJOptimist" title="Bug reports">🐛</a></td>
1950+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hotequil"><img src="https://avatars.githubusercontent.com/u/46814712?v=4?s=100" width="100px;" alt="João Paulo Hotequil"/><br /><sub><b>João Paulo Hotequil</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=hotequil" title="Code">💻</a> <a href="#translation-hotequil" title="Translation">🌍</a></td>
19501951
<td align="center" valign="top" width="14.28%"><a href="http://pwn.xyz"><img src="https://avatars.githubusercontent.com/u/61500778?v=4?s=100" width="100px;" alt="microHoffman"/><br /><sub><b>microHoffman</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AmicroHoffman" title="Bug reports">🐛</a></td>
19511952
<td align="center" valign="top" width="14.28%"><a href="https://github.com/smithrashell"><img src="https://avatars.githubusercontent.com/u/36465023?v=4?s=100" width="100px;" alt="Rashell Smith"/><br /><sub><b>Rashell Smith</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Asmithrashell" title="Bug reports">🐛</a></td>
1953+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/aolson078"><img src="https://avatars.githubusercontent.com/u/69769089?v=4?s=100" width="100px;" alt="Alex Olson"/><br /><sub><b>Alex Olson</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Aaolson078" title="Bug reports">🐛</a></td>
1954+
<td align="center" valign="top" width="14.28%"><a href="https://www.suci.io/"><img src="https://avatars.githubusercontent.com/u/155696196?v=4?s=100" width="100px;" alt="SUCI - Blockchain Hub Team"/><br /><sub><b>SUCI - Blockchain Hub Team</b></sub></a><br /><a href="#maintenance-adminsuci" title="Maintenance">🚧</a></td>
19521955
</tr>
19531956
</tbody>
19541957
</table>

app/[locale]/[...slug]/page.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import mdComponents from "@/components/MdComponents"
77

88
import { dataLoader } from "@/lib/utils/data/dataLoader"
99
import { dateToString } from "@/lib/utils/date"
10+
import { getLayoutFromSlug } from "@/lib/utils/layout"
1011
import { getPostSlugs } from "@/lib/utils/md"
1112
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
1213

@@ -19,18 +20,6 @@ import { getMdMetadata } from "@/lib/md/metadata"
1920

2021
const loadData = dataLoader([["gfissues", fetchGFIs]])
2122

22-
function getLayoutFromSlug(slug: string) {
23-
if (slug.includes("developers/docs")) {
24-
return "docs"
25-
}
26-
27-
if (slug.includes("developers/tutorials")) {
28-
return "tutorial"
29-
}
30-
31-
return "static"
32-
}
33-
3423
export default async function Page({
3524
params,
3625
}: {
@@ -69,7 +58,8 @@ export default async function Page({
6958
slug,
7059
// TODO: Address component typing error here (flip `FC` types to prop object types)
7160
// @ts-expect-error Incompatible component function signatures
72-
components: { ...mdComponents, ...componentsMapping },
61+
baseComponents: mdComponents,
62+
componentsMapping,
7363
scope: {
7464
gfissues,
7565
},

app/[locale]/_components/home.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ const HomePage = ({
653653
e.currentTarget.onerror = null
654654
e.currentTarget.src = EventFallback.src
655655
}}
656+
referrerPolicy="no-referrer"
657+
crossOrigin="anonymous"
656658
/>
657659
</CardBanner>
658660
<CardContent>
@@ -740,6 +742,8 @@ const HomePage = ({
740742
}}
741743
className="max-w-full object-cover object-center"
742744
loading="lazy"
745+
referrerPolicy="no-referrer"
746+
crossOrigin="anonymous"
743747
/>
744748
) : (
745749
<Image src={EventFallback} alt="" />

app/[locale]/dapps/_components/dapps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ const DappsPage = ({
542542
{
543543
title: "Curve",
544544
description: t("page-dapps-dapp-description-curve"),
545-
link: "https://curve.fi/",
545+
link: "https://www.curve.finance/",
546546
image: curve,
547547
alt: t("page-dapps-curve-logo-alt"),
548548
},
@@ -1111,7 +1111,7 @@ const DappsPage = ({
11111111
<H2 id="explore">{t("page-dapps-explore-dapps-title")}</H2>
11121112
<CenterText>{t("page-dapps-explore-dapps-description")}</CenterText>
11131113
<H3>{t("page-dapps-choose-category")}</H3>
1114-
<div className="mb-8 grid w-full grid-cols-1 justify-center gap-4 px-8 sm:grid-cols-2 lg:w-auto lg:grid-cols-3 2xl:grid-cols-6">
1114+
<div className="mb-8 grid w-full grid-cols-1 justify-center gap-4 px-8 sm:grid-cols-2 lg:w-auto lg:grid-cols-[repeat(4,auto)]">
11151115
{categoryKeys.map((key, idx) => {
11161116
const categoryType = key as CategoryType
11171117
const category = categories[categoryType]

app/[locale]/page.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { dataLoader } from "@/lib/utils/data/dataLoader"
1313
import { isValidDate } from "@/lib/utils/date"
1414
import { existsNamespace } from "@/lib/utils/existsNamespace"
1515
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
16+
import { getMetadata } from "@/lib/utils/metadata"
1617
import { polishRSSList } from "@/lib/utils/rss"
1718
import { getLocaleTimestamp } from "@/lib/utils/time"
1819
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
@@ -127,13 +128,21 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
127128
)
128129
}
129130

130-
export async function generateMetadata() {
131-
const t = await getTranslations()
131+
export async function generateMetadata({
132+
params,
133+
}: {
134+
params: Promise<{ locale: string }>
135+
}) {
136+
const { locale } = await params
132137

133-
return {
134-
title: t("page-index.page-index-meta-title"),
135-
description: t("page-index.page-index-meta-description"),
136-
}
138+
const t = await getTranslations({ locale, namespace: "page-index" })
139+
140+
return await getMetadata({
141+
locale,
142+
slug: [""],
143+
title: t("page-index-meta-title"),
144+
description: t("page-index-meta-description"),
145+
})
137146
}
138147

139148
export default Page

app/[locale]/resources/_components/resources.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ const ResourcesPage = ({ txCostsMedianUsd }: ResourcesPageProps) => {
125125
<div className="h-full bg-background bg-gradient-to-br from-white to-primary/10 px-2 py-6 dark:from-transparent dark:to-primary/10">
126126
{metric && metric}
127127
<ResourcesContainer>
128-
{items.map((item) => (
129-
<ResourceItem item={item} key={item.title} />
128+
{items.map(({ className, ...item }) => (
129+
<ResourceItem
130+
item={item}
131+
key={item.title}
132+
className={className}
133+
/>
130134
))}
131135
</ResourcesContainer>
132136
</div>

0 commit comments

Comments
 (0)