Skip to content

Commit

Permalink
Convert rocketchat-message-attachments to main module structure (#12760)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 3, 2018
1 parent b0259b1 commit 2cc9d27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-message-attachments/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import './stylesheets/messageAttachments.css';
import './messageAttachment.html';
import './messageAttachment';
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 2 additions & 6 deletions packages/rocketchat-message-attachments/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 2cc9d27

Please sign in to comment.