mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-12-23 16:18:48 -05:00
Graduate to using stanza.io from npm
This commit is contained in:
parent
649fa83cce
commit
be071ec8d2
@ -1,9 +1,11 @@
|
||||
/*global $, app, me, client, XMPP*/
|
||||
/*global $, app, me, client*/
|
||||
"use strict";
|
||||
|
||||
var _ = require('underscore');
|
||||
var async = require('async');
|
||||
var Backbone = require('backbone');
|
||||
var StanzaIO = require('stanza.io');
|
||||
|
||||
var AppState = require('./models/state');
|
||||
var MeModel = require('./models/me');
|
||||
var MainView = require('./views/main');
|
||||
@ -52,7 +54,7 @@ module.exports = {
|
||||
}
|
||||
};
|
||||
|
||||
self.api = window.client = XMPP.createClient(config);
|
||||
self.api = window.client = StanzaIO.createClient(config);
|
||||
xmppEventHandlers(self.api, self);
|
||||
|
||||
self.api.once('session:started', function () {
|
||||
|
@ -1,10 +1,9 @@
|
||||
/*global XMPP, me, app, client*/
|
||||
/*global me, app, client*/
|
||||
"use strict";
|
||||
|
||||
var crypto = XMPP.crypto;
|
||||
|
||||
var _ = require('underscore');
|
||||
var async = require('async');
|
||||
var crypto = require('crypto');
|
||||
var log = require('andlog');
|
||||
var uuid = require('node-uuid');
|
||||
var Contact = require('../models/contact');
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/*global XMPP, app, me, client*/
|
||||
/*global app, me, client*/
|
||||
"use strict";
|
||||
|
||||
var _ = require('underscore');
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*global app, me, XMPP, client, Resample*/
|
||||
/*global app, me, client, Resample*/
|
||||
"use strict";
|
||||
|
||||
var crypto = require('crypto');
|
||||
|
@ -22,7 +22,8 @@
|
||||
"human-view": "1.1.2",
|
||||
"templatizer": "0.1.2",
|
||||
"underscore": "1.5.1",
|
||||
"raf-component": "1.1.1"
|
||||
"raf-component": "1.1.1",
|
||||
"stanza.io": "2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"precommit-hook": "0.3.6"
|
||||
|
@ -20,13 +20,12 @@ app.use(helmet.contentTypeOptions());
|
||||
var clientApp = new Moonboots({
|
||||
main: __dirname + '/clientapp/app.js',
|
||||
templateFile: __dirname + '/clientapp/template.html',
|
||||
developmentMode: config.isDev,
|
||||
//developmentMode: config.isDev,
|
||||
libraries: [
|
||||
__dirname + '/clientapp/libraries/zepto.js',
|
||||
__dirname + '/clientapp/libraries/ui.js',
|
||||
__dirname + '/clientapp/libraries/resampler.js',
|
||||
__dirname + '/clientapp/libraries/IndexedDBShim.min.js',
|
||||
__dirname + '/clientapp/libraries/stanza.io.js'
|
||||
__dirname + '/clientapp/libraries/IndexedDBShim.min.js'
|
||||
],
|
||||
stylesheets: [
|
||||
__dirname + '/public/css/otalk.css'
|
||||
|
Loading…
Reference in New Issue
Block a user