Add `Ui/Message/Quote`
authorMatthias Schmidt <gravatronics@live.com>
Mon, 5 Jul 2021 11:52:08 +0000 (13:52 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 5 Jul 2021 11:52:08 +0000 (13:52 +0200)
files/js/WoltLabSuite/Core/Conversation/Ui/Message/Quote.js [new file with mode: 0644]
ts/WoltLabSuite/Core/Conversation/Ui/Message/Quote.ts [new file with mode: 0644]

diff --git a/files/js/WoltLabSuite/Core/Conversation/Ui/Message/Quote.js b/files/js/WoltLabSuite/Core/Conversation/Ui/Message/Quote.js
new file mode 100644 (file)
index 0000000..3139f42
--- /dev/null
@@ -0,0 +1,21 @@
+/**
+ * Quote manager for conversation messages.
+ *
+ * @author  Matthias Schmidt
+ * @copyright 2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module  WoltLabSuite/Core/Conversation/Ui/Message/Quote
+ * @woltlabExcludeBundle tiny
+ */
+define(["require", "exports", "WoltLabSuite/Core/Ui/Message/Quote"], function (require, exports, Quote_1) {
+    "use strict";
+    Object.defineProperty(exports, "__esModule", { value: true });
+    exports.UiConversationMessageQuote = void 0;
+    class UiConversationMessageQuote extends Quote_1.UiMessageQuote {
+        constructor(quoteManager) {
+            super(quoteManager, "wcf\\data\\conversation\\message\\ConversationMessageAction", "com.woltlab.wcf.conversation.message", ".message", ".messageBody", ".messageBody > div > div.messageText", true);
+        }
+    }
+    exports.UiConversationMessageQuote = UiConversationMessageQuote;
+    exports.default = UiConversationMessageQuote;
+});
diff --git a/ts/WoltLabSuite/Core/Conversation/Ui/Message/Quote.ts b/ts/WoltLabSuite/Core/Conversation/Ui/Message/Quote.ts
new file mode 100644 (file)
index 0000000..740f026
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+ * Quote manager for conversation messages.
+ *
+ * @author  Matthias Schmidt
+ * @copyright 2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module  WoltLabSuite/Core/Conversation/Ui/Message/Quote
+ * @woltlabExcludeBundle tiny
+ */
+
+import { UiMessageQuote, WCFMessageQuoteManager } from "WoltLabSuite/Core/Ui/Message/Quote";
+
+export class UiConversationMessageQuote extends UiMessageQuote {
+  constructor(quoteManager: WCFMessageQuoteManager) {
+    super(
+      quoteManager,
+      "wcf\\data\\conversation\\message\\ConversationMessageAction",
+      "com.woltlab.wcf.conversation.message",
+      ".message",
+      ".messageBody",
+      ".messageBody > div > div.messageText",
+      true,
+    );
+  }
+}
+
+export default UiConversationMessageQuote;