Skip to content

Commit 81a788a

Browse files
Merge remote-tracking branch 'upstream/dev' into refactor/shadcn-quiz-widget
2 parents ea05186 + 66100fb commit 81a788a

File tree

305 files changed

+14169
-12032
lines changed

Some content is hidden

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

305 files changed

+14169
-12032
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12488,6 +12488,15 @@
1248812488
"contributions": [
1248912489
"code"
1249012490
]
12491+
},
12492+
{
12493+
"login": "chenjiali-april",
12494+
"name": "april",
12495+
"avatar_url": "https://avatars.githubusercontent.com/u/132745538?v=4",
12496+
"profile": "https://github.com/chenjiali-april",
12497+
"contributions": [
12498+
"doc"
12499+
]
1249112500
}
1249212501
],
1249312502
"contributorsPerLine": 7,

.env.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@ BUILD_LOCALES=
3535
# fixed number of CPUs (e.g. 2) to limit the demand during build time
3636
LIMIT_CPUS=
3737

38-
# Sentry auth token required for error tracking
39-
SENTRY_AUTH_TOKEN=
40-
NEXT_PUBLIC_SENTRY_DSN=
41-
4238
# Enables the bundle analyzer
4339
ANALYZE=false

.storybook/modes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import pickBy from "lodash/pickBy"
2+
13
import { baseLocales } from "./i18next"
24
import { breakpointSet } from "./preview"
35

@@ -12,7 +14,9 @@ export const viewportModes = breakpointSet.reduce<{
1214
}
1315
}, {})
1416

15-
export const langModes = Object.keys(baseLocales).reduce<{
17+
const localesToTest = ["en", "fa"]
18+
const locales = pickBy(baseLocales, (_, key) => localesToTest.includes(key))
19+
export const langModes = Object.keys(locales).reduce<{
1620
[locale: string]: { locale: string }
1721
}>((arr, curr) => {
1822
return {

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ git push
119119
- In your PR description, reference the issue it resolves (see [linking a pull request to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
120120
- ex. `Updates out of date content [Fixes #1234]`
121121
- Netlify (our hosting service for build previews) deploys all PRs to a publicly accessible preview URL, e.g.: ![Netlify deploy preview](public/images/preview-deploy.png)
122-
- _Confirm your Netlify preview deploy looks & functions as expected_
122+
- _Confirm that your Netlify preview deploy looks and functions as expected_
123123
- Why not say hi and draw attention to your PR in [our discord server](https://discord.gg/ethereum-org)?
124124

125125
### 6. Wait for review
@@ -1909,6 +1909,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
19091909
<td align="center" valign="top" width="14.28%"><a href="https://v2eth.com/"><img src="https://avatars.githubusercontent.com/u/7024451?v=4?s=100" width="100px;" alt="Mako Shan"/><br /><sub><b>Mako Shan</b></sub></a><br /><a href="#content-makoshan" title="Content">🖋</a></td>
19101910
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cratiu222"><img src="https://avatars.githubusercontent.com/u/156356273?v=4?s=100" width="100px;" alt="Christina"/><br /><sub><b>Christina</b></sub></a><br /><a href="#content-cratiu222" title="Content">🖋</a></td>
19111911
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nipunh"><img src="https://avatars.githubusercontent.com/u/26524611?v=4?s=100" width="100px;" alt="Nipun Hedaoo"/><br /><sub><b>Nipun Hedaoo</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=nipunh" title="Code">💻</a></td>
1912+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chenjiali-april"><img src="https://avatars.githubusercontent.com/u/132745538?v=4?s=100" width="100px;" alt="april"/><br /><sub><b>april</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=chenjiali-april" title="Documentation">📖</a></td>
19121913
</tr>
19131914
</tbody>
19141915
</table>

instrumentation.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

next.config.js

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants")
3-
const { withSentryConfig } = require("@sentry/nextjs")
43

54
const withBundleAnalyzer = require("@next/bundle-analyzer")({
65
enabled: process.env.ANALYZE === "true",
@@ -27,7 +26,7 @@ module.exports = (phase, { defaultConfig }) => {
2726
let nextConfig = {
2827
...defaultConfig,
2928
reactStrictMode: true,
30-
webpack: (config, { webpack }) => {
29+
webpack: (config) => {
3130
config.module.rules.push({
3231
test: /\.ya?ml$/,
3332
use: "yaml-loader",
@@ -58,30 +57,13 @@ module.exports = (phase, { defaultConfig }) => {
5857
// Modify the file loader rule to ignore *.svg, since we have it handled now.
5958
fileLoaderRule.exclude = /\.svg$/i
6059

61-
// Tree shake Sentry debug code
62-
// ref. https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/#tree-shaking-with-nextjs
63-
config.plugins.push(
64-
new webpack.DefinePlugin({
65-
__SENTRY_DEBUG__: false,
66-
__RRWEB_EXCLUDE_IFRAME__: true,
67-
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
68-
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
69-
})
70-
)
71-
7260
return config
7361
},
7462
i18n,
7563
trailingSlash: true,
7664
images: {
7765
deviceSizes: [640, 750, 828, 1080, 1200, 1504, 1920],
7866
},
79-
env: {
80-
NEXT_PUBLIC_CONTEXT: process.env.CONTEXT,
81-
},
82-
experimental: {
83-
instrumentationHook: true,
84-
},
8567
}
8668

8769
if (phase !== PHASE_DEVELOPMENT_SERVER) {
@@ -110,15 +92,5 @@ module.exports = (phase, { defaultConfig }) => {
11092
}
11193
}
11294

113-
return withBundleAnalyzer(
114-
withSentryConfig(nextConfig, {
115-
// TODO: temp config, update this to the correct org & project
116-
org: "ethereumorg-ow",
117-
project: "javascript-nextjs",
118-
authToken: process.env.SENTRY_AUTH_TOKEN,
119-
release: `${process.env.BUILD_ID}_${process.env.REVIEW_ID}`,
120-
disableLogger: true,
121-
silent: true,
122-
})
123-
)
95+
return withBundleAnalyzer(nextConfig)
12496
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "8.10.1",
3+
"version": "9.0.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {
@@ -39,23 +39,23 @@
3939
"@radix-ui/react-checkbox": "^1.1.1",
4040
"@radix-ui/react-compose-refs": "^1.1.0",
4141
"@radix-ui/react-dialog": "^1.1.1",
42+
"@radix-ui/react-dropdown-menu": "^2.1.1",
4243
"@radix-ui/react-navigation-menu": "^1.2.0",
4344
"@radix-ui/react-popover": "^1.1.1",
4445
"@radix-ui/react-portal": "^1.1.1",
4546
"@radix-ui/react-progress": "^1.1.0",
4647
"@radix-ui/react-radio-group": "^1.2.0",
4748
"@radix-ui/react-slot": "^1.1.0",
4849
"@radix-ui/react-switch": "^1.1.0",
50+
"@radix-ui/react-tabs": "^1.1.0",
4951
"@radix-ui/react-tooltip": "^1.1.2",
5052
"@radix-ui/react-visually-hidden": "^1.1.0",
51-
"@sentry/nextjs": "^8.19.0",
5253
"@socialgouv/matomo-next": "^1.8.0",
5354
"chart.js": "^4.4.2",
5455
"chartjs-plugin-datalabels": "^2.2.0",
5556
"class-variance-authority": "^0.7.0",
5657
"clsx": "^2.1.1",
5758
"cmdk": "^1.0.0",
58-
"embla-carousel-react": "^7.0.0",
5959
"ethereum-blockies-base64": "^1.0.2",
6060
"framer-motion": "^10.13.0",
6161
"gray-matter": "^4.0.3",
@@ -64,7 +64,7 @@
6464
"lodash.merge": "^4.6.2",
6565
"lodash.shuffle": "^4.2.0",
6666
"lodash.union": "^4.6.0",
67-
"next": "^14.2.3",
67+
"next": "^14.2.10",
6868
"next-i18next": "^14.0.3",
6969
"next-mdx-remote": "^3.0.8",
7070
"next-sitemap": "^4.2.3",

public/content/about/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ lang: en
88

99
ethereum.org is a public, open-source resource for the Ethereum community that anyone can contribute to. We have a small core team dedicated to maintaining and developing the site with contributions from thousands of community members across the globe.
1010

11+
**Nobody from ethereum.org will ever contact you. Do not respond.**
12+
1113
## A note on names {#a-note-on-names}
1214

1315
It's common for people to confuse names within the Ethereum landscape, which can lead to poor mental models about how Ethereum works. Here's a quick explainer to clear things up:

public/content/community/support/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lang: en
1010

1111
Are you looking for the official Ethereum support? The first thing you should know is that Ethereum is decentralized. This means no central organization, entity, or person owns Ethereum, and because of this, no official support channels exist.
1212

13-
Understanding the decentralized nature of Ethereum is vital because anyone claiming to be official support for Ethereum is probably trying to scam you! The best protection against scammers is educating yourself and taking security seriously.
13+
Understanding the decentralized nature of Ethereum is vital because **anyone claiming to be official support for Ethereum is probably trying to scam you!** The best protection against scammers is educating yourself and taking security seriously.
1414

1515
<DocLink href="/security/">
1616
Ethereum security and scam prevention

public/content/dao/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: What is a DAO? | Decentralized Autonomous Organizations
2+
title: Decentralized autonomous organizations (DAOs)
33
description: An overview of DAOs on Ethereum
44
lang: en
55
template: use-cases

0 commit comments

Comments
 (0)