0.6.6 • Published 9 months ago

robin-vue v0.6.6

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

About

robin-vue is a Vue SDK built to communicate with the Robin API. Now you can integrate Robin with minimal effort and quickly setup an real-time messaging platform in your Vue.js web application.

Installation

## npm
npm install robin-vue

## yarn
yarn add robin-vue

Usage

import Vue from 'vue'
import App from './App.vue'
import RobinChat from 'robin-vue'
import 'robin-vue-sdk/dist/style.css'

Vue.config.productionTip = false

Vue.use(RobinChat)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
<template>
  <div id="app">
    <RobinChat :api-key="apiKey" :user-token="userToken" :user-name="userName" :users="users" :keys="keys" :page-loader="pageLoader" />
  </div>
</template>

<script>

export default {
  name: 'ChatApp',
  components: {
    RobinChat
  },
  data () {
    return {
      apiKey: '...'
      userToken: '...
      pageLoader: true,
      userName: '...',
      keys: {
        userToken: 'user_token',
        profileImage: 'profile_image',
        userName: 'fullname'
      },
      users: [{
        userToken: '...',
        profileImage: '...',
        userName: '...'
      }]
    }
  }
}
</script>

Available options

AttributeTypeDefaultDescription
api-keyString''SDK Authorization. (required)
user-tokenString''User Authorization. (required)
user-nameString''Name of the current user using Robin. (required)
usersArray[]User list - Data should model the keys option (required)
keysObject{}User data structure you want Robin to pull from. (required)
page-loaderBooleanTrueShows a loader when first mounting Component.

License

Distributed under the MIT License. See LICENSE for more information.

0.6.6

9 months ago

0.5.4

11 months ago

0.5.3

11 months ago

0.5.6

11 months ago

0.5.5

11 months ago

0.5.8

10 months ago

0.5.7

11 months ago

0.5.9

10 months ago

0.6.3

9 months ago

0.6.2

9 months ago

0.6.5

9 months ago

0.6.4

9 months ago

0.6.1

10 months ago

0.6.0

10 months ago

0.4.9

1 year ago

0.4.8

1 year ago

0.3.0

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.7

1 year ago

0.5.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.5.2

1 year ago

0.3.4

1 year ago

0.5.1

1 year ago

0.3.3

1 year ago

0.4.5

1 year ago

0.2.7

1 year ago

0.4.4

1 year ago

0.4.7

1 year ago

0.2.9

1 year ago

0.4.6

1 year ago

0.2.8

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.2.1

1 year ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.0.10

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.0.3

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.0.9

2 years ago

0.1.7

2 years ago

0.0.8

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.0.5

2 years ago

0.1.3

2 years ago

0.0.4

2 years ago

0.1.6

2 years ago

0.0.7

2 years ago

0.1.5

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago