Commit Graph

28399 Commits (dd5d2919beabc415caebe55fb3a6820beb3c8c19)

Author SHA1 Message Date
camperbot 8871128bec
chore(i18n,client): processed translations (#42887) 2021-07-16 09:07:13 +01:00
Oliver Eyton-Williams b61d185209
docs: mention curriculum helper functions (#42889) 2021-07-16 09:01:05 +01:00
awu43 4071b72a6c
feat(curriculum): add spy helper (#42566)
* Added initial version of spy helper

* add missing backslashes

* update to check for line start

* change __fixtures file extensions to .ts from .tsx

* add to exports and add documentation

* add tests

* update event.preventDefault() test
2021-07-16 09:20:03 +02:00
camperbot 3b32da0191
chore(i18n,curriculum): processed translations (#42868) 2021-07-16 11:03:16 +05:30
Vishwasa Navada K 1f5f07cad3
docs(local-setup): Added a note on the local setup guidelines page that includes a solution to `sharp` issue on Apple M1 chip devices (#42871) 2021-07-16 10:57:55 +05:30
Shaun Hamilton ff20199e63
feat(curriculum): add tests to css variables skyline (#42067)
* add(tests): parts 1-2

* refactor for multi-file editor, and add temp css tests

* re-re-rebasing

* add link to subsequent challenges

* add test strings to 007-015

* add final tests 001-016

* fix 005-007, add 017-022 tests and test strings

* add: tests 021-030, and formatting

* add: 031-034 tests

* tests: add 035-046

* fix: test in 021

* tests: add 047-050

* format: 009, 051-118 remove css whitespace

* tests: add 051-078

* tests: add 079-105

* tests: add 104-118

* fix: empty -> isEmpty, and include -> match

* fix: correct editable region

* fix: formatting and spelling

* fix: test logic, and add TODO for whitespace

* fix: add final part solution 🤦‍♂️

* fix typo in part-006

* remove whitespace in prep

* getStyleDeclaration -> getStyle

* remove editable region from solution 🤦‍♂️

* fix: correct tests to fail on initial

* fix: add missing regex

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

* fix: correct tests

* remove commas and stuff 🤷‍♂️

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

* uppercaserise doctype

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

* add "the"

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

* remove half-colon

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

* use more boring form of the word "shoudl"

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

* add suggestions to tests

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-015.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-016.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-016.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-016.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-022.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-093.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-098.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-101.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-023.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-024.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-026.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-035.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-058.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-090.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-058.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-064.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-064.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-064.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-076.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-070.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-079.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-085.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-086.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-087.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-090.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-019.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-019.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-019.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-074.md

* Update curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-078.md

* fix: the few commits I couldn't add on github

* fix: lesson 41

Co-authored-by: gikf <60067306+gikf@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 22:46:40 -05:00
Renovate Bot 885fbe694e chore(deps): update dependency @rollup/plugin-node-resolve to v13.0.2 2021-07-16 00:22:55 +00:00
Renovate Bot d3496750a7 chore(deps): update dependency @rollup/plugin-commonjs to v19.0.1 2021-07-15 19:41:26 +00:00
Renovate Bot 50f48b794a chore(deps): pin dependency @types/reach__router to 1.3.9 2021-07-15 18:47:49 +00:00
Renovate Bot d0f94c5ab5 chore(deps): update dependency @rollup/plugin-node-resolve to v13.0.1 2021-07-15 16:56:45 +00:00
Shaun Hamilton 6ca6d9950c
feat(client): improve SuperBlock cert claiming UX (#41147)
* feat(client): improve SuperBlock cert claiming UX

* broken: add certCard foundation

* broken: add TODO comments for scatter-brain

* restructure stepsToClaimSelector

* add api-server verifyCanClaimCert logic

* temp: correct verifyCanClaim URL

* move GET logic to CertificationCard, remove console.logs

* add error handling, and navigation logic

* correct verification logical flow

* fix completion-epic updates, fix cert verify

* update widget to button, disable button unless verified

* working: refactor CertChallenge with hook state

* add StepsType

* update Honesty snapshot

* add DonationModal to SuperBlockIntro

* disable Claim Cert button unless also isHonest

* prevent warning when viewing cert

* test: use navigate in Modal to return to hash

* test: replace gatsby.navigate with reach/router.navigate

* add propTypes

* fix: rename propTypes -> prop-types

* use react-scrollable-anchor to squash modal bug

* update location parser type

* open-source Oliver's suggestion

* fix superblock title

* add claim-cert-from-learn tests

* use larger tests

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

* fix some cypress stuff

* fix ShowCertification cypress test

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-15 23:51:27 +09:00
gikf 5a52c229f5
fix(curriculum): clean-up Project Euler 181-200 (#42819)
* fix: clean-up Project Euler 181-200

* fix: corrections from review

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

* fix: missing delimiter

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 15:52:14 +02:00
gikf a9418a1fe9
fix(curriculum): clean-up Project Euler 221-240 (#42839)
* fix: clean-up Project Euler 221-240

* fix: corrections from review

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

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 14:26:34 +02:00
Renovate Bot 30c22d1fb3 chore(deps): update dependency rollup to v2.53.2 2021-07-15 09:48:03 +00:00
Mrugesh Mohapatra 7eb0630f2d
chore(i18n,chn): manually downloaded curriculum (#42858) 2021-07-15 13:04:11 +05:30
gikf eef1805fe6
fix(curriculum): clean-up Project Euler 201-220 (#42826)
* fix: clean-up Project Euler 201-220

* fix: corrections from review

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

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 09:20:31 +02:00
Renovate Bot 505c3b7c6c chore(deps): update dependency inquirer to v8.1.2 2021-07-14 18:00:36 +00:00
Oliver Eyton-Williams 03913024a5
fix: various multifile editor bugs (#42855)
* refactor: use refs to hold editor and monaco

Also removed a lot of unnecessary conditionals

* refactor: get a ref to the editor directly

Previously we got a ref to react-monaco-editor, but that's an
unnecessary layer of abstraction

* fix: replace data state with ref

* fix: replace remaining useStates with useRefs

* refactor: simplify dataRef access

* fix: store correct id for output zone

* refactor: remove unused parts of MultifileEditor

* fix: use separate models per fileKey

Temp fix, I think the data should store one version per fileKey

* fix: create data for each editor

* refactor: declare data once

* fix: handle widgets etc. like other data

* fix: store an editor per fileKey

* refactor: clean up types + initial properties

* refactor: remove redundant constructor

* fix: remove redundant comment

* refactor: update comments
2021-07-14 18:09:50 +02:00
Adriano Cangiamila 480afedd62
Update completion-modal.tsx (#42842) 2021-07-14 17:43:14 +02:00
Mrugesh Mohapatra fc0511bd91
chore(i18n): download curriculum manually (#42835) 2021-07-14 10:32:51 -05:00
camperbot 2f8c5619ff
chore(i18n,client): processed translations (#42856) 2021-07-14 19:52:21 +05:30
gikf bfc21e4c40
fix(curriculum): clean-up Project Euler 141-160 (#42750)
* fix: clean-up Project Euler 141-160

* fix: corrections from review

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

* fix: corrections from review

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

* fix: use different notation for consistency

* Update curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-144-investigating-multiple-reflections-of-a-laser-beam.md

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

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-14 13:05:12 +02:00
Renovate Bot 7b327f082b fix(deps): update dependency react-i18next to v11.11.2 2021-07-14 10:54:46 +00:00
Renovate Bot e918e05cfa fix(deps): update dependency i18next to v20.3.3 2021-07-14 09:27:01 +00:00
Renovate Bot c6878a1309 chore(deps): update dependency redux-saga-test-plan to v4.0.3 2021-07-14 03:15:42 +00:00
Renovate Bot cc8d92798a chore(deps): update codesee to v0.48.0 2021-07-13 23:21:22 +00:00
RawandDev 6fac38ef7d
fix(curriculum): improve seo with better-used terms (#42848)
* update main JS introduction

* update note

* update es6 with rephrasing

* intro of basic algo scripting remove unnecessary comma

* oop intro removing unnecessary phrase

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

Done!

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

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

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

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-07-13 22:27:44 +02:00
Ahmad Abdolsaheb e6a17214e2
fix(client):fix scriptloader args (#42847) 2021-07-13 12:36:18 -05:00
tristansoriaga 5e8ac21c26
fix(curriculum): remove example function calls from seed (#42797) 2021-07-13 16:37:38 +01:00
Renovate Bot e97c302c3d fix(deps): update dependency react-reflex to v4.0.2 2021-07-13 12:31:33 +00:00
Renovate Bot 6c37c9a538 chore(deps): update dependency lint-staged to v11.0.1 2021-07-13 11:11:36 +00:00
Nicholas Carrigan (he/him) b8b89ed549
feat: enable more certs (#42764) 2021-07-12 23:42:26 +01:00
camperbot ba828f9040
chore(i18n,client): processed translations (#42831) 2021-07-12 23:37:14 +02:00
Renovate Bot 16078251e3 chore(deps): update typescript-eslint monorepo to v4.28.3 2021-07-12 19:43:35 +00:00
Renovate Bot d8262375fd chore(deps): update dependency autoprefixer to v10.3.1 2021-07-12 18:46:16 +00:00
camperbot b890322065
chore(i18n,docs): processed translations (#42830) 2021-07-12 21:02:20 +05:30
gikf 32fac23a2d
fix(curriculum): clean-up Project Euler 161-180 (#42782)
* fix: clean-up Project Euler 161-180

* fix: corrections from review

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

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-12 16:19:03 +02:00
Ismail Tlemcani 4307179d00
fix broken image url after submission on profile page (#42507) 2021-07-12 13:26:10 +02:00
Renovate Bot f6455db7b8 chore(deps): pin dependency axios to 0.21.1 2021-07-12 10:19:42 +00:00
awu43 e1d8f4be3a
feat(client): ts-migrate client/src/utils (#42666)
* rename js files to ts

* start migrating ajax

* finish migrating ajax

* migrate algolia-locale-setup

* migrate format

* migrate format.test

* migrate get-words

* install axios for types in handled-error

* migrate handled-error

* migrate handled-error.test

* migrate report-error

* migrate script-loaders

* migrate to-learn-path

* correct renamed imports

* remove unnecessary type assertions in searchBar

* remove unnecessary global comment

* remove unnecessary max-len enable/disable

* change axios imports to type imports

* revert to .then() from await

* use UserType from redux/prop-types

* replace assertion with generic type

* revert format to JS

* remove unused getArticleById()

* update putUpdateUserFlag() to use Record

* remove unnecessary envData cast

* update algolia-locale-setup types

* remove invalid key property
2021-07-12 11:17:58 +02:00
Oliver Eyton-Williams 92d7ae1725
fix(client): remove extra slash when redirecting to client (#42588)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-07-12 13:54:54 +05:30
ABHINAV SHARMA e2ca65c803
feat(client): ts-migrate layoutSelector component (#42748) 2021-07-12 14:05:01 +07:00
Huyen Nguyen a33584fd5b
docs: mention Repl instead of Glitch (#42828) 2021-07-12 12:15:31 +05:30
gikf a8e2aff073
feat(client): add hotkey 'r' to focus on instructions panel (#42503) 2021-07-12 09:20:07 +05:30
Renovate Bot 8dfd98183d chore(deps): update dependency redux-saga-test-plan to v4.0.2 2021-07-12 03:08:54 +00:00
Anirudh Modi 1e26dc1529
fix(curriculum): updates `body-parser` with explanation for `extended` config (#42740)
* fix: better explaination for body-parser extened config

* text readability by introducing line break

* grammer fixes

* fix: typo

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
2021-07-11 15:06:57 +01:00
Renovate Bot 67ef1238e5 chore(deps): update dependency rollup to v2.53.1 2021-07-11 08:46:59 +00:00
Renovate Bot 4152cacd7c chore(deps): update dependency joi to v17.4.1 2021-07-11 07:51:44 +00:00
camperbot d475b850bc
chore(i18n,docs): update translations (#42816) 2021-07-11 00:10:31 +01:00
Huyen Nguyen 52b61c736d
chore(eslint): use recommended configs for jsx-a11y (#42818) 2021-07-10 21:06:47 +01:00