Commit Graph

2608 Commits (ef3b7ec9550651d7b99fb43e12efba0e34bba9e5)

Author SHA1 Message Date
alirezaghey 7defcaf58e
fix(curriculum): fix typo in sudoku-solver description (#42601) 2021-06-22 20:18:44 +01:00
renovate[bot] ae3e1a1d18
chore(deps): update babel monorepo to v7.14.7 (#42594)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 13:22:40 +05:30
camperbot 4aa6c6a00b
chore(i18n,curriculum): processed translations (#42581) 2021-06-21 15:43:43 +02:00
gikf f06b56f101
fix(curriculum): improve description and tests description (#42465)
* fix: make tests descriptions more explicit

* fix: clarify function input

* fix: clarify output of function, add example
2021-06-21 13:58:11 +05:30
Kealan Parr 6c8df573c3
fix(curriculum): clarify test text for react challenge (#42577)
* Ensure the test only checks the state name variable is present, it doesn't have to be the only word

* Emphasise in the test the wording that the instructions use
2021-06-21 06:29:34 +02:00
camperbot fe412b449e
chore(i18n,curriculum): update translations (#42568) 2021-06-20 09:59:09 -07:00
Huyen Nguyen 2c16234853
chore: add jest global variables (#42573) 2021-06-20 09:14:42 +02:00
awu43 f4b0b0b1b5
fix(curriculum): add test for event.preventDefault (#42522)
* Added note detail and event.preventDefault() test

* Replaced lookbehinds with matches

* Reverted to using \s instead of .

Now only matches if event.preventDefault() call is the only thing in the comment. This avoids matching note comments like "need to call event.preventDefault() here"

* Added optional semicolons for both comment checks

* Added trailing whitespace for line comment check

* Switched to match length checks

This should be equivalent to the two original lookbehinds

* Removed unnecessary .length check

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-18 22:05:05 +01:00
Oliver Eyton-Williams 82758ba9da
fix: remove duplicate Italian dictionary (#42562) 2021-06-18 23:51:08 +05:30
camperbot 523633678b
chore(i18n,curriculum): processed translations (#42559) 2021-06-18 15:50:39 +02:00
camperbot 5cb3cff877
chore(i18n,curriculum): processed translations (#42545) 2021-06-17 07:49:01 -07:00
Patrick Lehmann bc42ad1f27
fix(curriculum): add regex for comma separated const declarations (#42518)
Co-authored-by: Pat Lehmann <patrick.lehmann@homes.com>
2021-06-17 13:35:46 +01:00
lazy-geek de4e16a676
fix(curriculum): typo in Project Euler Problem (#42539)
* fixed typo

* removed change from translation

* fixed typo only in english language
2021-06-17 08:57:57 +02:00
camperbot b793107de6
chore(i18n,curriculum): processed translations (#42530) 2021-06-16 07:30:51 -07:00
dogfood654 e5505cbe7b
fix(curriculum): minor indentation for readability (#42451)
* Fixed minor indentation for readability

* amended to 2 indentation
2021-06-16 14:35:34 +01:00
Mrugesh Mohapatra a378bc6dd4
chore: rework the language audits for build (#42510)
This also reverts commit cd5c28b332.
2021-06-15 23:07:52 +05:30
Nicholas Carrigan (he/him) cd5c28b332
revert: disable portuguese (#42508)
* revert: disable portuguese

First certification is not 100% yet. Shipped too soon. :(

* feat: enable portuguese curriculum

Curriculum can build in portuguese, leaving client disabled to
prevent language from appearing in nav bar.

* feat: move audited cert list

Moves the audited cert list to the config, instead of the utils.
2021-06-15 21:32:29 +05:30
Tom 067761f2f6
feat(curriculum): add relational databases cert as upcoming change (#41658) 2021-06-15 16:37:13 +01:00
awu43 ae0d34359a
fix(curriculum): stop false positives in test for array hard coding (#42461)
* Fixed test regex to avoid false matches

* Changed regex to only match values in globalArray

* Revert non-English changes
2021-06-15 10:35:35 -05:00
Devesh Rane dba157e7c0
Add a period at the end of an ul tag (#42483) 2021-06-15 20:44:36 +05:30
camperbot 978ce8b512
chore(i18n,curriculum): processed translations (#42504) 2021-06-15 07:22:09 -07:00
Oliver Eyton-Williams e9c8d12703
fix(i18n): add missing portuguese blocks (#42505) 2021-06-15 07:21:20 -07:00
renovate[bot] f6c7e2ace6
chore(deps): update babel monorepo to v7.14.6 (#42492)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 16:38:39 +05:30
Nicholas Carrigan (he/him) f25e3e69f8
feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +05:30
gikf 82a834af37
fix(curriculum): rework Project Euler 51 (#42459)
* fix: rework challenge to use argument in function

* fix: add solution
2021-06-15 14:32:34 +09:00
awu43 24d2555633
fix(curriculum): add await before Promise.all() (#42472) 2021-06-14 19:40:47 +01:00
camperbot b3af21d50f
chore(i18n,curriculum): update translations (#42487)
* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:34:20 -07:00
Ilenia 08fc4014c7
fix(curriculum): Removing genitive from inside backticks and backticks from word own (#42466)
* inherit-behaviors-from-a-supertype put genitive outside backticks

* override-inherited-methods genitive outside backticks

* reset-an-inherited-constructor-property genitive outside backticks

* use-prototype-properties-to-reduce-duplicate-code genitive outisde backticks

* use-prototype-properties-to-reduce-duplicate-code own without backticks

* removing genitive by rephrasing

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-14 17:52:28 +02:00
Stephan Düsterhöft d6491a9902
fix(curriculum): Period added to the end of the sentence. (#42480)
Dot added to the end of the sentence.
2021-06-14 20:44:23 +05:30
camperbot 7a0d7e603b
chore(i18n,curriculum): processed translations (#42478) 2021-06-14 07:47:03 -07:00
renovate[bot] d6b97894b2
chore(deps): update dependency acorn to v8.4.0 (#42442)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-14 15:51:59 +05:30
gikf 80b736b826
fix(curriculum): improve description and tests descriptions (#42408)
* fix: add input and output to tests descriptions

* fix: remove results from background code

* fix: clarify input and output of function

* fix: corrections from review

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-06-14 12:01:51 +05:30
gikf 2613622ef0
fix(curriculum): rework Project Euler 61 (#42397) 2021-06-14 12:01:28 +05:30
gikf c4cf53a742
fix(curriculum): improve description and tests descriptions (#42387)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-06-14 12:01:07 +05:30
gikf 7e921fb9d6
fix(curriculum): rework Project Euler 62 (#42384)
* fix: reworck challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation
2021-06-13 13:32:54 +02:00
gikf d14008b32c
fix(curriculum): rework Project Euler 52 (#42434)
* fix: rework challenge to use argument in function

* fix: update solution
2021-06-13 13:30:32 +02:00
gikf 53f6a28ad9
fix(curriculum): rework Project Euler 102 (#42446)
* fix: rework challenge to use argument in function

* fix: add solution
2021-06-13 13:28:40 +02:00
gikf dadc6cc623
fix(curriculum): rework Project Euler 96 (#42376)
* fix: use in tests arrays defined in background

* feat: add solution

* fix: improve wording

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-06-13 13:20:47 +02:00
Ilenia ce3ccc47d4
fix(curriculum): remove unnecessary backticks (#42458) 2021-06-12 20:53:45 +02:00
zoembrown ca2f024aec
fix(curriculum): fixed typo in challenge (#42456) 2021-06-12 17:37:17 +02:00
alirezaghey 2d450bd4e6
fix(curriculum): correct small english typo (#42447) 2021-06-11 15:59:36 -07:00
gikf f0375198df
fix(curriculum): rework Project Euler 56 (#42364)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve look of math notation
2021-06-11 13:22:54 -05:00
gikf ea7683ac36
fix(curriculum): rework Project Euler 98 (#42423)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation
2021-06-11 12:40:13 -05:00
Oliver Eyton-Williams c6aa6ddbcd
fix: get showUpcomingChange from env.json (#42440) 2021-06-11 16:40:37 +02:00
camperbot 9d4b3a339b
chore(i18n,curriculum): update translations (#42430) 2021-06-10 17:04:45 +02:00
Beau Carnes df4c0ef8f6
fix(curriculum): Update data analysis slides and question for first section (#42418)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-06-10 08:16:52 -06:00
renovate[bot] 49656662a4
chore(deps): update babel monorepo to v7.14.5 (#42425)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 14:13:07 +05:30
camperbot d81a451f4b
chore(i18n,curriculum): update translations (#42407) 2021-06-08 16:52:55 +02:00
DySQRD 6b60384160
fix(curriculum): correct blank field representation (#42253)
* Typo in Rosetta Code Challenge : "Sudoku"

It is stated blank fields are represented by 0s when they are actually -1s.

* Update curriculum/challenges/english/10-coding-interview-prep/rosetta-code/sudoku.md

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
2021-06-08 10:50:00 +02:00
Ilenia 28add4712a
Remove backticks from around data types to ease translations (#42403) 2021-06-08 14:03:16 +05:30
gikf 99834ac1ef
fix(curriculum): rework Project Euler 43 (#42347)
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-06-08 11:43:07 +05:30
Shaun Hamilton 35b18829d1
fix(curriculum): use mediaText for CSSHelp (#42393)
* fix(curriculum): use mediaText in CSSHelp

prevent selection of style elements with class or media attributes
this should avoid picking up some browser extensions
2021-06-07 23:33:58 +02:00
Mallikarjun Ople 40401b0792
fix(curriculum): updated instructions on inline-styles (#42385) 2021-06-07 12:52:51 +01:00
camperbot 2d9c864b4b
chore(i18n,curriculum): update translations (#42377) 2021-06-06 08:19:07 -07:00
gikf 989347387f
fix(curriculum): rework Project Euler 38 (#42321)
* fix: rework challenge to use argument in function

* fix: update solution to challenge changes

* fix: use MathJax to improve look of math notation
2021-06-05 10:16:40 +02:00
Tom 2ac98e39a2
fix(curriculum): allow any response status for error response (#41906)
* fix(curriculum): allow any response status for error response

* Update curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/timestamp-microservice.md

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/timestamp-microservice.md

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-05 09:13:18 +01:00
camperbot ce1811bfe2
chore(i18n,curriculum): update translations (#42362) 2021-06-04 08:07:40 -07:00
Oliver Eyton-Williams 8290ad0bac
fix: force mocha to exit when 0 tests (#42357)
Otherwise a command like

npm run test:curriculum -- -g 'Not a real title'

will spin forever
2021-06-04 14:15:00 +02:00
Prasanna Venkatesh T S b5e228fc92
fix(curriculum): change projects hint article links (#42339)
What?
Make "Get a Hint" links of some projects to point to their
corresponding forum topics.
Ref: https://github.com/freeCodeCamp/freeCodeCamp/issues/40472#issuecomment-850496017

How?
Set `forumTopicId` in the front matter of the project files.

Closes #40472
2021-06-04 09:02:46 +02:00
gikf 401d42bdfc
fix(curriculum): rework Project Euler 32 (#42342)
* fix: rework challenge to use argument in function

* fix: change solution to allow using argument
2021-06-04 08:47:56 +02:00
Oliver Eyton-Williams 1fde5897fc
fix(curriculum): remove helpRoom and fileName (#42268)
* fix(curriculum): remove helpRoom and fileName

Neither are used any more.

* fix: remove fileName form cert meta.jsons
2021-06-04 00:15:01 +05:30
camperbot 814faaf82d
chore(i18n,curriculum): update translations (#42349) 2021-06-03 18:51:47 +05:30
nayanadasgupta f5eb0d55fb
fix(curriculum): add element to create-a-stack tests (#42326)
* Adding more than one stack item to the stack tests for #42322

* fix(curriculum): improved peek, pop and clear tests

tests that peek does not remove top element and pop does remove top element and addded an element to the stack for the clear test
2021-06-03 09:01:34 +02:00
gikf f559f18747
fix(curriculum): rework Project Euler 73 (#42300)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation look
2021-06-03 14:00:28 +09:00
Seth Falco dfe80470c6
fix: require a link element in html (#42336)
* fix: require a link element in html

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-02 22:38:21 +02:00
impirios f7ca9796c1
Update specify-how-fonts-should-degrade.md (#42335)
Added a period at the end of the second sentence "These generic font families include monospace, serif and sans-serif".
2021-06-02 22:28:57 +04:00
camperbot 7d1e9af9df
chore(i18n,curriculum): update translations (#42323) 2021-06-02 12:46:30 +02:00
gikf c0aaecba63
fix(curriculum): rework Project Euler 72 (#42282)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax in fractions and equations

* fix: missing backticks
2021-06-01 08:50:51 +02:00
gikf 841a6758fd
fix(curriculum): rework Project Euler 100 (#42313)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve look of math notation

* fix: corrections from review

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-05-31 19:05:17 -05:00
gikf c0feae0459
fix(curriculum): rework Project Euler 99 (#42310)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation look
2021-05-31 18:51:13 -05:00
gikf a7556a82d5
fix(curriculum): rework Project Euler 95 (#42255) 2021-06-01 01:52:05 +05:30
Shaun Hamilton 6f65591ec9
fix(curriculum): add strict versioning to adnode (#42297) 2021-06-01 01:51:33 +05:30
gikf 42ff4307ba
fix(curriculum): rework Project Euler 94 (#42243)
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-05-31 23:04:05 +05:30
gikf b765237f38
fix(curriculum): rework Project Euler 89 (#42219)
* fix: define test arrays in background

* fix: add solution

* fix: position block evenly between paragraphs

* fix: include rules from external link

* fix: change to preferred version of spelling

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

* fix: improve wording

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-05-31 23:03:33 +05:30
Renovate Bot 0e05584768 chore(deps): update dependency acorn to v8.3.0 2021-05-31 09:46:59 +00:00
camperbot 6e661efe17
chore(i18n,curriculum): update translations (#42298) 2021-05-31 09:57:24 +02:00
renovate[bot] 6100e80b20
chore(deps): update dependency ws to 7.4.6 [security] (#42303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-30 10:43:39 +05:30
Rebekah Koon 5a3d22e76b
fix(curriculum): changing Charles -> Ada in JavaScript challenge descriptions (#42280)
* changing Charles -> Ada in JavaScript challenge descriptions

* fix: changing Charles -> Ada in JavaScript challenge descriptions

* fix: changing firstName value from Ada to Augusta in javascript lesson
2021-05-29 21:33:21 +05:30
Renovate Bot c966823920 chore(deps): update babel monorepo to v7.14.4 2021-05-28 20:06:23 +00:00
camperbot f146e5221a
chore(i18n,curriculum): update translations (#42290) 2021-05-28 11:40:43 -07:00
gikf cf567f4a76
fix(curriculum): rework Project Euler 97 (#42276)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve look of math notation

* fix: grammar

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-05-27 21:38:56 +02:00
gikf c3eddec05a
fix(curriculum): rework Project Euler 88 (#42206)
* fix: rework challenge to use argument in function

* fix: use MathJax to improve math notation

* fix: position block evenly between paragraphs

* fix: add solution
2021-05-27 21:37:38 +02:00
gikf a184b10433
fix(curriculum): rework Project Euler 92 (#42233)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: position examples evenly between paragraphs

* fix: use MathJax for math notation
2021-05-27 10:46:20 -07:00
gikf 2b1d0cdaf8
fix(curriculum): rework Project Euler 91 (#42224)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation
2021-05-27 10:27:16 -07:00
suburban-daredevil d70b17bca7
feat(curriculum): update handleclick method to use state function (#42225)
* Updated the handleClick method to use updater function in react tutorial english

* Update comments in the seed code of curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md

Changing comments in the seed code according to the list of [agreed-upon comments](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/dictionaries/english/comments.json)

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-05-27 18:42:55 +02:00
gikf 2f901f9ffe
fix(curriculum): rework Project Euler 87 (#42194)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: position equations evenly between paragraphs
2021-05-27 13:14:40 +05:30
camperbot 587f89b1d7
chore(i18n,curriculum): processed translations (#42258) 2021-05-26 20:00:54 +05:30
gikf 8ac8772da1
fix(curriculum): rework Project Euler 86 (#42189)
* fix: rework challenge to use argument in function

* fix: add solution
2021-05-26 14:22:42 +05:30
KowalewskiPawel 057eb0cf2a
fix(curriculum): Typo correction in defaultSrc: ["'self'"] (#42220)
Missing a single quote resulting may be misleading for some of the students.
2021-05-25 23:18:08 +04:00
Luca 09b62480f2
fix(curriculum): remove duplicated test (#42247) 2021-05-25 23:15:11 +04:00
Prashant edf9989e59
fix: Typo in "Convert seconds to compound duration" (#42248)
* fix: Typo in "Convert seconds to compound duration"

* fix: spacing

Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>
2021-05-25 23:13:18 +04:00
Shaun Hamilton d5cc9ba259
feat(dev): add css helper function (#42148)
* feat(dev): add css helper function

* add media declaration methods

* use a selector to grab styles

* add CSSHelp class with annoying TS warnings (no-verify)

* replace indexing with getPropertyValue

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* connect CSSHelp to helpers, clean up types

* fix: return extended object, not modify prototype

* fix: unnecessary assertion error

* add tests with fixtures

* add afterAll document clean-up

* 'fix' tests

* undo jest transform config

* remove erroneous comments and logs

* reafactor: use existing types and narrow types

* refactor test descriptions

* rename files to appease Mrugesh 😄

* remove probably unnecessary document clean

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-25 07:34:55 -07:00
etlioglu 8b73920487
fix(curriculum): add items using splice verbiage
"The second entry of `12` is removed" is changed to "The second occurrence of `12` is removed". I believe the phrase "second entry" might create confusion as the readers might think of the second entry of the array rather than the second occurrence of the array element 12.
2021-05-24 13:33:25 -07:00
gikf 7faa168761
fix(curriculum): rework Project Euler 85 (#42181)
* fix: rework challenge to use argument in function

* fix: add solution

* fix: grammar
2021-05-24 23:13:58 +05:30
gikf 399281f225
fix(curriculum): rework Project Euler 84 (#42161) 2021-05-24 23:13:34 +05:30
camperbot bd69e00480
chore(i18n,curriculum): update translations (#42191) 2021-05-24 09:42:08 +02:00
Renovate Bot 4714e033c8 chore(deps): update dependency jsdom to v16.6.0 2021-05-23 22:25:24 +00:00
Halu89 1018f91535
fix(curriculum): check for correct method in test (#42214)
I don't know how the code runs from here, but I'm assuming it should be the correct method now
2021-05-22 10:58:35 +02:00
Seth Falco 4d024f3e4b
fix(curriculum): css and html test issues (#42045)
* fix: css and html issues

* fix: issues with css test

* fix: allow spaces in solution css

* fix: css tests for use-rgb-to-mix-colors
2021-05-21 12:18:42 +01:00
camperbot 938e5913fa
chore(i18n,curriculum): update translations (#42187) 2021-05-19 19:20:10 +02:00