Нет описания

dependabot-preview[bot] 332ceb4e9d Upgrade to GitHub-native Dependabot 4 лет назад
.github 332ceb4e9d Upgrade to GitHub-native Dependabot 4 лет назад
dist 15e2ff27ac upgrade dist folder to 7.0.5 for plugins demo 4 лет назад
logo 0e6e2401d2 add logo folder for demo 4 лет назад
packages b5598af9d6 download-dialog: update dependencies 4 лет назад
.eslintrc.json ef59f70605 New plugin: muc-presence-probe 5 лет назад
.gitignore 972cd6d12b Add lerna, http-server and a Makefile 5 лет назад
LICENSE.txt eb89e63c6d Add README, LICENSE and package.json 7 лет назад
Makefile 2d408e7eb9 Remove Lerna 4 лет назад
README.md d23d890a5c Mention move to Lerna in the readme 5 лет назад
_config.yml 22eb87c802 Set theme jekyll-theme-cayman 5 лет назад
favicon.ico a55a5976b6 Enabled at https://conversejs.github.io/community-plugins/ 5 лет назад
index.html 1b044771bf fix connection error 4 лет назад
lerna.json 972cd6d12b Add lerna, http-server and a Makefile 5 лет назад
package-lock.json 53b095d5aa Merge pull request #68 from conversejs/dependabot/npm_and_yarn/lerna-3.22.1 4 лет назад
package.json 2d408e7eb9 Remove Lerna 4 лет назад
serviceworker.js 2a54af4c39 use self object to persist xmppjs connection 4 лет назад

README.md

Converse.js Community Plugins

This repo contains community contributed plugins, not included in the core of Converse.js.

To see a demo of all the plugins working, click here

Creating a plugin

To create a new plugin, use generator-converse, which is a Yeoman generator.

Install Yeoman and the generator:

npm install -g yo generator-conversejs

Then, to create a new plugin, run the following:

$ yo conversejs my-sexy-plugin

Where my-sexy-plugin should be replaced with the name of your plugin.

Adding a plugin to the repo here for general use

Simple raise a PR with your new plugin. Please make sure you do the following first

  • Create a subfolder for your plugin and copy all your files in there. Please include a screenshot of the plugin working in converse.
  • Edit index.html, add your plugin to the index page. Comit your changes and make sure it works from the demo web site at https://conversejs.github.io/community-plugins/.

Enabling a plugin in Converse

Before a plugin can be used, it needs to be whitelisted when you call converse.initialize.

converse.initialize({
    whitelisted_plugins: ['my-sexy-plugin'],
});

TODO: Moving plugins to Lerna

We've started using Lerna to manage the plugin packages.

For older plugins, the following needs to be done:

  • Move it to the ./packages/ directory
  • Add a package.json and give it a name in the form @converse-plugins/name