<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->
- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
- [x] None of my changes are plagiarized from another source without proper attribution.
- [x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
- [x] My changes do not use shortened URLs or affiliate links.
<!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->
This PR is to remove duplicate Rosetta Code sorting problems that exist in other parts of the curriculum. Here are the problems that are being removed:
* Sorting algorithms/Bubble sort
* Sorting algorithms/Counting sort
* Sorting algorithms/Heapsort
* Sorting algorithms/Insertion sort
* Sorting algorithms/Merge sort
* Sorting algorithms/Quicksort
* Sorting algorithms/Radix sort
* Sorting algorithms/Selection sort
This PR only removes the challenges in English. I could remove the other languages in this PR, or in another PR.
Closes#34776
Fixed an error found in QA where in-page anchors would work as expected in Chrome, but in FireFox would load another instance of Learn in the iframe. If the user goes back to the challenge, though, the in-page anchors work as expected. Readded <base> and had it point to href='' to get in-page anchors working in both Chrome and FF.
Added a script tag to the header of the page in src/head/index.js via src/head/mathjax.js. Modified Side-Panel.js so that mathematical functions are rendered properly in the Rosetta Code problems. Had to use the CDN because I couldn't get the NPM package working, and a local package like the one used in Arcade Mode would be ignored if put into the public folder. We could probably use that local package if there's a better place to store it.
Since MathJax is set up currently to interpret anything between $...$ or $$...$$ as a math function, we will need to check some of the other problems that use those symbols on the same line.
* Reworked the way that the editor and output are rendered when the browser window / panes are resized horizontally. Moved the ReflexContainer elements into the editors variable to get vertical resizing working. Also, removed the margin-bottom property from the .editor class in classic.css and set overflow to hidden in .react-monaco-editor-container. By doing this it prevents the browser scrollbars from appearing and removes the white space at the bottom of the editor / output panes when scrolling all the way down past the code.
Took the challenge guide from the main repo and reworked it for the Curriculum repo. Moved the
CONTRIBUTING.md file to the root directory. Added an image directory and sample image to more
clearly show how to open a PR and point it to the correct branch, like in the guide in the
main repo.
ISSUES CLOSED: #61
The original test was too rigid, and many users were forced to use one solution, usually map, to
complete the challenge. The test is changed here to allow for multiple solutions to the problem,
including the use of either single or double quotes when naming a class.
BREAKING CHANGE:
None
Added `className='btn-link-social'` to the Update my settings button
element in Profile.jsx so that it's the same width as the other ones on
the settings page.
Closes#17230
Here are a list of style changes made for problems 1-16:
* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags
BREAKING CHANGE: None
Here are a list of style changes made for problems 1-16:
* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags
BREAKING CHANGE: None
Here's a list of style changes made for problems 17-26:
*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing
BREAKING CHANGE: None
Here's a list of style changes made for problems 17-26:
*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing
BREAKING CHANGE: None
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.
BREAKING CHANGE: None
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.
BREAKING CHANGE: None
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.
Here's a solution for QA:
```
```
BREAKING CHANGE: None
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.
Here's a solution for QA:
```
```
BREAKING CHANGE: None
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.
Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.
BREAKING CHANGE: None
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.
Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.
BREAKING CHANGE: None
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.
Addresses a comment in issue #16906, which was recently closed.
BREAKING CHANGE: None
Closes#16906
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.
Addresses a comment in issue #16906, which was recently closed.
BREAKING CHANGE: None
Closes#16906
Added a feature where a motivational quote is randomly selected from a
static list and displayed whenever the user closes all the panes on the
page. Also added a quotes.js file with an array of quote objects and a
function that returns a random quote object when called.
Edit: Forgot to add double quotes to the quote blocks after moving from
test strings to random quote objects from the quotes.js file. Added
them here as HTML encoded left and right double quotes.
Made changes @Bouncey requested.
Made further changes @Bouncey requested. Also added a componentDidUpdate
method to both ensure the quote is only changed when panes open and close,
and also to make sure the new quote is not the same as the one that
was last displayed.
Removed the fCC logo as it was redundant and clashed with the night mode.
Simplified the layout so the quote block is in the middle of the page and
changed the width so that it's more readable. Also added styling to change
the quote text color in night mode.
BREAKING CHANGE: None
Closes#16382
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.
Edit: Moved the numTriangle array to the head array to prevent lag.
Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.
BREAKING CHANGE: None
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.
Edit: Moved the numTriangle array to the head array to prevent lag.
Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.
BREAKING CHANGE: None
With the recent Reactifying of the profile page, I noticed that some of
the calendar heatmap legend text was missing. This fix changes the text
from the current ['less', '', '', 'more'] back to ['0 items', '1 item',
'2 items', '3 or more items'].
BREAKING CHANGE: None
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.
BREAKING CHANGE: None
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.
BREAKING CHANGE: None