Commit Graph

2920 Commits (40a0d7470e06b1115b171875d4c3037377c72885)

Author SHA1 Message Date
Niraj Nandish de888d640c
feat(client): ts-migrate Settings component (#42341)
* feat(client): change file format to Typescript

* feat(client): migrate SectionHeader component

* feat(client): migrate ToggleSetting component

* feat(client): migrate Theme component

* feat(client): migrate ResetModal component

* feat(client): migrate DeleteModal component

* feat(client): migrate DangerZone component

* feat(client): migrate Honesty component

* feat(client): migrate Privacy component

* feat(client): migrate Username component

* feat(client): migrate About component

* feat(client): migrate Email component

* feat(client): migrate Internet component

* feat(client): migrate Portfolio component

* feat(client): add required types packages

* feat(client): undo file format change

* feat(client): rename files to kebab-case

* feat(client): rename temp files to kebab-case

* feat(client): Review ts-migration

* Fix imports
* Fix some types
* Remove unncessary comments
* Consistent comment format

* restore mistakenly deleted file
2021-06-30 20:52:17 +05:30
krishna-saurav 5ad374cc1a
feat(client): ts-migrate for files under client/src/component/search folder (#42327)
* typescript migration for files under search folder

* fixing few more eslint errors and warnings

* reverting changes for redux/index.js

* fixing merge conflicts with next

* deleting redux/index.ts
2021-06-30 20:52:17 +05:30
Parth Parth 1e86063f04
feat(client): ts-migrate Challenges/components/ (#42582)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:57 +05:30
Akshat Garg ea4eeee49e
feat(client): ts-migrate header components (#42287) 2021-06-30 20:50:57 +05:30
awu43 e54e2588bf
feat(client): ts-migrate client/src/pages (#42445)
* Renamed .js files to .tsx

* Migrated 404 to TS

TODO: Ask about default prop

* Migrated certification to TS

Converted to functional component

* Partially migrated challenges to TS

TODO: Ask about Redirect props

* Installed @types/react-helmet and @types/react-redux

Prep for migrating donate, this caused two new TS errors on 404 and certification

* Migrated donate to TS

TODO: Ask about prop spreading

* Migrated email-sign-up to TS

Converted to functional component and removed unused isSignedIn prop

* Migrated index to TS

Removed unused props

* Migrated learn to TS

* Installed @types/react-instantsearch-dom

Prep for migrating search

* Migrated search to TS

Converted to functional component

* Migrated settings to TS

* Migrated unsubscribed to TS

* Installed @types/validator and @types/lodash-es

Prep for migrating update-email

* Migrated update-email to TS

Converted to functional component

* Migrated user to TS

* Updated effect hook dependencies

Also removed unnecessary comments from 404

* Renamed challenges.test.tsx to .ts

* remove search.tsx, as search.js was removed

* revert: packages

* revert: packages

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-06-30 20:50:57 +05:30
Parth Parth 8c1084a97b
feat(client): ts-migrate client/src/components/helpers/form and client/src/components/formHelpers (#42476)
* client(feat): migrate client/src/components/helpers/form

* compete migration

* migrate formHelpers

* migrate BlockSaveButton and BlockSaveWrapper

* finish migration

* kebab-caseify

* Update client/src/components/formHelpers/block-save-button.tsx

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

* fix linting errors

* make props optional

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-30 20:50:57 +05:30
Tom 6cd8a025a7
feat(client): ts-migrate challenge-templates complete-modal (#42598) 2021-06-30 20:50:57 +05:30
Dripcoding da461bf09a
feat(client): ts-migrate client/src/components/profile (#42378)
* feat: rename Link, Spacer, Profile for typescript

* feaat: migrate Spacer to typescript

* feat: migrate Link to typescript

* feat: migrate Profile to typescript

* feat: migrate Profile test to typescript

* feat: rename Camper.s to Camper.tsx

* feat: migrate Camper to typescript

* feat: rename Certifications

* feat: migrate Certifications to typescript

* feat: rename HeatMap

* feat: migrate HeatMap to typescript

* feat: rename HeatMap.test.

* feat: convert HeatMap.test. to typescript

* feat: make some props optional in ICertificationProps

* feat: rename Portfolio

* feat: migrate Portfolio to typescript

* feat: rename and migrate SocialIcons

* feat: rename TimeLine

* feat: migrate TimeLine to typescript

* feat: rename TimeLine.test.

* feat: migrate TimeLine.test. to typescript

* feat: rename TimelinePagination

* feat: migrate TimelinePagination to typescript

* feat: clean up for typescript migration

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:50:57 +05:30
Parth Parth f15a55e2b4
feat(client): Migrate <Link> to ts (#42467)
* rename

* migrate

* fix: remove duplicate

* fix: linting

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-30 20:50:56 +05:30
Tom 8c7cc2e532
feat(client): ts-migrate challenge templates- challengeTitle + breadCrumbs (#42586) 2021-06-30 20:50:56 +05:30
Tom 918d5a160d
feat(client): ts-migrate challenge templates/show components (#42553) 2021-06-30 20:50:56 +05:30
Shaun Hamilton 40323aef6a
feat(client): ts-migrate /client-only-routes/ (#42587)
* feat(client): refactor /client-only-routes/ to ts

* ts refactor with no-verify for Spacer

* kebaberise filenames

* fix imports
2021-06-30 20:50:56 +05:30
ABHINAV SHARMA 4f179ec8e1
feat(client) ts-migrate AppMountNotifier Component (#42585)
* feat(client) Renamed AppMountNotifier.js to app-mount-notifier.tsx

* feat(client) ts-migrate AppMountNotifier Component

* remove type package from root

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:50:56 +05:30
Parth Parth f3d106dbff
feat(client): ts-migrate client/src/assets/images/components (#42462)
* change to tsx

* update imports, complete migration

* kebab-caseify

* make file and component name consistent

* fix function return types and prop types

* update AsSeenIn to keep clear component names

* cypress please start working

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:56 +05:30
Parth Parth a442d611c4
feat(client): ts-migrate /client/src/analytics (#42457)
* migrate to ts

* fix empty function for linting

* add function return type

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:56 +05:30
Maygan Lightstone aec4ba2035
feat(client): Migrate OfflineWarning to TS (#42575)
* Rename OfflineWarning to tsx.

* Convert offline-warning to Typescript.

* Avoid using NodeJS.Timeout as type.
2021-06-30 20:50:56 +05:30
Parth Parth 0a3a5e7a53
feat(client): migrate icons to TS (#42453)
* migrate files and update tests

fix: use more memory for gatsby develop (#42433)

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>

fix: get showUpcomingChange from env.json (#42440)

fix(client): display legacy certs like current ones (#42038)

* fix: display legacy certs like the current ones

* fix: link projects in legacy certs to project pages

* fix: update tests to changed legacy cert display

* fix: update tests for removed legacy certs forms

* fix: display legacy certs like the current ones

* fix: submit projects for cert on projects pages

* fix: remove legacy certs form submitting handling

* fix: move claiming cert setup before both tests

* fix: remove legacy cert update props and actions

* fix: remove legacy cert updates from api

* fix: correct merge conflict

fix(curriculum): rework Project Euler 98 (#42423)

* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve math notation

fix(curriculum): rework Project Euler 56 (#42364)

* fix: rework challenge to use argument in function

* fix: add solution

* fix: use MathJax to improve look of math notation

fix(curriculum): correct small english typo (#42447)

chore: group together monaco-editor and plugin (#42443)

This should get renovate to create PRs where both are modified.

fix(deps): update dependency algoliasearch to v4.9.2 (#42432)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

migrate files and update tests

Algorithm moved to TSX

first ten files renamed to tsx

first 10 migration complete

first 20 files renamed

migrate some files. rename all

test

index.tsx forced to ignore ts issues

rename and migrate all files

update tests

* remove missed propType declarations

* kebab-caseify

* fi xlinting

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:50:56 +05:30
Parth Parth 863f0dea2b
feat(client): ts-migrate /client/src/utils/fixtures/curriculum-helpers-* (#42469)
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:56 +05:30
Parth Parth 383320095f
feat(client): ts-migrate /client/src/html.js (#42468)
* rename

* migrate

Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
2021-06-30 20:50:56 +05:30
Marlon Johnson 4b44bb37d9
feat(client): ts-migrate client/src/components/helpers/** (#42593)
* refactor(client): convert toggle-button to TypeScript

* chore: rename Space to tsx

* refactor(client): convert space to TypeScript

* chore: rename SlimWidthRow to tsx

* refactor(client): slim-width-row to TypeScript

* chore: rename SkeletonSprite to ts

* fix: fixed typos and resolved paths

* chore: resolve path inconsistencies

* refactor(client): skelton-sprite to TypeScript

* chore: rename loader.test to tsx

* chore: add types for react-spinkit

* refactor(client): loader to TypeScript

* refactor(client): link to TypeScript

* refactor(client): image-loader to TypeScript

* refactor(client): full-width-row to TypeScript

* refactor(client): current-challenge-link to TypeScript

* refactor(client): button to TypeScript

* refactor(client): border-color-picker to TypeScript

* refactor(client): avatar-renderer to TypeScript

* chore: changed loadertest(snap) to ts

* chore: optional types added and cleaned files

* fix: args are now optional

* push small updates for Spacer component merge

* update snapshot

* remove type defs from deps

* Revert "remove type defs from deps"

This reverts commit 9f58bf3554.

* correctly remove client type deps

* final push to remove from deps

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-06-30 20:50:56 +05:30
Shaun Hamilton 660c3b3440
chore(client): add package types for migration (#42623) 2021-06-30 20:50:56 +05:30
renovate[bot] 3bb307b911
chore(deps): update dependency @testing-library/react to v12 (#42680)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 15:56:35 +05:30
Renovate Bot 1044c11b1f chore(deps): update codesee to v0.43.1 2021-06-30 00:56:58 +00:00
Renovate Bot 7793da7872 chore(deps): update dependency webpack to v5.41.1 2021-06-29 16:56:12 +00:00
Renovate Bot 4c28a9be5e fix(deps): update dependency gatsby to v3.8.1 2021-06-29 09:25:59 +00:00
Renovate Bot 2e5120f54c chore(deps): update dependency webpack to v5.41.0 2021-06-28 18:39:48 +00:00
Mrugesh Mohapatra adc09ec180 chore: apply npm audit fix to all packages 2021-06-28 19:00:55 +05:30
Renovate Bot 455b862e36 fix(deps): update dependency react-instantsearch-dom to v6.11.2 2021-06-28 11:56:09 +00:00
renovate[bot] 09e51ba4da
chore(deps): update dependency prismjs to v1.24.0 (#42652)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 15:50:38 +05:30
renovate[bot] 16f2e2a45d
chore(deps): update dependency copy-webpack-plugin to v9.0.1 (#42632)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 14:02:16 +05:30
Oliver Eyton-Williams 1db9a123ae
fix(client): handle challenge creation (#42272)
This lets us create new challenges/steps without having to restart the
client
2021-06-28 13:38:11 +05:30
renovate[bot] 6ecb507779
fix(deps): update dependency algoliasearch to v4.10.2 (#42609)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 21:39:47 +05:30
renovate[bot] e18803fb9b
chore(deps): update codesee to v0.42.0 (#42639)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 07:02:46 +02:00
camperbot c6fa53e32d
chore(i18n,learn): update translations (#42628) 2021-06-26 00:49:58 +05:30
camperbot a8edb4c369
chore(i18n,client): processed translations (#42619) 2021-06-24 07:37:03 -07:00
renovate[bot] 371d5a1066
fix(deps): update gatsby monorepo (#42603)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-24 19:51:38 +05:30
Ahmad Abdolsaheb b3f2c64de8
fix(client): remove algolia and hot keys modules from landing pages (#42394)
* fix(client): remove algolia and hot keys from landing pages

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-24 12:50:36 +03:00
renovate[bot] 0a0e81efc6
chore(deps): update dependency gatsby-plugin-webpack-bundle-analyser-v2 to v1.1.24 (#42611)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 21:29:38 +02:00
Sem Bauke 3b4afe0e59
fix: unneeded scrollbar multi file editor (#42411)
* fix: multi editor unneeded scrollbar
2021-06-23 19:15:36 +02:00
camperbot 777a2524a4
chore(i18n,learn): update translations (#42607) 2021-06-23 09:51:28 -05:00
renovate[bot] 7d1301e155
chore(deps): update codesee to v0.41.0 (#42602)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-23 07:44:10 +02:00
renovate[bot] ae3e1a1d18
chore(deps): update babel monorepo to v7.14.7 (#42594)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 13:22:40 +05:30
renovate[bot] 06f1c3805c
fix(deps): update dependency query-string to v7.0.1 (#42592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 12:52:35 +05:30
renovate[bot] 1bbc1d518d
chore(deps): update dependency webpack to v5.40.0 (#42589)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 10:40:13 +05:30
renovate[bot] e9e508d11d
chore(deps): update codesee to v0.39.0 (#42565)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-21 11:03:41 +02:00
Huyen Nguyen 2c16234853
chore: add jest global variables (#42573) 2021-06-20 09:14:42 +02:00
Prashant 42e8b2247e
fix(client): Adjust mobile view for email-signup page (#42567)
Co-authored-by: PrashantSakre <prashantsakre@Prashants-mac-mini.local>
2021-06-19 16:27:00 +02:00
camperbot 94c5afbf70
chore(i18n,client): processed translations (#42558) 2021-06-18 15:51:01 +02:00
renovate[bot] 08daf11bef
fix(deps): update dependency i18next to v20.3.2 (#42551)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-18 18:51:36 +05:30
renovate[bot] 3499c2b08e
chore(deps): update dependency typescript to v4.3.4 (#42550)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-18 17:34:46 +05:30
renovate[bot] ba3fd9a49b
fix(deps): update dependency monaco-editor to v0.25.2 (#42552)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-18 12:28:21 +04:00
Victor Duarte 310bbdf54b
fix(client): store challenge panes sizes (#42519)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-17 23:50:39 +05:30
camperbot 3a8c1444eb
chore(i18n,client): processed translations (#42544) 2021-06-17 07:49:44 -07:00
renovate[bot] aa21539967
chore(deps): update dependency webpack to v5.39.1 (#42543)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 17:41:47 +05:30
renovate[bot] 964b4204d3
chore(deps): update dependency typescript to v4.3.3 (#42542)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 15:44:07 +05:30
renovate[bot] c9eaa6527f
chore(deps): update dependency postcss to v8.3.5 (#42474)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-17 14:55:59 +05:30
renovate[bot] 7970cf82ee
chore(deps): update codesee to v0.38.0 (#42540)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 20:24:10 +02:00
Oliver Eyton-Williams 2ebc3b62ab
feat(client): remove axios, include credentials (#42531)
* Revert "revert: replace axios with fetch"

This reverts commit 418287f1e8.

* fix: always include credentials

Since www.freecodecamp.org and api.freecodecamp.org are different
origins we have to tell fetch to 'include' the credentials.
2021-06-16 21:23:49 +05:30
renovate[bot] a1af753e2a
fix(deps): update dependency gatsby to v3.7.2 (#42520)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 21:23:02 +05:30
camperbot b17476a760
chore(i18n,learn): update translations (#42529) 2021-06-16 19:02:55 +05:30
Mrugesh Mohapatra 418287f1e8
revert: replace axios with fetch
This reverts commit 82f3f6ae0c via PR #41944.
2021-06-16 17:24:57 +05:30
Mrugesh Mohapatra e402464304
revert(ajax): use 'same-origin' credentials
This reverts commit 80b12ee25c via PR #42525.
2021-06-16 17:24:57 +05:30
Oliver Eyton-Williams 80b12ee25c
fix(ajax): use 'same-origin' credentials (#42525) 2021-06-16 09:47:47 +00:00
renovate[bot] af6e6a01d3
chore(deps): update codesee to v0.37.0 (#42521)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 10:56:41 +02:00
renovate[bot] 3bcd5b207f
chore(deps): update dependency chokidar to v3.5.2 (#42506)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 12:57:43 +05:30
Oliver Eyton-Williams 82f3f6ae0c
refactor: replace axios with fetch (#41944) 2021-06-15 11:47:25 -07:00
Mrugesh Mohapatra a378bc6dd4
chore: rework the language audits for build (#42510)
This also reverts commit cd5c28b332.
2021-06-15 23:07:52 +05:30
Nicholas Carrigan (he/him) cd5c28b332
revert: disable portuguese (#42508)
* revert: disable portuguese

First certification is not 100% yet. Shipped too soon. :(

* feat: enable portuguese curriculum

Curriculum can build in portuguese, leaving client disabled to
prevent language from appearing in nav bar.

* feat: move audited cert list

Moves the audited cert list to the config, instead of the utils.
2021-06-15 21:32:29 +05:30
Tom 067761f2f6
feat(curriculum): add relational databases cert as upcoming change (#41658) 2021-06-15 16:37:13 +01:00
renovate[bot] 56fa9aba3c
fix(deps): update dependency algoliasearch to v4.9.3 (#42499)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 17:48:51 +05:30
renovate[bot] f1f7c64c3b
chore(deps): update dependency webpack to v5.39.0 (#42493)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 17:13:04 +05:30
renovate[bot] f6c7e2ace6
chore(deps): update babel monorepo to v7.14.6 (#42492)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 16:38:39 +05:30
renovate[bot] b93ab9e0fd
fix(deps): update dependency monaco-editor to v0.25.1 (#42452)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 15:37:10 +05:30
renovate[bot] d1aebc895f
fix(deps): pin dependency normalize-url to v4.5.1 (#42497)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 11:24:19 +02:00
Tom 3cb174a1ce
fix(client): downgrade normalize-url to fix Safari issue (#42490) 2021-06-15 11:06:41 +02:00
renovate[bot] 9430e8294b
chore(deps): update dependency @codesee/tracker to v0.36.0 (#42495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 09:54:06 +02:00
Nicholas Carrigan (he/him) f25e3e69f8
feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +05:30
Renovate Bot d8d6d20793
fix(deps): update dependency react-i18next to v11.11.0 2021-06-15 13:04:00 +05:30
Renovate Bot 8c6711e8b9
chore(deps): update dependency postcss to v8.3.4 2021-06-15 13:03:18 +05:30
renovate[bot] ceb30b6f0f
chore(deps): update dependency @codesee/babel-plugin-instrument to v0.36.0 (#42494)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-15 08:20:16 +02:00
camperbot 840c7c738f
chore(i18n,learn): update translations (#42486)
* chore(i18n,learn): update translations

* fix: lowercase file name

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:31:18 -07:00
renovate[bot] e89de73f66
chore(deps): update dependency @testing-library/jest-dom to v5.14.1 (#42441)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-14 16:35:42 +05:30
renovate[bot] 6937421f97
chore(deps): update dependency @codesee/tracker to v0.35.0 (#42464)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-14 09:33:13 +02:00
renovate[bot] e05bed9ed5
chore(deps): update dependency @codesee/babel-plugin-instrument to v0.35.0 (#42463)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-14 12:02:36 +05:30
renovate[bot] 05a33d703e
chore(deps): update dependency @codesee/tracker to v0.34.0 (#42449)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 19:11:52 +05:30
renovate[bot] 28864ab7f3
chore(deps): update dependency @codesee/babel-plugin-instrument to v0.34.0 (#42448)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 17:21:42 +05:30
renovate[bot] daeb674a2e
chore(deps): update dependency postcss to v8.3.2 (#42437)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 17:20:51 +05:30
renovate[bot] 388d660c55
fix(deps): update gatsby monorepo (#42435)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 16:16:22 +05:30
renovate[bot] 032d7abbb9
fix(deps): update dependency monaco-editor to v0.25.0 (#42439)
* fix(deps): update dependency monaco-editor to v0.25.0

* chore: bump monaco-editor-webpack-plugin to 4.0.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-12 13:20:47 +05:30
renovate[bot] 00aee78b13
fix(deps): update dependency algoliasearch to v4.9.2 (#42432)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-12 13:19:02 +05:30
gikf bc9e8a69de
fix(client): display legacy certs like current ones (#42038)
* fix: display legacy certs like the current ones

* fix: link projects in legacy certs to project pages

* fix: update tests to changed legacy cert display

* fix: update tests for removed legacy certs forms

* fix: display legacy certs like the current ones

* fix: submit projects for cert on projects pages

* fix: remove legacy certs form submitting handling

* fix: move claiming cert setup before both tests

* fix: remove legacy cert update props and actions

* fix: remove legacy cert updates from api

* fix: correct merge conflict
2021-06-11 17:06:46 +01:00
Shaun Hamilton 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
Oliver Eyton-Williams c7882fed9b
fix: use more memory for gatsby develop (#42433) 2021-06-10 22:39:31 +05:30
Oliver Eyton-Williams 65786b6929
fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
renovate[bot] 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
renovate[bot] 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
renovate[bot] 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
renovate[bot] 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
Prashant 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
renovate[bot] 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
renovate[bot] 91b54278b6
chore(deps): pin dependencies (#42419)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 22:18:09 +05:30
Oliver Eyton-Williams 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
Oliver Eyton-Williams 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
renovate[bot] bd88d9f7ce
fix(deps): update gatsby monorepo (#42412)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-09 00:42:50 +05:30
renovate[bot] a13d6b8be9
chore(deps): pin dependencies (#42409)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-08 23:48:39 +05:30
Sem Bauke a53b235bd8
fix: multi editor bottom cut off (#42375) 2021-06-08 18:43:21 +02:00
Mrugesh Mohapatra 2db594d318 chore: apply npm audit:fix 2021-06-08 21:16:56 +05:30
Mrugesh Mohapatra c243a8b62f chore(client): update deps - minor & patch 2021-06-08 21:16:56 +05:30
Oliver Eyton-Williams 3875c6e619
fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
Shaun Hamilton 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
Oliver Eyton-Williams 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
Oliver Eyton-Williams 3f45f778b8
chore: remove unused fetch-and-cache.js (#42358) 2021-06-04 08:17:16 -07:00
Kristofer Koishigawa 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
renovate[bot] 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
renovate[bot] 7c8d65174d
fix(deps): pin dependencies (#42345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 22:34:24 +05:30
Ahmad Abdolsaheb 06294afdd3
fix(client): remove prism from app chunk (#42230)
* remove-prisim-from-app-chunk

* Update client/src/components/profile/components/TimeLine.js

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-06-03 19:55:21 +05:30
Oliver Eyton-Williams b2539f330d
chore: clean up dependencies (#42329) 2021-06-03 19:20:52 +05:30
Shaun Hamilton 24be225fa4
feat(client): refactor propTypes to TS types (#42278) 2021-06-03 14:23:46 +03:00
Oliver Eyton-Williams 802273cf8a
refactor: remove sinon (#42337) 2021-06-02 21:03:05 +05:30
Renovate Bot d33eeef4d5 fix(deps): update dependency gatsby to v3.6.2 2021-06-02 09:59:22 +00:00
Oliver Eyton-Williams 3b115a1876
fix(client): use @freecodecamp/strip-comments for js comments (#42254) 2021-06-01 01:37:45 +02:00
Oliver Eyton-Williams 128cb813cb
fix: remove unused polyvinyl functions (#42295) 2021-05-31 21:16:26 +05:30
camperbot 50a146224f
chore(i18n,client): processed translations (#42316) 2021-05-31 18:30:52 +05:30
Oliver Eyton-Williams 90d2c3b344
feat: use webpack caching in development (#42286)
* feat: use webpack caching in development

This cuts build time for build-workers considerably.

* fix: update gitpod config

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-05-30 08:59:55 +01:00
renovate[bot] e605800d82
fix(deps): update dependency react-transition-group to v4.4.2 (#42299)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-30 05:42:07 +00:00
Renovate Bot c966823920 chore(deps): update babel monorepo to v7.14.4 2021-05-28 20:06:23 +00:00
camperbot ac8e70133c
chore(i18n,learn): update translations (#42289) 2021-05-28 11:41:28 -07:00
Renovate Bot 55c237fc89 fix(deps): update dependency react-tooltip to v4.2.21 2021-05-28 15:25:56 +00:00
Renovate Bot 473948244b fix(deps): update dependency i18next to v20.3.1 2021-05-28 14:29:43 +00:00
Renovate Bot 28b4393c20 fix(deps): update dependency date-fns to v2.22.1 2021-05-28 13:57:30 +00:00
Renovate Bot f3c6fb1fd9 fix(deps): update dependency react-i18next to v11.10.0 2021-05-28 11:46:44 +00:00
Renovate Bot 634547c233 fix(deps): update dependency date-fns to v2.22.0 2021-05-28 11:01:02 +00:00
Renovate Bot 59a2191223 fix(deps): update dependency react-tooltip to v4.2.20 2021-05-28 08:24:55 +00:00
Renovate Bot 3ce80a9545 chore(deps): update dependency webpack to v5.38.1 2021-05-28 00:30:44 +00:00
Renovate Bot 56c975fcf4 fix(deps): update dependency gatsby to v3.6.1 2021-05-27 22:37:28 +00:00
Sem Bauke 3c36bda9ab
feat: change challenge desc to ts (#42270)
* feat: change challenge desc to ts

* Apply suggestions from code review

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

* fix: add return type on function

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-27 17:50:08 +02:00
camperbot bbfd599386
chore(i18n,learn): update translations (#42271) 2021-05-27 07:18:07 -07:00
Nicholas Carrigan (he/him) 00b76c0389
fix: link import bug (#42266)
Fix a small bug in the CSS helper tool.
2021-05-27 08:46:23 +02:00
Renovate Bot 074409e699 chore(deps): update dependency typescript to v4.3.2 2021-05-26 18:39:25 +00:00
Renovate Bot a51a046d3e chore(deps): update dependency autoprefixer to v10.2.6 2021-05-26 17:53:08 +00:00
renovate[bot] e0708688df
chore(deps): update dependency copy-webpack-plugin to v9 (#42250)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-26 09:57:47 +02:00
camperbot 1a6b4ca531
chore(i18n,learn): update translations (#42245) 2021-05-26 01:00:35 +05:30
Renovate Bot 75bf6fc78c fix(deps): update gatsby monorepo 2021-05-25 18:51:19 +00:00
Shaun Hamilton d5cc9ba259
feat(dev): add css helper function (#42148)
* feat(dev): add css helper function

* add media declaration methods

* use a selector to grab styles

* add CSSHelp class with annoying TS warnings (no-verify)

* replace indexing with getPropertyValue

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

* connect CSSHelp to helpers, clean up types

* fix: return extended object, not modify prototype

* fix: unnecessary assertion error

* add tests with fixtures

* add afterAll document clean-up

* 'fix' tests

* undo jest transform config

* remove erroneous comments and logs

* reafactor: use existing types and narrow types

* refactor test descriptions

* rename files to appease Mrugesh 😄

* remove probably unnecessary document clean

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

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-25 07:34:55 -07:00
Renovate Bot a32559b203 fix(deps): update dependency react-i18next to v11.9.0 2021-05-25 09:59:30 +00:00
Oliver Eyton-Williams 2648f75df6
fix: remove redundant babel plugin (#42234)
@babel/plugin-proposal-class-properties is now included in preset-env
2021-05-24 13:30:09 -07:00
Nicholas Carrigan (he/him) 821aee9687
feat: i18n for help text (#42235)
Add internationalisation capabilities for the pre-filled text in
the Ask for Help forum post.
2021-05-24 19:59:35 +02:00
camperbot bd69e00480
chore(i18n,curriculum): update translations (#42191) 2021-05-24 09:42:08 +02:00
saeed 66c5523909
feat: render footer correctly (#42096)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-05-24 00:30:07 +02:00
Ismail Tlemcani 914ff44f74
fix(client): add validation to profile image URL (#41927)
* fix: fix broken image url after validation

* feat: add tests for a broken image url submission

* fix: reduce event related calls

* Update cypress/integration/settings/image-picture-check.js

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

* Update cypress/integration/settings/image-picture-check.js

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
2021-05-23 16:08:12 +02:00