vue-intergrall-plugins 1.0.20 → 1.0.21
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.
|
@@ -4902,32 +4902,42 @@ const dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
|
|
|
4902
4902
|
const standardMessages = {
|
|
4903
4903
|
methods: {
|
|
4904
4904
|
async getStandardMessages(type, token) {
|
|
4905
|
+
const url = `${baseURL}/messages/${type}?token_cliente=${token}${dev}`;
|
|
4905
4906
|
try {
|
|
4906
|
-
|
|
4907
|
-
method: '
|
|
4908
|
-
url: `${baseURL}/messages/${type}?token_cliente=${token}${dev}`
|
|
4907
|
+
const response = await fetch(url, {
|
|
4908
|
+
method: 'GET'
|
|
4909
4909
|
// headers: {
|
|
4910
4910
|
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VUUnd3aW00bDV3d0piTHczb2xPYWtTbWxab283Q1F2MDY3V3pWR2E3VkhDQ2FMUEdsS2VQIiwibWFuYWdlciI6Ik1LVXFCcGtGUjNCTkhrbTZ5Znd3aW00bDV3d0l2Tlk0MDZrMzQ3SVdkRnNnRUY4Y3RIaDlQdngiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOltdLCJhdXRoIjoiTUtVdXdGZjdjMXd3eGI0NGF3d1F4eGlia3N2NW5YR2FxOWZVNkxMYnAzQ0tkS1NHa0RvbWV4ZiIsImlhdCI6MTY0ODgxMjYzOSwiZXhwIjoxNjQ4ODk5MDM5fQ.IMpYYLoxiX566-Y2fqNlJu0qBkEyOOTWZ25UqeOyPUs"
|
|
4911
4911
|
// }
|
|
4912
|
-
})
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4912
|
+
});
|
|
4913
|
+
if (!response.ok) {
|
|
4914
|
+
console.error('Erro na requisicao para o servidor (1)', response.statusText);
|
|
4915
|
+
return false;
|
|
4916
|
+
}
|
|
4917
|
+
const value = await response.json();
|
|
4918
|
+
const {
|
|
4919
|
+
data
|
|
4920
|
+
} = value;
|
|
4921
|
+
const {
|
|
4922
|
+
tipo,
|
|
4923
|
+
nivel,
|
|
4924
|
+
conteudo,
|
|
4925
|
+
msg_ret,
|
|
4926
|
+
st_ret
|
|
4927
|
+
} = data;
|
|
4928
|
+
if (tipo) this.$emit('set-message-type', tipo);
|
|
4929
|
+
if (st_ret === 'OK') {
|
|
4930
|
+
return conteudo ? conteudo : nivel;
|
|
4931
|
+
} else if (st_ret === 'AVISO') {
|
|
4932
|
+
return {
|
|
4925
4933
|
msg_ret
|
|
4926
|
-
}
|
|
4927
|
-
}
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4934
|
+
};
|
|
4935
|
+
} else {
|
|
4936
|
+
return false;
|
|
4937
|
+
}
|
|
4938
|
+
} catch (error) {
|
|
4939
|
+
console.error("Erro na requisicao para o servidor (2)", error);
|
|
4940
|
+
return false;
|
|
4931
4941
|
}
|
|
4932
4942
|
}
|
|
4933
4943
|
}
|
|
@@ -5021,9 +5031,11 @@ var script$l = {
|
|
|
5021
5031
|
if (data.msg_ret) return this.$toasted.global.defaultInfo({
|
|
5022
5032
|
msg: data.msg_ret
|
|
5023
5033
|
});
|
|
5024
|
-
|
|
5034
|
+
return this.showFormattedMessage(data, selectionIndex);
|
|
5025
5035
|
}
|
|
5026
|
-
this.$toasted.global.defaultError(
|
|
5036
|
+
this.$toasted.global.defaultError({
|
|
5037
|
+
msg: 'Problema com as mensagens formatadas. Contate o suporte.'
|
|
5038
|
+
});
|
|
5027
5039
|
this.$emit("error-standard-message");
|
|
5028
5040
|
}).catch(e => {
|
|
5029
5041
|
this.loadingReq = false;
|
|
@@ -5220,7 +5232,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
5220
5232
|
/* style */
|
|
5221
5233
|
const __vue_inject_styles__$l = function (inject) {
|
|
5222
5234
|
if (!inject) return;
|
|
5223
|
-
inject("data-v-
|
|
5235
|
+
inject("data-v-5427991a_0", {
|
|
5224
5236
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
5225
5237
|
map: undefined,
|
|
5226
5238
|
media: undefined
|
|
@@ -9159,9 +9171,8 @@ var script$6 = {
|
|
|
9159
9171
|
const url = this.returnURL();
|
|
9160
9172
|
if (!url) return;
|
|
9161
9173
|
const encodedURL = Buffer(url).toString("base64");
|
|
9162
|
-
const response = await fetch({
|
|
9163
|
-
method: "get"
|
|
9164
|
-
url: `${baseURL}/preview?url=${encodedURL}${dev}`
|
|
9174
|
+
const response = await fetch(`${baseURL}/preview?url=${encodedURL}${dev}`, {
|
|
9175
|
+
method: "get"
|
|
9165
9176
|
// headers: {
|
|
9166
9177
|
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
9167
9178
|
// }
|
|
@@ -9257,7 +9268,7 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
9257
9268
|
/* style */
|
|
9258
9269
|
const __vue_inject_styles__$6 = function (inject) {
|
|
9259
9270
|
if (!inject) return;
|
|
9260
|
-
inject("data-v-
|
|
9271
|
+
inject("data-v-2e1c7e66_0", {
|
|
9261
9272
|
source: ".link-preview{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px;opacity:.95;transition:opacity .3s ease-in-out;font-size:13.6px}.link-preview-image{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0{margin-bottom:0}.link-preview-author h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img{min-width:100px;max-width:200px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview:hover{opacity:1}.link-preview:hover .link-preview-infos p{text-decoration:underline}",
|
|
9262
9273
|
map: undefined,
|
|
9263
9274
|
media: undefined
|