* 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
* 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
* 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
* 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>
* 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>