vue-intergrall-plugins 1.0.22 → 1.0.24
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.
|
@@ -4903,21 +4903,15 @@ const standardMessages = {
|
|
|
4903
4903
|
methods: {
|
|
4904
4904
|
async getStandardMessages(type, token) {
|
|
4905
4905
|
const url = `${baseURL}/messages/${type}?token_cliente=${token}${dev}`;
|
|
4906
|
+
if (!this.$root.$httpRequest) return false;
|
|
4906
4907
|
try {
|
|
4907
|
-
const response = await
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
// }
|
|
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();
|
|
4908
|
+
const response = await this.$root.$httpRequest.get(url);
|
|
4909
|
+
if (typeof response != "object" || typeof response.data != "object") return {
|
|
4910
|
+
msg_ret: 'Retorno incorreto das mensagens formatadas'
|
|
4911
|
+
};
|
|
4918
4912
|
const {
|
|
4919
4913
|
data
|
|
4920
|
-
} =
|
|
4914
|
+
} = response;
|
|
4921
4915
|
const {
|
|
4922
4916
|
tipo,
|
|
4923
4917
|
nivel,
|
|
@@ -4933,11 +4927,15 @@ const standardMessages = {
|
|
|
4933
4927
|
msg_ret
|
|
4934
4928
|
};
|
|
4935
4929
|
} else {
|
|
4936
|
-
return
|
|
4930
|
+
return msg_ret ? {
|
|
4931
|
+
msg_ret
|
|
4932
|
+
} : false;
|
|
4937
4933
|
}
|
|
4938
4934
|
} catch (error) {
|
|
4939
4935
|
console.error("Erro na requisicao para o servidor (2)", error);
|
|
4940
|
-
return
|
|
4936
|
+
return {
|
|
4937
|
+
msg_ret: error.message ? error.message : error
|
|
4938
|
+
};
|
|
4941
4939
|
}
|
|
4942
4940
|
}
|
|
4943
4941
|
}
|
|
@@ -9170,13 +9168,9 @@ var script$6 = {
|
|
|
9170
9168
|
try {
|
|
9171
9169
|
const url = this.returnURL();
|
|
9172
9170
|
if (!url) return;
|
|
9171
|
+
if (!this.$root.$httpRequest) return;
|
|
9173
9172
|
const encodedURL = Buffer(url).toString("base64");
|
|
9174
|
-
const response = await
|
|
9175
|
-
method: "get"
|
|
9176
|
-
// headers: {
|
|
9177
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
9178
|
-
// }
|
|
9179
|
-
});
|
|
9173
|
+
const response = await this.$root.$httpRequest.get(`${baseURL}/preview?url=${encodedURL}${dev}`);
|
|
9180
9174
|
if (typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto";
|
|
9181
9175
|
const {
|
|
9182
9176
|
data
|
|
@@ -9268,7 +9262,7 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
9268
9262
|
/* style */
|
|
9269
9263
|
const __vue_inject_styles__$6 = function (inject) {
|
|
9270
9264
|
if (!inject) return;
|
|
9271
|
-
inject("data-v-
|
|
9265
|
+
inject("data-v-d1f3ac6c_0", {
|
|
9272
9266
|
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}",
|
|
9273
9267
|
map: undefined,
|
|
9274
9268
|
media: undefined
|