index.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import './shared/constants.js';
  2. import advancedFormat from 'dayjs/plugin/advancedFormat';
  3. import api from './shared/api/index.js';
  4. import _converse from './shared/_converse';
  5. import dayjs from 'dayjs';
  6. import i18n from './shared/i18n';
  7. import { converse } from './shared/api/public.js';
  8. _converse.api = api;
  9. dayjs.extend(advancedFormat);
  10. /* START: Removable components
  11. * --------------------
  12. * Any of the following components may be removed if they're not needed.
  13. */
  14. import "./plugins/bookmarks/index.js"; // XEP-0199 XMPP Ping
  15. import "./plugins/bosh.js"; // XEP-0206 BOSH
  16. import "./plugins/caps/index.js"; // XEP-0115 Entity Capabilities
  17. import "./plugins/chat/index.js"; // RFC-6121 Instant messaging
  18. import "./plugins/chatboxes/index.js";
  19. import "./plugins/disco/index.js"; // XEP-0030 Service discovery
  20. import "./plugins/adhoc/index.js"; // XEP-0050 Ad Hoc Commands
  21. import "./plugins/headlines/index.js"; // Support for headline messages
  22. import "./plugins/mam/index.js"; // XEP-0313 Message Archive Management
  23. import "./plugins/muc/index.js"; // XEP-0045 Multi-user chat
  24. import "./plugins/ping/index.js"; // XEP-0199 XMPP Ping
  25. import "./plugins/pubsub.js"; // XEP-0060 Pubsub
  26. import "./plugins/roster/index.js"; // RFC-6121 Contacts Roster
  27. import "./plugins/smacks/index.js"; // XEP-0198 Stream Management
  28. import "./plugins/status/index.js";
  29. import "./plugins/vcard/index.js"; // XEP-0054 VCard-temp
  30. /* END: Removable components */
  31. import log from './log.js';
  32. export { api, converse, _converse, i18n, log };
  33. export default converse;