vue-wiguet-chatweb 0.0.1 → 0.0.3

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 CHANGED
@@ -1,12 +1,37 @@
1
1
  ## Descripcion
2
2
 
3
- Paquete para el uso de CHAT CENTRAL mediante un widget chat
3
+ Paquete para el uso de CHAT CENTRAL mediante un widget chat,
4
4
 
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
+ ```
33
+ ### phoneUser: Registrado en RRHH
34
+ ### tokenAuth: Auth MS-Seguridad V2
10
35
 
11
36
  ## Instalacion y Uso del Widget
12
37
  Configuracion de Paquete en el componente
package/dist/index.d.ts CHANGED
@@ -2,6 +2,10 @@ import Widget from './components/Widget.vue';
2
2
  export { Widget };
3
3
  declare global {
4
4
  interface Window {
5
+ VITE_BACKEND_URL: string;
6
+ VITE_BROKER_URL: string;
7
+ VITE_USERNAME: string;
8
+ VITE_PASSWORD: string;
5
9
  }
6
10
  }
7
11
  declare const _default: {