0.0.2 • Published 5 years ago

@unify/vue-components v0.0.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

vue-components

This repo contains vue.js components for Circuit that are used in Circuit SDK examples, specificially in https://stackblitz.com example apps that allow ES6 imports using webpack.

The components circuit-logon.js and conversation-template.js are legacy components. Don't use those.

Components

circuit-logon.component.js

Login/logout functionality. Show a header with username and avatar when logged in.

<circuit-logon
  :client="client"
  @logon="onLogon"
  @logout="onLogout"
  title="Template">
</circuit-logon>

circuit-conversation-list.component.js

Listview of conversations. Raises change event when conversation is selected.

<circuit-conversation-list
  :client="client"
  :type="'GROUP'"
  @change="selectedConversation=$event">
</circuit-conversation-list>

Usage

See https://stackblitz.com/edit/circuitsdk-template