From 29fe6430ce583da460c522edf9979017974f957a Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Tue, 4 Nov 2025 13:12:56 -0600 Subject: [PATCH] Move codeEditor to components directory This simply moves the codeEditor folder to the components directory. `codeEditor.jsx` simply builds a component which is then used elsewhere, and isn't shared between client and server, so it should be in the client directory. Arguably it could go in `client/homebrew/editor` but I think the `/homebrew/` folder should be eliminated down the line and it's contents just re-sorted. When working on the editor right now it's a pain to switch between `shared` and `client` hunting for the right file. --- .../components}/codeEditor/autocompleteEmoji.js | 0 .../naturalcrit => client/components}/codeEditor/close-tag.js | 0 .../naturalcrit => client/components}/codeEditor/codeEditor.jsx | 0 .../components}/codeEditor/codeEditor.less | 0 .../naturalcrit => client/components}/codeEditor/fold-css.js | 0 .../naturalcrit => client/components}/codeEditor/fold-pages.js | 0 client/homebrew/editor/editor.jsx | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) rename {shared/naturalcrit => client/components}/codeEditor/autocompleteEmoji.js (100%) rename {shared/naturalcrit => client/components}/codeEditor/close-tag.js (100%) rename {shared/naturalcrit => client/components}/codeEditor/codeEditor.jsx (100%) rename {shared/naturalcrit => client/components}/codeEditor/codeEditor.less (100%) rename {shared/naturalcrit => client/components}/codeEditor/fold-css.js (100%) rename {shared/naturalcrit => client/components}/codeEditor/fold-pages.js (100%) diff --git a/shared/naturalcrit/codeEditor/autocompleteEmoji.js b/client/components/codeEditor/autocompleteEmoji.js similarity index 100% rename from shared/naturalcrit/codeEditor/autocompleteEmoji.js rename to client/components/codeEditor/autocompleteEmoji.js diff --git a/shared/naturalcrit/codeEditor/close-tag.js b/client/components/codeEditor/close-tag.js similarity index 100% rename from shared/naturalcrit/codeEditor/close-tag.js rename to client/components/codeEditor/close-tag.js diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx similarity index 100% rename from shared/naturalcrit/codeEditor/codeEditor.jsx rename to client/components/codeEditor/codeEditor.jsx diff --git a/shared/naturalcrit/codeEditor/codeEditor.less b/client/components/codeEditor/codeEditor.less similarity index 100% rename from shared/naturalcrit/codeEditor/codeEditor.less rename to client/components/codeEditor/codeEditor.less diff --git a/shared/naturalcrit/codeEditor/fold-css.js b/client/components/codeEditor/fold-css.js similarity index 100% rename from shared/naturalcrit/codeEditor/fold-css.js rename to client/components/codeEditor/fold-css.js diff --git a/shared/naturalcrit/codeEditor/fold-pages.js b/client/components/codeEditor/fold-pages.js similarity index 100% rename from shared/naturalcrit/codeEditor/fold-pages.js rename to client/components/codeEditor/fold-pages.js diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index d6fdf3f08..d7a037b97 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -6,7 +6,7 @@ const _ = require('lodash'); const dedent = require('dedent-tabs').default; import Markdown from '../../../shared/naturalcrit/markdown.js'; -const CodeEditor = require('naturalcrit/codeEditor/codeEditor.jsx'); +const CodeEditor = require('client/components/codeEditor/codeEditor.jsx'); const SnippetBar = require('./snippetbar/snippetbar.jsx'); const MetadataEditor = require('./metadataEditor/metadataEditor.jsx');