1fa203c990
Depend on latest backbone.browserStorage which has support for IndexedDB via localforage. Storage operations are now asynchronous and transactional. Bugs fixed (mostly by waiting for operations to complete): * Rooms are now fetched asynchronously, so wait before triggering `show` or when closing. * Make sure chat create/update transactions complete before firing events * Make sure chats and messages have been fetched before creating new ones. * When doing a `fetch` with `wait: false` on a collection and then creating a model in that collection, then once the read operation finishes (after creating the model), the collection is emptied again. * Patch and wait when saving. Otherwise we have previously set attributes overriding later ones. * Make sure api.roomviews.close returns a promise Test fixes: * Chats are now asynchronously returned, so we need to use `await` * Wait for the storage transaction to complete when creating and updating messages * Wait for all chatboxes to close Otherwise we get sessionStorage inconsistencies due to the async nature of localforage. * Wait for room views to close in spec/chatroom.js In the process, remove the `closeAllChatBoxes` override in converse-controlbox by letting the `close` method decide whether it should be closed or not. |
||
---|---|---|
.. | ||
templates | ||
utils | ||
converse-bookmarks.js | ||
converse-bosh.js | ||
converse-caps.js | ||
converse-chatboxes.js | ||
converse-core.js | ||
converse-disco.js | ||
converse-emoji.js | ||
converse-mam.js | ||
converse-muc.js | ||
converse-ping.js | ||
converse-pubsub.js | ||
converse-roster.js | ||
converse-rsm.js | ||
converse-smacks.js | ||
converse-status.js | ||
converse-vcard.js | ||
emojis.json | ||
headless.js | ||
i18n.js | ||
lodash.noconflict.js | ||
package-lock.json | ||
package.json | ||
polyfill.js | ||
README.md |
Converse Headless
Converse has a special build called the headless build.
You can generate it yourself by running make dist/converse-headless.js
The headless build is a bundle of all the non-UI parts of Converse, and its aim is to provide you with an XMPP library (and application) on which you can build your own UI.
It's also installable with NPM/Yarn as @converse/headless.
The main distribution of Converse relies on the headless build.
The file src/headless/headless.js is used to determine which plugins are included in the build.