2016-02-27 17:16:04 +01:00
|
|
|
/* Converse.js components configuration
|
2016-02-16 08:46:47 +01:00
|
|
|
*
|
|
|
|
* This file is used to tell require.js which components (or plugins) to load
|
|
|
|
* when it generates a build.
|
|
|
|
*/
|
2017-01-26 15:49:02 +01:00
|
|
|
/*global define */
|
2016-07-26 09:52:55 +02:00
|
|
|
|
2016-03-07 17:35:08 +01:00
|
|
|
if (typeof define !== 'undefined') {
|
|
|
|
/* When running tests, define is not defined. */
|
|
|
|
define("converse", [
|
|
|
|
"converse-api",
|
2016-02-20 16:06:12 +01:00
|
|
|
|
2016-03-07 17:35:08 +01:00
|
|
|
/* START: Removable components
|
2017-01-20 10:18:18 +01:00
|
|
|
* --------------------
|
|
|
|
* Any of the following components may be removed if they're not needed.
|
|
|
|
*/
|
2016-03-07 17:35:08 +01:00
|
|
|
"locales", // Translations for converse.js. This line can be removed
|
|
|
|
// to remove *all* translations, or you can modify the
|
|
|
|
// file src/locales.js to include only those
|
|
|
|
// translations that you care about.
|
|
|
|
|
2016-03-13 17:16:53 +01:00
|
|
|
"converse-chatview", // Renders standalone chat boxes for single user chat
|
2016-06-09 11:01:54 +02:00
|
|
|
"converse-controlbox", // The control box
|
2016-06-27 23:50:38 +02:00
|
|
|
"converse-bookmarks", // XEP-0048 Bookmarks
|
2016-03-16 12:16:32 +01:00
|
|
|
"converse-mam", // XEP-0313 Message Archive Management
|
2016-03-07 17:35:08 +01:00
|
|
|
"converse-muc", // XEP-0045 Multi-user chat
|
2016-03-16 12:16:32 +01:00
|
|
|
"converse-vcard", // XEP-0054 VCard-temp
|
2016-03-07 17:35:08 +01:00
|
|
|
"converse-otr", // Off-the-record encryption for one-on-one messages
|
|
|
|
"converse-register", // XEP-0077 In-band registration
|
|
|
|
"converse-ping", // XEP-0199 XMPP Ping
|
|
|
|
"converse-notification",// HTML5 Notifications
|
2016-03-14 17:04:27 +01:00
|
|
|
"converse-minimize", // Allows chat boxes to be minimized
|
2016-04-01 14:46:19 +02:00
|
|
|
"converse-dragresize", // Allows chat boxes to be resized by dragging them
|
2016-03-09 09:14:09 +01:00
|
|
|
"converse-headline", // Support for headline messages
|
2016-03-07 17:35:08 +01:00
|
|
|
/* END: Removable components */
|
|
|
|
|
2016-12-20 11:42:20 +01:00
|
|
|
], function(converse) {
|
|
|
|
converse.env.jQuery(window).trigger('converse-loaded', converse);
|
|
|
|
window.converse = converse;
|
|
|
|
return converse;
|
2016-03-07 17:35:08 +01:00
|
|
|
});
|
|
|
|
}
|