diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index 57d5107b..8e30f1cb 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -54,6 +54,8 @@ />
@@ -100,44 +102,146 @@ import ObjectiveGroups from '@/components/objective-groups/ObjectiveGroups.vue'; import Chapter from '@/components/Chapter.vue'; import BookmarkActions from '@/components/notes/BookmarkActions.vue'; import Pill from '@/components/ui/Pill.vue'; - +import { + SelectionHandlerType, + SelectionHandlerOptions, + getSelectionHandler, + createHighlightCurry, + markHighlight, +} from '@/helpers/highlight'; +import { onMounted, onUnmounted, ref, watch, computed } from 'vue'; +import { AddHighlightArgument, HighlightNode, ModuleNode } from '@/__generated__/graphql'; +import { graphql } from '@/__generated__'; +import highlightSidebar from '@/helpers/highlight-sidebar'; +import { doUpdateHighlight } from '@/graphql/mutations'; +import Mark from 'mark.js'; +import { useRoute } from 'vue-router'; -