Skip to content

Commit 02d8be2

Browse files
authored
Merge pull request #3488 from Dilettante258/source
Important Chineses translation updates for part3d.md & Fix some minor spelling errors
2 parents bc4cd9a + e8c81c5 commit 02d8be2

File tree

3 files changed

+223
-194
lines changed

3 files changed

+223
-194
lines changed

src/content/3/zh/part3a.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ app.delete('/api/notes/:id', (request, response) => {
834834
一旦插件安装完毕,使用它就非常简单。我们在应用的根部建立一个名为 <i>requests</i> 的目录。我们将所有的 REST 客户端请求保存在该目录中,作为以 <i>.rest</i> 扩展名结尾的文件。
835835

836836
<!-- Let's create a new <i>get\_all\_notes.rest</i> file and define the request that fetches all notes.-->
837-
让我们创建一个新的 <i>get_all\_notes.rest</i> 文件并定义获取所有笔记的请求。
837+
让我们创建一个新的 <i>get\_all\_notes.rest</i> 文件并定义获取所有笔记的请求。
838838

839839
![](../../images/3/12ea.png)
840840

@@ -922,10 +922,10 @@ app.post('/api/notes', (request, response) => {
922922
![](../../images/3/19.png)
923923

924924
<!-- The server will not be able to parse the data correctly without the correct value in the header. It won't even try to guess the format of the data, since there's a [massive amount](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of potential <i>Content-Types</i>.-->
925-
如果头中没有正确的值,服务器将不能正确地解析数据。它甚至不会尝试猜测数据的格式,因为有 [大量](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) 潜在的 <i>Content-Typees</i>。
925+
如果头中没有正确的值,服务器将不能正确地解析数据。它甚至不会尝试猜测数据的格式,因为有 [大量](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) 潜在的 <i>Content-Types</i>。
926926

927927
<!-- If you are using VS Code, then you should install the REST client from the previous chapter <i>now, if you haven't already</i>. The POST request can be sent with the REST client like this:-->
928-
如果你使用的是 VS Code,那么你应该安装上一章的 REST 客户端 <i>,如果你还没有的话 </i>。可以用 REST 客户端发送 POST 请求,就像这样。
928+
如果你使用的是 VS Code,那么你应该安装上一章中的 REST 客户端<i> 如果你还没有安装的话 </i>。POST请求可以像这样使用REST客户端发送:
929929

930930
![](../../images/3/20eb.png)
931931

@@ -1130,7 +1130,7 @@ Math.max(...notes.map(n => n.id))
11301130

11311131

11321132
<!-- Data:-->
1133-
数据
1133+
数据:
11341134

11351135
```js
11361136
[

src/content/3/zh/part3b.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ lang: zh
1111
接下来让我们把我们在[第二章节](/en/part2)中制作的前端连接到我们自己的后端。
1212

1313
<!-- In the previous part, the frontend could ask for the list of notes from the json-server we had as a backend, from the address http://localhost:3001/notes.-->
14-
在上一部分中,前端可以从我们作为后端的json-server中询问笔记列表,地址是http://localhost:3001/notes。
14+
在上一部分中,前端可以从我们作为后端的json-server中询问笔记列表,地址是http://localhost:3001/notes
1515
<!-- Our backend has a slightly different url structure now, as the notes can be found at http://localhost:3001/api/notes. Let's change the attribute __baseUrl__ in the <i>src/services/notes.js</i> like so:-->
16-
我们的后端现在有一个稍微不同的url结构,因为笔记可以在http://localhost:3001/api/notes。让我们改变<i>src/services/notes.js</i>中的属性__baseUrl__,像这样。
16+
我们的后端现在有一个稍微不同的url结构,因为笔记可以在http://localhost:3001/api/notes 。让我们改变<i>src/services/notes.js</i>中的属性__baseUrl__,像这样。
1717

1818
```js
1919
import axios from 'axios'
@@ -44,7 +44,7 @@ export default { getAll, create, update }
4444

4545
<!-- Frontendin tekemä GET-pyyntö osoitteeseen <http://localhost:3001/api/notes> ei jostain syystä toimi: -->
4646
<!-- Now frontend's GET request to <http://localhost:3001/api/notes> does not work for some reason:-->
47-
现在 frontend's GET request to <http://localhost:3001/api/notes> 由于某些原因不能工作
47+
现在到 <http://localhost:3001/api/notes> 前端的GET请求由于某些原因不能工作
4848

4949
![](../../images/3/3ae.png)
5050

@@ -140,7 +140,7 @@ Heroku根据环境变量来配置应用的端口。
140140
node_modules
141141
```
142142
<!-- Create Heroku account in https://devcenter.heroku.com/-->
143-
https://devcenter.heroku.com/,创建Heroku账户
143+
https://devcenter.heroku.com/ ,创建Heroku账户
144144
<!-- Install Heroku package using the command: npm install -g heroku-->
145145
使用命令安装Heroku包:npm install -g heroku
146146
<!-- Create a Heroku application with the command <i>heroku create</i>, commit your code to the repository and move it to Heroku with command <i>git push heroku main</i>.-->
@@ -178,7 +178,7 @@ node_modules
178178
用<i>create-react-app</i>创建的应用的生产构建可以用[npm run build](https://github.com/facebookincubator/create-react-app#npm-run-build-or-yarn-build)命令创建。
179179

180180
<!-- **NOTE:** at the time of writing (20th January 2022) create-react-app had a bug that causes the following error _TypeError: MiniCssExtractPlugin is not a constructor_-->
181-
**注意:**在撰写本文时(2022年1月20日)create-react-app有一个错误,导致以下错误_TypeError。MiniCssExtractPlugin不是一个构造函数
181+
**注意:**在撰写本文时(2022年1月20日)create-react-app有一个错误,导致以下错误 _TypeError: MiniCssExtractPlugin不是一个构造函数_
182182

183183
<!-- A possible fix is found from [here](https://github.com/facebook/create-react-app/issues/11930). Add the following to the file <i>package.json</i>-->
184184
[这里](https://github.com/facebook/create-react-app/issues/11930)可以找到一个可能的修正。在文件<i>package.json</i>中添加以下内容

0 commit comments

Comments
 (0)