Skip to content

Commit 811a79a

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into feat/bannergridcomponents-story
2 parents 1fbaaf0 + 5f6163a commit 811a79a

File tree

745 files changed

+20131
-24168
lines changed

Some content is hidden

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

745 files changed

+20131
-24168
lines changed

.all-contributorsrc

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12261,7 +12261,8 @@
1226112261
"profile": "https://github.com/Shiva-Sai-ssb",
1226212262
"contributions": [
1226312263
"bug",
12264-
"maintenance"
12264+
"maintenance",
12265+
"content"
1226512266
]
1226612267
},
1226712268
{
@@ -12479,6 +12480,97 @@
1247912480
"contributions": [
1248012481
"content"
1248112482
]
12483+
},
12484+
{
12485+
"login": "nipunh",
12486+
"name": "Nipun Hedaoo",
12487+
"avatar_url": "https://avatars.githubusercontent.com/u/26524611?v=4",
12488+
"profile": "https://github.com/nipunh",
12489+
"contributions": [
12490+
"code"
12491+
]
12492+
},
12493+
{
12494+
"login": "chenjiali-april",
12495+
"name": "april",
12496+
"avatar_url": "https://avatars.githubusercontent.com/u/132745538?v=4",
12497+
"profile": "https://github.com/chenjiali-april",
12498+
"contributions": [
12499+
"doc"
12500+
]
12501+
},
12502+
{
12503+
"login": "r4f4ss",
12504+
"name": "rafaelss",
12505+
"avatar_url": "https://avatars.githubusercontent.com/u/5679073?v=4",
12506+
"profile": "https://github.com/r4f4ss",
12507+
"contributions": [
12508+
"content"
12509+
]
12510+
},
12511+
{
12512+
"login": "preetjdp",
12513+
"name": "Preet Parekh",
12514+
"avatar_url": "https://avatars.githubusercontent.com/u/27439197?v=4",
12515+
"profile": "https://preetjdp.dev/",
12516+
"contributions": [
12517+
"content"
12518+
]
12519+
},
12520+
{
12521+
"login": "ludamad",
12522+
"name": "ludamad",
12523+
"avatar_url": "https://avatars.githubusercontent.com/u/163993?v=4",
12524+
"profile": "https://www.linkedin.com/in/adamdomurad/",
12525+
"contributions": [
12526+
"content"
12527+
]
12528+
},
12529+
{
12530+
"login": "MaryNfs",
12531+
"name": "MaryNfs",
12532+
"avatar_url": "https://avatars.githubusercontent.com/u/52598322?v=4",
12533+
"profile": "https://github.com/MaryNfs",
12534+
"contributions": [
12535+
"content",
12536+
"bug"
12537+
]
12538+
},
12539+
{
12540+
"login": "Signor1",
12541+
"name": "Signor Dev",
12542+
"avatar_url": "https://avatars.githubusercontent.com/u/94352660?v=4",
12543+
"profile": "https://signor.vercel.app/",
12544+
"contributions": [
12545+
"maintenance"
12546+
]
12547+
},
12548+
{
12549+
"login": "KatrixReloaded",
12550+
"name": "Kartikeya Sureka",
12551+
"avatar_url": "https://avatars.githubusercontent.com/u/68804269?v=4",
12552+
"profile": "https://github.com/KatrixReloaded",
12553+
"contributions": [
12554+
"code"
12555+
]
12556+
},
12557+
{
12558+
"login": "Piyush-Tilokani",
12559+
"name": "Piyush Tilokani",
12560+
"avatar_url": "https://avatars.githubusercontent.com/u/112542519?v=4",
12561+
"profile": "https://github.com/Piyush-Tilokani",
12562+
"contributions": [
12563+
"content"
12564+
]
12565+
},
12566+
{
12567+
"login": "jacobourar",
12568+
"name": "Jacobo Uribe",
12569+
"avatar_url": "https://avatars.githubusercontent.com/u/109108267?v=4",
12570+
"profile": "https://github.com/jacobourar",
12571+
"contributions": [
12572+
"content"
12573+
]
1248212574
}
1248312575
],
1248412576
"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

.eslintrc.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@
6565
"varsIgnorePattern": "^_$"
6666
}
6767
],
68-
"unused-imports/no-unused-imports-ts": "warn"
68+
"unused-imports/no-unused-imports-ts": "warn",
69+
"no-restricted-imports": [
70+
"warn",
71+
{
72+
"paths": [
73+
{
74+
"name": "react-i18next",
75+
"message": "Please use next-i18next instead of react-i18next."
76+
}
77+
]
78+
}
79+
]
6980
}
7081
}

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import i18n, { Resource } from "i18next"
2+
// eslint-disable-next-line no-restricted-imports
23
import { initReactI18next } from "react-i18next"
34

45
export const baseLocales = {

.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 {

.storybook/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line no-restricted-imports
12
import { getI18n } from "react-i18next"
23

34
import { ns as exposedNs } from "./i18next"

CODE_OF_CONDUCT.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Code of conduct
2+
3+
## Mission
4+
5+
To develop and maintain the most comprehensive and accessible knowledge hub for Ethereum.
6+
7+
## Values
8+
9+
The ethereum.org community strives to be:
10+
11+
- educational, intended to help everyone to understand Ethereum
12+
- inclusive
13+
- accessible
14+
- community-driven
15+
- focused on Ethereum’s underlying technology and use-cases
16+
- focused on Ethereum concepts and design principles
17+
18+
## What we are not
19+
20+
- The Ethereum Foundation website
21+
- A platform for promoting investments or profiteering of any kind
22+
- A platform for elevating or endorsing individual projects or organizations
23+
- A DEX, CEX or any other form of financial platform
24+
- A platform that gives financial or legal advice of any kind
25+
26+
## Code of conduct
27+
28+
### Pledge
29+
30+
Open participation is core to the ethereum.org ethos. We are a website and community maintained by thousands of contributors, and this is only possible if we maintain a welcoming, participatory environment. To this end, contributors to this site pledge to maintain a harassment-free environment for all participants across all ethereum.org platforms and community spaces. The ethereum.org community welcomes and values anyone who wants to participate in a constructive and friendly way, regardless of age, disability, ethnicity, sex characteristics, gender identity, level of experience, area of expertise, education, socio-economic status, nationality, personal appearance, race, religion or any other dimension of diversity.
31+
32+
### Scope
33+
34+
This Code of Conduct applies to all ethereum.org spaces (such as GitHub, Discord, Figma, Crowdin, Twitter and other online platforms), and it also applies when the community is represented in real-world public spaces such as at meetups, conferences and events.
35+
36+
### Our standards
37+
38+
Examples of behavior that contributes to creating a positive environment include:
39+
40+
- Using welcoming and inclusive language
41+
- Being respectful of differing viewpoints and experiences
42+
- Gracefully accepting and/or empathetically providing constructive criticism
43+
- Acting calmly and professionally when resolving conflicts or disagreements
44+
- Showing empathy and tolerance towards other community members
45+
- Encouraging and amplifying new voices in the community
46+
47+
Examples of unacceptable behavior by participants include:
48+
49+
- Physical violence, threatening physical violence or encouraging of physical violence of any kind
50+
- Using sexualized language or imagery or imposing unwelcome sexual attention
51+
- Impersonating another individual or otherwise dishonestly claiming affiliation with some individual or organization
52+
- Trolling, insulting/derogatory comments, and personal or political attacks
53+
- Harassing other community members in public or private channels
54+
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
55+
- Social engineering, scamming or otherwise manipulating other community members
56+
- Promoting investments, tokens, projects or anything else for personal monetary or non-monetary gain
57+
- Spamming servers with off-topic content
58+
- Disregarding requests or warnings from community moderators
59+
- Engaging in other conduct which could reasonably be considered inappropriate in a professional setting
60+
61+
### Reporting
62+
63+
Violations of the code of conduct will normally be visible to the community as we try to do everything in open, public channels, allowing community members to self-police.
64+
65+
However, if something happens that you feel needs attention, you can raise it with someone who has a moderation role (e.g. discord guide) so that they can help investigate and execute the appropriate response.
66+
67+
When reporting, please include as much detail as possible, including specific examples and timestamps. This will help to ensure a fair outcome.
68+
69+
### Enforcement
70+
71+
Depending on the severity, people who violate the code of conduct can receive warnings, temporary bans or permanent bans from ethereum.org communities.

README.md

Lines changed: 14 additions & 2 deletions
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
@@ -1875,7 +1875,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
18751875
<td align="center" valign="top" width="14.28%"><a href="https://github.com/abonnaudet-ledger"><img src="https://avatars.githubusercontent.com/u/71646516?v=4?s=100" width="100px;" alt="abonnaudet-ledger"/><br /><sub><b>abonnaudet-ledger</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Aabonnaudet-ledger" title="Bug reports">🐛</a></td>
18761876
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JacobSharples"><img src="https://avatars.githubusercontent.com/u/45126111?v=4?s=100" width="100px;" alt="Jacob Sharples"/><br /><sub><b>Jacob Sharples</b></sub></a><br /><a href="#content-JacobSharples" title="Content">🖋</a></td>
18771877
<td align="center" valign="top" width="14.28%"><a href="https://github.com/omahs"><img src="https://avatars.githubusercontent.com/u/73983677?v=4?s=100" width="100px;" alt="omahs"/><br /><sub><b>omahs</b></sub></a><br /><a href="#translation-omahs" title="Translation">🌍</a> <a href="#maintenance-omahs" title="Maintenance">🚧</a></td>
1878-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Shiva-Sai-ssb"><img src="https://avatars.githubusercontent.com/u/112751524?v=4?s=100" width="100px;" alt="Shiva Sai"/><br /><sub><b>Shiva Sai</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AShiva-Sai-ssb" title="Bug reports">🐛</a> <a href="#maintenance-Shiva-Sai-ssb" title="Maintenance">🚧</a></td>
1878+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Shiva-Sai-ssb"><img src="https://avatars.githubusercontent.com/u/112751524?v=4?s=100" width="100px;" alt="Shiva Sai"/><br /><sub><b>Shiva Sai</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AShiva-Sai-ssb" title="Bug reports">🐛</a> <a href="#maintenance-Shiva-Sai-ssb" title="Maintenance">🚧</a> <a href="#content-Shiva-Sai-ssb" title="Content">🖋</a></td>
18791879
<td align="center" valign="top" width="14.28%"><a href="https://bsaurabh.xyz/"><img src="https://avatars.githubusercontent.com/u/39492927?v=4?s=100" width="100px;" alt="Saurabh Burade"/><br /><sub><b>Saurabh Burade</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=saurabhburade" title="Code">💻</a></td>
18801880
</tr>
18811881
<tr>
@@ -1908,6 +1908,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
19081908
<tr>
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>
1911+
<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>
1913+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/r4f4ss"><img src="https://avatars.githubusercontent.com/u/5679073?v=4?s=100" width="100px;" alt="rafaelss"/><br /><sub><b>rafaelss</b></sub></a><br /><a href="#content-r4f4ss" title="Content">🖋</a></td>
1914+
<td align="center" valign="top" width="14.28%"><a href="https://preetjdp.dev/"><img src="https://avatars.githubusercontent.com/u/27439197?v=4?s=100" width="100px;" alt="Preet Parekh"/><br /><sub><b>Preet Parekh</b></sub></a><br /><a href="#content-preetjdp" title="Content">🖋</a></td>
1915+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/adamdomurad/"><img src="https://avatars.githubusercontent.com/u/163993?v=4?s=100" width="100px;" alt="ludamad"/><br /><sub><b>ludamad</b></sub></a><br /><a href="#content-ludamad" title="Content">🖋</a></td>
1916+
</tr>
1917+
<tr>
1918+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MaryNfs"><img src="https://avatars.githubusercontent.com/u/52598322?v=4?s=100" width="100px;" alt="MaryNfs"/><br /><sub><b>MaryNfs</b></sub></a><br /><a href="#content-MaryNfs" title="Content">🖋</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AMaryNfs" title="Bug reports">🐛</a></td>
1919+
<td align="center" valign="top" width="14.28%"><a href="https://signor.vercel.app/"><img src="https://avatars.githubusercontent.com/u/94352660?v=4?s=100" width="100px;" alt="Signor Dev"/><br /><sub><b>Signor Dev</b></sub></a><br /><a href="#maintenance-Signor1" title="Maintenance">🚧</a></td>
1920+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/KatrixReloaded"><img src="https://avatars.githubusercontent.com/u/68804269?v=4?s=100" width="100px;" alt="Kartikeya Sureka"/><br /><sub><b>Kartikeya Sureka</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=KatrixReloaded" title="Code">💻</a></td>
1921+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Piyush-Tilokani"><img src="https://avatars.githubusercontent.com/u/112542519?v=4?s=100" width="100px;" alt="Piyush Tilokani"/><br /><sub><b>Piyush Tilokani</b></sub></a><br /><a href="#content-Piyush-Tilokani" title="Content">🖋</a></td>
1922+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jacobourar"><img src="https://avatars.githubusercontent.com/u/109108267?v=4?s=100" width="100px;" alt="Jacobo Uribe"/><br /><sub><b>Jacobo Uribe</b></sub></a><br /><a href="#content-jacobourar" title="Content">🖋</a></td>
19111923
</tr>
19121924
</tbody>
19131925
</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
}

0 commit comments

Comments
 (0)