From e039e16b2a50f22a3c27cd62b975f6b74c779bb2 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Fri, 11 Mar 2022 10:21:43 +0200
Subject: [PATCH] new matching files

---
 wax-prosemirror-services/index.js             |  3 +++
 .../src/MatchingService/MatchingQuestion.js   | 24 +++++++++++++++++++
 .../src/MatchingService/MatchingService.js    | 14 +++++++++++
 .../MatchingToolGroupService/Matching.js      | 13 ++++++++++
 .../MatchingToolGroupService.js               | 10 ++++++++
 5 files changed, 64 insertions(+)
 create mode 100644 wax-prosemirror-services/src/MatchingService/MatchingQuestion.js
 create mode 100644 wax-prosemirror-services/src/MatchingService/MatchingService.js
 create mode 100644 wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/Matching.js
 create mode 100644 wax-prosemirror-services/src/WaxToolGroups/MatchingToolGroupService/MatchingToolGroupService.js

diff --git a/wax-prosemirror-services/index.js b/wax-prosemirror-services/index.js
index d6ad74108..c368f865b 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 000000000..4c062ab2f
--- /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 000000000..2106442c4
--- /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 000000000..3671ef6fd
--- /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 000000000..750c35e99
--- /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;
-- 
GitLab