Files
freeCodeCamp/curriculum/challenges/chinese/09-information-security/information-security-projects/anonymous-message-board.md
Oliver Eyton-Williams ee1e8abd87 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>
2021-01-12 19:31:00 -07:00

3.3 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
587d824a367417b2b2512c45 匿名留言板 4 anonymous-message-board

--description--

构建一个功能类似于此的完整堆栈JavaScript应用程序 https://spiky-well-vein.glitch.me/ 。在这个项目上工作将涉及您在我们的入门项目上在Glitch上编写代码。完成此项目后您可以将公共故障网址到应用程序的主页复制到此屏幕进行测试您可以选择在另一个平台上编写项目但必须公开显示我们的测试。使用此链接在Glitch上启动此项目或在GitHub上克隆此存储库 如果您使用Glitch请记住将项目链接保存到安全的地方

--hints--

只允许您的网站加载到您自己网页上的iFrame中。


不允许DNS预取。


只允许您的网站为您自己的网页发送引荐来源。


我可以通过将表单数据文本和deletepassword传递给/api/threads/ {board}将一个帖子发布到一个特定的留言板。推荐res.redirect到电路板页面/ b / {board}保存的至少是_idtext createdon日期和时间bumpedon*日期和时间与created_on相同报告布尔值deletepassword*和回复(数组)。


我可以通过将表单数据文本deletepassword和threadid传递给/ api / replies / {board}来对特定板上的线程发送回复并且还会将bumpedon日期更新到注释日期。推荐res.redirect到thread page / b / {board} / {thread_id}在线程的回复数组中将保存_idtextcreatedondeletepassword_并报告。


我可以在电路板上获取最近10个凸起线程的数组其中最近只有来自/ api / threads / {board}的3个回复。 report和deletepasswords_字段不会发送到客户端。


我可以使用/ api / replies / {board}的所有回复获取整个帖子吗thread_id = {thread_id}。同样隐藏客户端应该看到的相同字段。


如果我向/ api / threads / {board}发送DELETE请求并传递threadid*deletepassword*,我可以完全删除一个线程。 (文字回复将是“密码不正确”或“成功”)


如果我向/ api / replies / {board}发送DELETE请求并传递threadid*replyid*和deletepassword_我可以删除帖子只是将文本更改为“[已删除]”而不是像线程一样完全删除)。 (文字回复将是“密码不正确”或“成功”)


我可以通过向/ api / threads / {board}发送PUT请求并传递threadid_来报告一个线程并将其报告值更改为true。 (文字回复将是“成功”)


我可以通过向/ api / replies / {board}发送PUT请求并传递threadid*replyid*来报告回复并将其报告值更改为true。 (文字回复将是“成功”)


完整的功能测试,完全测试路线和通过。


--solutions--

/**
  Backend challenges don't need solutions, 
  because they would need to be tested against a full working project. 
  Please check our contributing guidelines to learn more.
*/