320:5d464090cea7
Anton Shestakov <av6@dwimlabs.net>, Sat, 14 Jul 2018 19:36:58 +0800
calls: use rivets more aka the most important shortcut

previous change 308:bb6186df3db5

coffee/tram.coffee

Permissions: -rw-r--r--

Other formats: Feeds:
window.Tram =
info:
client: 'Tram IM'
version: '0.1'
url: 'https://bitbucket.org/av6/tram-im'
NS:
PRIVATE: 'tram-im:private'
WEBRTC: 'tram-im:webrtc'
config:
domain: location.hostname
connectionURL: "wss://#{ location.host }/xmpp-websocket"
connectionParameters: {}
iceServers: [{
urls: 'stun:stun.services.mozilla.com'
}, {
urls: 'stun:stun.l.google.com:19302'
}]
iqTimeout: 5000
inactiveTime: 60 * 1000
colors:
show:
chat: '#a959c5'
online: '#8cc14c'
away: '#faa732'
xa: '#da314b'
offline: '#777'
default: '#00a8e6'
avatar: [
'#f75782',
'#d27b2b',
'#a5902b',
'#759d2b',
'#2da46b',
'#2fa196',
'#319db4',
'#4292f4',
'#c16af4',
'#f545cd'
]
class window.Tram.ServerInfo extends Backbone.Model
class window.Tram.ClientState extends Backbone.Model
defaults:
show: 'offline'
csi: 'active'
class window.Tram.ClientSettings extends Backbone.Model
defaults:
chatstates: true