From 8767adc505af3f7554d1003e149d6af89a7cb2e2 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Fri, 10 Nov 2017 23:39:51 +0000 Subject: [PATCH] New discussion button. Discussion highlighter. --- index.html | 1 - src/components/App.vue | 8 - src/components/Editor.vue | 47 +++- src/components/ExplorerNode.vue | 6 +- src/components/FindReplace.vue | 31 +-- src/components/Layout.vue | 24 +- src/components/Modal.vue | 4 +- src/components/NavigationBar.vue | 14 +- src/components/Preview.vue | 42 +++ src/components/StatusBar.vue | 7 +- src/components/Toc.vue | 3 +- src/components/UserImage.vue | 2 +- src/components/common/EditorClassApplier.js | 23 +- src/components/common/PreviewClassApplier.js | 65 +++++ src/components/common/app.scss | 54 ++++ .../common/markdownHighlighting.scss | 6 +- src/components/common/variables.scss | 4 +- .../EditorNewDiscussionButtonGutter.vue | 56 ++++ .../PreviewNewDiscussionButtonGutter.vue | 71 +++++ .../modals/providers/GooglePhotoModal.vue | 2 +- src/icons/Message.vue | 5 + src/icons/index.js | 2 + src/libs/cleditCore.js | 10 + src/services/diffUtils.js | 10 +- src/services/editorEngineSvc.js | 167 ------------ src/services/editorSvc.js | 207 +++----------- src/services/editorSvcDiscussions.js | 257 ++++++++++++++++++ src/services/editorSvcUtils.js | 129 +++++++++ src/services/optional/keystrokes.js | 7 +- src/services/optional/shortcuts.js | 7 +- src/store/{modules => }/content.js | 4 +- src/store/{modules => }/contentState.js | 2 +- src/store/{modules => }/data.js | 14 +- src/store/discussion.js | 51 ++++ src/store/{modules => }/explorer.js | 4 +- src/store/{modules => }/file.js | 2 +- src/store/{modules => }/findReplace.js | 0 src/store/{modules => }/folder.js | 2 +- src/store/index.js | 66 ++--- src/store/{modules => }/layout.js | 38 ++- src/store/{modules => }/modal.js | 0 src/store/{modules => }/moduleTemplate.js | 2 +- src/store/{modules => }/notification.js | 0 src/store/{modules => }/publishLocation.js | 4 +- src/store/{modules => }/queue.js | 0 src/store/{modules => }/syncLocation.js | 4 +- src/store/{modules => }/syncedContent.js | 2 +- src/store/{modules => }/userInfo.js | 0 48 files changed, 982 insertions(+), 484 deletions(-) create mode 100644 src/components/common/PreviewClassApplier.js create mode 100644 src/components/gutters/EditorNewDiscussionButtonGutter.vue create mode 100644 src/components/gutters/PreviewNewDiscussionButtonGutter.vue create mode 100644 src/icons/Message.vue delete mode 100644 src/services/editorEngineSvc.js create mode 100644 src/services/editorSvcDiscussions.js create mode 100644 src/services/editorSvcUtils.js rename src/store/{modules => }/content.js (86%) rename src/store/{modules => }/contentState.js (90%) rename src/store/{modules => }/data.js (94%) create mode 100644 src/store/discussion.js rename src/store/{modules => }/explorer.js (98%) rename src/store/{modules => }/file.js (94%) rename src/store/{modules => }/findReplace.js (100%) rename src/store/{modules => }/folder.js (71%) rename src/store/{modules => }/layout.js (79%) rename src/store/{modules => }/modal.js (100%) rename src/store/{modules => }/moduleTemplate.js (96%) rename src/store/{modules => }/notification.js (100%) rename src/store/{modules => }/publishLocation.js (88%) rename src/store/{modules => }/queue.js (100%) rename src/store/{modules => }/syncLocation.js (88%) rename src/store/{modules => }/syncedContent.js (85%) rename src/store/{modules => }/userInfo.js (100%) diff --git a/index.html b/index.html index d87fb168..2fbca80a 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,5 @@
- diff --git a/src/components/App.vue b/src/components/App.vue index 9d6434ef..52d41155 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -68,12 +68,4 @@ export default { diff --git a/src/components/Editor.vue b/src/components/Editor.vue index efb078ac..712631ae 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -1,14 +1,19 @@ @@ -47,11 +89,6 @@ export default { font-family: inherit; } - .discussion-highlight, - .find-replace-highlight { - background-color: transparentize(#ffe400, 0.5); - } - .hide { display: none; } diff --git a/src/components/ExplorerNode.vue b/src/components/ExplorerNode.vue index 01f20da7..a41f317f 100644 --- a/src/components/ExplorerNode.vue +++ b/src/components/ExplorerNode.vue @@ -1,15 +1,15 @@ diff --git a/src/components/StatusBar.vue b/src/components/StatusBar.vue index 7e27667a..5fe4d874 100644 --- a/src/components/StatusBar.vue +++ b/src/components/StatusBar.vue @@ -25,7 +25,6 @@ diff --git a/src/components/gutters/PreviewNewDiscussionButtonGutter.vue b/src/components/gutters/PreviewNewDiscussionButtonGutter.vue new file mode 100644 index 00000000..fb1c1421 --- /dev/null +++ b/src/components/gutters/PreviewNewDiscussionButtonGutter.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/components/modals/providers/GooglePhotoModal.vue b/src/components/modals/providers/GooglePhotoModal.vue index dcdaa3dd..d495f894 100644 --- a/src/components/modals/providers/GooglePhotoModal.vue +++ b/src/components/modals/providers/GooglePhotoModal.vue @@ -1,7 +1,7 @@