diff --git a/wax-prosemirror-services/index.js b/wax-prosemirror-services/index.js index d6ad74108eff354a1f264b3f361a8af0375f8d98..c368f865b42e13397cfbcd6a3d71b819411d7faa 100644 --- a/wax-prosemirror-services/index.js +++ b/wax-prosemirror-services/index.js @@ -49,6 +49,8 @@ export { default as MultipleChoiceSingleCorrectQuestionService } from './src/Mul export { default as TrueFalseQuestionService } from './src/MultipleChoiceQuestionService/TrueFalseQuestionService/TrueFalseQuestionService'; export { default as FillTheGapQuestionService } from './src/FillTheGapQuestionService/FillTheGapQuestionService'; export { default as EssayService } from './src/EssayService/EssayService'; +export { default as MatchingService } from './src/MatchingService/MatchingService'; + /* ToolGroups */ @@ -77,3 +79,4 @@ export { default as MultipleChoiceToolGroupService } from './src/WaxToolGroups/M export { default as FillTheGapToolGroupService } from './src/WaxToolGroups/FillTheGapToolGroupService/FillTheGapToolGroupService'; export { default as MultipleDropDownToolGroupService } from './src/WaxToolGroups/MultipleDropDownToolGroupService/MultipleDropDownToolGroupService'; export { default as EssayToolGroupService } from './src/WaxToolGroups/EssayToolGroupService/EssayToolGroupService'; +export { default as MatchingToolGroupService } from './src/WaxToolGroups/MatchingToolGroupService/MatchingToolGroupService'; diff --git a/wax-prosemirror-services/src/MatchingService/MatchingQuestion.js b/wax-prosemirror-services/src/MatchingService/MatchingQuestion.js new file mode 100644 index 0000000000000000000000000000000000000000..4c062ab2f2f1328d7fb3ed418591c1ef0dfdab5b --- /dev/null +++ b/wax-prosemirror-services/src/MatchingService/MatchingQuestion.js @@ -0,0 +1,24 @@ +import { injectable } from 'inversify'; +import Tools from '../../lib/Tools'; + +@injectable() +class MatchingQuestion extends Tools { + title = 'Change to Block Quote'; + label = 'Block Quote'; + name = 'BlockQuote'; + + get run() { + return (state, dispatch) => {}; + } + + select = (state, activeViewId) => {}; + + get active() { + return state => {}; + } + + get enable() { + return state => {}; + } +} +export default MatchingQuestion; diff --git a/wax-prosemirror-services/src/MatchingService/MatchingService.js b/wax-prosemirror-services/src/MatchingService/MatchingService.js new file mode 100644 index 0000000000000000000000000000000000000000..2106442c45d1c7156920094d5e199100b973495c --- /dev/null +++ b/wax-prosemirror-services/src/MatchingService/MatchingService.js @@ -0,0 +1,14 @@ +import Service from '../Service'; +import MatchingQuestion from './MatchingQuestion'; + +class MatchingService extends Service { + name = 'MatchingService'; + + boot() {} + + register() { + this.container.bind('MatchingQuestion').to(MatchingQuestion); + } +} + +export default MatchingService; diff --git a/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/Matching.js b/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/Matching.js new file mode 100644 index 0000000000000000000000000000000000000000..3671ef6fd1318baaca52243ac70b968631969cb4 --- /dev/null +++ b/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/Matching.js @@ -0,0 +1,13 @@ +import { injectable, inject } from 'inversify'; +import ToolGroup from '../../lib/ToolGroup'; + +@injectable() +class Matching extends ToolGroup { + tools = []; + constructor() { + super(); + this.tools = []; + } +} + +export default Matching; diff --git a/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/MatchingToolGroupService.js b/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/MatchingToolGroupService.js new file mode 100644 index 0000000000000000000000000000000000000000..750c35e99506e1ba4da931d2b55d263e40de3d4f --- /dev/null +++ b/wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/MatchingToolGroupService.js @@ -0,0 +1,10 @@ +import Service from '../../Service'; +import Matching from './Matching'; + +class MatchingToolGroupService extends Service { + register() { + this.container.bind('Matching').to(Matching); + } +} + +export default MatchingToolGroupService;