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