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: 589fc832f9fc0f352b528e78
title: Announce New Users
challengeType: 2
forumTopicId: 301546
dashedName: announce-new-users
---
# --description--
@@ -78,8 +79,6 @@ Client should properly handle and display the new data from event `'user'`.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70df9fc0f352b528e68
title: Authentication Strategies
challengeType: 2
forumTopicId: 301547
dashedName: authentication-strategies
---
# --description--
@@ -84,8 +85,6 @@ Passport-local should be correctly required and setup.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589fc831f9fc0f352b528e77
title: Authentication with Socket.IO
challengeType: 2
forumTopicId: 301548
dashedName: authentication-with-socket-io
---
# --description--
@@ -138,8 +139,6 @@ passportSocketIo should be properly setup.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589690e6f9fc0f352b528e6e
title: Clean Up Your Project with Modules
challengeType: 2
forumTopicId: 301549
dashedName: clean-up-your-project-with-modules
---
# --description--
@@ -52,8 +53,6 @@ Modules should be present.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589fc831f9fc0f352b528e75
title: Communicate by Emitting
challengeType: 2
forumTopicId: 301550
dashedName: communicate-by-emitting
---
# --description--
@@ -95,8 +96,6 @@ Your client should be listening for 'user count' event.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70df9fc0f352b528e6a
title: Create New Middleware
challengeType: 2
forumTopicId: 301551
dashedName: create-new-middleware
---
# --description--
@@ -75,8 +76,6 @@ A Get request to /profile should correctly redirect to / since we are not authen
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589fc831f9fc0f352b528e76
title: Handle a Disconnect
challengeType: 2
forumTopicId: 301552
dashedName: handle-a-disconnect
---
# --description--
@@ -57,8 +58,6 @@ Your client should be listening for 'user count' event.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 58a25c98f9fc0f352b528e7f
title: Hashing Your Passwords
challengeType: 2
forumTopicId: 301553
dashedName: hashing-your-passwords
---
# --description--
@@ -74,8 +75,6 @@ BCrypt should be correctly required and implemented.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70ef9fc0f352b528e6b
title: How to Put a Profile Together
challengeType: 2
forumTopicId: 301554
dashedName: how-to-put-a-profile-together
---
# --description--
@@ -45,8 +46,6 @@ You should correctly add a Pug render variable to /profile.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70df9fc0f352b528e69
title: How to Use Passport Strategies
challengeType: 2
forumTopicId: 301555
dashedName: how-to-use-passport-strategies
---
# --description--
@@ -67,8 +68,6 @@ A POST request to /login should correctly redirect to /.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70cf9fc0f352b528e67
title: Implement the Serialization of a Passport User
challengeType: 2
forumTopicId: 301556
dashedName: implement-the-serialization-of-a-passport-user
---
# --description--
@@ -79,8 +80,6 @@ Deserialization should now be correctly using the DB and `done(null, null)` shou
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589a69f5f9fc0f352b528e71
title: Implementation of Social Authentication II
challengeType: 2
forumTopicId: 301557
dashedName: implementation-of-social-authentication-ii
---
# --description--
@@ -102,8 +103,6 @@ GitHub strategy should be setup correctly thus far.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589a8eb3f9fc0f352b528e72
title: Implementation of Social Authentication III
challengeType: 2
forumTopicId: 301558
dashedName: implementation-of-social-authentication-iii
---
# --description--
@@ -68,8 +69,6 @@ GitHub strategy setup should be complete.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589a69f5f9fc0f352b528e70
title: Implementation of Social Authentication
challengeType: 2
forumTopicId: 301559
dashedName: implementation-of-social-authentication
---
# --description--
@@ -70,8 +71,6 @@ Route /auth/github/callback should be correct.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 58965611f9fc0f352b528e6c
title: Logging a User Out
challengeType: 2
forumTopicId: 301560
dashedName: logging-a-user-out
---
# --description--
@@ -69,8 +70,6 @@ Logout should redirect to the home page.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 58966a17f9fc0f352b528e6d
title: Registration of New Users
challengeType: 2
forumTopicId: 301561
dashedName: registration-of-new-users
---
# --description--
@@ -193,8 +194,6 @@ Profile should no longer work after logout.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589fc832f9fc0f352b528e79
title: Send and Display Chat Messages
challengeType: 2
forumTopicId: 301562
dashedName: send-and-display-chat-messages
---
# --description--
@@ -67,8 +68,6 @@ Client should properly handle and display the new data from event `'chat message
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70cf9fc0f352b528e66
title: Serialization of a User Object
challengeType: 2
forumTopicId: 301563
dashedName: serialization-of-a-user-object
---
# --description--
@@ -119,8 +120,6 @@ Mongodb should be properly required including the ObjectId.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f700f9fc0f352b528e63
title: Set up a Template Engine
challengeType: 2
forumTopicId: 301564
dashedName: set-up-a-template-engine
---
# --description--
@@ -98,8 +99,6 @@ Pug should be working.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70cf9fc0f352b528e65
title: Set up Passport
challengeType: 2
forumTopicId: 301565
dashedName: set-up-passport
---
# --description--
@@ -120,8 +121,6 @@ Session and session secret should be correctly set up.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 589fc830f9fc0f352b528e74
title: Set up the Environment
challengeType: 2
forumTopicId: 301566
dashedName: set-up-the-environment
---
# --description--
@@ -136,8 +137,6 @@ Your client should connect to your server.
);
```
# --seed--
# --solutions--
```js

View File

@@ -3,6 +3,7 @@ id: 5895f70bf9fc0f352b528e64
title: Use a Template Engine's Powers
challengeType: 2
forumTopicId: 301567
dashedName: use-a-template-engines-powers
---
# --description--
@@ -41,8 +42,6 @@ Pug should correctly render variables.
);
```
# --seed--
# --solutions--
```js