Commit Graph

28927 Commits (e8e64318b3dc371c2751eaa105c5c6a3d4456722)

Author SHA1 Message Date
camperbot e8e64318b3
chore(i18n,learn): update translations (#43880) 2021-10-18 07:59:48 -07:00
Oliver Eyton-Williams b9c1bc92cd
refactor: remove redundant parts of the editor (#43847)
* refactor: remove forbidden regions

We aren't using them and they're implemented badly. To recreate them, we
should simply track the editable region and update them when it's Range
changes.

* refactor: simplify the refs considerably

There's no point keeping an object with properties for all possible
editors when only one is created at once.
2021-10-18 16:23:36 +03:00
Oliver Eyton-Williams 6a5f586f73
fix: handle challenge resets through redux (#43843)
Instead of relying on heuristics like "does the current content
differ from the initial content?" this just resets if the reset button
has been pressed.
2021-10-18 14:58:06 +03:00
Renovate Bot 91717384fd chore(deps): update dependency @testing-library/dom to v8.10.0 2021-10-18 11:33:46 +00:00
Renovate Bot b54b77873b chore(deps): update dependency jest to v27.3.0 2021-10-17 20:13:04 +00:00
Renovate Bot 102ff04ff1 fix(deps): update dependency @stripe/stripe-js to v1.20.2 2021-10-16 04:09:19 +00:00
Renovate Bot 524c6b1d52 chore(deps): update codesee to v0.117.0 2021-10-16 02:22:19 +00:00
Renovate Bot 1ba3dc1d70 chore(deps): update dependency @testing-library/user-event to v13.4.1 2021-10-16 00:37:48 +00:00
Renovate Bot 0bb14167ae fix(deps): update gatsby monorepo 2021-10-15 22:09:13 +00:00
Renovate Bot 774454c6d1 fix(deps): update dependency @types/react to v17.0.30 2021-10-15 20:19:29 +00:00
Dmitriy Fishman 8f63dc4ccc
fix(docs): fix typo (#43842) 2021-10-15 20:10:16 +02:00
camperbot 9820e7bcef
chore(i18n,docs): update translations (#43879) 2021-10-15 07:53:27 -07:00
Lim Shang Yi 3dbe40410c
feat(client): language dropdown in the side menu is now a drop down (#43729)
* feat(UI): language in the side menu is now a drop down. navigation items are now text wrapped

* fix: use redux navigation to redirect links instead

* fix: fix to use clientLocale as curent language instead

* fix: tests to use clientLocale
2021-10-15 16:08:35 +03:00
Renovate Bot e61bc3ba5d chore(deps): update storybook monorepo to v6.3.12 2021-10-15 12:12:17 +00:00
Oliver Eyton-Williams 6b26ce2e0f
fix(client): only target editor calls for focus (#43839)
For legacy challenges, there's only one editor and it must be focused.

For project steps, only the editor with the editable region should call
for focus.
2021-10-15 11:42:50 +01:00
Renovate Bot 9ddb30b92d chore(deps): update dependency mocha to v9.1.3 2021-10-15 09:31:57 +00:00
RobertoMSousa cb0a502d82
chore: tree shaking - unused / redundant code (#43867) 2021-10-15 13:13:43 +05:30
Renovate Bot 05af1bf09d chore(deps): update dependency @types/chai to v4.2.22 2021-10-15 05:17:30 +00:00
Renovate Bot fec14c6f8c chore(deps): update dependency @testing-library/dom to v8.9.1 2021-10-15 03:32:17 +00:00
Renovate Bot 6618d8b96c chore(deps): pin dependency @types/chai to v4.2.21 2021-10-15 00:55:17 +00:00
Shaun Hamilton 4a605c5cd2
feat(curriculum): add registration form practice project (#42876)
* feat(curriculum): add registration-form practice project

* add parts 001-006

* add parts 007-009

* add parts 010-013

* add parts 014-024, fix 013

* add parts 025-043

* add parts 043-046

* add parts 0047-057 without tests

* fix tests and adjust index.md file I do not understand

* add css tests to parts 037-040

* add tests parts 040-057

* remove space around ERM

* add true assertion until document iframe is fixed

* add critical review suggestions

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

* use clear, Tom-like language for 038

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

* change order to match author's age

* apply suggestions with personal pazzaz

* add that thing Nich forgets

* use innerText

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

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-14 15:33:13 -07:00
Tom 037e38329a
fix: linting errors (#43871) 2021-10-14 16:13:16 -05:00
Eric Cheng de422fe365
fix: change phrasing in challenges to make it easier to read (#43732)
* refactor: made instructions incurriculum\challenges\english\01-responsive-web-design\applied-visual-design\use-the-strong-tag-to-make-text-bold.md a little more clear to user

* refactor: changed phrasing in instructions in curriculum\challenges\english\01-responsive-web-design\applied-visual-design\use-the-s-tag-to-strikethrough-text.md to make it slightly easier to read and less verbose

* refactor: fix phrasing in curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text.md

* fix: streamline phrasing according to requested changes

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

* fix: change phrasing according to requested changes

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

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-10-14 15:54:39 -05:00
Krzysztof 07eb99e57c
fix: remove pretest for full-output (#43655) 2021-10-14 12:23:45 -07:00
Meron Ogbai 06518c04a7
feat(ts-migrate): migrate sass-compile.js and test-evaluator.js to ts (#43145)
* feat(ts-migrate): rename sass-compile.js to ts

* feat(ts-migrate): rename test-evaluator.js to ts

* feat(ts-migrate): add webworker in client tsconfig

* fix(ts-migrate): fix errors in sass-compile.ts

* chore(ts-migrate): install chai types in client

* fix(ts-migrate): fix errors in test-evaluator.ts

* fix(ts-migrate): rename extensions in webpack-worker

* fix(ts-migrate): separate tsconfig for workers

* fix(ts-migrate): add worker tsconfig to parser options

* chore(ts-migrate): remove unnecessary comment

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

* fix(ts-migrate): use let instead of const

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

* fix(ts-migrate): fix eslint errors in sass-compile.ts

* fix(ts-migrate): fix eslint errors in test-evaluator.ts

* chore(ts-migrate): use unknown instead of generics

* chore(ts-migrate): revert worker tsconfig

* chore(ts-migrate): add libs in client tsconfig

* fix(ts-migrate): use ctx alias in test-evaluator.ts

* fix(ts-migrate): use ctx alias in sass-compile.ts

* chore: fix errors

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-14 13:44:55 -05:00
Oliver Eyton-Williams 9bb1919e83
feat: display instructions on frontend projects (#43862) 2021-10-14 10:55:40 -05:00
GabeNedden f3e1c59c92
fix(curriculum): Add Privacy Consideration note (#43779)
* Add Privacy Consideration note to Stock Price Checker challenge

* remove link to external GDPR site

* Improve wording

* Update curriculum/challenges/english/09-information-security/information-security-projects/stock-price-checker.md

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

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-10-14 14:28:03 +00:00
Jeremy L Thompson b8b86a65b8
fix issue #42850, test for setters adding properties (#43813) 2021-10-14 15:58:13 +02:00
camperbot e7437d3666
chore(i18n,docs): update translations (#43860) 2021-10-14 15:53:41 +02:00
Ahmad Abdolsaheb 4d245ef004
feat: remove unused files (#43861) 2021-10-14 15:48:08 +02:00
RobertoMSousa 01fd9a80d8
CHORE: migrate intro component (#43784)
* migrate intro component

* Update client/src/components/Intro/index.tsx

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

* Update client/src/components/Intro/index.tsx

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

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-14 15:19:03 +02:00
Renovate Bot 4916211179 chore(deps): update dependency @types/react-helmet to v6.1.4 2021-10-14 12:12:47 +00:00
Ethan Edmond d36a9a3c66
chore: delete obsolete file throwers.js (#43850) 2021-10-14 10:43:32 +02:00
Renovate Bot 548e98a844 chore(deps): update codesee to v0.112.1 2021-10-14 03:52:44 +00:00
Renovate Bot 80f8613db4 fix(deps): update dependency nanoid to v3.1.30 2021-10-14 02:17:51 +00:00
Renovate Bot 528bae6a73 fix(deps): update dependency sanitize-html to v2.5.2 2021-10-13 22:50:19 +00:00
Renovate Bot d4a49a1c1c chore(deps): update dependency tailwindcss to v2.2.17 2021-10-13 20:42:44 +00:00
camperbot 7f59c81b29
chore(i18n,docs): update translations (#43845) 2021-10-13 18:33:08 +02:00
camperbot 7dc9af5ce5
chore(i18n,curriculum): update translations (#43846) 2021-10-13 08:28:11 -07:00
Renovate Bot 1da90ebffb chore(deps): update dependency @testing-library/dom to v8.9.0 2021-10-13 15:23:41 +00:00
Renovate Bot c17b29e725 chore(deps): update dependency webpack to v5.58.2 2021-10-13 13:48:46 +00:00
Oliver Eyton-Williams 8a47b60890
chore: remove debugging console logs (#43837) 2021-10-13 15:11:02 +03:00
Oliver Eyton-Williams 22afdd1aad
fix: stop modal appearing in steps (#43728)
* fix: stop showing completion modal on steps

* feat: submit steps with ctrl+enter

* fix: handle ctrl+enter when not focussing editor

* fix: reset tests when user types

* refactor: pass showCompletionModal as an option

Otherwise we have to write executeChallenge(true) which does not mean
what you might reasonably expect.

* fix: always executeChallenge when not on step

* fix: update frontend project show

* fix: handle missing payload

* refactor: isProjectStep -> hasEditableRegion

* refactor: more renaming

* fix: make meta.json control multifile editor use

* fix: update the challengeSchema correctly

* Update client/src/templates/Challenges/classic/editor.tsx

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

* fix: remove logging

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-13 14:47:59 +03:00
RobertoMSousa 9220bfedad
migrate donation (#43783) 2021-10-13 12:49:02 +03:00
Oliver Eyton-Williams 61d6b02c79
fix: update jaws on resize (#43777)
* fix: update jaws on resize

Use isProjectStep to determine if the jaws need to be updated

* refactor: isProjectStep -> hasEditableRegion

isProjectStep was misleading.  hasEditableRegion correctly describes
that function and leaves isProjectStep to enable features that are
unique to project steps, but nothing to do with the editable region
2021-10-13 12:40:28 +03:00
Maciek Sitkowski 2d4916cd2c
fix: add translated close button label in alert messages (#43810) 2021-10-13 11:08:14 +02:00
Maciek Sitkowski 3eae0645ab
fix: add translated close button label in alert messages (#43810) 2021-10-13 11:07:29 +02:00
Oliver Eyton-Williams e209582daf
chore: remove night-mode-saga (#43829)
The saga only sets the value of fcc-theme in storage, but the values are
never retrieved, so the saga can be removed.
2021-10-13 12:00:00 +03:00
Oscar Dominguez 93ad0ae036
ci(workflow): add cache to workflows using actions/setup-node (#43830) 2021-10-13 13:04:58 +05:30
renovate[bot] d268d7f7cd
chore(deps): update dependency eslint-plugin-import to v2.25.2 (#43833)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 13:00:49 +05:30