freeCodeCamp/client
Oliver Eyton-Williams e4ba0e23ea
feat: enable reset in multifile editor (#43617)
* feat: dispatch resetChallenge action

* fix: copy challengeFiles instead of in-place sort

* fix: handle null updateFile payloads in redux

* refactor: reorganise region initialization

* refactor: pull code into editorDidMount

Then we can rely on the presence of the editor and monaco and don't have
litter the code with null checks.

* refactor: use better name for editable region init

* refactor: remove unused decoration

* refactor: rename forbidden region init functions

* fix: keep all challengeFiles when resetting

* refactor: remove unused decoration class

* fix: reinitialize editor on reset

* fix: stop adding multiple scroll listeners

Since the challengeFile update on each keystroke extra (unnecessary)
adding of listeners slowed the editor to a crawl.

* fix: only scroll to editor on mount

Rather than on any edit.

* refactor: remove logs and comments

* fix: rename toSortedArray and fix broken test

* fix: check for null not falsy in updateFile

* fix: only update project features when project

* fix: only reset if editor contents have changed

* feat: focus on editor after reset
2021-10-01 10:36:20 +02:00
..
i18n chore(i18n,learn): update translations (#43613) 2021-09-29 20:19:53 -07:00
plugins fix(client): handle challenge creation (#42272) 2021-06-28 13:38:11 +05:30
src feat: enable reset in multifile editor (#43617) 2021-10-01 10:36:20 +02:00
static feat: add stripe merchant id for apple pay (#43124) 2021-08-05 20:00:50 +01:00
utils feat(curriculum): add accessibility-quiz practice project (#43244) 2021-09-28 15:38:44 -05:00
.babelrc.js fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
.gitignore chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
gatsby-browser.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
gatsby-config.js feat(client): ts-migrate client/utils/** (#42823) 2021-08-09 10:30:31 +02:00
gatsby-node.js refactor: files{} -> challengeFiles[], and key -> fileKey (#43023) 2021-08-12 20:48:28 +02:00
gatsby-ssr.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
package-lock.json chore(deps): update codesee to v0.102.1 2021-09-30 22:52:54 +00:00
package.json chore(deps): update codesee to v0.102.1 2021-09-30 22:52:54 +00:00
postcss.config.js feat: commandline chic 2019-08-20 13:37:11 +05:30
tsconfig.json feat(client): ts-migrate client/src/components/helpers/** (#42593) 2021-06-30 20:50:56 +05:30
webpack-workers.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00