--- a/coffee/contacts.coffee Wed Apr 06 21:03:36 2016 +0800
+++ b/coffee/contacts.coffee Wed Apr 06 20:49:51 2016 +0800
template: $('#contact-template').html()
+ 'click [data-chat]': -> @model.trigger('chat')
'click [data-authorize]': -> @model.trigger('authorize')
'click [data-unauthorize]': -> @model.trigger('unauthorize')
'click [data-call]': (event) -> @model.trigger('call', event.currentTarget.getAttribute('data-call'))
--- a/coffee/index.coffee Wed Apr 06 21:03:36 2016 +0800
+++ b/coffee/index.coffee Wed Apr 06 20:49:51 2016 +0800
window.contacts ?= new Tram.Contacts()
window.contactsApp ?= new Tram.ContactsApp(el: $('[data-app="contacts"]'), collection: contacts)
-window.messages ?= new Tram.Messages()
-window.logApp ?= new Tram.LogApp(el: $('[data-app="log"]'), collection: messages)
window.calls ?= new Tram.Calls()
window.callsApp ?= new Tram.CallsApp(el: $('[data-app="calls"]'), collection: calls)
window.clientState ?= new Tram.ClientState()
window.faviconApp ?= new Tram.FaviconApp(model: clientState)
window.sidebarApp ?= new Tram.SidebarApp(el: $('[data-app="sidebar"]'), model: clientState)
contacts.on 'change:show', (model) ->
X.disconnect('Logged out')
+clientState.on 'change:contact', ->
+ contact = clientState.get('contact')
+ $logs = $('[data-app="logs"]')
+ $logs.children().detach()
+ $logs.append(contact.chat.render().el)
X.conn.addHandler(onPresence, null, 'presence')
X.conn.addHandler(onProfileUpdate, Strophe.NS.VCARD_UPDATE, 'presence')
+ chats[jid] ?= new Tram.LogApp(collection: new Tram.Messages())
contact = contacts.get(from)
model.set('type', 'contact')
+ bjid = Strophe.getBareJidFromJid(from)
- bjid: Strophe.getBareJidFromJid(from)
type: if self then 'self' else 'contact'
+ contact.chat = getChat(bjid)
+ clientState.set('contact', contact)
contact.on 'authorize', ->
X.conn.roster.authorize(contact.get('bjid'))
delay = stanza.getElementsByTagName('delay')[0]
stamp = if delay? then new Date(delay.getAttribute('stamp')) else new Date()
+ contact.chat.collection.add
id: stanza.getAttribute('id')
contact.set('callstate', 'incoming')
+ contact.chat.collection.add
id: stanza.getAttribute('id')
--- a/index.html Wed Apr 06 21:03:36 2016 +0800
+++ b/index.html Wed Apr 06 20:49:51 2016 +0800
<div class="uk-width-xlarge-3-4 uk-width-large-2-3 uk-width-medium-1-2">
- <div class="log" data-app="log"></div>
+ <div data-app="logs"></div>
<button type="button" class="uk-button uk-button-danger" data-hang-up rv-if="model:d/actions | has 'hang-up'">
<i class="uk-icon-phone"></i> Hang up
+ <button type="button" class="uk-button" data-chat>
+ <i class="uk-icon-comments-o"></i>
<div class="uk-button-dropdown" data-uk-dropdown="{mode:'click',pos:'bottom-right'}" rv-if="model:d/actions | has 'remove'">
<button class="uk-button"><i class="uk-icon-caret-down"></i></button>
<div class="uk-dropdown uk-dropdown-small">
--- a/js/contacts.js Wed Apr 06 21:03:36 2016 +0800
+++ b/js/contacts.js Wed Apr 06 20:49:51 2016 +0800
ContactView.prototype.colors = Tram.colors.show;
ContactView.prototype.events = {
+ 'click [data-chat]': function() {
+ return this.model.trigger('chat');
'click [data-authorize]': function() {
return this.model.trigger('authorize');
--- a/js/contacts.js.map Wed Apr 06 21:03:36 2016 +0800
+++ b/js/contacts.js.map Wed Apr 06 20:49:51 2016 +0800
- "mappings": ";AAAA;AAAA,MAAA;;;;EAAM,IAAI,CAAC;;;;;;;sBACT,WAAA,GAAa;;sBACb,YAAA,GAAc;;sBACd,iBAAA,GAAmB;;sBACnB,QAAA,GACE;MAAA,QAAA,EAAU,aAAV;MACA,IAAA,EAAM,SADN;;;sBAGF,UAAA,GAAY,SAAA;MACV,IAAC,CAAA,EAAD,CAAI,mBAAJ,EAAyB,IAAC,CAAA,cAA1B;MAEA,IAAC,CAAA,EAAD,CAAI,iDAAJ,EAAuD,SAAA;eACrD,IAAC,CAAA,GAAD,CAAK,UAAL,EAAiB,IAAC,CAAA,GAAD,CAAK,UAAL,CAAA,IAAoB,IAAC,CAAA,GAAD,CAAK,UAAL,CAApB,IAAwC,IAAC,CAAA,GAAD,CAAK,MAAL,CAAzD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AAb,EADF;OAAA,MAAA;eAGE,IAAC,CAAA,GAAG,CAAC,QAAL,CAAA,CAAe,CAAC,EAAhB,CAAmB,EAAA,GAAK,CAAxB,CAA0B,CAAC,KAA3B,CAAiC,EAAjC,EAHF;;IAJK;;0BASP,QAAA,GAAU,SAAC,KAAD;AACR,UAAA;6CAAU,CAAE,MAAZ,CAAA;IADQ;;0BAGV,MAAA,GAAQ,SAAC,UAAD,EAAa,OAAb;MACN,IAAG,CAAI,OAAO,CAAC,GAAf;eACE,UAAU,CAAC,IAAX,CAAgB,CAAA,SAAA,KAAA;iBAAA,SAAC,KAAD;YACd,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAf,CAAA;mBACA,KAAC,CAAA,GAAG,CAAC,MAAL,CAAY,KAAK,CAAC,IAAI,CAAC,EAAvB;UAFc;QAAA,CAAA,CAAA,CAAA,IAAA,CAAhB,EADF;;IADM;;;;KAlBqB,QAAQ,CAAC;AAzIxC"
\ No newline at end of file
--- a/js/index.js Wed Apr 06 21:03:36 2016 +0800
+++ b/js/index.js Wed Apr 06 20:49:51 2016 +0800
// Generated by CoffeeScript 1.10.0
- var $form, ConnectionData, connectfn, getContact, getContactProfile, getText, getVersion, onConnected, onDisconnected, onGetLast, onGetTime, onGetVersion, onPing, onPresence, onProfileUpdate, onWebRTC,
+ var $form, ConnectionData, connectfn, getChat, getContact, getContactProfile, getText, getVersion, onConnected, onDisconnected, onGetLast, onGetTime, onGetVersion, onPing, onPresence, onProfileUpdate, onWebRTC,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
- if (window.messages == null) {
- window.messages = new Tram.Messages();
- if (window.logApp == null) {
- window.logApp = new Tram.LogApp({
- el: $('[data-app="log"]'),
if (window.calls == null) {
window.calls = new Tram.Calls();
contacts.on('change:show', function(model) {
if (model.get('type') === 'self') {
return clientState.set('show', model.get('show'));
return X.disconnect('Logged out');
+ clientState.on('change:contact', function() {
+ contact = clientState.get('contact');
+ $logs = $('[data-app="logs"]');
+ $logs.children().detach();
+ return $logs.append(contact.chat.render().el);
onConnected = function() {
X.conn.addHandler(onPresence, null, 'presence');
X.conn.addHandler(onProfileUpdate, Strophe.NS.VCARD_UPDATE, 'presence');
+ getChat = function(jid) {
+ return chats[jid] != null ? chats[jid] : chats[jid] = new Tram.LogApp({
+ collection: new Tram.Messages()
getContact = function(from) {
+ var bjid, contact, self;
contact = contacts.get(from);
return model.set('type', 'contact');
+ bjid = Strophe.getBareJidFromJid(from);
- bjid: Strophe.getBareJidFromJid(from),
type: self ? 'self' : 'contact'
+ contact.chat = getChat(bjid);
+ contact.on('chat', function() {
+ return clientState.set('contact', contact);
contact.on('authorize', function() {
return X.conn.roster.authorize(contact.get('bjid'));
if ((type === 'available' || type === 'unavailable') && contact.get('type') !== 'self') {
delay = stanza.getElementsByTagName('delay')[0];
stamp = delay != null ? new Date(delay.getAttribute('stamp')) : new Date();
+ contact.chat.collection.add({
id: stanza.getAttribute('id'),
switch (getText(intent)) {
contact.set('callstate', 'incoming');
+ contact.chat.collection.add({
id: stanza.getAttribute('id'),
--- a/js/index.js.map Wed Apr 06 21:03:36 2016 +0800
+++ b/js/index.js.map Wed Apr 06 20:49:51 2016 +0800
- "mappings": ";AAAA;AAAA,MAAA,oMAAA;IAAA;;;;EAAA,OAAO,CAAC,YAAR,CAAqB,MAArB,EAA6B,gBAA7B;;EACA,OAAO,CAAC,YAAR,CAAqB,MAArB,EAA6B,eAA7B;;EACA,OAAO,CAAC,YAAR,CAAqB,cAArB,EAAqC,qBAArC;;EAGM,MAAM,CAAC,IAAI,CAAC;;;;;;;0BAChB,QAAA,GACE;MAAA,IAAA,EAAM,SAAN;;;0BAEF,KAAA,GAAO,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