feat(curriculum): restore seed + solution to Chinese (#40683)

* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2021-01-13 03:31:00 +01:00
committed by GitHub
parent 0095583028
commit ee1e8abd87
4163 changed files with 57505 additions and 10540 deletions

View File

@@ -3,6 +3,7 @@ id: 587d7fb1367417b2b2512bf4
title: Chain Middleware to Create a Time Server
challengeType: 2
forumTopicId: 301510
dashedName: chain-middleware-to-create-a-time-server
---
# --description--
@@ -67,8 +68,6 @@ The /now endpoint should return a time that is +/- 20 secs from now
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb2367417b2b2512bf8
title: Get Data from POST Requests
challengeType: 2
forumTopicId: 301511
dashedName: get-data-from-post-requests
---
# --description--
@@ -66,8 +67,6 @@ Test 2 : Your API endpoint should respond with the correct name
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb2367417b2b2512bf6
title: Get Query Parameter Input from the Client
challengeType: 2
forumTopicId: 301512
dashedName: get-query-parameter-input-from-the-client
---
# --description--
@@ -55,8 +56,6 @@ Test 2 : Your API endpoint should respond with the correct name
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb2367417b2b2512bf5
title: Get Route Parameter Input from the Client
challengeType: 2
forumTopicId: 301513
dashedName: get-route-parameter-input-from-the-client
---
# --description--
@@ -53,8 +54,6 @@ Test 2 : Your echo server should repeat words correctly
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb1367417b2b2512bf3
title: Implement a Root-Level Request Logger Middleware
challengeType: 2
forumTopicId: 301514
dashedName: implement-a-root-level-request-logger-middleware
---
# --description--
@@ -45,8 +46,6 @@ Root level logger middleware should be active
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb0367417b2b2512bed
title: Meet the Node console
challengeType: 2
forumTopicId: 301515
dashedName: meet-the-node-console
---
# --description--
@@ -35,8 +36,6 @@ Modify the `myApp.js` file to log "Hello World" to the console.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb0367417b2b2512bef
title: Serve an HTML File
challengeType: 2
forumTopicId: 301516
dashedName: serve-an-html-file
---
# --description--
@@ -39,8 +40,6 @@ Your app should serve the file views/index.html
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb1367417b2b2512bf1
title: Serve JSON on a Specific Route
challengeType: 2
forumTopicId: 301517
dashedName: serve-json-on-a-specific-route
---
# --description--
@@ -35,8 +36,6 @@ The endpoint `/json` should serve the json object `{"message": "Hello json"}`
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb0367417b2b2512bf0
title: Serve Static Assets
challengeType: 2
forumTopicId: 301518
dashedName: serve-static-assets
---
# --description--
@@ -35,8 +36,6 @@ Your app should serve asset files from the `/public` directory
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb0367417b2b2512bee
title: Start a Working Express Server
challengeType: 2
forumTopicId: 301519
dashedName: start-a-working-express-server
---
# --description--
@@ -45,8 +46,6 @@ Your app should serve the string 'Hello Express'
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb2367417b2b2512bf7
title: Use body-parser to Parse POST Requests
challengeType: 2
forumTopicId: 301520
dashedName: use-body-parser-to-parse-post-requests
---
# --description--
@@ -48,8 +49,6 @@ The 'body-parser' middleware should be mounted
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 587d7fb1367417b2b2512bf2
title: Use the .env File
challengeType: 2
forumTopicId: 301521
dashedName: use-the--env-file
---
# --description--
@@ -36,8 +37,6 @@ The response of the endpoint `/json` should change according to the environment
);
```
# --seed--
# --solutions--
```js