Commit Graph

1669 Commits

Author SHA1 Message Date
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
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
Sem Bauke
3b4afe0e59 fix: unneeded scrollbar multi file editor (#42411)
* fix: multi editor unneeded scrollbar
2021-06-23 19:15:36 +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
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
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
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
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
Nicholas Carrigan (he/him)
f25e3e69f8 feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +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
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
Sem Bauke
a53b235bd8 fix: multi editor bottom cut off (#42375) 2021-06-08 18:43:21 +02: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
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
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
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
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
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
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
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
ChrisPrzR
d636bb8912 fix(client): update CSS variable values (#42197)
Update rgba instead of rgb to translucent colors and add hex value for --purple-mid
2021-05-21 12:55:33 +05:30
Lance
9c86168b2f fix: valid username lowercase (#42172)
* fix: valid username lowercase

* test: add test in the validate for reject uppercase characters

* test: add test in the cypress for check on uppercase characters and reject it.
2021-05-20 09:04:00 +02:00
Niraj Nandish
955588eb3e fix(editor): Remove keybind of intellisense (#42137)
* fix: Remove keybind of intellisense

* fix: remove old solution

* fix: disable suggestion on trigger characters
2021-05-17 15:42:22 -05:00
Oliver Eyton-Williams
66dae77fc5 feat: use TypeScript in the client (#42124) 2021-05-18 00:23:41 +05:30
Sem Bauke
c4910b90b4 fix: arrows pointing the wrong way (#42155) 2021-05-17 12:45:08 +05:30
Lasse Jørgensen
a73c205e04 feat(client): add optional information block to intro pages (#42091)
* feat: add optional information block to intro pages

* feat: rename to note, add property to all blocks
2021-05-12 11:30:08 +05:30
Oliver Eyton-Williams
854fee4779 Revert "fix(client): use strip-comments library for js comments removal (#41960)" (#42103)
This reverts commit b16fadb436.
2021-05-11 17:12:48 +00:00
Mrugesh Mohapatra
83943de719 chore: rollback CSRF token generation (#42082)
This reverts commit e1c00138a9.
2021-05-11 00:27:08 +05:30
Kristofer Koishigawa
94d4b2f553 fix: navbar avatar height, background colors (#42076)
* fix: navbar avatar height

* fix: prevent avatar background change when hovered or focused
2021-05-11 00:15:16 +05:30
Oliver Eyton-Williams
e1c00138a9 fix: generate csrf tokens on server (#41968)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-05-10 21:40:42 +05:30
renovate[bot]
21dd80c47a chore(deps): update dependency prettier to v2.3.0 (#42074)
* chore(deps): update dependency prettier to v2.3.0

* chore: apply formating per prettier

* fix: correctly disable import/no-unresolved

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-10 08:48:49 -07:00
Lasse Jørgensen
b16fadb436 fix(client): use strip-comments library for js comments removal (#41960) 2021-05-10 11:03:04 +02:00
Oliver Eyton-Williams
e1f673e685 fix: prevent excessive locale bundling (#41979)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-05-08 13:18:37 +05:30
Mrugesh Mohapatra
1805631e4a fix(client): add info circle to claim cert steps (#42060) 2021-05-08 12:54:29 +05:30