# vue-helpdesk

> A Vue.js project

Latest version **1.0.3** (published 2018-12-04) · 0 weekly downloads

## Install

```sh
npm install vue-helpdesk
pnpm add vue-helpdesk
yarn add vue-helpdesk
bun add vue-helpdesk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-04 |
| First published | 2018-11-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| Author | Andrew Beng |
| Maintainers | mcaro |

## Links

- npm: https://www.npmjs.com/package/vue-helpdesk
- npm.io page: https://npm.io/package/vue-helpdesk

## Dependencies (13)

- [vue](https://npm.io/package/vue.md) ^2.3.3
- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [vuex](https://npm.io/package/vuex.md) ^2.4.0
- [xdomain](https://npm.io/package/xdomain.md) ^0.7.3
- [url-regex](https://npm.io/package/url-regex.md) ^4.1.1
- [lodash.trim](https://npm.io/package/lodash.trim.md) ^4.5.1
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^2.0.3
- [lodash.uniqby](https://npm.io/package/lodash.uniqby.md) ^4.7.0
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [promise-polyfill](https://npm.io/package/promise-polyfill.md) ^6.0.2
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.0.4
- [vue-custom-element](https://npm.io/package/vue-custom-element.md) ^1.3.0
- [document-register-element](https://npm.io/package/document-register-element.md) ^1.7.0

## Recent versions

- 1.0.3 (latest) — 2018-12-04
- 1.0.2 — 2018-11-23
- 1.0.1 — 2018-11-23
- 1.0.0 — 2018-11-23

## README

# vue-helpdesk

> A vue-helpdesk project. It is a chat tool which you can add into your website.

## Build Setup

#To install it: 

npm i vue-helpdesk

#Use

This package has different components:

  - admin-component (dashBoard to admin sessions)
  - admin-chat-component (chat for the admin or support user)
  - chat-component (chat component)
  - customer-chat-component (chat component for the customer)

If you want to add the customer-chat component you have to add the following in the proper template (change path_to_your_npm_project with your path):

```
<customer-chat-component data-notification-server="<?php print variable_get('bi_helpdesk_notification_server', 'http://bi-notification-server.dev:3000') ?>" data-helpdesk-api="<?php echo url('/api'); ?>" data-access-token="<?php echo $access_token; ?>"></customer-chat-component>
<script src="<?php echo url('/path_to_your_npm_project/node_modules/vue-helpdesk/dist/build.js').'?'.time(); ?>"></script>
```

If you want to add the chat-component component you have to add the following in the proper template (change path_to_your_npm_project with your path):

```
<chat-component data-helpdesk-api="<?php echo url('/api', array('absolute' => TRUE)); ?>" data-access-token="<?php echo $access_token; ?>"></chat-component>
<script src="<?php echo url('/path_to_your_npm_project/node_modules/vue-helpdesk/dist/build.js', array('absolute' => TRUE)); ?>"></script>
```

If you want to add the admin-component and admin-chat-component component, you have to add the following in the proper template (change path_to_your_npm_project with your path):

```
<admin-component data-notification-server="<?php print variable_get('bi_helpdesk_notification_server', 'http://bi-notification-server.dev:3000') ?>" data-helpdesk-api="<?php echo url('/api', array('absolute' => TRUE)); ?>" data-access-token="<?php echo $access_token; ?>" data-user-uuid="<?php echo $user->uuid; ?>"></admin-component>
<admin-chat-component></admin-chat-component>
<script src="<?php echo url('/path_to_your_npm_project/node_modules/vue-helpdesk/dist/build.js', array('absolute' => TRUE)).'?'.time(); ?>"></script>
```

---
_Source: https://npm.io/package/vue-helpdesk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
