vue-wiguet-chatweb 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/index.d.ts +4 -0
- package/dist/vue-wiguet-chatweb.js +318 -317
- package/dist/vue-wiguet-chatweb.umd.cjs +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
@@ -5,8 +5,31 @@ Paquete para el uso de CHAT CENTRAL mediante un widget chat
|
|
5
5
|
## Instalacion
|
6
6
|
|
7
7
|
Instalacion del paquete
|
8
|
+
```
|
9
|
+
npm i vue-wiguet-chatweb
|
10
|
+
```
|
11
|
+
## Variables de Entorno
|
12
|
+
```env
|
13
|
+
VITE_BACKEND_URL=http://192.168.20.107:8500
|
14
|
+
VITE_BROKER_URL=ws://192.168.20.107:15674/ws
|
15
|
+
VITE_USERNAME=admin
|
16
|
+
VITE_PASSWORD=password
|
17
|
+
```
|
18
|
+
## configuracion de variables de Entorno
|
19
|
+
```typescript
|
20
|
+
|
21
|
+
import widgetChatCentral from 'vue-wiguet-chatweb'
|
8
22
|
|
23
|
+
const app = createApp(App);
|
24
|
+
app.use(widgetChatCentral, {
|
25
|
+
VITE_BACKEND_URL:import.meta.env.VITE_BACKEND_URL;
|
26
|
+
VITE_BROKER_URL:import.meta.env.VITE_BROKER_URL;
|
27
|
+
VITE_USERNAME:import.meta.env.VITE_USERNAME;
|
28
|
+
VITE_PASSWORD:import.meta.env.VITE_PASSWORD;
|
29
|
+
});
|
9
30
|
|
31
|
+
app.mount('#app');
|
32
|
+
```
|
10
33
|
|
11
34
|
## Instalacion y Uso del Widget
|
12
35
|
Configuracion de Paquete en el componente
|
package/dist/index.d.ts
CHANGED