Skip to content

Commit 9e46d04

Browse files
Merge remote-tracking branch 'origin/dev' into refactor/ContentHero-content-adjustments
2 parents 6749b88 + fbec3c4 commit 9e46d04

File tree

32 files changed

+648
-160
lines changed

32 files changed

+648
-160
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12015,6 +12015,33 @@
1201512015
"contributions": [
1201612016
"content"
1201712017
]
12018+
},
12019+
{
12020+
"login": "raxhvl",
12021+
"name": "rahul",
12022+
"avatar_url": "https://avatars.githubusercontent.com/u/10168946?v=4",
12023+
"profile": "https://github.com/raxhvl",
12024+
"contributions": [
12025+
"content"
12026+
]
12027+
},
12028+
{
12029+
"login": "professorabhay",
12030+
"name": "Abhay Gupta ",
12031+
"avatar_url": "https://avatars.githubusercontent.com/u/76243309?v=4",
12032+
"profile": "https://abhayporwals.live/",
12033+
"contributions": [
12034+
"content"
12035+
]
12036+
},
12037+
{
12038+
"login": "somethingstup",
12039+
"name": "somethingstup",
12040+
"avatar_url": "https://avatars.githubusercontent.com/u/166286712?v=4",
12041+
"profile": "https://github.com/somethingstup",
12042+
"contributions": [
12043+
"doc"
12044+
]
1201812045
}
1201912046
],
1202012047
"contributorsPerLine": 7,

.github/ISSUE_TEMPLATE/suggest_wallet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ body:
293293
id: wallet_eip_1559_support
294294
attributes:
295295
label: Does the wallet support EIP-1559 (type 2) transactions?
296-
description: Please provide information on the type of transactions this wallet supports.
296+
description: Does your wallet support EIP-1559 (type 2) transactions for Ethereum Mainnet. Please provide information on the type of transactions this wallet supports. If this is not applicable, please explain.
297297
validations:
298298
required: true
299299
- type: textarea
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Check for non-English updates outside of Crowdin
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "public/content/translations/**/*.md"
7+
- "src/intl/**/*.json"
8+
- "!src/intl/en/**
9+
10+
jobs:
11+
check_branch_name:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Exit early if branch name contains 'crowdin'
15+
run: |
16+
if [[ "${{ github.head_ref }}" == *crowdin* ]]; then
17+
echo "Branch name contains 'crowdin', stopping workflow"
18+
exit 1
19+
fi
20+
21+
check_changes:
22+
needs: check_branch_name
23+
runs-on: ubuntu-latest
24+
outputs:
25+
all_changes_include_href: ${{ steps.check.outputs.all_changes_include_href }}
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
- name: Check changes
30+
id: check
31+
run: |
32+
git fetch origin ${{ github.base_ref }}
33+
DIFF=$(git diff --no-ext-diff --unified=0 origin/${{ github.base_ref }}..${{ github.head_ref }} -- 'public/content/translations/**/*.md' 'src/intl/**/*.json' '!src/intl/en/**' | grep -E -v '^[-+]href=')
34+
if [[ -z "$DIFF" ]]; then
35+
echo "ALL_CHANGES_INCLUDE_HREF=true" >> $GITHUB_ENV
36+
else
37+
echo "ALL_CHANGES_INCLUDE_HREF=false" >> $GITHUB_ENV
38+
fi
39+
echo "::set-output name=all_changes_include_href::$ALL_CHANGES_INCLUDE_HREF"
40+
41+
add_label_and_comment:
42+
needs: check_changes
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Add label and comment
46+
uses: actions/github-script@v5
47+
with:
48+
github-token: ${{secrets.GITHUB_TOKEN}}
49+
script: |
50+
const prNumber = context.issue.number;
51+
const repo = context.repo;
52+
const prAuthor = context.payload.pull_request.user.login;
53+
const allChangesIncludeHref = '${{ needs.check_changes.outputs.all_changes_include_href }}' === 'true';
54+
const status = allChangesIncludeHref ? 'question ❓' : 'blocked 🛑';
55+
await github.rest.issues.addLabels({
56+
...repo,
57+
issue_number: prNumber,
58+
labels: [status, 'non-crowdin translation updates']
59+
});
60+
const commentWithoutHrefs = `This pull request contains changes to non-English content, which must also be handled through the Crowdin platform instead of only on GitHub.`
61+
const commentWithHrefs = `This pull request contains changes to non-English content files, which may also need to be handled through the Crowdin platform instead of only on GitHub.
62+
await github.rest.issues.createComment({
63+
...repo,
64+
issue_number: prNumber,
65+
body: `
66+
Thank you for your contribution, @${prAuthor}!
67+
68+
${allChangesIncludeHref ? commentWithHrefs : commentWithoutHrefs}
69+
70+
We value your suggestion, and for any non-English content updates we request that you check out [how to help us translate](https://ethereum.org/en/contributing/translation-program/#help-us-translate), and suggest these updates directly in [our Crowdin project](https://crowdin.com/project/ethereum-org) if possible, where they can be properly reviewed.
71+
72+
Please post here or join [our Discord](https://ethereum.org/discord) if you have questions!
73+
`
74+
});

.storybook/main.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import path from "path"
2-
31
import type { StorybookConfig } from "@storybook/nextjs"
42
import { propNames } from "@chakra-ui/react"
53

4+
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
5+
66
/**
77
* Note regarding package.json settings related to Storybook:
88
*
@@ -36,11 +36,15 @@ const config: StorybookConfig = {
3636
disable: true,
3737
},
3838
},
39-
webpackFinal: async (config: any) => {
40-
// Add path aliases
41-
config.resolve.alias["@"] = path.resolve(__dirname, "../src")
42-
config.resolve.alias["@/public"] = path.resolve(__dirname, "../public")
43-
39+
webpackFinal: async (config) => {
40+
if (config.resolve) {
41+
config.resolve.plugins = [
42+
...(config.resolve.plugins || []),
43+
new TsconfigPathsPlugin({
44+
extensions: config.resolve.extensions,
45+
}),
46+
]
47+
}
4448
return config
4549
},
4650
typescript: {

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
18401840
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ksdumont"><img src="https://avatars.githubusercontent.com/u/51958351?v=4?s=100" width="100px;" alt="Keith Dumont"/><br /><sub><b>Keith Dumont</b></sub></a><br /><a href="#content-ksdumont" title="Content">🖋</a></td>
18411841
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ecabras"><img src="https://avatars.githubusercontent.com/u/126670074?v=4?s=100" width="100px;" alt="ecabras"/><br /><sub><b>ecabras</b></sub></a><br /><a href="#content-ecabras" title="Content">🖋</a></td>
18421842
</tr>
1843+
<tr>
1844+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/raxhvl"><img src="https://avatars.githubusercontent.com/u/10168946?v=4?s=100" width="100px;" alt="rahul"/><br /><sub><b>rahul</b></sub></a><br /><a href="#content-raxhvl" title="Content">🖋</a></td>
1845+
<td align="center" valign="top" width="14.28%"><a href="https://abhayporwals.live/"><img src="https://avatars.githubusercontent.com/u/76243309?v=4?s=100" width="100px;" alt="Abhay Gupta "/><br /><sub><b>Abhay Gupta </b></sub></a><br /><a href="#content-professorabhay" title="Content">🖋</a></td>
1846+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/somethingstup"><img src="https://avatars.githubusercontent.com/u/166286712?v=4?s=100" width="100px;" alt="somethingstup"/><br /><sub><b>somethingstup</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=somethingstup" title="Documentation">📖</a></td>
1847+
</tr>
18431848
</tbody>
18441849
</table>
18451850

netlify.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@
4141
[functions]
4242

4343
[functions.___netlify-odb-handler]
44+
external_node_modules = ["sharp"]
4445
included_files = [
4546
"./src/intl/**/*",
4647
"!./public/**/*",
4748
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context*",
4849
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context*",
4950
"node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context*",
51+
"node_modules/sharp/**/*",
5052
]
5153

5254
[functions.___netlify-handler]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@
9090
"storybook": "7.6.6",
9191
"storybook-react-i18next": "^2.0.9",
9292
"ts-node": "^10.9.1",
93+
"tsconfig-paths-webpack-plugin": "4.1.0",
9394
"typescript": "^5.4.2",
9495
"unified": "^10.0.0",
9596
"unist-util-visit": "^5.0.0"
9697
},
9798
"resolutions": {
9899
"jackspeak": "2.1.1"
99100
}
100-
}
101+
}

public/content/community/events/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hideEditButton: true
1111

1212
<UpcomingEventsList/>
1313

14-
This is a non-exhaustive list maintained by our community. Know of an upcoming Ethereum event to add to this list? [Please add it](https://github.com/ethereum/ethereum-org-website/blob/dev/src/data/community-events.ts)!
14+
This is a non-exhaustive list maintained by our community. Know of an upcoming Ethereum event to add to this list? [Please add it](https://github.com/ethereum/ethereum-org-website/blob/dev/src/data/community-events.json)!
1515

1616
## Ethereum meetups {#meetups}
1717

public/content/community/get-involved/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Do you have a background in mathematics, cryptography, or economics? You might b
3838
- [Ethresear.ch](https://ethresear.ch) - Ethereum’s primary forum for research, and the world’s most influential forum for cryptoeconomics
3939
- [EF Research AMA](https://old.reddit.com/r/ethereum/comments/vrx9xe/ama_we_are_ef_research_pt_8_07_july_2022) - An ongoing Q&A series with researchers. As each next part opens, anyone can post questions.
4040
- [Ecosystem Support Program's wishlist](https://esp.ethereum.foundation/wishlist/) - research areas where the Ethereum Ecosystem Support Program is actively seeking grant applications
41+
- [AllWalletDevs](allwallet.dev) - a forum for Ethereum developers, designers, and interested users to come together regularly and discuss wallets
4142

4243
[Explore more active areas of research](/community/research/).
4344

public/content/community/language-resources/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ If you are bilingual and want to help us reach more people, you can also get inv
3232
- [Cointelegraph](http://cointelegraph.com.br/category/analysis) - Brazilian version of Cointelegraph, a major cryptocurrency news outlet
3333
- [Livecoins](http://www.livecoins.com.br/ethereum) - cryptocurrency news and tools
3434
- [Seudinheiro](http://www.seudinheiro.com/criptomoedas/) - cryptocurrency news and reports
35+
- [Modular Crypto](https://modularcrypto.xyz/) - cryptocurrency news and educational articles
3536

3637
**Education**
3738

0 commit comments

Comments
 (0)