From: Matthias Schmidt Date: Mon, 5 Jul 2021 11:52:08 +0000 (+0200) Subject: Add `Ui/Message/Quote` X-Git-Tag: 5.5.0_Alpha_1~56^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f14a9f64779d30a816c64f453aeec4a0bdeb5e86;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Add `Ui/Message/Quote` --- 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 index 0000000..3139f42 --- /dev/null +++ b/files/js/WoltLabSuite/Core/Conversation/Ui/Message/Quote.js @@ -0,0 +1,21 @@ +/** + * Quote manager for conversation messages. + * + * @author Matthias Schmidt + * @copyright 2001-2021 WoltLab GmbH + * @license GNU Lesser General Public License + * @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 index 0000000..740f026 --- /dev/null +++ b/ts/WoltLabSuite/Core/Conversation/Ui/Message/Quote.ts @@ -0,0 +1,27 @@ +/** + * Quote manager for conversation messages. + * + * @author Matthias Schmidt + * @copyright 2001-2021 WoltLab GmbH + * @license GNU Lesser General Public License + * @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;