Skip to content

Commit ecaaf47

Browse files
committed
chore(sync): fix all upstream merge conflicts
1 parent 50815f0 commit ecaaf47

Some content is hidden

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

67 files changed

+1356
-1980
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ yarn-error.log*
3737
# external fonts
3838
public/fonts/**/Optimistic_*.woff2
3939

40-
<<<<<<< HEAD
4140
# contributors likely have their own workspace settings and shouldn't
4241
# version them (e.g. markdownlint tweaks, etc.)
4342
.vscode/settings.json
44-
=======
43+
4544
# rss
4645
public/rss.xml
47-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a

src/components/Layout/HomeContent.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ import BlogCard from 'components/MDX/BlogCard';
2323
import CodeBlock from 'components/MDX/CodeBlock';
2424
import Link from 'components/MDX/Link';
2525
import NextLink from 'next/link';
26+
import * as React from 'react';
27+
import Image from 'next/image';
2628
import sidebarBlog from '../../sidebarBlog.json';
27-
<<<<<<< HEAD
2829
import ButtonLink from '../ButtonLink';
2930
import {IconRestart} from '../Icon/IconRestart';
30-
=======
31-
import * as React from 'react';
32-
import Image from 'next/image';
33-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
3431

3532
function Section({children, background = null}) {
3633
return (

src/components/Layout/Page.tsx

Lines changed: 9 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,23 @@
33
*/
44

55
import * as React from 'react';
6-
<<<<<<< HEAD
7-
8-
import ButtonLink from 'components/ButtonLink';
9-
import {DocsPageFooter} from 'components/DocsFooter';
106
import {Footer} from './Footer';
117
import {HomeContent} from './HomeContent';
12-
import {IconNavArrow} from 'components/Icon/IconNavArrow';
13-
=======
14-
import {useRouter} from 'next/router';
15-
import {SidebarNav} from './SidebarNav';
16-
import {Footer} from './Footer';
17-
import {Toc} from './Toc';
18-
// import SocialBanner from '../SocialBanner';
8+
import cn from 'classnames';
199
import {DocsPageFooter} from 'components/DocsFooter';
20-
import {Seo} from 'components/Seo';
21-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
22-
import PageHeading from 'components/PageHeading';
2310
import type {RouteItem} from 'components/Layout/getRouteMeta';
11+
import type {TocItem} from 'components/MDX/TocContext';
12+
import PageHeading from 'components/PageHeading';
2413
import {Seo} from 'components/Seo';
25-
import {SidebarNav} from './SidebarNav';
26-
import SocialBanner from '../SocialBanner';
14+
import Head from 'next/head';
15+
import {useRouter} from 'next/router';
2716
import {Suspense} from 'react';
28-
import {Toc} from './Toc';
29-
import {TocContext} from '../MDX/TocContext';
3017
import {Languages, LanguagesContext} from '../MDX/LanguagesContext';
31-
import type {TocItem} from 'components/MDX/TocContext';
32-
import {TopNav} from './TopNav';
33-
import cn from 'classnames';
34-
<<<<<<< HEAD
18+
import {TocContext} from '../MDX/TocContext';
3519
import {getRouteMeta} from './getRouteMeta';
36-
import {useRouter} from 'next/router';
37-
=======
38-
import Head from 'next/head';
39-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
20+
import {SidebarNav} from './SidebarNav';
21+
import {Toc} from './Toc';
22+
import {TopNav} from './TopNav';
4023

4124
import(/* webpackPrefetch: true */ '../MDX/CodeBlock/CodeBlock');
4225

@@ -190,37 +173,7 @@ export function Page({
190173
)}>
191174
{!isHomePage && (
192175
<div className="w-full px-5 pt-10 mx-auto sm:px-12 md:px-12 md:pt-12 lg:pt-10">
193-
<<<<<<< HEAD
194-
{
195-
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
196-
}
197-
{showSurvey && (
198-
<>
199-
<div className="flex flex-col items-center p-4 m-4">
200-
<p className="mb-4 text-lg font-bold text-primary dark:text-primary-dark">
201-
Comment trouvez-vous ces docs ?
202-
</p>
203-
<div>
204-
<ButtonLink
205-
href="https://www.surveymonkey.co.uk/r/PYRPF3X"
206-
className="mt-1"
207-
type="primary"
208-
size="md"
209-
target="_blank">
210-
Dites-nous tout !
211-
<IconNavArrow
212-
displayDirection="end"
213-
className="inline ms-1"
214-
/>
215-
</ButtonLink>
216-
</div>
217-
</div>
218-
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
219-
</>
220-
)}
221-
=======
222176
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
223-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
224177
</div>
225178
)}
226179
<div

src/components/Layout/TopNav/BrandMenu.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,23 @@ export default function BrandMenu({children}: {children: React.ReactNode}) {
5050
sideOffset={0}
5151
align="end">
5252
<ContextMenu.Label className="ps-4 pt-2 text-base text-tertiary dark:text-tertiary-dark">
53-
Dark Mode
53+
Mode sombre
5454
</ContextMenu.Label>
5555
<DownloadMenuItem
5656
fileName="react_logo_dark.svg"
5757
href="/images/brand/logo_dark.svg">
5858
<span className="w-8">
5959
<IconDownload />
6060
</span>
61-
<span>Logo SVG</span>
61+
<span>SVG du logo</span>
6262
</DownloadMenuItem>
6363
<DownloadMenuItem
6464
fileName="react_wordmark_dark.svg"
6565
href="/images/brand/wordmark_dark.svg">
6666
<span className="w-8">
6767
<IconDownload />
6868
</span>
69-
<span>Wordmark SVG</span>
69+
<span>SVG de la marque</span>
7070
</DownloadMenuItem>
7171
<MenuItem
7272
onSelect={async () => {
@@ -75,26 +75,26 @@ export default function BrandMenu({children}: {children: React.ReactNode}) {
7575
<span className="w-8">
7676
<IconCopy />
7777
</span>
78-
<span>Copy dark mode color</span>
78+
<span>Copier la couleur du mode sombre</span>
7979
</MenuItem>
8080
<ContextMenu.Label className="ps-4 text-base text-tertiary dark:text-tertiary-dark">
81-
Light Mode
81+
Mode clair
8282
</ContextMenu.Label>
8383
<DownloadMenuItem
8484
fileName="react_logo_light.svg"
8585
href="/images/brand/logo_light.svg">
8686
<span className="w-8">
8787
<IconDownload />
8888
</span>
89-
<span>Logo SVG</span>
89+
<span>SVG du logo</span>
9090
</DownloadMenuItem>
9191
<DownloadMenuItem
9292
fileName="react_wordmark_light.svg"
9393
href="/images/brand/wordmark_light.svg">
9494
<span className="w-8">
9595
<IconDownload />
9696
</span>
97-
<span>Wordmark SVG</span>
97+
<span>SVG de la marque</span>
9898
</DownloadMenuItem>
9999
<MenuItem
100100
onSelect={async () => {
@@ -103,7 +103,7 @@ export default function BrandMenu({children}: {children: React.ReactNode}) {
103103
<span className="w-8">
104104
<IconCopy />
105105
</span>
106-
<span>Copy light mode color</span>
106+
<span>Copier la couleur du mode clair</span>
107107
</MenuItem>
108108
<div className="uwu-visible flex flex-col">
109109
<ContextMenu.Separator className="" />
@@ -118,13 +118,13 @@ export default function BrandMenu({children}: {children: React.ReactNode}) {
118118
<span className="w-8">
119119
<IconClose />
120120
</span>
121-
<span>Turn off</span>
121+
<span>Désactiver</span>
122122
</MenuItem>
123123
<DownloadMenuItem fileName="react_uwu_png" href="/images/uwu.png">
124124
<span className="w-8">
125125
<IconDownload />
126126
</span>
127-
<span>Logo PNG</span>
127+
<span>PNG du logo</span>
128128
</DownloadMenuItem>
129129

130130
<ExternalLink
@@ -134,7 +134,7 @@ export default function BrandMenu({children}: {children: React.ReactNode}) {
134134
<span className="w-8">
135135
<IconNewPage />
136136
</span>
137-
<span>Logo by @sawaratsuki1004</span>
137+
<span>Logo par @sawaratsuki1004</span>
138138
</MenuItem>
139139
</ExternalLink>
140140
</div>

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import * as React from 'react';
66

7+
import {disableBodyScroll, enableBodyScroll} from 'body-scroll-lock';
8+
import cn from 'classnames';
9+
import Image from 'next/image';
10+
import NextLink from 'next/link';
11+
import {useRouter} from 'next/router';
712
import {
813
Suspense,
914
startTransition,
@@ -12,32 +17,17 @@ import {
1217
useRef,
1318
useState,
1419
} from 'react';
15-
<<<<<<< HEAD
16-
=======
17-
import Image from 'next/image';
18-
import * as React from 'react';
19-
import cn from 'classnames';
20-
import NextLink from 'next/link';
21-
import {useRouter} from 'next/router';
22-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
23-
import {disableBodyScroll, enableBodyScroll} from 'body-scroll-lock';
2420

25-
import {Feedback} from '../Feedback';
2621
import {IconClose} from 'components/Icon/IconClose';
2722
import {IconHamburger} from 'components/Icon/IconHamburger';
2823
import {IconSearch} from 'components/Icon/IconSearch';
24+
import {Search} from 'components/Search';
25+
import {siteConfig} from 'siteConfig';
2926
import {Logo} from '../../Logo';
30-
import NextLink from 'next/link';
27+
import {Feedback} from '../Feedback';
3128
import type {RouteItem} from '../getRouteMeta';
32-
<<<<<<< HEAD
33-
import {Search} from 'components/Search';
3429
import {SidebarRouteTree} from '../Sidebar/SidebarRouteTree';
35-
import cn from 'classnames';
36-
import {useRouter} from 'next/router';
37-
=======
38-
import {siteConfig} from 'siteConfig';
3930
import BrandMenu from './BrandMenu';
40-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
4131

4232
declare global {
4333
interface Window {

src/components/SocialBanner.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55

66
import {useEffect, useRef} from 'react';
77

8-
<<<<<<< HEAD
98
import {ExternalLink} from './ExternalLink';
109
import cn from 'classnames';
1110

1211
const bannerText = 'Rejoignez-nous à la React Conf les 15-16 mai.';
13-
=======
14-
const bannerText = 'Stream React Conf on May 15-16.';
15-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
1612
const bannerLink = 'https://conf.react.dev/';
1713
const bannerLinkText = 'En savoir plus';
1814

src/content/blog/2020/12/21/data-fetching-with-react-server-components.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
---
2-
<<<<<<< HEAD
32
title: "Découvrez les React Server Components qui n'impactent pas votre bundle"
4-
=======
5-
title: "Introducing Zero-Bundle-Size React Server Components"
6-
author: Dan Abramov, Lauren Tan, Joseph Savona, and Sebastian Markbage
3+
author: Dan Abramov, Lauren Tan, Joseph Savona et Sebastian Markbage
74
date: 2020/12/21
8-
description: 2020 has been a long year. As it comes to an end we wanted to share a special Holiday Update on our research into zero-bundle-size React Server Components.
9-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
5+
description: 2020, c'était long. Alors que l'année se termine, nous voulions vous partager une sorte de Bulletin Spécial Fêtes sur nos recherches liées aux React Server Components, qui n'occupent pas un seul octet dans vos bundles.
6+
107
---
118

129
Le 21 décembre 2020 par [Dan Abramov](https://twitter.com/dan_abramov), [Lauren Tan](https://twitter.com/potetotes), [Joseph Savona](https://twitter.com/en_JS) et [Sebastian Markbåge](https://twitter.com/sebmarkbage)

src/content/blog/2021/06/08/the-plan-for-react-18.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
---
2-
<<<<<<< HEAD
32
title: "Nos plans pour React 18"
4-
=======
5-
title: "The Plan for React 18"
6-
author: Andrew Clark, Brian Vaughn, Christine Abernathy, Dan Abramov, Rachel Nabors, Rick Hanlon, Sebastian Markbage, and Seth Webster
3+
author: Andrew Clark, Brian Vaughn, Christine Abernathy, Dan Abramov, Rachel Nabors, Rick Hanlon, Sebastian Markbage et Seth Webster
74
date: 2021/06/08
8-
description: The React team is excited to share a few updates. We’ve started work on the React 18 release, which will be our next major version. We’ve created a Working Group to prepare the community for gradual adoption of new features in React 18. We’ve published a React 18 Alpha so that library authors can try it and provide feedback...
9-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
5+
description: L'équipe React est ravie de vous donner quelques nouvelles. Nous avons commencé à travailler sur React 18, qui sera notre prochaine version majeure. Nous avons créé un groupe de travail pour préparer la communauté à l'adoption graduelle des nouvelles fonctionnalités de React 18. Nous avons publié une React 18 Alpha pour que les mainteneurs de bibliothèques puissent l'essayer et nous faire leurs retours…
106
---
117

128
Le 8 juin 2021 par [Andrew Clark](https://twitter.com/acdlite), [Brian Vaughn](https://github.com/bvaughn), [Christine Abernathy](https://twitter.com/abernathyca), [Dan Abramov](https://twitter.com/dan_abramov), [Rachel Nabors](https://twitter.com/rachelnabors), [Rick Hanlon](https://twitter.com/rickhanlonii), [Sebastian Markbåge](https://twitter.com/sebmarkbage) et [Seth Webster](https://twitter.com/sethwebster)

src/content/blog/2021/12/17/react-conf-2021-recap.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
---
2-
<<<<<<< HEAD
32
title: "La React Conf 2021 en bref"
4-
=======
5-
title: "React Conf 2021 Recap"
6-
author: Jesslyn Tannady and Rick Hanlon
3+
author: Jesslyn Tannady et Rick Hanlon
74
date: 2021/12/17
8-
description: Last week we hosted our 6th React Conf. In previous years, we've used the React Conf stage to deliver industry changing announcements such as React Native and React Hooks. This year, we shared our multi-platform vision for React, starting with the release of React 18 and gradual adoption of concurrent features.
9-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
5+
description: La semaine dernière nous avons hébergé notre 6e React Conf. Les années précédentes, nous avions utilisé la React Conf pour faire des annonces retentissantes telles que React Native ou les Hooks. Cette année, nous avons partagé notre vision multi-plateforme pour React, en commençant par React 18 et l'adoption graduelle des fonctionnalités concurrentes…
6+
107
---
118

129
Le 17 décembre 2021 par [Jesslyn Tannady](https://twitter.com/jtannady) et [Rick Hanlon](https://twitter.com/rickhanlonii)

src/content/blog/2022/03/08/react-18-upgrade-guide.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
---
2-
<<<<<<< HEAD
32
title: "Comment migrer sur React 18"
4-
=======
5-
title: "How to Upgrade to React 18"
63
author: Rick Hanlon
74
date: 2022/03/08
8-
description: As we shared in the release post, React 18 introduces features powered by our new concurrent renderer, with a gradual adoption strategy for existing applications. In this post, we will guide you through the steps for upgrading to React 18.
9-
>>>>>>> 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a
5+
description: Comme nous l'avons annoncé dans le billet de sortie, React 18 introduit des fonctionnalités basées sur notre nouveau moteur de rendu concurrent, avec une statégie d'adoption graduelle pour les applications existantes. Dans ce billet, nous vous guidons étape par étape dans votre migration sur React 18.
6+
107
---
118

129
Le 8 mars 2022 par [Rick Hanlon](https://twitter.com/rickhanlonii)

0 commit comments

Comments
 (0)