0.0.9-production • Published 7 months ago
@azibai/chat v0.0.9-production
Azibai Chat Vue Component
I. Project setup
yarn add @azibai/chat
npm install @azibai/chat
II. Install In Javascript or TypeScript:
Import package plugin in your code.
import Vue from 'vue';
import {AzibaiChat} from '@azibai/chat';
import "@azibai/chat/dist/azibai-chat.css";
Vue.component('AzibaiChat', AzibaiChat);
III. With Nuxt
1. Create a file named 'azibai-chat.js' inside the 'plugins' directory
2. Inside this file put :
import Vue from 'vue';
import {AzibaiChat} from '@azibai/chat';
import "@azibai/chat/dist/azibai-chat.css";
Vue.component('AzibaiChat', AzibaiChat);
3. Add to nuxt.config.js:
plugins: [
...,
{ "@/plugins/azibai-chat.js", mode: 'client' }
]
4. Use In Component
<AzibaiChat :shop="0"/>
5. Open new popup message
this.$openMessage(userId, isShop);
userId: target user id
isShop: target is shop
6. Clear storage data logout
this.$flushStore();
0.0.13-staging
10 months ago
0.0.6-production
7 months ago
0.0.2-production
10 months ago
0.0.14-staging
10 months ago
0.0.3-production
10 months ago
0.0.8-stating
10 months ago
0.0.10-stating
10 months ago
0.0.9-stating
10 months ago
0.0.8-staging
7 months ago
0.0.11-stating
10 months ago
0.0.9-production
7 months ago
0.0.12-stating
10 months ago
0.0.9-staging
7 months ago
0.0.8-production
7 months ago
0.0.7-staging
7 months ago
0.0.4-staging
7 months ago
0.0.6-staging
7 months ago
0.0.5-production
7 months ago
0.0.5-staging
7 months ago
0.0.7-production
7 months ago
0.0.1-production
10 months ago
0.0.7-stating
10 months ago
0.0.6-stating
10 months ago
0.0.5-stating
10 months ago
0.0.4-stating
10 months ago
0.0.3-stating
10 months ago
0.0.2-stating
10 months ago
0.0.1-stating
10 months ago