Commit Graph

27839 Commits

Author SHA1 Message Date
c6aa6ddbcd fix: get showUpcomingChange from env.json (#42440) 2021-06-11 16:40:37 +02:00
af2a7658b4 feat(client): remove whitespace from calculated values (#42400)
* feat(client?): remove whitespace for calculated values

* feat(client): remove whitespace from styledeclaration

* do not automatically strip

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

* fix: include all properties of CSSStyleDeclaration

* fix test for getPropVal

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-10 14:59:02 -07:00
c7882fed9b fix: use more memory for gatsby develop (#42433) 2021-06-10 22:39:31 +05:30
9d4b3a339b chore(i18n,curriculum): update translations (#42430) 2021-06-10 17:04:45 +02:00
121b92e2dd chore(i18n,docs): update translations (#42429) 2021-06-10 17:03:49 +02:00
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
65786b6929 fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
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
87830f3a9c docs: add helpers to contribute docs (#42417)
* docs: add helpers to contribute docs

* chore: remove helper script readme

* Update docs/how-to-work-on-practice-projects.md

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

* Update docs/how-to-work-on-practice-projects.md

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

* Update docs/how-to-work-on-practice-projects.md

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

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-10 14:11:11 +05:30
3de01083a4 chore(deps): update dependency postcss to v8.3.1 (#42426)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 12:24:36 +05:30
9a74b5fa4d fix(deps): update dependency react-instantsearch-dom to v6.11.1 (#42416)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 11:34:16 +05:30
b485d85726 chore(deps): update dependency @codesee/babel-plugin-instrument to v0.33.4 (#42422)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 11:31:51 +05:30
205be3db81 fix(client): Insufficient color contrast on highlighted code block (#42415)
Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>
2021-06-10 10:56:35 +05:30
f0eaaadcc1 chore(deps): update dependency @codesee/tracker to v0.33.4 (#42420)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-10 00:27:38 +05:30
91b54278b6 chore(deps): pin dependencies (#42419)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 22:18:09 +05:30
63156dffee CodeSee take 2 (#42330)
* Adds CodeSee developer tooling to FreeCodeCamp client

CodeSee is a continuous code understanding platform,
meant to help developers when diving into a codebase.

This is an alpha version, which enables FCC contributors
to create and explore recordings of code execution on the
front-end. These recordings are meant to help orient a
developer to an unfamiliar part of the codebase, or help
diagnose when behavior is not matching our mental model.

When running in development, the client will now display
a small, purple CodeSee icon in the browser. Clicking this
icon starts (then stops) a new recording.

* chore(deps): update to @codesee/latest

* feat: switch to CodeSee hosted

* chore(deps): add process to root

I couldn't pin down what, exactly, but something in the client depends
on safer-buffer from the root, which tries to find process/browser, so
it needs installing here too.

Co-authored-by: Joshua Leven <josh@codesee.io>
2021-06-09 21:19:04 +05:30
e8f4285f9b chore(deps): update dependency normalize-url to 4.5.1 [security] (#42414)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 11:59:58 +05:30
f11dfe8203 chore(deps): pin dependencies (#42413)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 00:02:36 +02:00
bd4d46915a feat(curriculum): add project creation tool (#42410)
* refactor: extract help category map as JSON

* refactor: extract block names as json

* feat: add create-project script

* fix: correct case for tsconfig target

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-09 00:57:45 +05:30
bd88d9f7ce fix(deps): update gatsby monorepo (#42412)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 00:42:50 +05:30
a13d6b8be9 chore(deps): pin dependencies (#42409)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 23:48:39 +05:30
a53b235bd8 fix: multi editor bottom cut off (#42375) 2021-06-08 18:43:21 +02:00
c69a1cb483 test: enable testing for upcoming challenges (#42360)
* test: enable testing for upcoming challenges

* fix: enable SHOW_UPCOMING_CHANGES during test

* Revert "fix: enable SHOW_UPCOMING_CHANGES during test"

This reverts commit f1bd00fdba.

* Revert "test: enable testing for upcoming challenges"

This reverts commit d0409fef66.

* feat: test upcoming changes in separate job
2021-06-08 16:57:27 +01:00
2db594d318 chore: apply npm audit:fix 2021-06-08 21:16:56 +05:30
c243a8b62f chore(client): update deps - minor & patch 2021-06-08 21:16:56 +05:30
3a961199fa chore(root): update deps - minor & patch 2021-06-08 21:16:56 +05:30
d81a451f4b chore(i18n,curriculum): update translations (#42407) 2021-06-08 16:52:55 +02:00
3875c6e619 fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
104cbc596e chore(deps): update dependency start-server-and-test to v1.12.5 (#42355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 15:04:57 +05:30
e0a5fe1802 chore(deps): update dependency eslint to v7.28.0 (#42371)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 14:22:18 +05:30
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
0020258e2e fix(deps): update dependency @actions/core to v1.4.0 (#42399)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 14:05:01 +05:30
28add4712a Remove backticks from around data types to ease translations (#42403) 2021-06-08 14:03:16 +05:30
7c8b0fcf08 chore: separate News articles issue template (#42372)
Updates to News articles are resolved by sending emails to the editorial
team. This commit reflects this decision in creating a distinct link
about News articles and removing mention of it in an existing issue.

Mail link was created using https://mailxto.com/.
2021-06-08 08:25:50 +02:00
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
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
40401b0792 fix(curriculum): updated instructions on inline-styles (#42385) 2021-06-07 12:52:51 +01:00
fdf1de38e5 feat(tools): setup react testing library in ui-components (#42221)
* feat(tools): setup react testing library in ui-components

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-06-07 09:01:20 +02:00
2d9c864b4b chore(i18n,curriculum): update translations (#42377) 2021-06-06 08:19:07 -07:00
440169a7cb feat: conditionally include files (#42205)
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
2021-06-05 11:15:13 -07:00
7b65909522 feat: make api only return json (#42320)
* fix(api): return json for delete + reset-progress

* refactor(api): make .json calls explicit

These .send() calls had objects as arguments. Using .json() makes it
explicit without changing behaviour.

* fix: return json or redirectWithFlash

We should never be getting requests for plain text, but if we do they
should be redirected back to the client.

* fix: prioritize JSON responses

If accepted, respond with JSON.  If not, it's probably a bad request.
2021-06-05 13:20:40 +01:00
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
3f45f778b8 chore: remove unused fetch-and-cache.js (#42358) 2021-06-04 08:17:16 -07:00
91901b822e chore(i18n,docs): update translations (#42361) 2021-06-04 08:08:27 -07:00
ce1811bfe2 chore(i18n,curriculum): update translations (#42362) 2021-06-04 08:07:40 -07:00
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
00e5440882 chore(deps): update dependency dotenv to v10 (#42306)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-04 13:08:21 +02:00
e82f5f4425 feat: update titles for certification pages (#42252)
* feat: update titles for certification pages

* fix: update titles in Cypress tests

* fix: change "certificate" to "certification" in intro-page.js test file

* fix: prevent adding "Certification" to title for interview prep, make variable name more clear

* feat: add test for coding interview prep page title
2021-06-04 12:04:02 +02:00
fa594cf7f5 chore(deps): update dependency @testing-library/jest-dom to v5.13.0 (#42351)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-04 14:20:50 +05:30