From d57d2bb9697c4cb6b250a81d7c47a3e42adf1d16 Mon Sep 17 00:00:00 2001 From: benweet Date: Sat, 17 Feb 2018 11:18:30 +0000 Subject: [PATCH] cledit refactoring --- src/components/CodeEditor.vue | 2 +- src/components/FindReplace.vue | 2 +- src/components/common/EditorClassApplier.js | 2 +- src/components/common/PreviewClassApplier.js | 2 +- src/components/gutters/NewComment.vue | 2 +- src/services/cledit/cleditCore.js | 56 ++-- src/services/cledit/cleditHighlighter.js | 12 +- src/services/cledit/cleditSelectionMgr.js | 283 ++++++++++--------- src/services/cledit/cleditUndoMgr.js | 246 ++++++++-------- src/services/cledit/cleditUtils.js | 161 ++++++----- src/services/cledit/cleditWatcher.js | 45 +-- src/services/editorSvc.js | 2 +- src/services/editorSvcDiscussions.js | 2 +- src/services/editorSvcUtils.js | 2 +- src/services/optional/keystrokes.js | 2 +- src/store/content.js | 2 +- src/store/index.js | 4 +- 17 files changed, 430 insertions(+), 397 deletions(-) diff --git a/src/components/CodeEditor.vue b/src/components/CodeEditor.vue index 8111faf6..308a5c75 100644 --- a/src/components/CodeEditor.vue +++ b/src/components/CodeEditor.vue @@ -4,7 +4,7 @@