freeCodeCamp/client
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
..
i18n chore(i18n,client): processed translations (#42856) 2021-07-14 19:52:21 +05:30
plugins fix(client): handle challenge creation (#42272) 2021-06-28 13:38:11 +05:30
src fix: various multifile editor bugs (#42855) 2021-07-14 18:09:50 +02:00
static feat: add gap scripts for production and staging (#40807) 2021-04-16 14:29:53 +05:30
utils feat(client): ts-migrate layoutSelector component (#42748) 2021-07-12 14:05:01 +07: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 feat(client): ts-migrate layoutSelector component (#42748) 2021-07-12 14:05:01 +07:00
gatsby-config.js fix: only generate bundle stats during CI (#42094) 2021-05-11 15:59:44 +05:30
gatsby-node.js feat(curriculum): add relational databases cert as upcoming change (#41658) 2021-06-15 16:37:13 +01:00
gatsby-ssr.js feat(client): ts-migrate layoutSelector component (#42748) 2021-07-12 14:05:01 +07:00
package-lock.json fix(deps): update dependency react-i18next to v11.11.2 2021-07-14 10:54:46 +00:00
package.json fix(deps): update dependency react-i18next to v11.11.2 2021-07-14 10:54:46 +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 feat: use webpack caching in development (#42286) 2021-05-30 08:59:55 +01:00