|
|
|
@ -4,13 +4,14 @@
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
const DTP_COMPONENT = { logId: 'site-reactions', index: 'siteReactions', className: 'SiteReactions' };
|
|
|
|
|
const dtp = window.dtp = window.dtp || { }; // jshint ignore:line
|
|
|
|
|
|
|
|
|
|
import DtpLog from 'dtp/dtp-log';
|
|
|
|
|
|
|
|
|
|
class Reaction {
|
|
|
|
|
|
|
|
|
|
static get COMPONENT ( ) { return { logId: 'reaction', index: 'reaction', className: 'Reaction' }; }
|
|
|
|
|
|
|
|
|
|
constructor (container, reaction) {
|
|
|
|
|
this.container = container;
|
|
|
|
|
this.reaction = reaction;
|
|
|
|
@ -96,8 +97,10 @@ class Reaction {
|
|
|
|
|
|
|
|
|
|
export default class SiteReactions {
|
|
|
|
|
|
|
|
|
|
static get COMPONENT ( ) { return { logId: 'site-reactions', index: 'siteReactions', className: 'SiteReactions' }; }
|
|
|
|
|
|
|
|
|
|
constructor ( ) {
|
|
|
|
|
this.log = new DtpLog(DTP_COMPONENT);
|
|
|
|
|
this.log = new DtpLog(SiteReactions.COMPONENT);
|
|
|
|
|
|
|
|
|
|
this.container = document.querySelector('#chat-reactions');
|
|
|
|
|
this.reactions = [ ];
|
|
|
|
|