2016-02-26 19:23:23 +01:00
|
|
|
/*global jQuery, _, moment, Strophe, $build, $iq, $msg, $pres, SHA1, Base64, MD5, DSA, OTR */
|
2016-02-26 18:28:18 +01:00
|
|
|
define('jquery', [], function () { return jQuery; });
|
|
|
|
define('jquery.browser', [], function () { return jQuery; });
|
|
|
|
define('typeahead', [], function () { return jQuery; });
|
|
|
|
define('underscore', [], function () { return _; });
|
|
|
|
define('moment_with_locales', [], function () { return moment; });
|
|
|
|
define('strophe', [], function () {
|
|
|
|
return {
|
|
|
|
'Strophe': Strophe,
|
|
|
|
'$build': $build,
|
|
|
|
'$iq': $iq,
|
|
|
|
'$msg': $msg,
|
|
|
|
'$pres': $pres,
|
|
|
|
'SHA1': SHA1,
|
|
|
|
'Base64': Base64,
|
|
|
|
'MD5': MD5,
|
|
|
|
'b64_hmac_sha1': SHA1.b64_hmac_sha1,
|
|
|
|
'b64_sha1': SHA1.b64_sha1,
|
|
|
|
'str_hmac_sha1': SHA1.str_hmac_sha1,
|
|
|
|
'str_sha1': SHA1.str_sha1
|
|
|
|
};
|
|
|
|
});
|
2016-02-27 17:16:04 +01:00
|
|
|
var strophePlugin = function () { return Strophe; };
|
|
|
|
var emptyFunction = function () { };
|
|
|
|
define('strophe.disco', ['strophe'], strophePlugin);
|
|
|
|
define('strophe.ping', ['strophe'], strophePlugin);
|
|
|
|
define('strophe.rsm', ['strophe'], strophePlugin);
|
|
|
|
define('strophe.vcard', ['strophe'], strophePlugin);
|
|
|
|
define('backbone', [], emptyFunction);
|
|
|
|
define('backbone.browserStorage', ['backbone'], emptyFunction);
|
|
|
|
define('backbone.overview', ['backbone'], emptyFunction);
|
2016-02-26 18:28:18 +01:00
|
|
|
define('otr', [], function () { return { 'DSA': DSA, 'OTR': OTR };});
|
2016-02-28 01:53:44 +01:00
|
|
|
define("locales", [], emptyFunction);
|