xmpp.chapril.org-conversejs/src/headless
JC Brand c3933426b9 Refactor checkFileTypes
- Don't check the protocol in `checkFileTypes`, it should be doing one
    thing only, and that is check whether the URL ends with a particular
    file extension.
- Raise an error when a URI object can't be created from the passed in URL

Adds new function `isAllowedProtocolForMedia` which checks whether the
URL points to a file on the file system (`file:`), is in a Chrome
extension or uses HTTPs.

Use that in `shouldRenderMediaFromURL` to filter out URLs that shouldn't
be rendered.

Re-add utility methods to the `u` object so that 3rd party plugins can
use them.
2022-03-29 19:41:16 +02:00
..
plugins Handle 'forbidden' MUC errors with type 'cancel' and add fallthrough 2022-03-29 10:36:32 +02:00
shared Updates #2849 2022-03-22 23:12:45 +01:00
tests Stop using this in tests. 2022-03-09 12:44:49 +01:00
utils Refactor checkFileTypes 2022-03-29 19:41:16 +02:00
core.js Refactor the login form 2022-03-24 23:15:30 +01:00
headless.js Split vcard plugin up into multiple files 2021-11-19 13:42:59 +01:00
log.js Work on turning chat views into custom elements 2021-02-09 15:48:21 +01:00
package-lock.json Remove and recreate lockfiles 2022-02-28 13:34:40 +01:00
package.json Update to latest Skeletor 2022-02-28 10:37:58 +01:00
README.md Fixes #1961 2020-04-13 11:45:02 +02:00

Converse Headless

Converse has a special build called the headless build.

You can generate it yourself by running make src/headless/dist/converse-headless.js in the root of the converse.js repo.

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.