From 325cebbd0139ef7028b00c712b130c5f12019826 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Tue, 17 Mar 2026 07:04:58 -0400 Subject: [PATCH] feat: CodeMirror 6 inline editor with dark theme and language detection Add EditorWindow component with CodeMirror 6 using one-dark theme. Detects language from file extension (js/ts/jsx/tsx, json, py, md) via dynamic imports for code splitting. Features unsaved changes indicator (yellow dot), Save button (TODO: SFTPService.WriteFile), and Close button. Renders as an inline panel above the terminal. File clicks in FileTree open the editor with mock content. Editor re-creates when file path changes. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/editor/EditorWindow.vue | 229 ++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 frontend/src/components/editor/EditorWindow.vue diff --git a/frontend/src/components/editor/EditorWindow.vue b/frontend/src/components/editor/EditorWindow.vue new file mode 100644 index 0000000..0f6776b --- /dev/null +++ b/frontend/src/components/editor/EditorWindow.vue @@ -0,0 +1,229 @@ + + +