Skip to content

Commit 00e8d75

Browse files
committed
Merge branch 'dev' into ds-toc
2 parents 0ddd3b8 + 2b8e5ac commit 00e8d75

File tree

790 files changed

+19323
-8598
lines changed

Some content is hidden

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

790 files changed

+19323
-8598
lines changed

.all-contributorsrc

Lines changed: 151 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4810,7 +4810,8 @@
48104810
"profile": "http://www.technobunnies.com",
48114811
"contributions": [
48124812
"doc",
4813-
"maintenance"
4813+
"maintenance",
4814+
"content"
48144815
]
48154816
},
48164817
{
@@ -7193,7 +7194,8 @@
71937194
"contributions": [
71947195
"doc",
71957196
"ideas",
7196-
"bug"
7197+
"bug",
7198+
"tool"
71977199
]
71987200
},
71997201
{
@@ -11318,7 +11320,8 @@
1131811320
"avatar_url": "https://avatars.githubusercontent.com/u/71248977?v=4",
1131911321
"profile": "https://github.com/UNOFFICIALbgd",
1132011322
"contributions": [
11321-
"bug"
11323+
"bug",
11324+
"doc"
1132211325
]
1132311326
},
1132411327
{
@@ -12168,6 +12171,151 @@
1216812171
"contributions": [
1216912172
"tool"
1217012173
]
12174+
},
12175+
{
12176+
"login": "SnehalSrivastava27",
12177+
"name": "SnehalSrivastava27",
12178+
"avatar_url": "https://avatars.githubusercontent.com/u/118104081?v=4",
12179+
"profile": "https://github.com/SnehalSrivastava27",
12180+
"contributions": [
12181+
"maintenance"
12182+
]
12183+
},
12184+
{
12185+
"login": "wrexgem",
12186+
"name": "wrexgem",
12187+
"avatar_url": "https://avatars.githubusercontent.com/u/134736543?v=4",
12188+
"profile": "https://github.com/wrexgem",
12189+
"contributions": [
12190+
"tool"
12191+
]
12192+
},
12193+
{
12194+
"login": "cd-sigma",
12195+
"name": "ciphernova",
12196+
"avatar_url": "https://avatars.githubusercontent.com/u/119534349?v=4",
12197+
"profile": "https://github.com/cd-sigma",
12198+
"contributions": [
12199+
"content"
12200+
]
12201+
},
12202+
{
12203+
"login": "CodeMongerrr",
12204+
"name": "Aditya Joshi",
12205+
"avatar_url": "https://avatars.githubusercontent.com/u/99281767?v=4",
12206+
"profile": "https://github.com/CodeMongerrr",
12207+
"contributions": [
12208+
"ideas"
12209+
]
12210+
},
12211+
{
12212+
"login": "Khemmie-Ray",
12213+
"name": "Atoyebi Oluwakemi",
12214+
"avatar_url": "https://avatars.githubusercontent.com/u/89976006?v=4",
12215+
"profile": "https://github.com/Khemmie-Ray",
12216+
"contributions": [
12217+
"maintenance"
12218+
]
12219+
},
12220+
{
12221+
"login": "pglekshmi",
12222+
"name": "pglekshmi",
12223+
"avatar_url": "https://avatars.githubusercontent.com/u/107828565?v=4",
12224+
"profile": "https://github.com/pglekshmi",
12225+
"contributions": [
12226+
"maintenance"
12227+
]
12228+
},
12229+
{
12230+
"login": "abonnaudet-ledger",
12231+
"name": "abonnaudet-ledger",
12232+
"avatar_url": "https://avatars.githubusercontent.com/u/71646516?v=4",
12233+
"profile": "https://github.com/abonnaudet-ledger",
12234+
"contributions": [
12235+
"bug"
12236+
]
12237+
},
12238+
{
12239+
"login": "JacobSharples",
12240+
"name": "Jacob Sharples",
12241+
"avatar_url": "https://avatars.githubusercontent.com/u/45126111?v=4",
12242+
"profile": "https://github.com/JacobSharples",
12243+
"contributions": [
12244+
"content"
12245+
]
12246+
},
12247+
{
12248+
"login": "omahs",
12249+
"name": "omahs",
12250+
"avatar_url": "https://avatars.githubusercontent.com/u/73983677?v=4",
12251+
"profile": "https://github.com/omahs",
12252+
"contributions": [
12253+
"translation",
12254+
"maintenance"
12255+
]
12256+
},
12257+
{
12258+
"login": "Shiva-Sai-ssb",
12259+
"name": "Shiva Sai",
12260+
"avatar_url": "https://avatars.githubusercontent.com/u/112751524?v=4",
12261+
"profile": "https://github.com/Shiva-Sai-ssb",
12262+
"contributions": [
12263+
"bug"
12264+
]
12265+
},
12266+
{
12267+
"login": "saurabhburade",
12268+
"name": "Saurabh Burade",
12269+
"avatar_url": "https://avatars.githubusercontent.com/u/39492927?v=4",
12270+
"profile": "https://bsaurabh.xyz/",
12271+
"contributions": [
12272+
"code"
12273+
]
12274+
},
12275+
{
12276+
"login": "yorkerhodes3",
12277+
"name": "Yorke E. Rhodes III",
12278+
"avatar_url": "https://avatars.githubusercontent.com/u/17415717?v=4",
12279+
"profile": "https://github.com/yorkerhodes3",
12280+
"contributions": [
12281+
"content"
12282+
]
12283+
},
12284+
{
12285+
"login": "sandeepV2",
12286+
"name": "Sandeep Belagavi",
12287+
"avatar_url": "https://avatars.githubusercontent.com/u/52043035?v=4",
12288+
"profile": "https://github.com/sandeepV2",
12289+
"contributions": [
12290+
"bug"
12291+
]
12292+
},
12293+
{
12294+
"login": "codingmickey",
12295+
"name": "Kartik Jolapara",
12296+
"avatar_url": "https://avatars.githubusercontent.com/u/42518907?v=4",
12297+
"profile": "https://github.com/codingmickey",
12298+
"contributions": [
12299+
"code"
12300+
]
12301+
},
12302+
{
12303+
"login": "Ekam-Bitt",
12304+
"name": "Ekam Bitt",
12305+
"avatar_url": "https://avatars.githubusercontent.com/u/74407205?v=4",
12306+
"profile": "https://ekam-bitt.github.io",
12307+
"contributions": [
12308+
"maintenance"
12309+
]
12310+
},
12311+
{
12312+
"login": "iankressin",
12313+
"name": "Ian K. Guimarães",
12314+
"avatar_url": "https://avatars.githubusercontent.com/u/29215044?v=4",
12315+
"profile": "http://iankguimaraes.com",
12316+
"contributions": [
12317+
"maintenance"
12318+
]
1217112319
}
1217212320
],
1217312321
"contributorsPerLine": 7,

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# GOOGLE_API_KEY=
1717
# GOOGLE_CALENDAR_ID=
1818

19+
# Dune Analytics API key (required for total eth staked)
20+
# DUNE_API_KEY=
21+
1922
# Matomo environment (URL and site ID required for analytics)
2023
NEXT_PUBLIC_MATOMO_URL=
2124
NEXT_PUBLIC_MATOMO_SITE_ID=

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.next
22
dist
33
node_modules/
4+
5+
!.storybook

.eslintrc.json

Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
{
22
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
35
"next/core-web-vitals",
46
"prettier",
57
"plugin:storybook/recommended"
68
],
7-
"env": { "es6": true },
8-
"plugins": ["simple-import-sort"],
9+
"env": {
10+
"es6": true
11+
},
12+
"plugins": [
13+
"simple-import-sort",
14+
"@typescript-eslint",
15+
"unused-imports"
16+
],
17+
"parser": "@typescript-eslint/parser",
918
"rules": {
1019
"simple-import-sort/imports": [
1120
"error",
@@ -17,32 +26,76 @@
1726
],
1827
// Packages. `react` related packages come first.
1928
// Also, put `react-icons` in sorting order not with `react`
20-
["^react(?!-.)$", "^\\w", "^@\\w"],
29+
[
30+
"^react(?!-.)$",
31+
"^\\w",
32+
"^@\\w"
33+
],
2134
// The Chakra theme directory if imported to story file or other places
22-
["^@/@chakra-ui"],
35+
[
36+
"^@/@chakra-ui"
37+
],
2338
// From the `types` directory.
24-
["^@/lib/types", "^@/lib/interfaces"],
39+
[
40+
"^@/lib/types",
41+
"^@/lib/interfaces"
42+
],
2543
// From the `components` directory.
26-
["^@/components"],
44+
[
45+
"^@/components"
46+
],
2747
// From the `utils` directory.
28-
["^@/lib/utils"],
48+
[
49+
"^@/lib/utils"
50+
],
2951
// From the `data` directory.
30-
["^@/data"],
52+
[
53+
"^@/data"
54+
],
3155
// From the `constants` directory.
3256
["^@/lib/constants"],
3357
// From the `.storybook/utils` file
3458
["^@/storybook-utils"],
3559
// Parent imports. Put `..` last.
36-
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
60+
[
61+
"^\\.\\.(?!/?$)",
62+
"^\\.\\./?$"
63+
],
3764
// Other relative imports. Put same-folder imports and `.` last.
38-
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
65+
[
66+
"^\\./(?=.*/)(?!/?$)",
67+
"^\\.(?!/?$)",
68+
"^\\./?$"
69+
],
3970
// Style imports.
40-
["^.+\\.s?css$"],
71+
[
72+
"^.+\\.s?css$"
73+
],
4174
// Side effect imports.
42-
["^\\u0000"]
75+
[
76+
"^\\u0000"
77+
]
4378
]
4479
}
4580
],
46-
"simple-import-sort/exports": "error"
81+
"simple-import-sort/exports": "error",
82+
"no-unused-vars": "off",
83+
"@typescript-eslint/no-unused-vars": "off",
84+
"@typescript-eslint/no-explicit-any": [
85+
"error",
86+
{
87+
"fixToUnknown": true
88+
}
89+
],
90+
"unused-imports/no-unused-vars": [
91+
"error",
92+
{
93+
"args": "all",
94+
"argsIgnorePattern": "^_$",
95+
"varsIgnorePattern": "^_$"
96+
}
97+
],
98+
"unused-imports/no-unused-imports-ts": "warn"
4799
}
48100
}
101+

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ robots.txt
5656

5757
# Crowdin report output
5858
src/data/crowdin/bucketsAwaitingReviewReport.csv
59+
60+
# Storybook
61+
build-storybook.log
62+
storybook-static

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const path = require("path")
2+
3+
const buildEslintCommand = (filenames) =>
4+
`next lint --fix --file ${filenames
5+
.map((f) => path.relative(process.cwd(), f))
6+
.join(" --file ")}`
7+
8+
const formatCommand = "prettier --write"
9+
10+
module.exports = {
11+
"*.{js,jsx,ts,tsx}": [buildEslintCommand, formatCommand],
12+
}

.prettierrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"semi": false,
44
"singleQuote": false,
55
"tabWidth": 2,
6-
"trailingComma": "es5"
7-
}
6+
"trailingComma": "es5",
7+
"plugins": [
8+
"prettier-plugin-tailwindcss"
9+
]
10+
}

.storybook/ChakraDecorator.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useEffect, useMemo, useState } from "react"
12
import {
23
ChakraBaseProvider,
34
extendBaseTheme,
@@ -6,7 +7,7 @@ import {
67
import type { Decorator } from "@storybook/react"
78

89
import theme from "../src/@chakra-ui/theme"
9-
import { useEffect, useMemo, useState } from "react"
10+
1011
import i18n from "./i18next"
1112

1213
type DecoratorProps = Parameters<Decorator>

.storybook/i18next.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ export const baseLocales = {
1313
export const ns = [
1414
"common",
1515
"glossary",
16+
"glossary-tooltip",
1617
"learn-quizzes",
1718
"page-about",
1819
"page-index",
1920
"page-learn",
2021
"page-upgrades",
2122
"page-developers-index",
23+
"page-what-is-ethereum",
2224
] as const
2325
const supportedLngs = Object.keys(baseLocales)
2426

0 commit comments

Comments
 (0)