Skip to content

Commit 7f3212c

Browse files
committed
Merge branch 'dev' into feedback-widget
2 parents 06dea54 + f7f3cbf commit 7f3212c

File tree

622 files changed

+22878
-6602
lines changed

Some content is hidden

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

622 files changed

+22878
-6602
lines changed

.all-contributorsrc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10830,6 +10830,69 @@
1083010830
"contributions": [
1083110831
"content"
1083210832
]
10833+
},
10834+
{
10835+
"login": "Erlangshen219",
10836+
"name": "Erlangshen219",
10837+
"avatar_url": "https://avatars.githubusercontent.com/u/104747507?v=4",
10838+
"profile": "https://github.com/Erlangshen219",
10839+
"contributions": [
10840+
"content"
10841+
]
10842+
},
10843+
{
10844+
"login": "AyDeveloper",
10845+
"name": "AyDeveloper",
10846+
"avatar_url": "https://avatars.githubusercontent.com/u/72970379?v=4",
10847+
"profile": "https://oxpampam.netlify.app/",
10848+
"contributions": [
10849+
"content"
10850+
]
10851+
},
10852+
{
10853+
"login": "jeremyfritzen",
10854+
"name": "jeremyfritzen",
10855+
"avatar_url": "https://avatars.githubusercontent.com/u/26802442?v=4",
10856+
"profile": "https://github.com/jeremyfritzen",
10857+
"contributions": [
10858+
"content"
10859+
]
10860+
},
10861+
{
10862+
"login": "fuzheng1998",
10863+
"name": "Zheng Fu",
10864+
"avatar_url": "https://avatars.githubusercontent.com/u/24203166?v=4",
10865+
"profile": "https://github.com/fuzheng1998",
10866+
"contributions": [
10867+
"code"
10868+
]
10869+
},
10870+
{
10871+
"login": "xiaolou86",
10872+
"name": "xiaolou86",
10873+
"avatar_url": "https://avatars.githubusercontent.com/u/20718693?v=4",
10874+
"profile": "https://github.com/xiaolou86",
10875+
"contributions": [
10876+
"content"
10877+
]
10878+
},
10879+
{
10880+
"login": "aztecEagle22",
10881+
"name": "aztecEagle22",
10882+
"avatar_url": "https://avatars.githubusercontent.com/u/152518936?v=4",
10883+
"profile": "https://github.com/aztecEagle22",
10884+
"contributions": [
10885+
"content"
10886+
]
10887+
},
10888+
{
10889+
"login": "Messi-Q",
10890+
"name": "QIAN",
10891+
"avatar_url": "https://avatars.githubusercontent.com/u/21357985?v=4",
10892+
"profile": "https://github.com/Messi-Q",
10893+
"contributions": [
10894+
"content"
10895+
]
1083310896
}
1083410897
],
1083510898
"contributorsPerLine": 7,

.github/labeler.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
"review needed :eyes:":
22
- src/**/*
3+
- public/*
34

45
"documentation :book:":
56
- README.md
67

78
"tooling :wrench:":
89
- .github/**/*
910
- src/scripts/*
10-
- netlify.toml
11+
- src/lib/*
12+
- src/hooks/*
1113

1214
"dependencies :package:":
1315
- package.json
1416
- yarn.lock
1517

1618
"internal :house:":
17-
- gatsby-browser.js
18-
- gatsby-config.js
19-
- gatsby-node.js
20-
- gatsby-ssr.js
2119
- .all-contributorsrc
20+
- i18n.config.json
21+
- next.config.js
22+
- next-i18next.config,js
23+
- next-sitemap.config.js
24+
- tsconfig.json
25+
- .nvmrc
26+
- .eslintignore
27+
- .eslintrc.json
28+
- .prettierignore
29+
- .prettierrc
30+
- netlify.toml
2231

2332
"translation :earth_africa:":
24-
- /content/translations/**/*
25-
- src/intl/*
26-
- src/utils/translations.js
33+
- src/content/translations/**/*
34+
- src/intl/**/*
35+
- src/lib/utils/translations.ts
2736

2837
"content :fountain_pen:":
2938
- src/pages/*
30-
- src/pages-conditional/*
31-
- /content/**/*
39+
- public/content/**/*
3240

3341
"event :date:":
3442
- src/data/community-events.json

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ feed.xml
4141
# Sitemaps
4242
sitemap*.xml
4343

44+
# Robots.txt
45+
robots.txt
46+
4447
# Local Netlify folder
4548
.netlify

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Netlify Status](https://api.netlify.com/api/v1/badges/e8f2e766-888b-4954-8500-1b647d84db99/deploy-status)](https://app.netlify.com/sites/ethereumorg/deploys)
22
[![All Contributors](https://img.shields.io/github/all-contributors/ethereum/ethereum-org-website?color=orange&style=flat-square)](#contributors-)
3-
[![Discord](https://img.shields.io/discord/714888181740339261?color=1C1CE1&label=ethereum.org%20%7C%20Discord%20%F0%9F%91%8B%20&style=flat-square)](https://discord.gg/CetY6Y4)
3+
[![Discord](https://img.shields.io/discord/714888181740339261?color=1C1CE1&label=ethereum.org%20%7C%20Discord%20%F0%9F%91%8B%20&style=flat-square)](https://discord.gg/ethereum-org)
44
[![Twitter Follow](https://img.shields.io/twitter/follow/ethdotorg.svg?style=social)](https://twitter.com/ethdotorg)
55
[![Crowdin](https://badges.crowdin.net/ethereum-org/localized.svg)](https://crowdin.com/project/ethereum-org)
66
[![gitpoap badge](https://public-api.gitpoap.io/v1/repo/ethereum/ethereum-org-website/badge)](https://www.gitpoap.io/gh/ethereum/ethereum-org-website)
@@ -122,7 +122,7 @@ To use an existing function locally you don't need to do anything. Just check th
122122
To create a new function, you will need to create two files:
123123

124124
- One in `src/lambda` where the logic will live. These are the ones that will be deployed to Netlify. These functions follow [this format](https://docs.netlify.com/functions/build-with-javascript/#synchronous-function-format).
125-
- One in `src/api` that will be just a wrapper around the previous one in order to be compatible with Gatsby functions. More on the [Gatbsy docs](https://www.gatsbyjs.com/docs/reference/functions/getting-started/) for the format they follow.
125+
- One in `src/api` that will be just a wrapper around the previous one in order to be compatible with Gatsby functions. More on the [Gatsby docs](https://www.gatsbyjs.com/docs/reference/functions/getting-started/) for the format they follow.
126126

127127
Typically, you will develop and test functions in the Gatsby context, by running `yarn start`.
128128

@@ -136,7 +136,7 @@ In case you want to test them as if you were in a Netlify env, you can install t
136136
- Gatsby Cloud (our hosting service for build previews) deploys all PRs to a publicly accessible preview URL, e.g.:
137137
![Gatsby Cloud deploy preview](./GC-preview-deploy.png)
138138
- _Confirm your GC preview deploy looks & functions as expected_
139-
- Why not say hi and draw attention to your PR in [our discord server](https://discord.gg/CetY6Y4)?
139+
- Why not say hi and draw attention to your PR in [our discord server](https://discord.gg/ethereum-org)?
140140

141141
### 7. Wait for review
142142

@@ -167,7 +167,7 @@ Learn more about how we review pull requests [here](docs/review-process.md).
167167
- If you have committed any changes in 2022 so far that were merged into our repo, you have a POAP waiting!
168168
- This includes our dedicated translators on Crowdin
169169

170-
[![Discord](https://img.shields.io/discord/714888181740339261?color=1C1CE1&label=Claim%20Your%20POAP!%20%7C%20Discord%20%F0%9F%91%8B%20&style=flat)](https://discord.gg/CetY6Y4)
170+
[![Discord](https://img.shields.io/discord/714888181740339261?color=1C1CE1&label=Claim%20Your%20POAP!%20%7C%20Discord%20%F0%9F%91%8B%20&style=flat)](https://discord.gg/ethereum-org)
171171

172172
- 👆 To claim your Contributor POAP, join our Discord server and paste a link to your contribution in the `#🥇 | poaps` [channel](https://discord.com/channels/714888181740339261/804005643211898911)
173173

@@ -1692,6 +1692,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16921692
<td align="center" valign="top" width="14.28%"><a href="https://github.com/konstantinzolotarev"><img src="https://avatars.githubusercontent.com/u/286431?v=4?s=100" width="100px;" alt="Konstantin Zolotarev"/><br /><sub><b>Konstantin Zolotarev</b></sub></a><br /><a href="#content-konstantinzolotarev" title="Content">🖋</a></td>
16931693
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vuittont60"><img src="https://avatars.githubusercontent.com/u/81072379?v=4?s=100" width="100px;" alt="vuittont60"/><br /><sub><b>vuittont60</b></sub></a><br /><a href="#content-vuittont60" title="Content">🖋</a></td>
16941694
<td align="center" valign="top" width="14.28%"><a href="http://goldnite.github.io"><img src="https://avatars.githubusercontent.com/u/114434414?v=4?s=100" width="100px;" alt="Golden Ite"/><br /><sub><b>Golden Ite</b></sub></a><br /><a href="#content-goldnite" title="Content">🖋</a></td>
1695+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Erlangshen219"><img src="https://avatars.githubusercontent.com/u/104747507?v=4?s=100" width="100px;" alt="Erlangshen219"/><br /><sub><b>Erlangshen219</b></sub></a><br /><a href="#content-Erlangshen219" title="Content">🖋</a></td>
1696+
<td align="center" valign="top" width="14.28%"><a href="https://oxpampam.netlify.app/"><img src="https://avatars.githubusercontent.com/u/72970379?v=4?s=100" width="100px;" alt="AyDeveloper"/><br /><sub><b>AyDeveloper</b></sub></a><br /><a href="#content-AyDeveloper" title="Content">🖋</a></td>
1697+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jeremyfritzen"><img src="https://avatars.githubusercontent.com/u/26802442?v=4?s=100" width="100px;" alt="jeremyfritzen"/><br /><sub><b>jeremyfritzen</b></sub></a><br /><a href="#content-jeremyfritzen" title="Content">🖋</a></td>
1698+
</tr>
1699+
<tr>
1700+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/fuzheng1998"><img src="https://avatars.githubusercontent.com/u/24203166?v=4?s=100" width="100px;" alt="Zheng Fu"/><br /><sub><b>Zheng Fu</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=fuzheng1998" title="Code">💻</a></td>
1701+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/xiaolou86"><img src="https://avatars.githubusercontent.com/u/20718693?v=4?s=100" width="100px;" alt="xiaolou86"/><br /><sub><b>xiaolou86</b></sub></a><br /><a href="#content-xiaolou86" title="Content">🖋</a></td>
1702+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/aztecEagle22"><img src="https://avatars.githubusercontent.com/u/152518936?v=4?s=100" width="100px;" alt="aztecEagle22"/><br /><sub><b>aztecEagle22</b></sub></a><br /><a href="#content-aztecEagle22" title="Content">🖋</a></td>
1703+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Messi-Q"><img src="https://avatars.githubusercontent.com/u/21357985?v=4?s=100" width="100px;" alt="QIAN"/><br /><sub><b>QIAN</b></sub></a><br /><a href="#content-Messi-Q" title="Content">🖋</a></td>
16951704
</tr>
16961705
</tbody>
16971706
</table>
@@ -1705,4 +1714,4 @@ This project follows the [all-contributors](https://github.com/all-contributors/
17051714

17061715
### Join our Discord server
17071716

1708-
We have a space to discuss all things ethereum.org – share your ideas or just say hi over [on Discord](https://discord.gg/CetY6Y4).
1717+
We have a space to discuss all things ethereum.org – share your ideas or just say hi over [on Discord](https://discord.gg/ethereum-org).

next-sitemap.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const i18nConfig = require("./i18n.config.json")
2+
const locales = i18nConfig.map(({ code }) => code)
3+
4+
/** @type {import('next-sitemap').IConfig} */
5+
module.exports = {
6+
siteUrl: process.env.SITE_URL || "https://ethereum.org",
7+
generateRobotsTxt: true,
8+
transform: async (_, path) => {
9+
const rootPath = path.split("/")[1]
10+
if (path.endsWith("/404")) return null
11+
const isDefaultLocale = !locales.includes(rootPath) || rootPath === "en"
12+
return {
13+
loc: path,
14+
changefreq: isDefaultLocale ? "weekly" : "monthly",
15+
priority: isDefaultLocale ? 0.7 : 0.5,
16+
}
17+
},
18+
}

next.config.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,23 @@ module.exports = (phase, { defaultConfig }) => {
2323
webpack: (config) => {
2424
config.module.rules.push({
2525
test: /\.ya?ml$/,
26-
use: 'yaml-loader',
26+
use: "yaml-loader",
27+
})
28+
config.module.rules.push({
29+
test: /\.svg$/,
30+
use: "@svgr/webpack",
31+
})
32+
config.module.rules.push({
33+
test: /\.mp4$/,
34+
use: {
35+
loader: 'file-loader',
36+
options: {
37+
name: '[name].[ext]',
38+
},
39+
},
2740
});
28-
29-
return config;
41+
42+
return config
3043
},
3144
i18n,
3245
}

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8+
"postbuild": "next-sitemap",
89
"start": "next start",
910
"lint": "next lint",
1011
"lint:fix": "next lint --fix",
@@ -21,22 +22,28 @@
2122
"@emotion/react": "^11.11.1",
2223
"@emotion/styled": "^11.11.0",
2324
"clipboard": "^2.0.11",
25+
"ethereum-blockies-base64": "^1.0.2",
26+
"file-loader": "^6.2.0",
27+
"focus-trap-react": "^10.2.3",
2428
"framer-motion": "^10.13.0",
2529
"gray-matter": "^4.0.3",
2630
"htmr": "^1.0.2",
2731
"i18next": "^23.6.0",
2832
"lodash.merge": "^4.6.2",
33+
"lodash.shuffle": "^4.2.0",
2934
"luxon": "^3.4.3",
3035
"next": "^14.0.0",
3136
"next-i18next": "^14.0.3",
3237
"next-mdx-remote": "^3.0.8",
38+
"next-sitemap": "^4.2.3",
3339
"prism-react-renderer": "1.1.0",
3440
"prismjs": "^1.27.0",
3541
"react": "^18.2.0",
3642
"react-dom": "^18.2.0",
3743
"react-emoji-render": "^2.0.1",
3844
"react-i18next": "^13.3.1",
3945
"react-icons": "^4.10.1",
46+
"react-lite-youtube-embed": "^2.4.0",
4047
"react-select": "^5.7.7",
4148
"reading-time": "^1.5.0",
4249
"recharts": "^2.7.3",
@@ -53,6 +60,7 @@
5360
"@storybook/nextjs": "7.5.3",
5461
"@storybook/react": "7.5.3",
5562
"@storybook/testing-library": "0.2.2",
63+
"@svgr/webpack": "^8.1.0",
5664
"@types/hast": "^3.0.0",
5765
"@types/luxon": "^3.3.2",
5866
"@types/node": "^20.4.2",
@@ -67,6 +75,7 @@
6775
"mdast-util-toc": "^7.0.0",
6876
"minimist": "^1.2.8",
6977
"polished": "^4.2.2",
78+
"raw-loader": "^4.0.2",
7079
"storybook": "7.5.3",
7180
"storybook-react-i18next": "^2.0.9",
7281
"ts-node": "^10.9.1",

0 commit comments

Comments
 (0)