-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7,116 changed files
with
664,693 additions
and
507,989 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
# rename this file to .env and supply the values listed below | ||
# also make sure they are available to the build tool (e.g. Netlify) | ||
# warning: variables prefixed with GATSBY_ will be made available to client-side code | ||
# warning: variables prefixed with NEXT_PUBLIC_ will be made available to client-side code | ||
# be careful not to expose sensitive data (e.g. your Algolia admin key) | ||
ALGOLIA_ADMIN_KEY=insertValue | ||
ETHERSCAN_API_KEY=insertValue | ||
GATSBY_ALGOLIA_APP_ID=insertValue | ||
GATSBY_ALGOLIA_SEARCH_KEY=insertValue | ||
GATSBY_ALGOLIA_BASE_SEARCH_INDEX_NAME=insertValue | ||
GATSBY_GITHUB_TOKEN_READ_ONLY=insertValue | ||
GATSBY_FUNCTIONS_PATH=insertValue | ||
|
||
# Build pages only for the specified langs. Leave it empty to build all the langs | ||
# e.g. `en,fr` will only build english and french pages | ||
# Note: always include `en` as it is the default lang of the site | ||
GATSBY_BUILD_LANGS= | ||
# Algolia environment (app ID, search key and base search index name required for search) | ||
# NEXT_PUBLIC_ALGOLIA_APP_ID=insertValue | ||
# NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=insertValue | ||
# NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME=insertValue | ||
# NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=insertValue | ||
|
||
# Etherscan API key (required for Etherscan API fetches) | ||
# ETHERSCAN_API_KEY=insertValue | ||
|
||
# Google API key and Calendar ID (required to fetch Calendar events) | ||
# GOOGLE_API_KEY= | ||
# GOOGLE_CALENDAR_ID= | ||
|
||
# Folders or files to ignore from the `src/content` folder | ||
IGNORE_CONTENT=**/docs,**/tutorials | ||
# Matomo environment (URL and site ID required for analytics) | ||
NEXT_PUBLIC_MATOMO_URL= | ||
NEXT_PUBLIC_MATOMO_SITE_ID= | ||
|
||
# Used to avoid loading Matomo in our preview deploys | ||
IS_PREVIEW_DEPLOY=false | ||
IS_PREVIEW_DEPLOY=false | ||
|
||
# Build pages only for the specified langs. Leave it empty to build all the langs | ||
# e.g. `en,fr` will only build English and French pages | ||
# Note: always include `en` as it is the default lang of the site | ||
BUILD_LOCALES= | ||
|
||
# If resource constraints are being hit during builds, change LIMIT_CPUS to a | ||
# fixed number of CPUs (e.g. 2) to limit the demand during build time | ||
LIMIT_CPUS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# The content is used as a code example in /src/pages/index.js | ||
src/data/CreateWallet.js | ||
.next | ||
dist | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"prettier", | ||
"plugin:storybook/recommended" | ||
], | ||
"env": { "es6": true }, | ||
"plugins": ["simple-import-sort"], | ||
"rules": { | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
// Node.js builtins. | ||
[ | ||
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)" | ||
], | ||
// Packages. `react` related packages come first. | ||
// Also, put `react-icons` in sorting order not with `react` | ||
["^react(?!-.)$", "^\\w", "^@\\w"], | ||
// The Chakra theme directory if imported to story file or other places | ||
["^@/@chakra-ui"], | ||
// From the `types` directory. | ||
["^@/lib/types", "^@/lib/interfaces"], | ||
// From the `components` directory. | ||
["^@/components"], | ||
// From the `utils` directory. | ||
["^@/lib/utils"], | ||
// From the `data` directory. | ||
["^@/data"], | ||
// From the `constants` directory. | ||
["^@/lib/constants"], | ||
// Parent imports. Put `..` last. | ||
["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
// Other relative imports. Put same-folder imports and `.` last. | ||
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
// Style imports. | ||
["^.+\\.s?css$"], | ||
// Side effect imports. | ||
["^\\u0000"] | ||
] | ||
} | ||
], | ||
"simple-import-sort/exports": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Event listing | ||
description: Request an Ethereum event for listing | ||
title: Event listing | ||
labels: ["event :calendar:"] | ||
body: | ||
- type: input | ||
id: event_listing_name | ||
attributes: | ||
label: Event/Meetup Name | ||
description: Name for the event to be listed | ||
validations: | ||
required: true | ||
- type: input | ||
id: event_listing_website | ||
attributes: | ||
label: Website | ||
description: Publicly available website URL to get more information about the event | ||
validations: | ||
required: true | ||
- type: input | ||
id: event_listing_location | ||
attributes: | ||
label: Location (City/Country, or Remote) | ||
description: Geographic location of in-person event, or "Remote" for a virtual event | ||
validations: | ||
required: true | ||
- type: input | ||
id: event_listing_description | ||
attributes: | ||
label: Description | ||
description: Brief description of event | ||
validations: | ||
required: true | ||
- type: input | ||
id: event_listing_start_date | ||
attributes: | ||
label: "Start date: (yyyy-mm-dd)" | ||
description: Start date of event in yyyy-mm-dd format | ||
validations: | ||
required: true | ||
- type: input | ||
id: event_listing_end_date | ||
attributes: | ||
label: "End date: (yyyy-mm-dd)" | ||
description: End date of event in yyyy-mm-dd format | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: event_listing_additional_context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the event here | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**Note:** | ||
Events will be only added on the "Upcoming events" table if all fields above are completed, pending approval | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**Want to contribute?** | ||
We love contributions from the Ethereum community! Please comment on an issue if you're interested in helping out with a PR. | ||
- type: checkboxes | ||
id: event_listing_work_on | ||
attributes: | ||
label: Would you like to work on this issue? | ||
options: | ||
- label: "Yes" | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
"review needed :eyes:": | ||
- src/**/* | ||
- public/* | ||
|
||
"documentation :book:": | ||
- README.md | ||
|
||
"tooling :wrench:": | ||
- .github/**/* | ||
- src/scripts/* | ||
- netlify.toml | ||
- src/lib/* | ||
- src/hooks/* | ||
|
||
"dependencies :package:": | ||
- package.json | ||
- yarn.lock | ||
|
||
"internal :house:": | ||
- gatsby-browser.js | ||
- gatsby-config.js | ||
- gatsby-node.js | ||
- gatsby-ssr.js | ||
- .all-contributorsrc | ||
- i18n.config.json | ||
- next.config.js | ||
- next-i18next.config,js | ||
- next-sitemap.config.js | ||
- tsconfig.json | ||
- .nvmrc | ||
- .eslintignore | ||
- .eslintrc.json | ||
- .prettierignore | ||
- .prettierrc | ||
- netlify.toml | ||
|
||
"translation :earth_africa:": | ||
- src/content/translations/**/* | ||
- src/intl/* | ||
- src/utils/translations.js | ||
- src/intl/**/* | ||
- src/lib/utils/translations.ts | ||
|
||
"content :fountain_pen:": | ||
- src/pages/* | ||
- src/pages-conditional/* | ||
- src/content/**/* | ||
- public/content/**/* | ||
|
||
"event :date:": | ||
- src/data/community-events.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Update Crowdin translation progression | ||
|
||
on: | ||
schedule: | ||
- cron: "20 16 * * FRI" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install ts-node | ||
run: yarn global add ts-node | ||
|
||
- name: Set up git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
- name: Generate timestamp and readable date | ||
id: date | ||
run: | | ||
echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV | ||
echo "READABLE_DATE=$(date +'%B %-d')" >> $GITHUB_ENV | ||
- name: Fetch latest dev and create new branch | ||
run: | | ||
git fetch origin dev | ||
git checkout -b "automated-update-${{ env.TIMESTAMP }}" origin/dev | ||
- name: Run script | ||
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/getTranslationProgress.ts | ||
env: | ||
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
|
||
- name: Commit and push | ||
run: | | ||
git add -A | ||
git commit -m "Update Crowdin translation progress" | ||
git push origin "automated-update-${{ env.TIMESTAMP }}" | ||
- name: Create PR body | ||
run: | | ||
echo "This PR was automatically created to update Crowdin translation progress." > pr_body.txt | ||
echo "This workflows runs every Friday at 16:20 (UTC)." >> pr_body.txt | ||
echo "" >> pr_body.txt | ||
echo "Thank you to everyone contributing to translate ethereum.org ❤️" >> pr_body.txt | ||
- name: Create Pull Request | ||
run: | | ||
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }} | ||
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update translation progress from Crowdin - ${{ env.READABLE_DATE }}" --body-file pr_body.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Import community events | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * SUN" # Runs every Sunday at midnight | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: yarn install | ||
- run: yarn events-import | ||
env: | ||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
message: "Update community events" |
Oops, something went wrong.