FCC China open source codebase and curriculum. Learn to code and help nonprofits.

  • By freeCodeCamp 中国
  • Last update: Jan 1, 2023
  • Comments: 17

扫码加入 FCC-China 社群

FreeCodeCampChina's open source codebase and curriculum

freeCodeCamp is a friendly open source community where you learn to code and help nonprofits.

We help our campers build job-worthy portfolios of real apps used by real people, while helping nonprofits.

You start by working through our self-paced, browser-based full stack JavaScript curriculum.

By working through our curriculum, you can earn four certifications:

1. Front End Certification

The first section will teach you the basics of how webpages work and also introduce you to JavaScript programming.

Skills you'll practice include HTML, CSS, JavaScript, jQuery and Bootstrap.

To earn this certification, you'll build 10 front-end projects and implement many JavaScript algorithms.

2. Data Visualization Certification

The second section builds upon the first and introduces you to more advanced topics such as Sass, React and D3.

To earn this certification, you'll build 5 React-apps and 5 Data visualization apps using D3.js.

3. Back End Certification

The third section introduces you to back end development using Node.js, Express, and MongoDB. It also teaches you about the important concept of source control using Git.

To earn this certification, you'll build 5 APIs and 5 full stack apps.

We will accept solutions implemented in any programming language, as long as both a live demo and the source code are publicly accessible.

4. Full Stack Certification

The fourth section is where you'll get real-world experience by working on projects for nonprofits. We'll pair you with another camper, an agile project manager, and a stakeholder from a nonprofit organization. Together, you'll plan, build and maintain apps that help that nonprofit carry out its mission more effectively.

For this certification, you'll work on two projects from scratch and then maintain/upgrade two existing projects.


This code is running live at freeCodeCamp.cn. We also have Gitter chat rooms, a Medium publication, an interactive forum, a wiki knowledgebase, and even a YouTube channel.

Join our community here.

Found a bug?

Do not file an issue until you have followed these steps:

  1. Read the Help I've Found a Bug article and follow its instructions.
  2. Ask for confirmation in the appropriate Help Room.
  3. Please do not open an issue without a 3rd party confirmation of your problem.

Contributing

We welcome pull requests from freeCodeCamp campers (our students) and seasoned JavaScript developers alike! Please follow these steps to contribute.

License

Copyright (c) 2017 freeCodeCamp.

The content of this repository bound by the following LICENSE(S)

  • The computer software is licensed under the BSD-3-Clause.
  • The curricular content as in the ./seed/challenges or subdirectories and our wiki are licensed under the CC-BY-SA-4.0
  • The translation of this website follows the license of CC-BY-NC-4.0,Do not use (it) for commercial/business purpose. 知识共享许可协议

Github

https://github.com/FreeCodeCampChina/freecodecamp.cn

Comments(17)

  • 1

    网页不跳转了

    Challenge Link to External Pages with Anchor Elements has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
    .red-text {
    color: red;
    }
    
    h2 {
    font-family: Lobster, Monospace;
    }
    
    p {
    font-size: 16px;
    font-family: Monospace;
    }
    
    .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
    }
    
    .smaller-image {
    width: 100px;
    }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <img class="smaller-image thick-green-border" src="/statics/codecamp/images/relaxing-cat.jpg">
    
    <p class="red-text">在大家心目中,也许编程是一件非常困难的事情,其实也是一件非常有乐趣的事情,只要掌握好编程入门的方法,就能慢慢进入一个全新的创造世界。<a href="http://freecatphotoapp.com">cat photos</a></p>
    <p class="red-text">可以学习的编程语言有很多,我们这个编程训练营里面有大量的编程实战实验,包括Html、css、Javascript、jquery、bootstrap等等前端编程实战课程,请大家耐心按阶段不断向前学习和通过一轮一轮的挑战,相信很快您的编程技术会得到很大的提升,为找到一份好的编程工作做好准备。</p>
    
    
  • 2

    HTML挑战-Nest an Anchor Element within a Paragraph

    2017年1月20日更新:

    看到有较多的人回复了该问题,说明不少人都会在这里卡顿,因此reopen问题,希望相关翻译人员能够考虑是否可以优化下问题表述。 (可能已经做了优化,感觉问题的表述跟以前看到的不一样了,如果已经优化或解决,烦请管理员关闭该问题)

    另贴出可执行成功的代码(这个问题本身其实并不复杂,所以直接贴出代码,尽量避免大家在此浪费时间)

    <link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
      .red-text {
        color: red;
      }
    
      h2 {
        font-family: Lobster, Monospace;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
    
      .thick-green-border {
        border-color: green;
        border-width: 10px;
        border-style: solid;
        border-radius: 50%;
      }
    
      .smaller-image {
        width: 100px;
      }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
    
    <img class="smaller-image thick-green-border" src="/images/relaxing-cat.jpg">
    
    <p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
    <p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>
    
    

    2016年11月8日原问题描述: 运行始终提示有一项不成功(“你的p元素应该包含文本"View more ",注意more后面有一个空格。”) ,但同样代码在英文版中就可以成功。

    代码如下:

    <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
      .red-text {
        color: red;
      }
    
      h2 {
        font-family: Lobster, Monospace;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
    
      .thick-green-border {
        border-color: green;
        border-width: 10px;
        border-style: solid;
        border-radius: 50%;
      }
    
      .smaller-image {
        width: 100px;
      }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <a href="http://www.freecatphotoapp.com">cat photos</a>
    <p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
    <img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">
    
    <p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
    <p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
    
    
  • 3

    for循环中使用num变量会导致浏览器崩溃

    Challenge Sum All Odd Fibonacci Numbers has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    
    function sumFibs(num) {
      var arr=[];
      var sum=0;
      arr[0]=0;
      arr[1]=1;
      for(var i=2;i<4;i++){
        arr[i]=arr[i-2]+arr[i-1];
      }
      return arr;
    }
    
    sumFibs(4);
    
    

    在开始研究题目的时候发现,如果把代码中for循环里的i<4替换成i<num(或者任何变量)就会出现浏览器崩溃,测试浏览器是chrome版本 53.0.2785.143 m

  • 4

    Record Collection关卡bug

    浏览器信息

    • 浏览器名称,版本号 chrome,版本 58.0.3029.81
    • 操作系统 win7

    问题描述

    • 问题是在什么时候,什么情况下遇到的 1.updata函数中我改变的是collectionCopy,最后return collection; 可以通过Run test, 2.updata函数我改变的是collectionCopy,最后return collectionCopy; 也可以通过测试Run test。

    这两个返回的collection都与通过测试要求的(我只复制了第一条要求)不符合: update(5439, "artist", "ABBA") 之后, artist 应该为 "ABBA";

    1. 这道题考察的是collectionCopy通过JSON.parse(JSON.stringify(collection))实现深度复制,改变一个不影响另一个。通过测试的要求应该写明是符合collection对象的各个属性。
    • 简要说明如何重现

    你的代码

    function update(id, prop, value) { if (value !== '' && prop !== 'tracks'){ collectionCopy[id][prop] = value; } else if (value !== '' && prop === 'tracks') { collectionCopy[id][prop].push(value); } else if (value === '') { delete collectionCopy[id][prop]; }

    return collection; }

    如果和代码相关,请在这里粘贴你的全部代码
    

    截图(如果有)

  • 5

    h2字体没有按照预期从Lobster降级到Monosapce

    Challenge Specify How Fonts Should Degrade has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    <!---
    <link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    --->
    <style>
      .red-text {
        color: red;
      }
    
      h2 {
        font-family: Lobster, Monospace;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
    <p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>
    
    
  • 6

    bug

    Challenge Warn your Users of a Dangerous Action has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    <link href="//fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
      .red-text {
        color: red;
      }
    
      h2 {
        font-family: Lobster, Monospace;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
    
      .thick-green-border {
        border-color: green;
        border-width: 10px;
        border-style: solid;
        border-radius: 50%;
      }
    
      .smaller-image {
        width: 100px;
      }
    </style>
    
    <div class="container-fluid">
      <h2 class="red-text text-center">CatPhotoApp</h2>
    
      <p>Click here for <a href="#">cat photos</a>.</p>
    
      <a href="#"><img class="smaller-image thick-green-border" src="/images/relaxing-cat.jpg"></a>
    
      <img src="/images/running-cat.jpg" class="img-responsive">
      <button class="btn btn-block btn-primary">Like</button>
      <button class="btn btn-block btn-info">Info</button>
      <button class="btn btn-block btn-danger">Delete</button>
      <p>Things cats love:</p>
      
      <ul>
        <li>cat nip</li>
        <li>laser pointers</li>
        <li>lasagna</li>
      </ul>
      <p>Top 3 things cats hate:</p>
      <ol>
        <li>flea treatment</li>
        <li>thunder</li>
        <li>other cats</li>
      </ol>
      <form action="/submit-cat-photo">
        <label><input type="radio" name="indoor-outdoor"> Indoor</label>
        <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
        <label><input type="checkbox" name="personality"> Loving</label>
        <label><input type="checkbox" name="personality"> Lazy</label>
        <label><input type="checkbox" name="personality"> Crazy</label>
        <input type="text" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </div>
    
    
  • 7

    导入Lobster字体。尝试使用link @font-face都不能正确通过挑战,请问是哪里问题

    Challenge Import a Google Font has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    <link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
      .red-text {
        color: red;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
      h2 {
         font-family: Lobster;
      }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
    <p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>
    
    
  • 8

    “Build a Personal Portfolio Webpage” 这个挑战的项目给的页面“https://codepen.io/freeCodeCamp/full/YqLyXB/”加载不出图片,因为该页面使用的图片链接为HTTP链接,所以图片会加载失败,我已经Fork了这个页面,并且将此页面所有HTTP链接图片替换为digitalocean的镜像存储的HTTPS图片

    “Build a Personal Portfolio Webpage” 这个挑战的项目给的页面https://codepen.io/freeCodeCamp/full/YqLyXB/
    加载不出图片,因为该页面使用的图片链接为HTTP链接,所以图片会加载失败,我已经Fork了这个页面,并且将此页面所有HTTP链接图片替换为digitalocean的镜像存储的HTTPS图片。 地址为: https://codepen.io/Madman7/full/yvgWEE

    Challenge Build a Personal Portfolio Webpage has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

  • 9

    这段代码中三目运算语句哪里出错了?

    原题地址:Testing Objects for Properties

    var myObj = {
      gift: "pony",
      pet: "kitten",
      bed: "sleigh"
    };
    
    function checkObj(checkProp) {
      // Your Code Here
      myObj.hasOwnProperty(checkProp)?
                                       return myObj[checkProp]:
                                       return "Not Found"
    }
    
    // Test your code by modifying these values
    checkObj("house");
    
  • 10

    任务27中,你的a元素应该嵌套在你新的p元素中。已经嵌套了却没过

    Challenge Nest an Anchor Element within a Paragraph has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    <link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    <style>
      .red-text {
        color: red;
      }
    
      h2 {
        font-family: Lobster, Monospace;
      }
    
      p {
        font-size: 16px;
        font-family: Monospace;
      }
    
      .thick-green-border {
        border-color: green;
        border-width: 10px;
        border-style: solid;
        border-radius: 50%;
      }
    
      .smaller-image {
        width: 100px;
      }
    </style>
    
    <h2 class="red-text">CatPhotoApp</h2>
    
    <p>View more <a herf="http://www.freecatphotoapp.com">cat photos</a></p>
    
    <img class="smaller-image thick-green-border" src="/images/relaxing-cat.jpg">
    
    <p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
    <p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>
    
    
  • 11

    125 Target Even Numbered Elements Using jQuery

    浏览器信息

    • 浏览器名称,版本号 chrome 57.0.2987.98
    • 操作系统 win7

    问题描述

    进入问题125 Target Even Numbered Elements Using jQuery 任务是 获取class为target且索引为偶数的所有元素,也就是target#1(索引为0),target#3(索引为2),target5(索引为4),并给它们添加class animated 和 shake。 提示是 所有 target 元素的偶数都应该 shake); 你应该使用 :even 功能来更改这些元素。 只使用 jQuery 来添加这些 class 到元素中。 我参照示例在原先代码的基础上增加了$(".target:even").addClass("animated shake"); 但是不能通过。猜测跟页面上会有3个target5按钮有关。

    你的代码

    $(".target:even").addClass("animated shake");

    如果和代码相关,请在这里粘贴你的全部代码

    jQuery Playground

    #left-well

    #right-well

    截图(如果有)

    点完提交之后是这个效果 image

  • 12

    Removed an extra blank line between sections

    FreeCodeCamp Pull Request template

    Please, go through these steps before you submit a PR.

    1. Make sure that your PR is not a duplicate.
    2. If not, then make sure that:

    2.1. You have done your changes in a separate branch. Branches MUST have descriptive names that start with either the fix/ or feature/ prefixes. Good examples are: fix/signin-issue or feature/issue-templates.

    2.2. You have a descriptive commit message with a short title (first line).

    2.3. You have only one commit (if not, squash them into one commit).

    2.4. npm test doesn't throw any error. If it does, fix them first and amend your commit (git commit --amend).

    1. After these steps, you're ready to open a pull request.

    3.1. Your pull request MUST NOT target the master branch on FreeCodeCamp's repository. You probably want to target staging instead.

    3.2. Give a descriptive title to your PR.

    3.3. Provide a description of your changes.

    3.4. Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

    IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

    PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING

  • 13

    Bump mongodb from 2.2.36 to 3.6.1

    Bumps mongodb from 2.2.36 to 3.6.1.

    Release notes

    Sourced from mongodb's releases.

    v3.6.1

    The MongoDB Node.js team is pleased to announce version 3.6.1 of the driver

    Release Highlights

    Kerberos

    A bug in introducing the new CMAP Connection prevented some users from properly authenticating with the kerberos module.

    Index options are not respected with createIndex

    The logic for building the createIndex command was changed in v3.6.0 to use an allowlist rather than a blocklist, but omitted a number of index types in that list. This release reintroduces all supported index types to the allowlist.

    Remove strict mode for createCollection

    Since v3.6.0 createCollection will no longer returned a cached Collection instance if a collection already exists in the database, rather it will return a server error stating that the collection already exists. This is the same behavior provided by the strict option for createCollection, so that option has been removed from documentation.

    Documentation

    Reference: http://mongodb.github.io/node-mongodb-native/3.6/ API: http://mongodb.github.io/node-mongodb-native/3.6/api/ Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.6/HISTORY.md

    We invite you to try the driver immediately, and report any issues to the NODE project.

    Thanks very much to all the community members who contributed to this release!

    Release Notes

    v3.6.0

    The MongoDB Node.js team is pleased to announce version 3.6.0 of the driver

    Commits
    • 446877d chore(release): 3.6.1
    • b4286c3 chore: fixes MacOS OCSP tests
    • c510fde refactor(kerberos): move MongoAuthProcess into driver (#2535)
    • 0af3191 fix: update full list of index options
    • 06a2444 fix: add host/port to cmap connection
    • 4cc6bcc feat(db): deprecate createCollection strict mode
    • 3cda5c4 chore(ci): add kerberos auth tests
    • d3a1d54 chore(ci): add plain ldap auth test
    • 61a1d32 chore(ci): add tls support test to evergreen
    • edf429c chore: adds MongoDB 4.4 and latest tests for aws-auth
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

  • 14

    Bump helmet-csp from 1.2.2 to 3.1.0

    Bumps helmet-csp from 1.2.2 to 3.1.0.

    Changelog

    Sourced from helmet-csp's changelog.

    3.1.0 - 2016-11-03

    Added

    • csp now allows frame-src directive

    3.0.0 - 2016-10-28

    Changed

    • csp will check your directives for common mistakes and throw errors if it finds them. This can be disabled with loose: true.
    • Empty arrays are no longer allowed in csp. For source lists (like script-src or object-src), use the standard scriptSrc: ["'none'"]. The sandbox directive can be sandbox: true to block everything.
    • false can disable a CSP directive. For example, scriptSrc: false is the same as not specifying it.
    • In CSP, reportOnly: true no longer requires a report-uri to be set.
    • hsts's maxAge now defaults to 180 days (instead of 1 day)
    • hsts's maxAge parameter is seconds, not milliseconds
    • hsts includes subdomains by default
    • domain parameter in frameguard cannot be empty

    Removed

    • noEtag option no longer present in noCache
    • iOS Chrome connect-src workaround in CSP module

    2.3.0 - 2016-09-30

    Added

    • hpkp middleware now supports the includeSubDomains property with a capital D

    Fixed

    • hpkp was setting includeSubdomains instead of includeSubDomains

    2.2.0 - 2016-09-16

    Added

    • referrerPolicy middleware

    2.1.3 - 2016-09-07

    Changed

    • Top-level aliases (like helmet.xssFilter) are no longer dynamically required

    2.1.2 - 2016-07-27

    Deprecated

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

  • 15

    Bump loopback-connector-mongodb from 1.13.0 to 5.3.0

    Bumps loopback-connector-mongodb from 1.13.0 to 5.3.0.

    Changelog

    Sourced from loopback-connector-mongodb's changelog.

    2020-07-10, Version 5.3.0

    • fix: sanitize extra dollar signs for operators (Agnes Lin)

    • fix: fix (Agnes Lin)

    • fix: allow arrays to be stored in type ObjecId (Agnes Lin)

    • fix: fix sections order (Agnes Lin)

    • chore: add bluemix security to the ci ignore list (Agnes Lin)

    • docs: update Mongo connector readme with lb4 style (Agnes Lin)

    • Update README.md (VusalIs)

    • fix: throws when the custom id field name is set (Agnes Lin)

    • Update strong-globalize to ^6.0 (Miroslav Bajtoš)

    • Add Node.js 13.x to Travis matrix (Miroslav Bajtoš)

    • Drop support for Node 8.x (Miroslav Bajtoš)

    • chore: update strong-globalize version (Diana Lau)

    2020-03-19, Version 5.2.3

    • Exclude 'deps' and '.github' from npm publish (Dominique Emond)

    2020-02-10, Version 5.2.2

    • chore: update copyright year (Diana Lau)

    • chore: update CODEOWNERS (Diana Lau)

    • coerce property value defined as array of ObjectID (=)

    • fix: update the error message and name (#561) (Janny)

    2019-11-22, Version 5.2.1

    • fix creation of LB4 models with auto-generated id (Miroslav Bajtoš)
    Commits
    Maintainer changes

    This version was pushed to npm by dhmlau, a new releaser for loopback-connector-mongodb since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

  • 16

    哪里有“我已经完成了这个挑战按钮”啊

    注意:这里只处理 FreeCodeCamp.cn 的相关问题,不处理 w3cschool 的任何问题

    注意:请不要乱开无意义的 Issue,违者直接加黑名单

    注意:Issue 是用来处理代码库中的 bug,不是用来提问题的。完成挑战过程中遇到的代码问题请在gitter 讨论组 或者 QQ 群 526289580 中讨论 (QQ 群验证答案: freeCodeCamp 注意大小写)

    FreeCodeCamp.cn Issue 模板

    如何使用本模板:

    • 尽可能多填些相关信息,方便管理员参考
    • 对于无法给出的内容,请删除掉那一行

    以上内容请在提交 Issue 之前删除

    浏览器信息

    • 浏览器名称,版本号
    • 操作系统

    问题描述

    • 问题是在什么时候,什么情况下遇到的
    • 简要说明如何重现

    你的代码

    如果和代码相关,请在这里粘贴你的全部代码
    

    截图(如果有)

  • 17

    这样为什么会显示错误

    Challenge Stand in Line has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

    My code:

    function queue(arr, item) {
      arr=arr.push(); // 请把你的代码写在这里
      var i=arr.shift();
      return i;  // 请修改这一行
    }
    
    // 初始化测试数据
    var testArr = [1,2,3,4,5];
    
    // 控制台输出
    console.log("Before: " + JSON.stringify(testArr));
    console.log(queue(testArr, 6)); // 你可以修改这一行来测试你的代码
    console.log("After: " + JSON.stringify(testArr));