Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
2a4e66c
First version
qbzzt Jul 21, 2024
15cb5aa
Explained the Zokrates code
qbzzt Jul 21, 2024
d221d1b
WIP
qbzzt Jul 27, 2024
1e14638
WIP
qbzzt Jul 27, 2024
772efa8
WIP
qbzzt Jul 27, 2024
7337740
WIP
qbzzt Jul 27, 2024
f18d37e
WIP
qbzzt Aug 5, 2024
bd93194
WIP
qbzzt Aug 12, 2024
3a0a14c
gWIP
qbzzt Aug 17, 2024
8239dec
WIP
qbzzt Aug 21, 2024
fc38e9f
WIP
qbzzt Aug 24, 2024
9b88975
WIP
qbzzt Aug 25, 2024
a0b5200
WIP
qbzzt Aug 26, 2024
c0140e4
WIP
qbzzt Aug 28, 2024
5ed8fc2
Update index.md
qbzzt Aug 28, 2024
4c0faec
WIP
qbzzt Aug 28, 2024
06a0dc0
Update index.md
qbzzt Sep 2, 2024
e19b387
Update index.md
qbzzt Sep 2, 2024
c130444
Update index.md
qbzzt Sep 2, 2024
7349bcb
Update index.md
qbzzt Sep 2, 2024
f0a2148
Update index.md
qbzzt Sep 2, 2024
4747331
Update index.md
qbzzt Sep 2, 2024
9ec4199
Update index.md
qbzzt Sep 2, 2024
b130d70
Update index.md
qbzzt Sep 2, 2024
7950d34
Update index.md
qbzzt Sep 2, 2024
3256006
Update index.md
qbzzt Sep 2, 2024
bd7f069
Update index.md
qbzzt Sep 2, 2024
c4e5cab
Update index.md
qbzzt Sep 3, 2024
1f35a15
Update index.md
qbzzt Sep 3, 2024
4d537c9
Update index.md
qbzzt Sep 3, 2024
d2edbb3
Update further reading section on ZK-rollups page
emmanuel-awosika Nov 23, 2024
8e905ed
Update further reading section of validiums page
emmanuel-awosika Nov 23, 2024
43c49bb
Update further reading section of Verkle trees page
emmanuel-awosika Nov 23, 2024
08840d6
Update index.md
emmanuel-awosika Nov 23, 2024
c0270a4
Update further reading section of data/analytics page
emmanuel-awosika Nov 23, 2024
be3eba2
Update further reading section on EIP-1559 page
emmanuel-awosika Nov 23, 2024
0c4c0c3
Update validator keys page
emmanuel-awosika Nov 23, 2024
d71d0a3
Update further reading section on PoS rewards/penalties page
emmanuel-awosika Nov 23, 2024
ec20e60
Update index.md
emmanuel-awosika Nov 23, 2024
bf0cd33
fix: #13405 and end #13523 use shadcn
iusx Feb 2, 2025
ae36386
fix: use justify-center
iusx Feb 2, 2025
ba5c443
fix: log error
iusx Feb 2, 2025
399f42f
fix: log error
iusx Feb 2, 2025
b9417ad
feat: use new components?
iusx Feb 2, 2025
5d649fd
fix: use @/components/ui/Link
iusx Feb 2, 2025
d302e07
fix: hover error
iusx Feb 2, 2025
626ae4b
Merge branch 'ethereum:dev' into dev
iusx Feb 10, 2025
de6dbb3
feat: del import { Text } from "@chakra-ui/react"
iusx Feb 10, 2025
a9f34ce
rearrange the color according to the maturity
JoeChenJ Feb 11, 2025
4f891eb
refactor(components): replace and remove old button components
TylerAPfledderer Feb 11, 2025
9fde412
refactor(components): remove old avatar component
TylerAPfledderer Feb 11, 2025
77febed
refactor(components): replace and remove old image component
TylerAPfledderer Feb 11, 2025
6c0ab6b
refactor(components): replace and remove old link components
TylerAPfledderer Feb 11, 2025
97cffa7
feat: the great onchain / offchain renaming
wackerow Feb 12, 2025
133e5ca
setup next-intl files
pettinarip Feb 12, 2025
abdc67f
move pages one level deeper to handle dynamic [locale] route
pettinarip Feb 12, 2025
4e6a681
feat: add pectra to history
wackerow Feb 12, 2025
31c59f3
fix: dapp category buttons
wackerow Feb 12, 2025
f85a686
feat(pages/roadmap/vision): migrate to Tailwind
TylerAPfledderer Feb 13, 2025
a1a20fc
triggering new deploy
pettinarip Feb 13, 2025
c79d108
Merge pull request #14892 from TylerAPfledderer/feat/migrate-roadmap-…
pettinarip Feb 13, 2025
b176281
create custom abstractions for t, Translation, and load namespaces
pettinarip Feb 13, 2025
6d0030b
adapt pages for next-intl
pettinarip Feb 13, 2025
38d56d5
feat: add onchain/offchain to content-standardization
wackerow Feb 13, 2025
2439ec1
Update suggest_quiz.yaml
konopkja Feb 13, 2025
563a65b
migrate hooks and translations
pettinarip Feb 13, 2025
4bf663e
Merge pull request #14901 from ethereum/the-great-onchain-renaming
corwintines Feb 13, 2025
4eb6d1e
feat(pages/quizzes): migrate to tailwind
TylerAPfledderer Feb 13, 2025
db0f9b8
Merge remote-tracking branch 'upstream/dev' into refactor/remove-old-…
TylerAPfledderer Feb 14, 2025
b3ff4a2
chore(components): remove OldHeading component
TylerAPfledderer Feb 14, 2025
5546bbe
chore(components): remove OldText component
TylerAPfledderer Feb 14, 2025
c8d0b77
refactor(components): remove remaining Chakra imports
TylerAPfledderer Feb 14, 2025
3aab0b5
Merge pull request #14903 from TylerAPfledderer/feat/migrate-quizzes-…
pettinarip Feb 14, 2025
00dbb0e
change BUILD_LOCALES env var to be public
pettinarip Feb 14, 2025
1e40746
fix href for internal pdfs
pettinarip Feb 14, 2025
5298969
switch locale as recommended
pettinarip Feb 14, 2025
ac72a0e
default tz to server for now
pettinarip Feb 14, 2025
531a9a9
Merge branch 'dev' into i18n-next-intl
pettinarip Feb 14, 2025
db715ce
Update Crowdin translation progress
actions-user Feb 14, 2025
a683fbc
Update chains data
corwintines Feb 14, 2025
bdd291f
fix: clean relative edit path before constructing url
wackerow Feb 14, 2025
60afdd4
patch: remove beta from Grandine, v1.0.0 launched
wackerow Feb 14, 2025
14ca7ff
update: consensus networks
wackerow Feb 14, 2025
e6491d0
refactor(QuizRadioGroup): replace Chakra radio hooks with Radix
TylerAPfledderer Feb 14, 2025
8349263
chore(QuizRadioGroup): remove TODO comment
TylerAPfledderer Feb 14, 2025
395127d
Merge remote-tracking branch 'upstream/dev' into refactor/quiz-radio-…
TylerAPfledderer Feb 14, 2025
bbe11ec
feat: move primitive color story to tailwind
TylerAPfledderer Feb 15, 2025
f06889f
feat: move semantic color story to tailwind
TylerAPfledderer Feb 15, 2025
9a88036
chore: remove old colors story file
TylerAPfledderer Feb 15, 2025
fd8304f
Merge remote-tracking branch 'upstream/dev' into refactor/remove-rema…
TylerAPfledderer Feb 15, 2025
0e61202
chore(components): remove old OrderedList component
TylerAPfledderer Feb 15, 2025
05ed4fe
Merge remote-tracking branch 'upstream/dev' into refactor/remove-old-…
TylerAPfledderer Feb 15, 2025
af260a1
issue:14910 added functionality to highlight robust and maturing netw…
SamarthJ2004 Feb 15, 2025
0decdc8
issue:14910 added functionality to highlight robust and maturing netw…
SamarthJ2004 Feb 15, 2025
5152767
Update community events
actions-user Feb 16, 2025
f165373
Update Crowdin contributors
actions-user Feb 16, 2025
f632a0e
Merge pull request #14914 from TylerAPfledderer/refactor/quiz-radio-r…
pettinarip Feb 17, 2025
61aa028
Merge pull request #14872 from TylerAPfledderer/refactor/remove-old-c…
pettinarip Feb 17, 2025
bde7245
Add Pectra info to bug bounty page
fredrik0x Feb 17, 2025
adff765
Update index.tsx
fredrik0x Feb 17, 2025
7ec4b18
Update index.tsx
fredrik0x Feb 17, 2025
47c18ca
chore:(.storybook/main): remove commented story path
TylerAPfledderer Feb 17, 2025
fd0db90
chore(colors.stories): revert name of story title set
TylerAPfledderer Feb 17, 2025
de5fdd4
Merge branch 'dev' into i18n-next-intl
pettinarip Feb 17, 2025
b11ea8c
Merge remote-tracking branch 'upstream/dev' into feat/color-stories-t…
TylerAPfledderer Feb 17, 2025
d78bda0
Merge branch 'dev' into refactor/remove-remaining-chakra-components
TylerAPfledderer Feb 17, 2025
ec8b91f
Merge pull request #14915 from TylerAPfledderer/feat/color-stories-ta…
pettinarip Feb 17, 2025
1a1ab4b
fix links for static internal files
pettinarip Feb 17, 2025
f0d4913
set getMessageFallback for missing translations
pettinarip Feb 17, 2025
7aba0d4
Merge remote-tracking branch 'upstream/dev' into refactor/remove-rema…
TylerAPfledderer Feb 17, 2025
6e56963
refactor(Heading): replace customer heading component
TylerAPfledderer Feb 17, 2025
83f808d
fix infinite loop with router.query
pettinarip Feb 17, 2025
3492cfa
integrate next-intl with storybook
pettinarip Feb 17, 2025
0584324
refactor(ThemeProvider): remove Chakra provider and remove useColorMo…
TylerAPfledderer Feb 17, 2025
063327c
chore(.storybook): remove anything connected to chakra
TylerAPfledderer Feb 17, 2025
e20c882
chore: remove remaining comments related to Chakra
TylerAPfledderer Feb 17, 2025
1be091c
chore(.eslint): remove Chakra theme directory from source order
TylerAPfledderer Feb 17, 2025
5316145
chore(@chakra-ui): remove entire theme directory
TylerAPfledderer Feb 17, 2025
a54713a
chore: remove ancient theme config
TylerAPfledderer Feb 17, 2025
294ccde
chore(chromatic.yml): remove chakra theme glob path for Github workflow
TylerAPfledderer Feb 17, 2025
1c3b553
chore: remove type definition override for emotion
TylerAPfledderer Feb 17, 2025
ab97b2f
chore(tsconfig): remove tailwind directory glob path
TylerAPfledderer Feb 17, 2025
35e5beb
chore(.storybook): remove unneeded `types` file
TylerAPfledderer Feb 17, 2025
a0c3e92
build(package.json): uninstall Chakra deps
TylerAPfledderer Feb 17, 2025
75dfd1d
fix: revert and update `useLocaleDirection` usage
TylerAPfledderer Feb 17, 2025
3bd7a11
Merge pull request #14917 from SamarthJ2004/issue14910
corwintines Feb 17, 2025
bcce87b
set custom displayName for the switch component to fix storybook issue
pettinarip Feb 17, 2025
02e1664
refactor: remove temporalAllowedPages array
wackerow Feb 17, 2025
acd14fd
chore: adds do-not-remove comment
wackerow Feb 17, 2025
cd4f96c
refactor: use contentRoot naming
wackerow Feb 17, 2025
1027ef3
chore: add to allow list
wackerow Feb 17, 2025
d92679c
Merge branch 'dev' into pr/13783
wackerow Feb 17, 2025
dc51c65
fix: element id targets
wackerow Feb 17, 2025
c961500
chore: onchain/offchain
wackerow Feb 17, 2025
8d19c03
@wackerow fixes
qbzzt Feb 18, 2025
d6106a5
Add tool versions and a few other updates
qbzzt Feb 18, 2025
45dadc2
feat: update Pectra in /history
wackerow Feb 18, 2025
840afcd
Added `mprocs` installation
qbzzt Feb 18, 2025
9a82216
Merge pull request #14905 from TylerAPfledderer/refactor/remove-remai…
pettinarip Feb 18, 2025
5f16e78
maintenance to designer docs
konopkja Feb 18, 2025
247e318
remove i18next related deps
pettinarip Feb 18, 2025
d1ab379
Merge branch 'dev' into i18n-next-intl
pettinarip Feb 18, 2025
5ce82af
handle pathname and router support in sb
pettinarip Feb 18, 2025
3c4b0bc
commented out interactive tests based on i18n strings
pettinarip Feb 18, 2025
075c8cb
Merge remote-tracking branch 'upstream/dev' into refactor/remove-chak…
TylerAPfledderer Feb 18, 2025
636de38
chore(package.json): remove `postinstall` script
TylerAPfledderer Feb 18, 2025
b03dac6
refactor(tailwind.config): update dark mode strategy to use the class…
TylerAPfledderer Feb 18, 2025
04a89bb
chore(tailwind): remove important flag from body styles
TylerAPfledderer Feb 18, 2025
a707d85
fix(tailwind): explicitly define leading for body element
TylerAPfledderer Feb 18, 2025
abc0897
fix(EthTokenIcon): replace fill values with class utilities
TylerAPfledderer Feb 18, 2025
c9666c5
Apply suggestions from code review
pettinarip Feb 18, 2025
9c83c19
Merge pull request #14931 from TylerAPfledderer/refactor/remove-chakr…
pettinarip Feb 18, 2025
02f5a64
Merge pull request #14922 from ethereum/fredriksvantes-patch-1
wackerow Feb 18, 2025
32015c6
fix: full width BannerNotification
wackerow Feb 18, 2025
9afe9be
Merge pull request #14927 from ethereum/konopkja-patch-4
wackerow Feb 18, 2025
8b21966
Merge pull request #14902 from ethereum/konopkja-patch-2
wackerow Feb 18, 2025
1d4b382
Merge pull request #14907 from ethereum/automated-update-20250214162837
wackerow Feb 18, 2025
ec2d64d
Merge pull request #14908 from ethereum/update-chains-1739550532
wackerow Feb 18, 2025
a5b1bf1
Merge pull request #14919 from ethereum/automated-update-20250216001409
wackerow Feb 18, 2025
86c9ff3
patch: community event entries
wackerow Feb 18, 2025
e170a44
Merge pull request #14918 from ethereum/automated-update-20250216002655
wackerow Feb 18, 2025
f6b3684
@wackerow edits.
qbzzt Feb 19, 2025
64ee779
Heading change
qbzzt Feb 19, 2025
575aeee
mproc screenshot and explanation
qbzzt Feb 19, 2025
7b6c07e
align the intl message fallback with previous implementation
pettinarip Feb 19, 2025
b61aea4
Merge pull request #14926 from ethereum/deprecate-allow-list
pettinarip Feb 19, 2025
b7dfd28
Merge branch 'dev' into i18n-next-intl
pettinarip Feb 19, 2025
c16b424
update BUILD_LOCALES var to NEXT_PUBLIC_BUILD_LOCALES
pettinarip Feb 19, 2025
cf14b69
Merge branch 'dev' into pr/13783
wackerow Feb 20, 2025
e1eef56
Merge pull request #13783 from qbzzt/240714-zero-knowledge-state
wackerow Feb 20, 2025
ce583d6
fix: apply default border color to all
wackerow Feb 20, 2025
48e7c7d
Merge pull request #14950 from ethereum/border-color-patch
pettinarip Feb 20, 2025
d60fdea
Feat: Added the section clarifying the network maturity criteria
LifeofDan-EL Feb 21, 2025
ca7acf1
Added back <BasePageProps> in networks.tsx
LifeofDan-EL Feb 21, 2025
2626732
Merge pull request #14906 from ethereum/i18n-next-intl
pettinarip Feb 21, 2025
5f66d31
Made review changes.
LifeofDan-EL Feb 21, 2025
f881862
Merge pull request #14379 from emmanuel-awosika/patch-51
corwintines Feb 25, 2025
f90db97
remove link that is returning 403
corwintines Feb 25, 2025
f4ed592
Merge pull request #14380 from emmanuel-awosika/patch-52
corwintines Feb 25, 2025
bc88a99
Merge pull request #14381 from emmanuel-awosika/patch-53
corwintines Feb 25, 2025
5c75047
Merge pull request #14382 from emmanuel-awosika/patch-54
corwintines Feb 25, 2025
354b6a1
remove link returning 403
corwintines Feb 25, 2025
7c9297b
Merge pull request #14383 from emmanuel-awosika/patch-55
corwintines Feb 25, 2025
fcdd9c3
update broken link
corwintines Feb 25, 2025
3aef469
Merge pull request #14384 from emmanuel-awosika/patch-56
corwintines Feb 25, 2025
6cebfbc
Merge pull request #14385 from emmanuel-awosika/patch-57
corwintines Feb 25, 2025
dde51e3
Merge branch 'dev' into history-add-pectra
corwintines Feb 25, 2025
fe5cdc1
docs: Update Pectra upgrade description for clarity
corwintines Feb 25, 2025
2430915
Merge pull request #14890 from ethereum/history-add-pectra
corwintines Feb 25, 2025
7793e90
Merge branch 'dev' into dapp-categories
corwintines Feb 25, 2025
a6def6f
Merge pull request #14891 from ethereum/dapp-categories
corwintines Feb 25, 2025
c81d51a
Merge pull request #14911 from ethereum/fix-edit-path
corwintines Feb 25, 2025
5b5bba8
Merge pull request #14912 from ethereum/grandine
corwintines Feb 25, 2025
efb98e3
Merge pull request #14933 from ethereum/banner-patch
corwintines Feb 25, 2025
69c4d26
v9.6.0
corwintines Feb 25, 2025
446c419
Merge pull request #14974 from ethereum/v9-6-0
corwintines Feb 25, 2025
d6eff77
Merge pull request #14975 from ethereum/dev
corwintines Feb 25, 2025
73aea61
fix centered labels
JoeChenJ Feb 26, 2025
afc5db9
Merge pull request #14978 from JoeChenJ/Fix_centered_labels
wackerow Feb 26, 2025
179fdf8
Merge pull request #14868 from JoeChenJ/Switch_layer-2_tagging_color
pettinarip Feb 26, 2025
c1a1aea
use ExpandableCard
pettinarip Feb 26, 2025
501f39c
use Link component
pettinarip Feb 26, 2025
9af3b03
reuse Table component to define the table
pettinarip Feb 26, 2025
02419da
Merge branch 'dev' into website-update
pettinarip Feb 26, 2025
d9ce67f
Merge pull request #14954 from LifeofDan-EL/website-update
pettinarip Feb 26, 2025
47ee38e
Merge pull request #14980 from ethereum/dev
corwintines Feb 26, 2025
dc052ea
refactor query params logic to stop redirect cycle
pettinarip Feb 26, 2025
0b62c25
fix: Adjust z-index for CentralizedExchanges Select component
corwintines Feb 26, 2025
a2d75ae
Merge pull request #14982 from ethereum/country-picker-zindex
wackerow Feb 26, 2025
741b273
Merge branch 'dev' into pr/14811
wackerow Feb 26, 2025
2bbe18c
docs: update README.md [skip ci]
allcontributors[bot] Feb 26, 2025
f857030
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 26, 2025
b8ce23b
refactor: use tsFlipForRtl
wackerow Feb 26, 2025
b77cf93
Merge pull request #14811 from iusx/dev
wackerow Feb 26, 2025
f1a3e00
Merge pull request #14983 from ethereum/all-contributors/add-jenish-t…
wackerow Feb 26, 2025
1e2df58
docs: update README.md [skip ci]
allcontributors[bot] Feb 26, 2025
4a408df
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 26, 2025
0a09db6
Merge pull request #14984 from ethereum/all-contributors/add-iusx
wackerow Feb 26, 2025
ad73e33
Merge pull request #14981 from ethereum/fix-wallets-loop
corwintines Feb 27, 2025
7310deb
Merge pull request #14986 from ethereum/dev
corwintines Feb 27, 2025
03d5337
Merge branch 'master' into staging
corwintines Feb 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -12697,6 +12697,24 @@
"contributions": [
"content"
]
},
{
"login": "jenish-thapa",
"name": "Jenish Thapa",
"avatar_url": "https://avatars.githubusercontent.com/u/141203631?v=4",
"profile": "https://github.com/jenish-thapa",
"contributions": [
"ideas"
]
},
{
"login": "iusx",
"name": "iusx",
"avatar_url": "https://avatars.githubusercontent.com/u/57232813?v=4",
"profile": "https://jiangxue.org/~ritsu",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ 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=
NEXT_PUBLIC_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
Expand Down
15 changes: 1 addition & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
// 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.
Expand Down Expand Up @@ -65,17 +63,6 @@
"varsIgnorePattern": "^_$"
}
],
"unused-imports/no-unused-imports-ts": "warn",
"no-restricted-imports": [
"warn",
{
"paths": [
{
"name": "react-i18next",
"message": "Please use next-i18next instead of react-i18next."
}
]
}
]
"unused-imports/no-unused-imports-ts": "warn"
}
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/suggest_quiz.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Suggest quiz
description: Add, update, delete questions for a quiz on ethereum.osg
description: Add, update, delete questions for a quiz on ethereum.org
title: Add/Update/Delete quiz question
labels: ["feature ✨", "quiz 📚"]
body:
Expand Down
1 change: 0 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"config ⚙️":
- i18n.config.json
- next.config.js
- next-i18next.config,js
- next-sitemap.config.js
- tsconfig.json
- .nvmrc
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- "src/components/**/*"
- "src/pages/**/*"
- "src/layouts/**/*"
- "src/@chakra-ui/**/*"
- ".storybook/**/*"
- "tailwind.config.ts"
- "src/styles/**/*"
Expand Down
64 changes: 0 additions & 64 deletions .storybook/ChakraDecorator.tsx

This file was deleted.

27 changes: 2 additions & 25 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
import { propNames } from "@chakra-ui/react"
import type { StorybookConfig } from "@storybook/nextjs"

/**
Expand All @@ -17,8 +16,8 @@ import type { StorybookConfig } from "@storybook/nextjs"
const config: StorybookConfig = {
stories: [
"../src/components/**/*.stories.{ts,tsx}",
"../src/@chakra-ui/stories/*.stories.tsx",
"../src/layouts/stories/*.stories.tsx",
"../src/styles/*.stories.tsx",
],
addons: [
"@storybook/addon-links",
Expand All @@ -29,9 +28,9 @@ const config: StorybookConfig = {
},
},
"@storybook/addon-interactions",
"storybook-react-i18next",
"@storybook/addon-themes",
"@chromatic-com/storybook",
"storybook-next-intl",
],
staticDirs: ["../public"],
framework: {
Expand All @@ -41,11 +40,6 @@ const config: StorybookConfig = {
docs: {
autodocs: "tag",
},
refs: {
"@chakra-ui/react": {
disable: true,
},
},
webpackFinal: async (config) => {
config.module = config.module || {}
config.module.rules = config.module.rules || []
Expand Down Expand Up @@ -79,23 +73,6 @@ const config: StorybookConfig = {
typescript: {
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
/**
* For handling bloated controls table of Chakra Props
*
* https://github.com/chakra-ui/chakra-ui/issues/2009#issuecomment-852793946
*/
propFilter: (prop) => {
const excludedPropNames = propNames.concat([
"as",
"apply",
"sx",
"__css",
])
const isStyledSystemProp = excludedPropNames.includes(prop.name)
const isHTMLElementProp =
prop.parent?.fileName.includes("node_modules") ?? false
return !(isStyledSystemProp || isHTMLElementProp)
},
},

reactDocgen: "react-docgen-typescript",
Expand Down
2 changes: 1 addition & 1 deletion .storybook/modes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pickBy from "lodash/pickBy"

import { baseLocales } from "./i18next"
import { baseLocales } from "./next-intl"
import { breakpointSet } from "./preview"

export const viewportModes = breakpointSet.reduce<{
Expand Down
30 changes: 14 additions & 16 deletions .storybook/i18next.ts → .storybook/next-intl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import i18n, { Resource } from "i18next"
// eslint-disable-next-line no-restricted-imports
import { initReactI18next } from "react-i18next"

export const baseLocales = {
en: { title: "English", left: "En" },
zh: { title: "中国人", left: "Zh" },
Expand Down Expand Up @@ -32,7 +28,7 @@ const supportedLngs = Object.keys(baseLocales)
/**
* Taking the ns array and generating those files for each language available.
*/
const resources: Resource = ns.reduce((acc, n) => {
const messagesByLocale = ns.reduce((acc, n) => {
supportedLngs.forEach((lng) => {
if (!acc[lng]) acc[lng] = {}

Expand All @@ -57,16 +53,18 @@ const resources: Resource = ns.reduce((acc, n) => {

return acc
}, {})
console.log("🚀 ~ constresources:Resource=ns.reduce ~ resources:", resources)
console.log(
"🚀 ~ constresources:Resource=ns.reduce ~ resources:",
messagesByLocale
)

i18n.use(initReactI18next).init({
debug: true,
fallbackLng: "en",
interpolation: { escapeValue: false },
react: { useSuspense: false },
supportedLngs,
resources,
defaultNS: "common",
})
const nextIntl = {
defaultLocale: "en",
messagesByLocale,
getMessageFallback: ({ key }: { key: string }) => {
const keyOnly = key.split(".").pop()
return keyOnly || key
},
}

export default i18n
export default nextIntl
4 changes: 2 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Preview } from "@storybook/react"
import ThemeProvider from "@/components/ThemeProvider"
import { TooltipProvider } from "@/components/ui/tooltip"

import i18n, { baseLocales } from "./i18next"
import nextIntl, { baseLocales } from "./next-intl"
import { withNextThemes } from "./withNextThemes"

import "../src/styles/global.css"
Expand Down Expand Up @@ -47,7 +47,7 @@ const preview: Preview = {
),
],
parameters: {
i18n,
nextIntl,
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
83 changes: 0 additions & 83 deletions .storybook/types.ts

This file was deleted.

27 changes: 0 additions & 27 deletions .storybook/utils.ts

This file was deleted.

Loading