Skip to content

Commit 283794a

Browse files
committed
Merge branch 'dev' into quiz-roadmap-scaling
2 parents 55da286 + cf968d3 commit 283794a

File tree

635 files changed

+62262
-3309
lines changed

Some content is hidden

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

635 files changed

+62262
-3309
lines changed

.all-contributorsrc

Lines changed: 130 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,134 @@
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+
]
10288+
},
10289+
{
10290+
"login": "SahityaRoy",
10291+
"name": "Sahitya Roy",
10292+
"avatar_url": "https://avatars.githubusercontent.com/u/72821604?v=4",
10293+
"profile": "https://www.linkedin.com/in/sahitya-roy-244b941a2/",
10294+
"contributions": [
10295+
"ideas"
10296+
]
10297+
},
10298+
{
10299+
"login": "Keecointoken",
10300+
"name": "KeeCoin",
10301+
"avatar_url": "https://avatars.githubusercontent.com/u/99338330?v=4",
10302+
"profile": "https://www.keecoin.io",
10303+
"contributions": [
10304+
"ideas"
10305+
]
10306+
},
10307+
{
10308+
"login": "tomatowax",
10309+
"name": "Seungwook Chi",
10310+
"avatar_url": "https://avatars.githubusercontent.com/u/799503?v=4",
10311+
"profile": "http://www.tomatowax.com/",
10312+
"contributions": [
10313+
"content"
10314+
]
10315+
},
10316+
{
10317+
"login": "0xx92",
10318+
"name": "0xx92",
10319+
"avatar_url": "https://avatars.githubusercontent.com/u/133748557?v=4",
10320+
"profile": "https://github.com/0xx92",
10321+
"contributions": [
10322+
"content"
10323+
]
10324+
},
10325+
{
10326+
"login": "altinocoelho",
10327+
"name": "altinocoelho",
10328+
"avatar_url": "https://avatars.githubusercontent.com/u/92543849?v=4",
10329+
"profile": "https://github.com/altinocoelho",
10330+
"contributions": [
10331+
"content"
10332+
]
10333+
},
10334+
{
10335+
"login": "viac92",
10336+
"name": "viac92",
10337+
"avatar_url": "https://avatars.githubusercontent.com/u/64146594?v=4",
10338+
"profile": "https://github.com/viac92",
10339+
"contributions": [
10340+
"content"
10341+
]
1021310342
}
1021410343
],
1021510344
"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: 19 additions & 1 deletion

package.json

Lines changed: 9 additions & 3 deletions
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,11 +11,13 @@
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",
1718
"@formatjs/intl-locale": "^2.4.14",
1819
"@formatjs/intl-numberformat": "^6.1.4",
20+
"@googleapis/calendar": "^6.0.0",
1921
"@mdx-js/mdx": "^1.6.5",
2022
"@mdx-js/react": "^1.6.5",
2123
"algoliasearch": "^4.3.0",
@@ -54,6 +56,7 @@
5456
"gatsby-transformer-json": "^5.4.0",
5557
"gatsby-transformer-remark": "^6.4.0",
5658
"gatsby-transformer-sharp": "^5.4.0",
59+
"googleapis": "^118.0.0",
5760
"htmr": "^1.0.2",
5861
"i18next": "^21.9.2",
5962
"is-relative-url": "^3.0.0",
@@ -104,6 +107,7 @@
104107
"babel-loader": "^8.3.0",
105108
"babel-preset-gatsby": "^2.23.0",
106109
"chromatic": "^6.19.9",
110+
"cross-env": "^7.0.3",
107111
"github-slugger": "^1.3.0",
108112
"gray-matter": "^4.0.3",
109113
"husky": "^4.2.5",
@@ -121,8 +125,8 @@
121125
"scripts": {
122126
"postinstall": "yarn theme",
123127
"build": "gatsby build",
124-
"build:lambda": "NODE_OPTIONS=--openssl-legacy-provider netlify-lambda build src/lambda --config=./webpack.lambda.js",
125-
"build:10gb": "NODE_OPTIONS=--max-old-space-size=10240 gatsby build",
128+
"build:lambda": "cross-env NODE_OPTIONS=--openssl-legacy-provider netlify-lambda build src/lambda --config=./webpack.lambda.js",
129+
"build:10gb": "cross-env NODE_OPTIONS=--max-old-space-size=10240 gatsby build",
126130
"clean": "gatsby clean",
127131
"crowdin-clean": "rm -rf .crowdin && mkdir .crowdin",
128132
"crowdin-import": "ts-node src/scripts/crowdin-import.ts",
@@ -131,6 +135,8 @@
131135
"generate-heading-ids": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/generateHeadingIds.ts",
132136
"unused-translations": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/unusedTranslations.ts",
133137
"reorg-intl": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/reorgIntlFiles.ts",
138+
"optimize-images": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/optimizeImages.ts",
139+
"crowdin-contributors": "ts-node -O '{ \"module\": \"commonjs\" }' src/scripts/crowdin/getCrowdinContributors.ts",
134140
"start": "gatsby develop",
135141
"start:lambda": "netlify-lambda serve src/lambda",
136142
"start:static": "gatsby build && gatsby serve",

src/api/calendarEvents.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { GatsbyFunctionRequest, GatsbyFunctionResponse } from "gatsby"
2+
import { lambda } from "../lambda/calendarEvents"
3+
4+
async function handler(
5+
__req: GatsbyFunctionRequest,
6+
res: GatsbyFunctionResponse
7+
): Promise<void> {
8+
// passing env vars as arguments due to a bug on GC functions where env vars
9+
// can not be accessed by imported functions
10+
const { statusCode, body } = await lambda(
11+
process.env.GOOGLE_API_KEY!,
12+
process.env.GOOGLE_CALENDAR_ID!
13+
)
14+
res.status(statusCode).send(body)
15+
}
16+
17+
export default handler

src/assets/assets/eth-diamond-black-gray.png

100755100644
-127 KB

src/assets/assets/eth-diamond-black-white.jpg

100755100644
-69.8 KB

src/assets/assets/eth-diamond-black.png

100755100644
-81.2 KB

src/assets/assets/eth-diamond-glyph.png

100755100644
-22.7 KB

src/assets/assets/eth-diamond-purple-purple.png

100755100644
-132 KB

0 commit comments

Comments
 (0)