Commit Graph

3014 Commits (4360e3cdbd3cff49400067ca28ba9f932511fea3)

Author SHA1 Message Date
Oliver Eyton-Williams b223cdd255
refactor: display solutions (#45139)
* refactor: re-organise show-project-links

* refactor: update ChallengeFile's declared shape

* fix: handle missing challenge solution

* refactor: use display function for Certification

* refactor: use display function for TimeLine

* refactor: use common component for timeline + cert

* fix: handle legacy solutions

* refactor: use widget for certifications

* refactor: reorganise ShowDisplayWidget

* refactor: remove unused ids

* test: pass dataCy, not projectTitle, to widget

* chore: kebabify

* revert: add id back for dropdown

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

* revert: add the ids back

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-02-16 13:48:22 -08:00
Madhu Sudhan Reddy Vinta 92778f1b2f
Bugfix in typeof lesson in Javascript debugging (#45118)
* Local scope and functions: Make the example less confusing

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.md

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

* Fix bug in typeof lesson in debugging javascript

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md

Co-authored-by: Ilenia <nethleen@gmail.com>

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
Co-authored-by: Ilenia <nethleen@gmail.com>
2022-02-16 20:14:12 +01:00
camperbot c934590548
chore(i18n,learn): processed translations (#45123) 2022-02-16 18:18:09 +01:00
Renovate Bot 229a9d8b2b chore(deps): update babel monorepo to v7.17.4 2022-02-16 03:55:50 +00:00
Oliver Eyton-Williams cde1407f58
feat(client): make all sources available in tests (#44725)
* feat: make all sources available in tests

The original contents of all files (index.html, script.js etc.) will be
accessible in tests.  For example __sources['index.html'] gets the
original html file and nothing else.

* feat: use __file to get user code
2022-02-15 23:29:31 +05:30
Renovate Bot 62e75bc14f chore(deps): update babel monorepo to v7.17.3 2022-02-15 17:24:44 +00:00
camperbot bcc2a4971e
chore(i18n,learn): processed translations (#45109) 2022-02-14 08:50:30 -08:00
camperbot 23d706f3e6
chore(i18n,learn): processed translations (#45084) 2022-02-12 07:31:07 -08:00
Madhu Sudhan Reddy Vinta 0a895dad47
fix(curriculum): make example less confusing (#45088)
* Local scope and functions: Make the example less confusing

* Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.md

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

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
2022-02-11 12:08:46 -08:00
Tom 57cf47dad4
feat: split rdbms into individual blocks and two challengeTypes (#44978)
* feat: split english rdbms into individual blocks

fix: stuff

fix: remove from partiallyComplete array on submit

fix: add suggestion

Update client/i18n/locales/english/translations.json

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

Update client/i18n/locales/english/intro.json

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

Update client/i18n/locales/english/intro.json

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

Update client/i18n/locales/english/intro.json

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

Update client/src/templates/Challenges/codeally/show.tsx

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

* fix: prettier

* fix: style suggestion

* Apply suggestions from code review

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-02-11 15:39:27 +00:00
Matt 898a9ef86f
fix: added test for depth first search challenge (#45063) 2022-02-10 16:58:28 -08:00
Steven fdd20700da
fix(curriculum): typography step 43 tests pass in safari (#44984)
* meta tag accepts valid html

* Fix step 43 tests for safari

* Incorporating suggestions from PR

* incorporating suggestions from PR

* added fix for step17
2022-02-10 16:43:24 -08:00
Poonkuzhali f4077cab7f
feat: added new test case to argument optional challenge (#45076) 2022-02-10 17:17:07 -06:00
Bruce B fe3187a4d7
fix: RWD beta update remaining doctype first tests (#44996) 2022-02-10 16:28:55 -06:00
Christopher Ehrlich 16f7567827
fix(curriculum): add test to exercise tracker (#44862)
* fix#44806: add test to exercise tracker

* Fix typo in test

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-02-10 14:33:36 -06:00
camperbot 1957ec6cdb
chore(i18n,learn): processed translations (#45068) 2022-02-10 10:07:28 -08:00
wbenarto ee0fb44c62
fix(curriculum): removed step 28 and edited meta.json (#44856) 2022-02-10 10:27:55 -06:00
Renovate Bot 4049c38440 chore(deps): update babel monorepo to v7.17.2 2022-02-08 21:50:45 +00:00
camperbot 796fb52421
chore(i18n,learn): processed translations (#45027) 2022-02-05 09:00:51 -08:00
camperbot 2d740dd6cc
chore(i18n,learn): processed translations (#45017) 2022-02-05 13:15:23 +01:00
Shaun Hamilton f09c167a03
fix(curriculum): correct hint text for step-093 penguin (#45023) 2022-02-05 13:12:18 +01:00
camperbot f38d19132d
chore(i18n,learn): processed translations (#45001) 2022-02-03 11:16:32 -08:00
Renovate Bot bb36d04b37 chore(deps): update babel monorepo to v7.17.0 2022-02-03 03:08:35 +00:00
Vaibhav 9ffc7b4711
fix(curriculum): add two edge test cases to the sorted union problem (#44860)
* fix: fixed solution of sorted union

* fix: improved solution of sorted union problem
2022-02-02 19:28:31 +01:00
Matt d750a7b4ac
fix(curriculum): fixed test for binary search tree challenge (#44993) 2022-02-02 09:06:25 +07:00
camperbot c63aa4cf41
chore(i18n,learn): processed translations (#44991) 2022-02-01 12:32:53 -08:00
camperbot d58e5e5bdd
chore(i18n,learn): processed translations (#44965) 2022-01-31 18:13:48 +01:00
Jim Kernicky 4173c2783a
fix(curriculum): reword city-skyline lesson description (#44839)
Co-authored-by: “Jim” <“jimkernicky@gmail.com”>
2022-01-31 12:38:13 +00:00
Bruce B 0f27af6b46
fix(curriculum): rwd beta update doctype tests (#44829) 2022-01-31 11:57:05 +00:00
Gautam Hegde a196848bd0
Update step-028.md (#44971) 2022-01-30 20:00:22 -08:00
camperbot 6f2a7383fb
chore(i18n,learn): processed translations (#44953) 2022-01-28 10:39:25 -08:00
Leonardo Martins a03f3ab47e
fix: change typo "Searborn" to "Seaborn" (#44941) 2022-01-27 22:08:37 -08:00
camperbot c34ee8748a
chore(i18n,learn): processed translations (#44936) 2022-01-28 01:39:01 +09:00
Renovate Bot e3a805b12f chore(deps): update dependency joi to v17.6.0 2022-01-27 06:03:27 +00:00
camperbot f184bc98b5
chore(i18n,learn): processed translations (#44922) 2022-01-26 09:59:35 -08:00
Renovate Bot 232624c658 chore(deps): update dependency chai to v4.3.6 2022-01-26 17:35:46 +00:00
Renovate Bot 879e73881b chore(deps): update dependency chai to v4.3.5 2022-01-26 08:11:39 +00:00
Krzysztof G 6a896919b1
fix(curriculum): correct tests for Firefox (#44913) 2022-01-26 10:09:42 +07:00
Shaun Hamilton 54a15c6589
fix(curriculum): allow code on new lines for camper-cafe (#44891) 2022-01-25 17:29:28 -06:00
Juan Alberto González 98a0d3ecd2
correcting typo adaquate = adequate (#44906) 2022-01-25 17:15:58 -06:00
camperbot b115049ee2
chore(i18n,learn): processed translations (#44880) 2022-01-26 02:55:03 +09:00
Oliver Eyton-Williams 7216ca55cc
refactor: organise TypeScript config and migrate helpers (#44747)
* feat: allow more 1000 steps to be created at once

* refactor: start migrating to typescript

* refactor: delete-step to ts

* refactor: migrated some helpers

* refactor: migrate create-empty-steps

* refactor: migrate create-step-between

* refactor: finish migrating to TS

* refactor: migrate tests

* fix: ensure mock.restore is done after each test

* fix: prevent double-tscing

* fix: repair the tests

* chore: use ts-node for scripts

We don't need the performance boost of incremental compilation and
ts-node is easier to work with

* refactor: consolidate tsconfigs

* refactor: replace gulp

* fix: use ts-node for build-curriculum

* fix: allow ts compilation of config

* feat: create and use create:config script

* fix: add /config to eslint projects

* fix: remove gulp script
2022-01-25 11:34:16 +01:00
Yossi Rise 6ec6e7eaa5
fix(curriculum): update challenge tests to pass a valid solution (#44800)
* allow tests to pass when styles object's fontSize property is set to a string

* Update curriculum/challenges/english/03-front-end-development-libraries/react/add-inline-styles-in-react.md

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

* Update curriculum/challenges/english/03-front-end-development-libraries/react/add-inline-styles-in-react.md

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-01-24 23:40:52 +00:00
Matt fba519621a
fix(curriculum): added test using a tree that is not a binary search tree (#44775) 2022-01-24 19:33:03 +00:00
Oliver Eyton-Williams cacc4eacd7
fix: handle the sorting of transformed files (#44724)
* fix: handle the sorting of transformed files

We can't use the ext property, since that is transformed, but the
history is maintained.

* test: make solutions polyVinyls for sorting

* refactor: inline prepareChallenge

* refactor: make solutions polys in getChallenges

* fix: convert each solution to a poly

* fix: skip empty solutions

* fix: get challenge file history in client

* refactor: stop calling isPoly from the client

* fix: remove debug console.log

* refactor: remove unnecessary sorting step
2022-01-24 10:42:27 -08:00
Oliver Eyton-Williams b1fb6adc39
fix: insert user html more consistently (#42195)
* fix: use an iframe to preserve head and body

* fix: remove unnecessary parsing of html

The contents gets inserted into the DOM during transformHtml, which
is always part of the build pipeline

* fix: pipe contents through iframe

* refactor: use the same code for both transforms

* fix: try to handle test errors better

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2022-01-24 18:02:25 +00:00
Renovate Bot 71ef222473 chore(deps): update dependency mocha to v9.2.0 2022-01-24 12:26:36 +00:00
Renovate Bot 5e60c14a4d chore(deps): update babel monorepo to v7.16.12 2022-01-22 20:52:45 +00:00
Anmol Pandita 2abfa63738
fix(curriculum): typo on step 43 2022-01-22 19:03:23 +01:00
camperbot 43a2a0a395
chore(i18n,learn): processed translations (#44866) 2022-01-23 00:08:20 +09:00