Skip to content

Commit 8ce4ac5

Browse files
committed
Merge branch 'dev' into pr/MacBudkowski/14502
2 parents 5797241 + 8026d02 commit 8ce4ac5

File tree

1,314 files changed

+65031
-31156
lines changed

Some content is hidden

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

1,314 files changed

+65031
-31156
lines changed

.all-contributorsrc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12643,6 +12643,78 @@
1264312643
"contributions": [
1264412644
"doc"
1264512645
]
12646+
},
12647+
{
12648+
"login": "YakshitAgarwal",
12649+
"name": "Yakshit Agarwal",
12650+
"avatar_url": "https://avatars.githubusercontent.com/u/153830716?v=4",
12651+
"profile": "https://github.com/YakshitAgarwal",
12652+
"contributions": [
12653+
"content"
12654+
]
12655+
},
12656+
{
12657+
"login": "mseidlx",
12658+
"name": "Matthias Seidl",
12659+
"avatar_url": "https://avatars.githubusercontent.com/u/32496674?v=4",
12660+
"profile": "https://growthepie.xyz",
12661+
"contributions": [
12662+
"code"
12663+
]
12664+
},
12665+
{
12666+
"login": "JoeChenJ",
12667+
"name": "JoeChenJ",
12668+
"avatar_url": "https://avatars.githubusercontent.com/u/171761102?v=4",
12669+
"profile": "https://github.com/JoeChenJ",
12670+
"contributions": [
12671+
"content"
12672+
]
12673+
},
12674+
{
12675+
"login": "itzVarsha",
12676+
"name": "Varshitha",
12677+
"avatar_url": "https://avatars.githubusercontent.com/u/138134029?v=4",
12678+
"profile": "https://github.com/itzVarsha",
12679+
"contributions": [
12680+
"maintenance"
12681+
]
12682+
},
12683+
{
12684+
"login": "alexandriaroberts",
12685+
"name": "Alexandria Roberts",
12686+
"avatar_url": "https://avatars.githubusercontent.com/u/31341867?v=4",
12687+
"profile": "https://alexandriaroberts.dev/",
12688+
"contributions": [
12689+
"code"
12690+
]
12691+
},
12692+
{
12693+
"login": "colinlyguo",
12694+
"name": "colin",
12695+
"avatar_url": "https://avatars.githubusercontent.com/u/102356659?v=4",
12696+
"profile": "https://github.com/colinlyguo",
12697+
"contributions": [
12698+
"content"
12699+
]
12700+
},
12701+
{
12702+
"login": "jenish-thapa",
12703+
"name": "Jenish Thapa",
12704+
"avatar_url": "https://avatars.githubusercontent.com/u/141203631?v=4",
12705+
"profile": "https://github.com/jenish-thapa",
12706+
"contributions": [
12707+
"ideas"
12708+
]
12709+
},
12710+
{
12711+
"login": "iusx",
12712+
"name": "iusx",
12713+
"avatar_url": "https://avatars.githubusercontent.com/u/57232813?v=4",
12714+
"profile": "https://jiangxue.org/~ritsu",
12715+
"contributions": [
12716+
"code"
12717+
]
1264612718
}
1264712719
],
1264812720
"contributorsPerLine": 7,

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# NEXT_PUBLIC_ALGOLIA_APP_ID=insertValue
88
# NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=insertValue
99
# NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME=insertValue
10+
11+
# Github token for read-only use with api functions
1012
# NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=insertValue
1113

1214
# Etherscan API key (required for Etherscan API fetches)
@@ -29,7 +31,7 @@ IS_PREVIEW_DEPLOY=false
2931
# Build pages only for the specified langs. Leave it empty to build all the langs
3032
# e.g. `en,fr` will only build English and French pages
3133
# Note: always include `en` as it is the default lang of the site
32-
BUILD_LOCALES=
34+
NEXT_PUBLIC_BUILD_LOCALES=
3335

3436
# If resource constraints are being hit during builds, change LIMIT_CPUS to a
3537
# fixed number of CPUs (e.g. 2) to limit the demand during build time

.eslintrc.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
// Packages. `react` related packages come first.
2424
// Also, put `react-icons` in sorting order not with `react`
2525
["^react(?!-.)$", "^\\w", "^@\\w"],
26-
// The Chakra theme directory if imported to story file or other places
27-
["^@/@chakra-ui"],
2826
// From the `types` directory.
2927
["^@/lib/types", "^@/lib/interfaces"],
3028
// From the `components` directory.
@@ -35,8 +33,8 @@
3533
["^@/data"],
3634
// From the `constants` directory.
3735
["^@/lib/constants"],
38-
// From the `.storybook/utils` file
39-
["^@/storybook-utils"],
36+
// `.storybook` directory and utils files`
37+
["^@/storybook","^@/storybook-utils"],
4038
// Parent imports. Put `..` last.
4139
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
4240
// Other relative imports. Put same-folder imports and `.` last.
@@ -65,17 +63,6 @@
6563
"varsIgnorePattern": "^_$"
6664
}
6765
],
68-
"unused-imports/no-unused-imports-ts": "warn",
69-
"no-restricted-imports": [
70-
"warn",
71-
{
72-
"paths": [
73-
{
74-
"name": "react-i18next",
75-
"message": "Please use next-i18next instead of react-i18next."
76-
}
77-
]
78-
}
79-
]
66+
"unused-imports/no-unused-imports-ts": "warn"
8067
}
8168
}

.github/ISSUE_TEMPLATE/suggest_quiz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Suggest quiz
2-
description: Add, update, delete questions for a quiz on ethereum.osg
2+
description: Add, update, delete questions for a quiz on ethereum.org
33
title: Add/Update/Delete quiz question
44
labels: ["feature ✨", "quiz 📚"]
55
body:

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"config ⚙️":
1717
- i18n.config.json
1818
- next.config.js
19-
- next-i18next.config,js
2019
- next-sitemap.config.js
2120
- tsconfig.json
2221
- .nvmrc

.github/workflows/chromatic.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
- "src/components/**/*"
1616
- "src/pages/**/*"
1717
- "src/layouts/**/*"
18-
- "src/@chakra-ui/**/*"
1918
- ".storybook/**/*"
2019
- "tailwind.config.ts"
2120
- "src/styles/**/*"

.github/workflows/generate-review-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
2929

3030
- name: Upload output as artifact
31-
uses: actions/upload-artifact@v2
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: output
3434
path: ./src/data/crowdin/bucketsAwaitingReviewReport.csv

.storybook/ChakraDecorator.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import path from "path"
2+
13
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
2-
import { propNames } from "@chakra-ui/react"
34
import type { StorybookConfig } from "@storybook/nextjs"
45

56
/**
@@ -17,8 +18,8 @@ import type { StorybookConfig } from "@storybook/nextjs"
1718
const config: StorybookConfig = {
1819
stories: [
1920
"../src/components/**/*.stories.{ts,tsx}",
20-
"../src/@chakra-ui/stories/*.stories.tsx",
2121
"../src/layouts/stories/*.stories.tsx",
22+
"../src/styles/*.stories.tsx",
2223
],
2324
addons: [
2425
"@storybook/addon-links",
@@ -29,9 +30,9 @@ const config: StorybookConfig = {
2930
},
3031
},
3132
"@storybook/addon-interactions",
32-
"storybook-react-i18next",
3333
"@storybook/addon-themes",
3434
"@chromatic-com/storybook",
35+
"storybook-next-intl",
3536
],
3637
staticDirs: ["../public"],
3738
framework: {
@@ -41,11 +42,6 @@ const config: StorybookConfig = {
4142
docs: {
4243
autodocs: "tag",
4344
},
44-
refs: {
45-
"@chakra-ui/react": {
46-
disable: true,
47-
},
48-
},
4945
webpackFinal: async (config) => {
5046
config.module = config.module || {}
5147
config.module.rules = config.module.rules || []
@@ -57,6 +53,11 @@ const config: StorybookConfig = {
5753
extensions: config.resolve.extensions,
5854
}),
5955
]
56+
57+
config.resolve.alias = {
58+
...config.resolve.alias,
59+
"@/storybook/*": path.resolve(__dirname, "./.storybook/"),
60+
}
6061
}
6162

6263
// This modifies the existing image rule to exclude .svg files
@@ -79,23 +80,6 @@ const config: StorybookConfig = {
7980
typescript: {
8081
reactDocgenTypescriptOptions: {
8182
shouldExtractLiteralValuesFromEnum: true,
82-
/**
83-
* For handling bloated controls table of Chakra Props
84-
*
85-
* https://github.com/chakra-ui/chakra-ui/issues/2009#issuecomment-852793946
86-
*/
87-
propFilter: (prop) => {
88-
const excludedPropNames = propNames.concat([
89-
"as",
90-
"apply",
91-
"sx",
92-
"__css",
93-
])
94-
const isStyledSystemProp = excludedPropNames.includes(prop.name)
95-
const isHTMLElementProp =
96-
prop.parent?.fileName.includes("node_modules") ?? false
97-
return !(isStyledSystemProp || isHTMLElementProp)
98-
},
9983
},
10084

10185
reactDocgen: "react-docgen-typescript",

.storybook/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pickBy from "lodash/pickBy"
22

3-
import { baseLocales } from "./i18next"
3+
import { baseLocales } from "./next-intl"
44
import { breakpointSet } from "./preview"
55

66
export const viewportModes = breakpointSet.reduce<{

0 commit comments

Comments
 (0)