Skip to content

Commit 2f033ed

Browse files
Merge remote-tracking branch 'origin/dev' into fix/input-misalignment
2 parents 0385a3e + d12ccab commit 2f033ed

Some content is hidden

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

65 files changed

+1880
-1453
lines changed

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10422,6 +10422,16 @@
1042210422
"contributions": [
1042310423
"ideas"
1042410424
]
10425+
},
10426+
{
10427+
"login": "z0rats",
10428+
"name": "Alex",
10429+
"avatar_url": "https://avatars.githubusercontent.com/u/32142853?v=4",
10430+
"profile": "http://t.me/mevsinternet",
10431+
"contributions": [
10432+
"doc",
10433+
"bug"
10434+
]
1042510435
}
1042610436
],
1042710437
"contributorsPerLine": 7,

.storybook/i18next.ts

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import i18n, { Resource } from "i18next"
22
import { initReactI18next } from "gatsby-plugin-react-i18next"
3+
import fs from "fs"
34

45
export const baseLocales = {
56
en: { title: "English", left: "En" },
@@ -9,7 +10,13 @@ export const baseLocales = {
910
}
1011

1112
// Only i18n files named in this array are being exposed to Storybook. Add filenames as necessary.
12-
const ns = ["common", "page-about", "page-upgrades", "page-developers-index"]
13+
const ns = [
14+
"common",
15+
"glossary",
16+
"page-about",
17+
"page-upgrades",
18+
"page-developers-index",
19+
]
1320
const supportedLngs = Object.keys(baseLocales)
1421

1522
/**
@@ -19,11 +26,22 @@ const supportedLngs = Object.keys(baseLocales)
1926
const resources: Resource = ns.reduce((acc, n) => {
2027
supportedLngs.forEach((lng) => {
2128
if (!acc[lng]) acc[lng] = {}
22-
acc[lng] = {
23-
translation: {
24-
...acc[lng].translation,
25-
...require(`../src/intl/${lng}/${n}.json`),
26-
},
29+
try {
30+
acc[lng] = {
31+
translation: {
32+
...acc[lng].translation,
33+
34+
...require(`../src/intl/${lng}/${n}.json`),
35+
},
36+
}
37+
} catch {
38+
acc[lng] = {
39+
translation: {
40+
...acc[lng].translation,
41+
42+
...require(`../src/intl/en/${n}.json`),
43+
},
44+
}
2745
}
2846
})
2947
return acc

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16301630
</tr>
16311631
<tr>
16321632
<td align="center" valign="top" width="14.28%"><a href="https://github.com/LadyDhaga"><img src="https://avatars.githubusercontent.com/u/106376368?v=4?s=100" width="100px;" alt="chinaman123"/><br /><sub><b>chinaman123</b></sub></a><br /><a href="#ideas-LadyDhaga" title="Ideas, Planning, & Feedback">🤔</a></td>
1633+
<td align="center" valign="top" width="14.28%"><a href="http://t.me/mevsinternet"><img src="https://avatars.githubusercontent.com/u/32142853?v=4?s=100" width="100px;" alt="Alex"/><br /><sub><b>Alex</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=z0rats" title="Documentation">📖</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Az0rats" title="Bug reports">🐛</a></td>
16331634
</tr>
16341635
</tbody>
16351636
</table>

gatsby-browser.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
import Prism from "prism-react-renderer/prism"
88
;(typeof global !== "undefined" ? global : window).Prism = Prism
99

10-
// FormatJS Polyfill imports - Used for intl number formatting
11-
import "@formatjs/intl-locale/polyfill"
12-
import "@formatjs/intl-numberformat/polyfill"
13-
import "@formatjs/intl-numberformat/locale-data/en"
14-
1510
// Default languages included:
1611
// https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
1712
require("prismjs/components/prism-solidity")

gatsby-ssr.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,5 @@ export const onRenderBody = ({ setHeadComponents }: RenderBodyArgs) => {
1818
crossOrigin="anonymous"
1919
key="interFont"
2020
/>,
21-
<link
22-
rel="preload"
23-
href="/fonts/Inter-Regular.woff"
24-
as="font"
25-
type="font/woff"
26-
crossOrigin="anonymous"
27-
key="interFont"
28-
/>,
29-
<link
30-
rel="preload"
31-
href="/fonts/IBMPlexMono-Regular.woff2"
32-
as="font"
33-
type="font/woff2"
34-
crossOrigin="anonymous"
35-
key="interFont"
36-
/>,
3721
])
3822
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.19.1",
3+
"version": "7.19.2",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "[email protected]:ethereum/ethereum-org-website.git",
@@ -15,8 +15,6 @@
1515
"@docsearch/react": "^3.3.3",
1616
"@emotion/react": "^11.9.3",
1717
"@emotion/styled": "^11.9.3",
18-
"@formatjs/intl-locale": "^2.4.14",
19-
"@formatjs/intl-numberformat": "^6.1.4",
2018
"@mdx-js/mdx": "^1.6.5",
2119
"@mdx-js/react": "^1.6.5",
2220
"algoliasearch": "^4.3.0",

src/@chakra-ui/gatsby-plugin/components/Button.ts

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ import { defineStyle, defineStyleConfig } from "@chakra-ui/react"
1010
*/
1111
const ICON_SELECTOR = "& svg"
1212

13-
const getBaseColor = (isSecondary: boolean) =>
14-
!isSecondary ? "primary.base" : "body.base"
15-
16-
const baseStyle = defineStyle((props) => ({
13+
const baseStyle = defineStyle({
1714
borderRadius: "base",
1815
border: "1px",
19-
color: getBaseColor(props.isSecondary),
16+
color: "primary.base",
2017
lineHeight: "1.6",
2118
transitionProperty: "common",
2219
transitionDuration: "normal",
2320
whiteSpace: "normal",
21+
p: "unset",
2422
_focusVisible: {
2523
outline: "4px solid",
2624
outlineColor: "primary.hover",
@@ -33,7 +31,16 @@ const baseStyle = defineStyle((props) => ({
3331
_hover: {
3432
color: "primary.hover",
3533
},
36-
}))
34+
"&[data-secondary='true']": {
35+
color: "body.base",
36+
},
37+
"&.chakra-link": {
38+
textDecoration: "none",
39+
_hover: {
40+
textDecoration: "none",
41+
},
42+
},
43+
})
3744

3845
const variantSolid = defineStyle({
3946
color: "background.base",
@@ -68,7 +75,6 @@ const variantGhost = {
6875

6976
const variantLink = defineStyle({
7077
borderColor: "transparent",
71-
color: "primary.base",
7278
fontWeight: 700,
7379
textDecor: "underline",
7480
py: 0,
@@ -78,47 +84,29 @@ const variantLink = defineStyle({
7884
},
7985
})
8086

81-
/**
82-
* @deprecated This is no longer needed. Styling for just the icon is not
83-
* unique compared to the variants used for text (as of the new DS)
84-
*/
85-
const variantIcon = defineStyle({
86-
appearance: "none",
87-
background: "inherit",
88-
padding: "initial",
89-
border: 0,
90-
color: "inherit",
91-
boxShadow: "none",
92-
_hover: {
93-
color: "primary.base",
94-
boxShadow: "none",
95-
},
96-
})
97-
9887
const sizes = {
99-
md: {
100-
py: "2 !important",
101-
px: "4 !important",
88+
md: defineStyle({
89+
py: "2",
90+
px: "4",
10291
[ICON_SELECTOR]: {
10392
fontSize: "2xl",
10493
},
105-
},
106-
sm: {
94+
}),
95+
sm: defineStyle({
10796
fontSize: "xs",
108-
py: "1.5 !important",
109-
px: "2 !important",
97+
py: "1.5",
98+
px: "2",
11099
[ICON_SELECTOR]: {
111100
fontSize: "md",
112101
},
113-
},
102+
}),
114103
}
115104

116105
const variants = {
117106
solid: variantSolid,
118107
outline: variantOutline,
119108
ghost: variantGhost,
120109
link: variantLink,
121-
icon: variantIcon,
122110
}
123111

124112
export const Button = defineStyleConfig({

src/assets/dapps/ankr.png

90 KB
Loading

src/assets/dapps/api3.png

51.3 KB
Loading

src/assets/dapps/arweave.png

199 KB
Loading

0 commit comments

Comments
 (0)