Skip to content
Snippets Groups Projects
Commit 2cc9d27c authored by Marcos Spessatto Defendi's avatar Marcos Spessatto Defendi Committed by Rodrigo Nascimento
Browse files

Convert rocketchat-message-attachments to main module structure (#12760)

parent b0259b14
No related branches found
No related tags found
No related merge requests found
import './stylesheets/messageAttachments.css';
import './messageAttachment.html';
import './messageAttachment';
......@@ -2,13 +2,15 @@ import { Meteor } from 'meteor/meteor';
import { DateFormat } from 'meteor/rocketchat:lib';
import { fixCordova } from 'meteor/rocketchat:lazy-load';
import { Template } from 'meteor/templating';
import { RocketChat } from 'meteor/rocketchat:lib';
import { renderMessageBody } from 'meteor/rocketchat:ui-message';
const colors = {
good: '#35AC19',
warning: '#FCB316',
danger: '#D30230',
};
/* globals renderMessageBody*/
Template.messageAttachment.helpers({
fixCordova,
parsedText() {
......
......@@ -12,11 +12,7 @@ Package.onUse(function(api) {
'rocketchat:lib',
'rocketchat:lazy-load',
'rocketchat:e2e',
'rocketchat:ui-message',
]);
api.addFiles('client/messageAttachment.html', 'client');
api.addFiles('client/messageAttachment.js', 'client');
// stylesheets
api.addFiles('client/stylesheets/messageAttachments.css', 'client');
api.mainModule('client/index.js', 'client');
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment