Skip to content

Commit 557dc2e

Browse files
authored
Merge pull request #11626 from ethereum/dev
Release candidate v7.24.0
2 parents 9f09826 + d46fc95 commit 557dc2e

File tree

446 files changed

+31430
-7041
lines changed

Some content is hidden

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

446 files changed

+31430
-7041
lines changed

.all-contributorsrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10713,6 +10713,60 @@
1071310713
"contributions": [
1071410714
"content"
1071510715
]
10716+
},
10717+
{
10718+
"login": "tudorpintea999",
10719+
"name": "iwantanode",
10720+
"avatar_url": "https://avatars.githubusercontent.com/u/87604944?v=4",
10721+
"profile": "https://github.com/tudorpintea999",
10722+
"contributions": [
10723+
"content"
10724+
]
10725+
},
10726+
{
10727+
"login": "shak58",
10728+
"name": "shak58",
10729+
"avatar_url": "https://avatars.githubusercontent.com/u/150069539?v=4",
10730+
"profile": "https://github.com/shak58",
10731+
"contributions": [
10732+
"content"
10733+
]
10734+
},
10735+
{
10736+
"login": "Muhammad-Altabba",
10737+
"name": "Muhammad Altabba",
10738+
"avatar_url": "https://avatars.githubusercontent.com/u/24407834?v=4",
10739+
"profile": "https://linkedin.com/in/muhammadaltabba",
10740+
"contributions": [
10741+
"content"
10742+
]
10743+
},
10744+
{
10745+
"login": "darigovresearch",
10746+
"name": "Darigov Research",
10747+
"avatar_url": "https://avatars.githubusercontent.com/u/30328618?v=4",
10748+
"profile": "https://www.darigovresearch.com/",
10749+
"contributions": [
10750+
"content"
10751+
]
10752+
},
10753+
{
10754+
"login": "shubhusion",
10755+
"name": "SHUBHAM SHARMA ",
10756+
"avatar_url": "https://avatars.githubusercontent.com/u/96301987?v=4",
10757+
"profile": "https://github.com/shubhusion",
10758+
"contributions": [
10759+
"ideas"
10760+
]
10761+
},
10762+
{
10763+
"login": "paulallensuxs",
10764+
"name": "paulallensuxs",
10765+
"avatar_url": "https://avatars.githubusercontent.com/u/114240091?v=4",
10766+
"profile": "https://github.com/paulallensuxs",
10767+
"contributions": [
10768+
"content"
10769+
]
1071610770
}
1071710771
],
1071810772
"contributorsPerLine": 7,

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,14 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16751675
<td align="center" valign="top" width="14.28%"><a href="http://p2p.org"><img src="https://avatars.githubusercontent.com/u/3310192?v=4?s=100" width="100px;" alt="Eugene"/><br /><sub><b>Eugene</b></sub></a><br /><a href="#content-rgb2hsl" title="Content">🖋</a></td>
16761676
<td align="center" valign="top" width="14.28%"><a href="http://www.danielgorbe.com"><img src="https://avatars.githubusercontent.com/u/36860942?v=4?s=100" width="100px;" alt="Dániel Görbe"/><br /><sub><b>Dániel Görbe</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=g0rbe" title="Documentation">📖</a></td>
16771677
<td align="center" valign="top" width="14.28%"><a href="https://blog.insubli.me"><img src="https://avatars.githubusercontent.com/u/41712656?v=4?s=100" width="100px;" alt="s-crypt"/><br /><sub><b>s-crypt</b></sub></a><br /><a href="#content-s-crypt" title="Content">🖋</a></td>
1678+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tudorpintea999"><img src="https://avatars.githubusercontent.com/u/87604944?v=4?s=100" width="100px;" alt="iwantanode"/><br /><sub><b>iwantanode</b></sub></a><br /><a href="#content-tudorpintea999" title="Content">🖋</a></td>
1679+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shak58"><img src="https://avatars.githubusercontent.com/u/150069539?v=4?s=100" width="100px;" alt="shak58"/><br /><sub><b>shak58</b></sub></a><br /><a href="#content-shak58" title="Content">🖋</a></td>
1680+
</tr>
1681+
<tr>
1682+
<td align="center" valign="top" width="14.28%"><a href="https://linkedin.com/in/muhammadaltabba"><img src="https://avatars.githubusercontent.com/u/24407834?v=4?s=100" width="100px;" alt="Muhammad Altabba"/><br /><sub><b>Muhammad Altabba</b></sub></a><br /><a href="#content-Muhammad-Altabba" title="Content">🖋</a></td>
1683+
<td align="center" valign="top" width="14.28%"><a href="https://www.darigovresearch.com/"><img src="https://avatars.githubusercontent.com/u/30328618?v=4?s=100" width="100px;" alt="Darigov Research"/><br /><sub><b>Darigov Research</b></sub></a><br /><a href="#content-darigovresearch" title="Content">🖋</a></td>
1684+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shubhusion"><img src="https://avatars.githubusercontent.com/u/96301987?v=4?s=100" width="100px;" alt="SHUBHAM SHARMA "/><br /><sub><b>SHUBHAM SHARMA </b></sub></a><br /><a href="#ideas-shubhusion" title="Ideas, Planning, & Feedback">🤔</a></td>
1685+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/paulallensuxs"><img src="https://avatars.githubusercontent.com/u/114240091?v=4?s=100" width="100px;" alt="paulallensuxs"/><br /><sub><b>paulallensuxs</b></sub></a><br /><a href="#content-paulallensuxs" title="Content">🖋</a></td>
16781686
</tr>
16791687
</tbody>
16801688
</table>

i18n/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@
295295
"langDir": "ltr",
296296
"dateFormat": "MM/DD/YYYY"
297297
},
298+
{
299+
"code": "ne-np",
300+
"crowdinCode": "ne-np",
301+
"name": "Nepali",
302+
"localName": "नेपाली",
303+
"langDir": "ltr",
304+
"dateFormat": "MM/DD/YYYY"
305+
},
298306
{
299307
"code": "nl",
300308
"crowdinCode": "nl",

plugins/gatsby-remark-fix-static-urls/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const isRelativeUrl = require("is-relative-url")
1919
module.exports = ({ markdownNode, markdownAST }) => {
2020
const fileAbsoluteDir = path.dirname(markdownNode.fileAbsolutePath)
2121
const sourceAbsoluteDir = fileAbsoluteDir.replace(
22-
/translations\/\w{2}(-\w{2})?\//,
22+
/translations\/\w{2,3}(-\w{2})?\//,
2323
""
2424
)
2525
const relativePath = path.relative(fileAbsoluteDir, sourceAbsoluteDir)

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

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,53 @@ const baseStyle = defineMergeStyles(defaultBaseStyle, {
1414
textTransform: "uppercase",
1515
})
1616

17-
const variantSecondary = defineStyle({
18-
borderColor: "primary100",
19-
color: "text",
20-
})
17+
const COLOR_SCHEME_MAP = {
18+
purple: {
19+
color: "black300",
20+
background: "primary100",
21+
borderColor: "primary100",
22+
},
23+
orange: {
24+
color: "text",
25+
background: "orange.100",
26+
borderColor: "orange.100",
27+
},
28+
green: {
29+
color: "white",
30+
background: "green.500",
31+
borderColor: "green.500",
32+
},
33+
blue: {
34+
color: "black",
35+
background: "blue.300",
36+
borderColor: "blue.300",
37+
},
38+
red: {
39+
color: "white",
40+
background: "red.500",
41+
borderColor: "red.500",
42+
},
43+
pink: {
44+
color: "black",
45+
background: "red.100",
46+
borderColor: "red.100",
47+
},
48+
gray: {
49+
color: "black",
50+
background: "gray.300",
51+
borderColor: "gray.300",
52+
},
53+
}
2154

22-
const variantSolid = defineStyle({
23-
color: "black300",
24-
background: "primary100",
25-
})
55+
const variantSecondary = defineStyle(({ colorScheme: c = "orange" }) => ({
56+
...COLOR_SCHEME_MAP[c],
57+
background: "transparent",
58+
}))
59+
60+
const variantSolid = defineStyle(({ colorScheme: c = "purple" }) => ({
61+
...COLOR_SCHEME_MAP[c],
62+
borderColor: "transparent",
63+
}))
2664

2765
export const Badge = defineStyleConfig({
2866
baseStyle,

src/@chakra-ui/gatsby-plugin/styles.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { mode } from "@chakra-ui/theme-tools"
2-
31
const styles = {
4-
global: (props) => ({
2+
global: {
53
/**
64
* THESE ARE OLD GLOBAL STYLES - carried over from old css files
75
*
@@ -12,9 +10,7 @@ const styles = {
1210
* don't need the global styles anymore
1311
*/
1412
body: {
15-
// TODO: when we have Chakra v2, this should be done by overriding the
16-
// native Chakra semantic tokens
17-
bg: mode("white", "gray.800")(props),
13+
bg: "background.base",
1814
lineHeight: "base",
1915
fontSize: "md",
2016
},
@@ -83,7 +79,7 @@ const styles = {
8379
lineHeight: "base",
8480
fontFamily: "monospace",
8581
},
86-
}),
82+
},
8783
}
8884

8985
export default styles
788 KB
Loading

src/components/LeftNavBar/index.tsx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import React from "react"
2+
import { calc, Flex, FlexProps, HeadingProps } from "@chakra-ui/react"
3+
4+
import ButtonDropdown, {
5+
IProps as ButtonDropdownProps,
6+
List as ButtonDropdownList,
7+
} from "../ButtonDropdown"
8+
import OldHeading from "../OldHeading"
9+
import Translation from "../Translation"
10+
import UpgradeTableOfContents from "../UpgradeTableOfContents"
11+
12+
export const H2 = (props: HeadingProps) => (
13+
<OldHeading
14+
fontWeight={700}
15+
lineHeight={1.4}
16+
size="lg"
17+
textAlign="left"
18+
mt={0}
19+
{...props}
20+
/>
21+
)
22+
23+
export const StyledButtonDropdown = ({
24+
list,
25+
...rest
26+
}: FlexProps & Pick<ButtonDropdownProps, "list">) => (
27+
<Flex align="flex-end" justify="flex-end" mb={8} {...rest} pos="relative">
28+
<ButtonDropdown list={list} w="full" minW="240px" />
29+
</Flex>
30+
)
31+
32+
interface IProps {
33+
dropdownLinks?: ButtonDropdownList
34+
maxDepth?: number
35+
tocItems: any[]
36+
}
37+
38+
const LeftNavBar: React.FC<IProps> = ({
39+
dropdownLinks,
40+
maxDepth = 1,
41+
tocItems,
42+
}) => {
43+
return (
44+
<Flex
45+
as="aside"
46+
flexDirection="column"
47+
flex="0 1 400px"
48+
ml={8}
49+
mr={16}
50+
position="sticky"
51+
top="6.25rem"
52+
height={calc("100vh").subtract("80px").toString()}
53+
>
54+
{dropdownLinks && <StyledButtonDropdown list={dropdownLinks} />}
55+
<H2>
56+
<Translation id="on-this-page" />
57+
</H2>
58+
{tocItems && (
59+
<UpgradeTableOfContents items={tocItems} maxDepth={maxDepth} />
60+
)}
61+
</Flex>
62+
)
63+
}
64+
65+
export default LeftNavBar

src/components/UpgradeTableOfContents.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ const TableOfContentsLink: React.FC<{ item: Item }> = (props) => {
5656
position="relative"
5757
display="inline-block"
5858
// `li :last-child` global selector wants to override this without `!important`
59-
mb="0.5rem !important"
60-
color="text300"
59+
mb="1rem !important"
60+
textDecoration="none"
61+
color="body.medium"
6162
fontWeight="normal"
63+
fontSize="xl"
64+
_hover={{
65+
color: "primary.hover",
66+
textDecoration: "none",
67+
}}
6268
_visited={{}}
6369
>
6470
{trimmedTitle(item.title)}
@@ -105,19 +111,10 @@ function UpgradeTableOfContents(props: {
105111
as="nav"
106112
p={0}
107113
mb={8}
108-
textAlign="end"
109114
overflowY="auto"
110115
display={{ base: "none", l: "block" }}
111116
>
112-
<List
113-
m={0}
114-
py={0}
115-
ps={4}
116-
pe={1}
117-
fontSize="xl"
118-
lineHeight="1.6"
119-
styleType="none"
120-
>
117+
<List m={0} py={0} lineHeight="1.4">
121118
<ItemsList items={items} depth={0} maxDepth={maxDepth} />
122119
</List>
123120
</Box>

src/content/community/code-of-conduct/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This Code of Conduct applies to all ethereum.org spaces (such as GitHub, Discord
3939

4040
### Our standards {#our-standards}
4141

42-
Examples of behaviour that contributes to creating a positive environment include:
42+
Examples of behavior that contributes to creating a positive environment include:
4343

4444
- Using welcoming and inclusive language
4545
- Being respectful of differing viewpoints and experiences

0 commit comments

Comments
 (0)