Commit Graph

3023 Commits (1786ce36853c5ec2a4cc2366106ee3429ab84cfe)

Author SHA1 Message Date
camperbot 3350cb4522
chore(i18n,learn): update translations (#43088) 2021-08-02 07:05:00 -07:00
Oliver Eyton-Williams e118dda13a
fix: order imports and remove circular dependencies (#41824)
* fix: remove circular dependency

redux depended on templates/Challenges/redux and vice versa.  This
meant that import order mattered and confusing bugs could arise.

(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)

* feat: require imports to be in alphabetical order

Import order generally does not matter, but there are edge cases
(circular  imports and css imports, for example) where changing order
changes behaviour

(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)

* chore: order imports

* fix: lift up challenge description + title comps

This brings the classic Show closer to the others as they
now all create the description and title components

* fix: remove donation-saga/index circular import

(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)

* refactor: extract action-types from settings

(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)

* fix: lint errors

* feat: prevent useless renames
2021-08-02 08:39:40 -05:00
Renovate Bot e7b4b5b2fd fix(deps): update dependency react-instantsearch-dom to v6.12.1 2021-08-02 09:59:21 +00:00
Renovate Bot e8dd7f5929 chore(deps): update babel monorepo to v7.14.9 2021-08-01 09:26:37 +00:00
Renovate Bot 24567cbe4a chore(deps): update codesee to v0.56.0 2021-07-30 23:24:17 +00:00
camperbot ffdc8315f6
chore(i18n,learn): update translations (#43077) 2021-07-30 15:31:19 +02:00
Renovate Bot 2b7683faa0 chore(deps): update dependency webpack to v5.47.1 2021-07-29 22:32:54 +00:00
camperbot 43308fd612
chore(i18n,client): processed translations (#43071) 2021-07-29 18:45:36 +05:30
Tom 826992fabf
fix(client): open all certs in same tab (#43061) 2021-07-29 14:56:36 +03:00
Renovate Bot e9c740fe7e chore(deps): update codesee to v0.55.0 2021-07-28 21:17:43 +00:00
camperbot aced643bc2
chore(i18n,learn): update translations (#43045) 2021-07-28 10:36:53 -05:00
Shaun Hamilton 47adbde90b
feat(client): add multifile editor breadcrumbs (#42907)
* feat(client): add multifile editor breadcrumbs

* adjust margin

* update snapshot

* re-remove duplicate css

* adjust arrow colours

* update that pesky snapshot

* add title to editor jaw

* remove bolding, and center

* update snapshot
2021-07-28 17:29:11 +03:00
Renovate Bot 3683414201 chore(deps): update codesee to v0.54.3 2021-07-28 08:27:29 +00:00
Ko b96132449b
Add missing word in APIs and Microservices intro (#43030)
* Add missing word in APIs and Microservices intro

* Updated the word 'back end'
2021-07-28 09:28:50 +02:00
Renovate Bot 4ef6e9d3ea chore(deps): update codesee to v0.54.2 2021-07-28 04:16:07 +00:00
Shaun Hamilton 9731ea31b8
fix(client): fix i18n external locations in nav (#42995) 2021-07-28 07:31:07 +07:00
Renovate Bot c56510a6b2 chore(deps): update codesee to v0.54.0 2021-07-27 21:28:22 +00:00
Renovate Bot 4357fd03af chore(deps): update dependency webpack to v5.47.0 2021-07-27 18:09:51 +00:00
Oliver Eyton-Williams 49b4e1f2b3
fix: remove HOME_PATH (#43034)
It was only used as a default for hardGoTo, but that function is only
called once and does not need the default
2021-07-27 08:35:14 -07:00
camperbot 946f6847a7
chore(i18n,learn): update translations (#43032) 2021-07-27 08:24:26 -07:00
Victor Duarte a4358fc56c
fix(client): update display prop on element (#42912)
* fix: profile menu icon overlapping content

* refactor: profile icon usage
2021-07-27 12:27:32 +03:00
Renovate Bot 7b92f1df83 chore(deps): update codesee to v0.52.1 2021-07-27 01:35:20 +00:00
Ahmad Abdolsaheb 9b401570bc
fix(client): adjust big cta size (#43017) 2021-07-26 16:35:54 +01:00
Renovate Bot 0a82c36e1b fix(deps): update dependency react-i18next to v11.11.4 2021-07-26 10:51:21 +00:00
camperbot c5963374cb
chore(i18n,client): processed translations (#43007) 2021-07-25 22:54:39 +05:30
Victor Duarte 80e75ea690
fix(client): remove odd snap of editor panels (#42990)
* fix(client): remove odd snap of editor panels

* fix(client): reduce set state calls
2021-07-25 14:41:22 +02:00
Renovate Bot 242b21a34b fix(deps): update dependency i18next to v20.3.5 2021-07-25 10:51:00 +00:00
Victor Duarte 10511a7402
refactor(client): document and test create types utilities (#42960)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-24 23:24:08 +07:00
camperbot 80cddc7731
chore(i18n,learn): update translations (#42983) 2021-07-23 15:03:23 +02:00
Renovate Bot 7e2d72e7dd fix(deps): update dependency date-fns to v2.23.0 2021-07-23 09:21:19 +00:00
Shaun Hamilton 06b1e584f9
feat(client): add new coder survey link to learn (#42955)
* feat(client): add new coder survey link

* add translation key to all locales

* close i18n tags

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

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-07-23 08:03:25 +02:00
Renovate Bot b626f03c8c chore(deps): update codesee to v0.51.1 2021-07-23 00:39:27 +00:00
Renovate Bot be5177ca48 chore(deps): update dependency webpack to v5.46.0 2021-07-22 13:12:50 +00:00
awu43 d98857069b
feat(client): ESLint Fragments rule (#42963)
* add eslint rule

* Remove unused Fragment imports
2021-07-21 22:07:46 +01:00
Renovate Bot 0e611f321e chore(deps): update dependency postcss to v8.3.6 2021-07-21 18:03:15 +00:00
camperbot c3eb8189af
chore(i18n,learn): update translations (#42956) 2021-07-21 16:30:16 +01:00
Renovate Bot 0daa47791d fix(deps): update gatsby monorepo 2021-07-20 23:49:26 +00:00
Renovate Bot c9db6e216b fix(deps): update dependency i18next to v20.3.4 2021-07-20 21:49:27 +00:00
Renovate Bot 1e86dae25b chore(deps): update babel monorepo to v7.14.8 2021-07-20 20:09:11 +00:00
Anirudh Modi ef3b7ec955
chore(eslint): enables recommended eslint rules for `testing-library` and `jest-dom` (#42817) 2021-07-20 21:21:16 +07:00
Oliver Eyton-Williams a368e7f277
fix: prevent early redirection from email-signup (#42944)
Co-authored-by: Victor Duarte <victor-duarte@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Victor Duarte <victor-duarte@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-07-20 09:19:11 -05:00
awu43 e33b977f04
update show-project-links (#42940) 2021-07-20 08:05:17 -05:00
Ilenia 3c29cfab1b
feat(i18n, learn): adding first few motivational quotes and compliments in italian (#42935)
* i18n Italian Compliements

* first 10 motivational quotes for italian
2021-07-19 21:50:46 -05:00
Renovate Bot c0150b00d8 chore(deps): update codesee to v0.50.1 2021-07-19 23:55:35 +00:00
Renovate Bot 2550bb7ebf chore(deps): update codesee to v0.50.0 2021-07-19 21:25:40 +00:00
Oliver Eyton-Williams 90d5783870
chore: update Header test to handle more languages (#42894) 2021-07-19 12:39:51 -07:00
Tom 292482792e
update(curriculum): Change advanced bash tutorial title to new title (#42885)
* rename: advanced bash file

* rename: all instances of advanced bash tutorial to new title
2021-07-20 00:17:11 +05:30
Shaun Hamilton 31486b368b
fix(client): refactor to use correct i18n t type (#42865)
* fix(client): refactor to use correct i18n t type

* appease Oliver by importing directly from react-i18n

* fix: use default TFunction type variable

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-19 09:48:02 -07:00
camperbot 25f145b5c8
chore(i18n,learn): update translations (#42929) 2021-07-19 16:23:54 +02:00
awu43 3ed1f73221
fix(client): remove unnecessary return values (#42927)
* remove returns

* change .some() to .includes()
2021-07-19 13:18:17 +01:00
renovate[bot] da513953d8
fix(deps): update monaco editor (#42875)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 10:45:49 +02:00
camperbot 3c62525a44
chore(i18n,client): processed translations (#42917) 2021-07-19 10:50:07 +05:30
Ikko Ashimine 48257c80b5
fix(curriculum): typo in comment (#42914)
preceed -> precede
2021-07-17 12:34:31 +05:30
Renovate Bot 40a0d7470e chore(deps): update dependency webpack to v5.45.1 2021-07-17 00:20:15 +00:00
Renovate Bot aa5764a2a4 chore(deps): update codesee to v0.49.1 2021-07-16 23:29:23 +00:00
Renovate Bot fdd06bd34b chore(deps): update dependency @types/react-instantsearch-dom to v6.12.0 2021-07-16 20:49:28 +00:00
Renovate Bot dc3b2508e4 fix(deps): update dependency @freecodecamp/strip-comments to v3.0.1 2021-07-16 17:02:18 +00:00
Oliver Eyton-Williams 1ba9d03cb5
feat: remove csrf from the client (#42242) 2021-07-16 10:49:47 -05:00
Mrugesh Mohapatra 017ae24894
fix(client): add if private warning to the name (#42901)
* fix(client): add if private warning to the name

* fix(client): add if private warning to the name
2021-07-16 16:40:14 +01:00
Sem Bauke 1f9aa2f28b
fix: remove old croudsourcing translation for videos (#42880) 2021-07-16 14:43:16 +02:00
Renovate Bot 7783d714f4 fix(deps): update dependency react-i18next to v11.11.3 2021-07-16 09:46:20 +00:00
camperbot 8871128bec
chore(i18n,client): processed translations (#42887) 2021-07-16 09:07:13 +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
Renovate Bot 50f48b794a chore(deps): pin dependency @types/reach__router to 1.3.9 2021-07-15 18:47:49 +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
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
camperbot 2f8c5619ff
chore(i18n,client): processed translations (#42856) 2021-07-14 19:52:21 +05:30
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
Renovate Bot e97c302c3d fix(deps): update dependency react-reflex to v4.0.2 2021-07-13 12:31:33 +00:00
camperbot ba828f9040
chore(i18n,client): processed translations (#42831) 2021-07-12 23:37:14 +02:00
Renovate Bot d8262375fd chore(deps): update dependency autoprefixer to v10.3.1 2021-07-12 18:46:16 +00: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
ABHINAV SHARMA e2ca65c803
feat(client): ts-migrate layoutSelector component (#42748) 2021-07-12 14:05:01 +07:00
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
Renovate Bot ba24087c54 chore(deps): update dependency autoprefixer to v10.3.0 2021-07-10 12:46:21 +00:00
Renovate Bot 750d0a62cf fix(deps): update dependency gatsby to v3.9.1 2021-07-09 20:34:40 +00:00
camperbot 69c6105531
chore(i18n,client): processed translations (#42809) 2021-07-09 15:11:11 +02:00
Moshe 63f26db336
refactor(client): Replace <Fragment> tags to <> (#42796)
* refactor(40115): Replace <Fragment> tags to <>
2021-07-09 09:50:11 +02:00
Renovate Bot f8654d6d07 chore(deps): update codesee to v0.47.2 2021-07-09 07:00:42 +00:00
Shaun Hamilton 0891d41c35
fix(client): re-ref editor (#42799) 2021-07-09 09:29:11 +05:30
Shaun Hamilton d95962e405
fix(client): adjust project link logic to show files (#42717) 2021-07-08 22:00:04 -05:00
Renovate Bot 330b7aaa0f chore(deps): update dependency @types/react-spinkit to v3.0.7 2021-07-09 01:22:01 +00:00
Renovate Bot 508358e789 chore(deps): update dependency webpack to v5.44.0 2021-07-08 23:21:08 +00:00
Renovate Bot 5f5a190da9 chore(deps): update dependency @types/redux-actions to v2.6.2 2021-07-08 02:58:27 +00:00
Renovate Bot 602d00b4f5 chore(deps): update dependency @types/react-transition-group to v4.4.2 2021-07-08 01:17:16 +00:00
Renovate Bot 3d6a2588e4 chore(deps): update dependency @types/react-instantsearch-dom to v6.10.2 2021-07-08 00:36:06 +00:00
Renovate Bot a016dd1127 chore(deps): update dependency @types/react-helmet to v6.1.2 2021-07-07 23:27:52 +00:00
Renovate Bot 78fd2f9c8c chore(deps): update dependency @types/react-dom to v17.0.9 2021-07-07 22:13:55 +00:00
Renovate Bot 8d03df6456 chore(deps): update dependency @types/prismjs to v1.16.6 2021-07-07 20:28:26 +00:00
Renovate Bot 271bdd43d7 fix(deps): update dependency babel-plugin-prismjs to v2.1.0 2021-07-07 15:42:27 +00:00
Sem Bauke d23b86f77b
feat: convert solutionForm to ts (#42766)
* feat: convert solutionForm to ts

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-07 10:38:58 +02:00