contactstudiocstools 1.0.228 → 1.0.229
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/dist/module.json
CHANGED
|
@@ -29,8 +29,8 @@ function initSnapshot(): void {
|
|
|
29
29
|
});
|
|
30
30
|
snapshot.onmessage = ({ data }) => {
|
|
31
31
|
if (data.error) {
|
|
32
|
-
console.log(data)
|
|
33
|
-
logout(
|
|
32
|
+
console.log(JSON.stringify(data))
|
|
33
|
+
logout(JSON.stringify(data) || "defaultLongpollingError");
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
>
|
|
108
108
|
<li
|
|
109
109
|
class="item sidenav-item !text-error"
|
|
110
|
-
@click="
|
|
110
|
+
@click="logoutUser"
|
|
111
111
|
>
|
|
112
112
|
<i class="bi-box-arrow-in-left text-lg leading-none mr-5" />
|
|
113
113
|
Sair
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<script setup lang="ts">
|
|
121
121
|
import { ref, computed } from "vue";
|
|
122
122
|
import { useRoute, useNuxtApp } from "#app";
|
|
123
|
-
import { IDoubts, IPages } from "./types";
|
|
123
|
+
import { IDoubts, IPages, logout } from "./types";
|
|
124
124
|
|
|
125
125
|
// props
|
|
126
126
|
interface IProps {
|
|
@@ -128,7 +128,7 @@ interface IProps {
|
|
|
128
128
|
warns?: string[];
|
|
129
129
|
doubts?: IDoubts;
|
|
130
130
|
exit?: boolean;
|
|
131
|
-
logout?:
|
|
131
|
+
logout?: string;
|
|
132
132
|
}
|
|
133
133
|
const props = defineProps<IProps>();
|
|
134
134
|
|
|
@@ -165,8 +165,8 @@ function outside(e: MouseEvent): void {
|
|
|
165
165
|
function closeWarns(): void {
|
|
166
166
|
document.getElementById("accordion-warns")?.removeAttribute("open");
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
168
|
+
function logoutUser(): void {
|
|
169
|
+
logout(props.logout || 'Não passado como parametro');
|
|
170
170
|
}
|
|
171
171
|
function changeMode(): void {
|
|
172
172
|
$emit("darkmode:change")
|