Skip to content

Commit 65277f7

Browse files
docs(en): merge reactjs.org/main into zh-hans.reactjs.org/main @ e69ec58 (#1523)
2 parents f0cddbe + 216a5f3 commit 65277f7

File tree

5 files changed

+4
-34
lines changed

5 files changed

+4
-34
lines changed

public/images/uwu.png

2.43 KB
Loading

src/components/Layout/Page.tsx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {Toc} from './Toc';
1111

1212
import {DocsPageFooter} from 'components/DocsFooter';
1313
import {Seo} from 'components/Seo';
14-
import ButtonLink from 'components/ButtonLink';
15-
import {IconNavArrow} from 'components/Icon/IconNavArrow';
1614
import PageHeading from 'components/PageHeading';
1715
import {getRouteMeta} from './getRouteMeta';
1816
import {TocContext} from '../MDX/TocContext';
@@ -105,12 +103,10 @@ export function Page({
105103
let hasColumns = true;
106104
let showSidebar = true;
107105
let showToc = true;
108-
let showSurvey = true;
109106
if (isHomePage || isBlogIndex) {
110107
hasColumns = false;
111108
showSidebar = false;
112109
showToc = false;
113-
showSurvey = false;
114110
} else if (section === 'blog') {
115111
showToc = false;
116112
hasColumns = false;
@@ -178,33 +174,7 @@ export function Page({
178174
)}>
179175
{!isHomePage && (
180176
<div className="w-full px-5 pt-10 mx-auto sm:px-12 md:px-12 md:pt-12 lg:pt-10">
181-
{
182-
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
183-
}
184-
{showSurvey && (
185-
<>
186-
<div className="flex flex-col items-center m-4 p-4">
187-
<p className="mb-4 text-lg font-bold text-primary dark:text-primary-dark">
188-
你觉得这些文档怎么样?
189-
</p>
190-
<div>
191-
<ButtonLink
192-
href="https://www.surveymonkey.co.uk/r/PYRPF3X"
193-
className="mt-1"
194-
type="primary"
195-
size="md"
196-
target="_blank">
197-
参与我们的调查吧!
198-
<IconNavArrow
199-
displayDirection="end"
200-
className="inline ms-1"
201-
/>
202-
</ButtonLink>
203-
</div>
204-
</div>
205-
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
206-
</>
207-
)}
177+
<hr className="mx-auto max-w-7xl border-border dark:border-border-dark" />
208178
</div>
209179
)}
210180
<div

src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ description: React 18 was years in the making, and with it brought valuable less
7878

7979
去年,我们宣布了新版文档网站的测试版本([后来发布为 react.dev](/blog/2023/03/16/introducing-react-dev))。新的学习材料首先介绍了 Hook,并提供了新的图表、插图,以及许多交互式示例和挑战。之前我们暂时中断了这项工作,专注于 React 18 的发布;但现在 React 18 已经发布,我们正在积极努力完成和发布新的文档。
8080

81-
我们目前正在撰写关于 Effect 的详细部分,因为我们听说这是对新手和有经验的 React 用户来说最具挑战性的主题之一。[与 Effect 保持同步](/learn/synchronizing-with-effects) 是系列中首个发布的页面,接下来的几周还会有更多页面发布。当我们开始撰写关于 Effect 的详细部分时,我们意识到许多常见的 Effect 模式可以通过向 React 添加一个新的原语来简化。我们在 [useEvent RFC](https://github.com/reactjs/rfcs/pull/220) 中分享了一些初步想法。目前还处于早期研究阶段,我们仍在对这个想法进行迭代。我们非常感谢社区对 RFC 的意见,以及对正在进行的文档重写的 [反馈](https://github.com/reactjs/reactjs.org/issues/3308) 和贡献。我们特别要感谢 [Harish Kumar](https://github.com/harish-sethuraman) 为新网站实现提交和审查了许多改进的工作。
81+
我们目前正在撰写关于 Effect 的详细部分,因为我们听说这是对新手和有经验的 React 用户来说最具挑战性的主题之一。[与 Effect 保持同步](/learn/synchronizing-with-effects) 是系列中首个发布的页面,接下来的几周还会有更多页面发布。当我们开始撰写关于 Effect 的详细部分时,我们意识到许多常见的 Effect 模式可以通过向 React 添加一个新的原语来简化。我们在 [useEvent RFC](https://github.com/reactjs/rfcs/pull/220) 中分享了一些初步想法。目前还处于早期研究阶段,我们仍在对这个想法进行迭代。我们非常感谢社区对 RFC 的意见,以及对正在进行的文档重写的 [反馈](https://github.com/reactjs/react.dev/issues/3308) 和贡献。我们特别要感谢 [Harish Kumar](https://github.com/harish-sethuraman) 为新网站实现提交和审查了许多改进的工作。
8282

8383
感谢 [Sophie Alpert](https://twitter.com/sophiebits) 对本篇博客文章的审查!

src/content/blog/2023/03/16/introducing-react-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ button { display: block; margin-top: 10px; }
613613

614614
## 接下来还有什么 {/*whats-next*/}
615615

616-
对新文档的介绍到此结束!浏览一下新网站,看看你喜欢或不喜欢什么,欢迎在 [匿名调查](https://www.surveymonkey.co.uk/r/PYRPF3X)[问题跟踪器](https://github.com/reactjs/reactjs.org/issues) 中提供反馈。
616+
对新文档的介绍到此结束!浏览一下新网站,看看你喜欢或不喜欢什么,欢迎在 [匿名调查](https://www.surveymonkey.co.uk/r/PYRPF3X)[问题跟踪器](https://github.com/reactjs/react.dev/issues) 中提供反馈。
617617

618618
我们承认这个项目花费了很长时间才发布。我们希望 React 社区保持应该拥有的高质量标准。在编写这些文档和创建所有示例的过程中,我们发现了一些自己解释中的错误、React 中的错误,甚至是 React 设计中的空缺,我们现在正在努力解决。我们希望新文档将帮助我们在未来将 React 本身保持在更高的标准上。
619619

src/content/community/docs-contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 文档贡献者
44

55
<Intro>
66

7-
React 文档由 [React 团队](/community/team)[外部贡献者](https://github.com/reactjs/reactjs.org/graphs/contributors) 编写和维护。在本页面上,我们要感谢一些为该网站做出重大贡献的人员。
7+
React 文档由 [React 团队](/community/team)[外部贡献者](https://github.com/reactjs/react.dev/graphs/contributors) 编写和维护。在本页面上,我们要感谢一些为该网站做出重大贡献的人员。
88

99
</Intro>
1010

0 commit comments

Comments
 (0)