Skip to content

Commit 2ebb4d8

Browse files
authored
Merge pull request #10675 from ethereum/staging
Deploy v7.17.0
2 parents 2dacf89 + 7bb1cc7 commit 2ebb4d8

File tree

288 files changed

+61130
-1632
lines changed

Some content is hidden

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

288 files changed

+61130
-1632
lines changed

.all-contributorsrc

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8756,7 +8756,8 @@
87568756
"profile": "https://github.com/MahendraBishnoi29",
87578757
"contributions": [
87588758
"ideas",
8759-
"code"
8759+
"code",
8760+
"bug"
87608761
]
87618762
},
87628763
{
@@ -10210,6 +10211,80 @@
1021010211
"content",
1021110212
"code"
1021210213
]
10214+
},
10215+
{
10216+
"login": "maxime216-pro",
10217+
"name": "Maxime Dessez",
10218+
"avatar_url": "https://avatars.githubusercontent.com/u/66296351?v=4",
10219+
"profile": "http://maximedessez.fr",
10220+
"contributions": [
10221+
"bug",
10222+
"translation"
10223+
]
10224+
},
10225+
{
10226+
"login": "Tyler-233",
10227+
"name": "Tyler-233",
10228+
"avatar_url": "https://avatars.githubusercontent.com/u/44740396?v=4",
10229+
"profile": "https://github.com/Tyler-233",
10230+
"contributions": [
10231+
"translation",
10232+
"content"
10233+
]
10234+
},
10235+
{
10236+
"login": "neodaoist",
10237+
"name": "neodaoist",
10238+
"avatar_url": "https://avatars.githubusercontent.com/u/3170590?v=4",
10239+
"profile": "http://neodaoist.xyz",
10240+
"contributions": [
10241+
"content"
10242+
]
10243+
},
10244+
{
10245+
"login": "atharvadeosthale",
10246+
"name": "Atharva Deosthale",
10247+
"avatar_url": "https://avatars.githubusercontent.com/u/11805367?v=4",
10248+
"profile": "https://links.atharva.codes",
10249+
"contributions": [
10250+
"content"
10251+
]
10252+
},
10253+
{
10254+
"login": "ckartik",
10255+
"name": "Kartik Chopra",
10256+
"avatar_url": "https://avatars.githubusercontent.com/u/13803371?v=4",
10257+
"profile": "https://github.com/ckartik",
10258+
"contributions": [
10259+
"content"
10260+
]
10261+
},
10262+
{
10263+
"login": "BBashh",
10264+
"name": "Bibash Tandon",
10265+
"avatar_url": "https://avatars.githubusercontent.com/u/125178349?v=4",
10266+
"profile": "https://github.com/BBashh",
10267+
"contributions": [
10268+
"content"
10269+
]
10270+
},
10271+
{
10272+
"login": "vaibhavtevatia",
10273+
"name": "Vaibhav Tevatia",
10274+
"avatar_url": "https://avatars.githubusercontent.com/u/86671961?v=4",
10275+
"profile": "https://github.com/vaibhavtevatia",
10276+
"contributions": [
10277+
"code"
10278+
]
10279+
},
10280+
{
10281+
"login": "cnn-rnn",
10282+
"name": "cnn-rnn",
10283+
"avatar_url": "https://avatars.githubusercontent.com/u/44789658?v=4",
10284+
"profile": "https://github.com/cnn-rnn",
10285+
"contributions": [
10286+
"ideas"
10287+
]
1021310288
}
1021410289
],
1021510290
"contributorsPerLine": 7,
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Update Crowdin Contributors
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * SUN" # Runs every Sunday at midnight
6+
workflow_dispatch:
7+
8+
jobs:
9+
create_pr:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
20+
- name: Install dependencies
21+
run: yarn install
22+
23+
- name: Install ts-node
24+
run: yarn global add ts-node
25+
26+
- name: Set up git
27+
run: |
28+
git config --global user.email "[email protected]"
29+
git config --global user.name "GitHub Action"
30+
31+
- name: Generate timestamp and readable date
32+
id: date
33+
run: |
34+
echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
35+
echo "READABLE_DATE=$(date +'%B %-d')" >> $GITHUB_ENV
36+
37+
- name: Fetch latest dev and create new branch
38+
run: |
39+
git fetch origin dev
40+
git checkout -b "automated-update-${{ env.TIMESTAMP }}" origin/dev
41+
42+
- name: Run script
43+
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/getCrowdinContributors.ts
44+
env:
45+
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
46+
47+
- name: Commit and push
48+
run: |
49+
git add -A
50+
git commit -m "Update Crowdin contributors"
51+
git push origin "automated-update-${{ env.TIMESTAMP }}"
52+
53+
- name: Create PR body
54+
run: |
55+
echo "This PR was automatically created to update Crowdin contributors." > pr_body.txt
56+
echo "This workflows runs every Sunday at 00:00 (UTC)." >> pr_body.txt
57+
echo "" >> pr_body.txt
58+
echo "Thank you to everyone contributing to translate ethereum.org ❤️" >> pr_body.txt
59+
60+
- name: Create Pull Request
61+
run: |
62+
gh auth login --with-token <<< ${{ secrets.GITHUB_TOKEN }}
63+
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update translation contributors from Crowdin - ${{ env.READABLE_DATE }}" --body-file pr_body.txt

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
13921392
<td align="center" valign="top" width="14.28%"><a href="https://carllippert.com"><img src="https://avatars.githubusercontent.com/u/16457876?v=4?s=100" width="100px;" alt="Carl Lippert"/><br /><sub><b>Carl Lippert</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=carllippert" title="Documentation">📖</a></td>
13931393
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tymtam2"><img src="https://avatars.githubusercontent.com/u/1097613?v=4?s=100" width="100px;" alt="Tymek Majewski"/><br /><sub><b>Tymek Majewski</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=tymtam2" title="Documentation">📖</a></td>
13941394
<td align="center" valign="top" width="14.28%"><a href="http://cryptolibertarian.id"><img src="https://avatars.githubusercontent.com/u/108990005?v=4?s=100" width="100px;" alt="Cryptolibertarian.id"/><br /><sub><b>Cryptolibertarian.id</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Cryptolibertarian-id" title="Documentation">📖</a></td>
1395-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MahendraBishnoi29"><img src="https://avatars.githubusercontent.com/u/74294202?v=4?s=100" width="100px;" alt="browny"/><br /><sub><b>browny</b></sub></a><br /><a href="#ideas-MahendraBishnoi29" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=MahendraBishnoi29" title="Code">💻</a></td>
1395+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MahendraBishnoi29"><img src="https://avatars.githubusercontent.com/u/74294202?v=4?s=100" width="100px;" alt="browny"/><br /><sub><b>browny</b></sub></a><br /><a href="#ideas-MahendraBishnoi29" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=MahendraBishnoi29" title="Code">💻</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AMahendraBishnoi29" title="Bug reports">🐛</a></td>
13961396
</tr>
13971397
<tr>
13981398
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sandakersmann"><img src="https://avatars.githubusercontent.com/u/6118832?v=4?s=100" width="100px;" alt="Marius Kjærstad"/><br /><sub><b>Marius Kjærstad</b></sub></a><br /><a href="#ideas-sandakersmann" title="Ideas, Planning, & Feedback">🤔</a></td>
@@ -1599,6 +1599,16 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
15991599
<td align="center" valign="top" width="14.28%"><a href="https://github.com/stephenfire"><img src="https://avatars.githubusercontent.com/u/17247036?v=4?s=100" width="100px;" alt="Stephen Guo"/><br /><sub><b>Stephen Guo</b></sub></a><br /><a href="#translation-stephenfire" title="Translation">🌍</a></td>
16001600
<td align="center" valign="top" width="14.28%"><a href="http://aumson.org/gene"><img src="https://avatars.githubusercontent.com/u/7883777?v=4?s=100" width="100px;" alt="F. Eugene Aumson"/><br /><sub><b>F. Eugene Aumson</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AfeuGeneA" title="Bug reports">🐛</a> <a href="#content-feuGeneA" title="Content">🖋</a></td>
16011601
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rpalakkal"><img src="https://avatars.githubusercontent.com/u/19766713?v=4?s=100" width="100px;" alt="Roshan"/><br /><sub><b>Roshan</b></sub></a><br /><a href="#content-rpalakkal" title="Content">🖋</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=rpalakkal" title="Code">💻</a></td>
1602+
<td align="center" valign="top" width="14.28%"><a href="http://maximedessez.fr"><img src="https://avatars.githubusercontent.com/u/66296351?v=4?s=100" width="100px;" alt="Maxime Dessez"/><br /><sub><b>Maxime Dessez</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Amaxime216-pro" title="Bug reports">🐛</a> <a href="#translation-maxime216-pro" title="Translation">🌍</a></td>
1603+
</tr>
1604+
<tr>
1605+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Tyler-233"><img src="https://avatars.githubusercontent.com/u/44740396?v=4?s=100" width="100px;" alt="Tyler-233"/><br /><sub><b>Tyler-233</b></sub></a><br /><a href="#translation-Tyler-233" title="Translation">🌍</a> <a href="#content-Tyler-233" title="Content">🖋</a></td>
1606+
<td align="center" valign="top" width="14.28%"><a href="http://neodaoist.xyz"><img src="https://avatars.githubusercontent.com/u/3170590?v=4?s=100" width="100px;" alt="neodaoist"/><br /><sub><b>neodaoist</b></sub></a><br /><a href="#content-neodaoist" title="Content">🖋</a></td>
1607+
<td align="center" valign="top" width="14.28%"><a href="https://links.atharva.codes"><img src="https://avatars.githubusercontent.com/u/11805367?v=4?s=100" width="100px;" alt="Atharva Deosthale"/><br /><sub><b>Atharva Deosthale</b></sub></a><br /><a href="#content-atharvadeosthale" title="Content">🖋</a></td>
1608+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ckartik"><img src="https://avatars.githubusercontent.com/u/13803371?v=4?s=100" width="100px;" alt="Kartik Chopra"/><br /><sub><b>Kartik Chopra</b></sub></a><br /><a href="#content-ckartik" title="Content">🖋</a></td>
1609+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/BBashh"><img src="https://avatars.githubusercontent.com/u/125178349?v=4?s=100" width="100px;" alt="Bibash Tandon"/><br /><sub><b>Bibash Tandon</b></sub></a><br /><a href="#content-BBashh" title="Content">🖋</a></td>
1610+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vaibhavtevatia"><img src="https://avatars.githubusercontent.com/u/86671961?v=4?s=100" width="100px;" alt="Vaibhav Tevatia"/><br /><sub><b>Vaibhav Tevatia</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=vaibhavtevatia" title="Code">💻</a></td>
1611+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cnn-rnn"><img src="https://avatars.githubusercontent.com/u/44789658?v=4?s=100" width="100px;" alt="cnn-rnn"/><br /><sub><b>cnn-rnn</b></sub></a><br /><a href="#ideas-cnn-rnn" title="Ideas, Planning, & Feedback">🤔</a></td>
16021612
</tr>
16031613
</tbody>
16041614
</table>

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.16.0",
3+
"version": "7.17.0",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "[email protected]:ethereum/ethereum-org-website.git",
@@ -11,6 +11,7 @@
1111
"@apollo/client": "^3.3.13",
1212
"@chakra-ui/gatsby-plugin": "^3.1.3",
1313
"@chakra-ui/react": "2.6.1",
14+
"@crowdin/crowdin-api-client": "^1.23.2",
1415
"@docsearch/react": "^3.3.3",
1516
"@emotion/react": "^11.9.3",
1617
"@emotion/styled": "^11.9.3",
@@ -131,6 +132,7 @@
131132
"generate-heading-ids": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/generateHeadingIds.ts",
132133
"unused-translations": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/unusedTranslations.ts",
133134
"reorg-intl": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/reorgIntlFiles.ts",
135+
"crowdin-contributors": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/crowdin/getCrowdinContributors.ts",
134136
"start": "gatsby develop",
135137
"start:lambda": "netlify-lambda serve src/lambda",
136138
"start:static": "gatsby build && gatsby serve",

src/assets/dapps/convex.png

1.53 KB
Loading

src/assets/dapps/yearn.png

4.52 KB
Loading

src/assets/wallets/blockwallet.png

16.1 KB
Loading

src/components/EthExchanges/use-eth-exchanges.ts

Lines changed: 68 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState } from "react"
2+
import { shuffle } from "lodash"
23
import { useStaticQuery, graphql } from "gatsby"
34
import { IGatsbyImageData } from "gatsby-plugin-image"
45
import { useI18next, useTranslation } from "gatsby-plugin-react-i18next"
@@ -516,31 +517,34 @@ export const useEthExchanges = () => {
516517
const hasSelectedCountry = !!state?.selectedCountry?.value
517518
if (hasSelectedCountry) {
518519
// Filter to exchanges that serve selected Country
519-
filteredExchanges = exchangesArray
520-
.filter(
521-
(exchange) => state?.selectedCountry?.exchanges[exchange] === "TRUE"
522-
)
523-
// Format array for <CardList/>
524-
.map((exchange) => {
525-
// Add state exceptions if Country is USA
526-
let description: string | null = null
527-
if (state?.selectedCountry?.value === t("page-get-eth-exchanges-usa")) {
528-
const exceptions = exchanges[exchange].usaExceptions
529-
if (exceptions.length > 0) {
530-
description = `${t(
531-
"page-get-eth-exchanges-except"
532-
)} ${exceptions.join(", ")}`
520+
filteredExchanges = shuffle(
521+
exchangesArray
522+
.filter(
523+
(exchange) => state?.selectedCountry?.exchanges[exchange] === "TRUE"
524+
)
525+
// Format array for <CardList/>
526+
.map((exchange) => {
527+
// Add state exceptions if Country is USA
528+
let description: string | null = null
529+
if (
530+
state?.selectedCountry?.value === t("page-get-eth-exchanges-usa")
531+
) {
532+
const exceptions = exchanges[exchange].usaExceptions
533+
if (exceptions.length > 0) {
534+
description = `${t(
535+
"page-get-eth-exchanges-except"
536+
)} ${exceptions.join(", ")}`
537+
}
533538
}
534-
}
535-
return {
536-
title: exchanges[exchange].name,
537-
description,
538-
link: exchanges[exchange].url,
539-
image: getImage(exchanges[exchange].image)!,
540-
alt: "",
541-
}
542-
})
543-
.sort((a, b) => a.title.localeCompare(b.title))
539+
return {
540+
title: exchanges[exchange].name,
541+
description,
542+
link: exchanges[exchange].url,
543+
image: getImage(exchanges[exchange].image)!,
544+
alt: "",
545+
}
546+
})
547+
)
544548

545549
// Filter to wallet providers that serve selected Country
546550
filteredWalletProviders = walletProvidersArray.filter(
@@ -549,43 +553,48 @@ export const useEthExchanges = () => {
549553
}
550554
if (filteredWalletProviders.length) {
551555
// Construct wallets based on the provider
552-
filteredWallets = filteredWalletProviders
553-
.reduce<Array<FilteredData>>((res, currentProvider) => {
554-
const wallets = Object.keys(walletProviders[currentProvider].wallets)
556+
filteredWallets = shuffle(
557+
filteredWalletProviders.reduce<Array<FilteredData>>(
558+
(res, currentProvider) => {
559+
const wallets = Object.keys(walletProviders[currentProvider].wallets)
555560

556-
const flattenWallets = wallets.reduce<Array<FilteredData>>(
557-
(result, currentWallet) => {
558-
const walletObject =
559-
walletProviders[currentProvider].wallets[currentWallet]
560-
// Add state exceptions if Country is USA
561-
let description: string | null = null
562-
if (
563-
state?.selectedCountry?.value === t("page-get-eth-exchanges-usa")
564-
) {
565-
const exceptions = walletProviders[currentProvider].usaExceptions
566-
if (exceptions.length > 0) {
567-
description = `${t(
568-
"page-get-eth-exchanges-except"
569-
)} ${exceptions.join(", ")}`
561+
const flattenWallets = wallets.reduce<Array<FilteredData>>(
562+
(result, currentWallet) => {
563+
const walletObject =
564+
walletProviders[currentProvider].wallets[currentWallet]
565+
// Add state exceptions if Country is USA
566+
let description: string | null = null
567+
if (
568+
state?.selectedCountry?.value ===
569+
t("page-get-eth-exchanges-usa")
570+
) {
571+
const exceptions =
572+
walletProviders[currentProvider].usaExceptions
573+
if (exceptions.length > 0) {
574+
description = `${t(
575+
"page-get-eth-exchanges-except"
576+
)} ${exceptions.join(", ")}`
577+
}
578+
// Filter out wallets that only service USA
579+
} else if (walletObject.isUsaOnly) {
580+
return result
570581
}
571-
// Filter out wallets that only service USA
572-
} else if (walletObject.isUsaOnly) {
573-
return result
574-
}
575-
return result.concat({
576-
title: currentWallet,
577-
description,
578-
link: walletObject.url,
579-
image: getImage(walletObject.image)!,
580-
alt: "",
581-
})
582-
},
583-
[]
584-
)
585-
// Flatten data into single array for <CardList/>
586-
return res.concat(flattenWallets)
587-
}, [])
588-
.sort((a, b) => a.title.localeCompare(b.title))
582+
return result.concat({
583+
title: currentWallet,
584+
description,
585+
link: walletObject.url,
586+
image: getImage(walletObject.image)!,
587+
alt: "",
588+
})
589+
},
590+
[]
591+
)
592+
// Flatten data into single array for <CardList/>
593+
return res.concat(flattenWallets)
594+
},
595+
[]
596+
)
597+
)
589598
}
590599

591600
const hasExchangeResults = filteredExchanges.length > 0

0 commit comments

Comments
 (0)