Public repo of the original developers internal version
Go to file
2020-03-22 11:07:41 -04:00
__mocks__ test main chatbox functionality 2020-03-13 00:05:12 -04:00
.circleci fix circleci missing job (#111) 2019-06-14 22:41:30 -04:00
.storybook Storybook (#122) 2019-06-20 20:43:09 -04:00
docs more pics 2020-03-22 01:02:20 -04:00
jest Optional Mount Parameters (#123) 2019-06-20 13:26:02 -04:00
public change bot username to id 2020-03-22 11:07:41 -04:00
src change bot username to id 2020-03-22 11:07:41 -04:00
stories Storybook (#122) 2019-06-20 20:43:09 -04:00
vendor adding cleanslate support for style scoping 2018-06-09 08:43:18 -04:00
.eslintrc Optional Mount Parameters (#123) 2019-06-20 13:26:02 -04:00
.gitignore Storybook (#122) 2019-06-20 20:43:09 -04:00
bookmarklet-flow.gif doc: fix typo (#84) 2019-04-27 09:01:23 -04:00
package.json trying ot get the images to load 2020-03-18 20:35:59 -04:00
README.md Update README.md 2020-03-02 17:23:17 -05:00
renovate.json enabling auto merge (#163) 2019-08-24 09:41:01 -04:00
webpack.config.js restyle chatbox and some refactoring 2020-02-23 23:12:47 -05:00
yarn.lock trying ot get the images to load 2020-03-18 20:35:59 -04:00

Embeddable Matrix Chatbox

Demo video of chatbox

Built on:

Usage

<script src="./chatbox.js"></script>
<script>
  EmbeddableChatbox.mount({ matrixServerUrl: "https://matrix.org" });
</script>

Options:

Name Description Default
matrixServerUrl (required) URL for the Matrix homeserver you want to connect to https://www.matrix.org
userToInvite (required) Username of the account that should be invited when a new chat is started null
termsUrl (optional) URL for the Terms of Use for the chat service null
roomName (optional) Name of the chatroom generated in Riot 'Support Chat'
introText (optional) Text to be shown before the Terms of Use url null
agreementText (optional) Text to be shown to ask for agreement to continue null

Local development

Clone the project:

git clone https://github.com/nomadic-labs/ocrcc-chatbox.git

Install the dependencies:

cd ocrcc-chatbox
yarn

Start the development server:

yarn start

Open the demo page at http://localhost:9000/

Production build

yarn build