vue-intergrall-plugins 0.0.194 → 0.0.197
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/vue-intergrall-plugins.esm.js +71 -17
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +79 -26
- package/package.json +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +56 -2
- package/src/lib-components/Messages/ChatMessages.vue +3 -3
- package/src/lib-components/Messages/LinkPreview.vue +23 -6
|
@@ -10834,11 +10834,15 @@ var script$6 = {
|
|
|
10834
10834
|
nomeArquivo: "",
|
|
10835
10835
|
audio: false,
|
|
10836
10836
|
video: false,
|
|
10837
|
-
icone: []
|
|
10837
|
+
icone: [],
|
|
10838
|
+
imgErro: false,
|
|
10839
|
+
imgMsgErro: ''
|
|
10838
10840
|
};
|
|
10839
10841
|
},
|
|
10840
10842
|
mounted: function mounted() {
|
|
10841
|
-
this.
|
|
10843
|
+
if (this.validarAnexo()) {
|
|
10844
|
+
this.setVariaveisAnexo();
|
|
10845
|
+
}
|
|
10842
10846
|
},
|
|
10843
10847
|
methods: {
|
|
10844
10848
|
abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
|
|
@@ -10871,6 +10875,36 @@ var script$6 = {
|
|
|
10871
10875
|
console.error(e);
|
|
10872
10876
|
}
|
|
10873
10877
|
},
|
|
10878
|
+
validarAnexo: function validarAnexo() {
|
|
10879
|
+
var status = true;
|
|
10880
|
+
|
|
10881
|
+
if (!this.anexo.name) {
|
|
10882
|
+
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
10883
|
+
status = false;
|
|
10884
|
+
}
|
|
10885
|
+
|
|
10886
|
+
if (!this.anexo.nomeGravacao) {
|
|
10887
|
+
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
|
|
10888
|
+
status = false;
|
|
10889
|
+
}
|
|
10890
|
+
|
|
10891
|
+
if (!this.anexo.size || this.anexo.size == 0) {
|
|
10892
|
+
this.imgMsgErro = this.dictionary.img_com_erro_tamanho;
|
|
10893
|
+
status = false;
|
|
10894
|
+
}
|
|
10895
|
+
|
|
10896
|
+
if (!this.anexo.type) {
|
|
10897
|
+
this.imgMsgErro = this.dictionary.img_com_erro_tipo;
|
|
10898
|
+
status = false;
|
|
10899
|
+
}
|
|
10900
|
+
|
|
10901
|
+
if (status == false) {
|
|
10902
|
+
this.imgErro = true;
|
|
10903
|
+
this.carregando = false;
|
|
10904
|
+
}
|
|
10905
|
+
|
|
10906
|
+
return status;
|
|
10907
|
+
},
|
|
10874
10908
|
gerarIcone: function gerarIcone() {
|
|
10875
10909
|
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10876
10910
|
}
|
|
@@ -10894,7 +10928,25 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
10894
10928
|
"name": "fade",
|
|
10895
10929
|
"mode": "out-in"
|
|
10896
10930
|
}
|
|
10897
|
-
}, [_vm.
|
|
10931
|
+
}, [_vm.imgErro ? _c('div', {
|
|
10932
|
+
directives: [{
|
|
10933
|
+
name: "tippy",
|
|
10934
|
+
rawName: "v-tippy"
|
|
10935
|
+
}],
|
|
10936
|
+
key: "error-msg",
|
|
10937
|
+
attrs: {
|
|
10938
|
+
"content": _vm.imgMsgErro
|
|
10939
|
+
}
|
|
10940
|
+
}, [_c('div', {
|
|
10941
|
+
staticClass: "alert alert-danger",
|
|
10942
|
+
attrs: {
|
|
10943
|
+
"role": "alert"
|
|
10944
|
+
}
|
|
10945
|
+
}, [_c('fa-icon', {
|
|
10946
|
+
attrs: {
|
|
10947
|
+
"icon": ['fas', 'file-image']
|
|
10948
|
+
}
|
|
10949
|
+
}), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
|
|
10898
10950
|
key: "anexo-loader",
|
|
10899
10951
|
attrs: {
|
|
10900
10952
|
"small": true,
|
|
@@ -11013,8 +11065,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11013
11065
|
|
|
11014
11066
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11015
11067
|
if (!inject) return;
|
|
11016
|
-
inject("data-v-
|
|
11017
|
-
source: ".fade-enter-active[data-v-
|
|
11068
|
+
inject("data-v-2c4ac41b_0", {
|
|
11069
|
+
source: ".fade-enter-active[data-v-2c4ac41b],.fade-leave-active[data-v-2c4ac41b]{transition:opacity .5s}.fade-enter[data-v-2c4ac41b],.fade-leave-to[data-v-2c4ac41b]{opacity:0}.mensagem-div-anexo[data-v-2c4ac41b]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-2c4ac41b]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-2c4ac41b],.anexo-container a[data-v-2c4ac41b]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-2c4ac41b],.anexo-container p[data-v-2c4ac41b]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-2c4ac41b]{font-size:2rem}.anexo-container audio[data-v-2c4ac41b]{outline:0;width:100%}.anexo-container video[data-v-2c4ac41b]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-2c4ac41b]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-2c4ac41b]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-2c4ac41b]{cursor:pointer}.mensagem-div-anexo img[data-v-2c4ac41b]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-2c4ac41b]{width:100%;height:100%}.anexo-mensagem[data-v-2c4ac41b]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-2c4ac41b]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-2c4ac41b]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-2c4ac41b]{font-size:1.025em;margin-right:2px}",
|
|
11018
11070
|
map: undefined,
|
|
11019
11071
|
media: undefined
|
|
11020
11072
|
});
|
|
@@ -11022,10 +11074,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11022
11074
|
/* scoped */
|
|
11023
11075
|
|
|
11024
11076
|
|
|
11025
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11077
|
+
var __vue_scope_id__$6 = "data-v-2c4ac41b";
|
|
11026
11078
|
/* module identifier */
|
|
11027
11079
|
|
|
11028
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11080
|
+
var __vue_module_identifier__$6 = "data-v-2c4ac41b";
|
|
11029
11081
|
/* functional template */
|
|
11030
11082
|
|
|
11031
11083
|
var __vue_is_functional_template__$6 = false;
|
|
@@ -11205,10 +11257,10 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11205
11257
|
_context.next = 7;
|
|
11206
11258
|
return _this2.$httpRequest({
|
|
11207
11259
|
method: 'get',
|
|
11208
|
-
url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev)
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11260
|
+
url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
|
|
11261
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
|
|
11262
|
+
// }
|
|
11263
|
+
|
|
11212
11264
|
});
|
|
11213
11265
|
|
|
11214
11266
|
case 7:
|
|
@@ -11243,30 +11295,31 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11243
11295
|
case 16:
|
|
11244
11296
|
description = raspagem.description, og = raspagem.og, theme_color = raspagem.theme_color;
|
|
11245
11297
|
if (description) _this2.linkPreview.description = description;
|
|
11298
|
+
if (raspagem.author) _this2.linkPreview.author = raspagem.author;
|
|
11246
11299
|
|
|
11247
11300
|
if (og) {
|
|
11248
11301
|
image = og.image, site_name = og.site_name, title = og.title, author = og.author;
|
|
11249
|
-
if (image) _this2.linkPreview.imageSource = image;
|
|
11302
|
+
if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
|
|
11250
11303
|
if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
|
|
11251
11304
|
if (og.description) _this2.linkPreview.description = og.description;
|
|
11252
11305
|
}
|
|
11253
11306
|
|
|
11254
11307
|
if (theme_color) _this2.linkPreview.colorTheme = theme_color;
|
|
11255
11308
|
if (_this2.linkPreview.description || _this2.linkPreview.imageSource) _this2.linkPreview.isValid = true;
|
|
11256
|
-
_context.next =
|
|
11309
|
+
_context.next = 27;
|
|
11257
11310
|
break;
|
|
11258
11311
|
|
|
11259
|
-
case
|
|
11260
|
-
_context.prev =
|
|
11312
|
+
case 24:
|
|
11313
|
+
_context.prev = 24;
|
|
11261
11314
|
_context.t0 = _context["catch"](0);
|
|
11262
11315
|
console.error("Erro ao gerar o preview do link: ", _context.t0);
|
|
11263
11316
|
|
|
11264
|
-
case
|
|
11317
|
+
case 27:
|
|
11265
11318
|
case "end":
|
|
11266
11319
|
return _context.stop();
|
|
11267
11320
|
}
|
|
11268
11321
|
}
|
|
11269
|
-
}, _callee, null, [[0,
|
|
11322
|
+
}, _callee, null, [[0, 24]]);
|
|
11270
11323
|
}))();
|
|
11271
11324
|
},
|
|
11272
11325
|
openUrl: function openUrl() {
|
|
@@ -11296,7 +11349,7 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
11296
11349
|
return _vm.openUrl();
|
|
11297
11350
|
}
|
|
11298
11351
|
}
|
|
11299
|
-
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-
|
|
11352
|
+
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-2c2d6aa4><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-2c2d6aa4></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-2c2d6aa4><h1 data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-2c2d6aa4>" + (_vm.linkPreview.description ? "<p data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
|
|
11300
11353
|
};
|
|
11301
11354
|
|
|
11302
11355
|
var __vue_staticRenderFns__$4 = [];
|
|
@@ -11304,8 +11357,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
11304
11357
|
|
|
11305
11358
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
11306
11359
|
if (!inject) return;
|
|
11307
|
-
inject("data-v-
|
|
11308
|
-
source: ".link-preview[data-v-
|
|
11360
|
+
inject("data-v-2c2d6aa4_0", {
|
|
11361
|
+
source: ".link-preview[data-v-2c2d6aa4]{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}.link-preview-image[data-v-2c2d6aa4]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-2c2d6aa4]{margin:5px;font-size:.615em}.link-preview-author h1[data-v-2c2d6aa4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-2c2d6aa4]{min-width:100px;max-width:200px}.link-preview-infos[data-v-2c2d6aa4]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview[data-v-2c2d6aa4]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-2c2d6aa4]{text-decoration:underline}",
|
|
11309
11362
|
map: undefined,
|
|
11310
11363
|
media: undefined
|
|
11311
11364
|
});
|
|
@@ -11313,10 +11366,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
11313
11366
|
/* scoped */
|
|
11314
11367
|
|
|
11315
11368
|
|
|
11316
|
-
var __vue_scope_id__$4 = "data-v-
|
|
11369
|
+
var __vue_scope_id__$4 = "data-v-2c2d6aa4";
|
|
11317
11370
|
/* module identifier */
|
|
11318
11371
|
|
|
11319
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
11372
|
+
var __vue_module_identifier__$4 = "data-v-2c2d6aa4";
|
|
11320
11373
|
/* functional template */
|
|
11321
11374
|
|
|
11322
11375
|
var __vue_is_functional_template__$4 = false;
|
|
@@ -11774,7 +11827,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11774
11827
|
})], 1) : _vm._e()]), _vm._v(" "), _c('span', {
|
|
11775
11828
|
staticClass: "autor-mensagem",
|
|
11776
11829
|
domProps: {
|
|
11777
|
-
"
|
|
11830
|
+
"innerHTML": _vm._s(_vm.autor)
|
|
11778
11831
|
}
|
|
11779
11832
|
})], 2)], 1) : _vm._e();
|
|
11780
11833
|
};
|
|
@@ -11784,8 +11837,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11784
11837
|
|
|
11785
11838
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11786
11839
|
if (!inject) return;
|
|
11787
|
-
inject("data-v-
|
|
11788
|
-
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros
|
|
11840
|
+
inject("data-v-20d99c88_0", {
|
|
11841
|
+
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
11789
11842
|
map: undefined,
|
|
11790
11843
|
media: undefined
|
|
11791
11844
|
});
|
|
@@ -11796,7 +11849,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11796
11849
|
var __vue_scope_id__$3 = undefined;
|
|
11797
11850
|
/* module identifier */
|
|
11798
11851
|
|
|
11799
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11852
|
+
var __vue_module_identifier__$3 = "data-v-20d99c88";
|
|
11800
11853
|
/* functional template */
|
|
11801
11854
|
|
|
11802
11855
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="mensagem-div-anexo">
|
|
3
3
|
<transition-group name="fade" mode="out-in" class="anexo-transition">
|
|
4
|
+
<div v-if="imgErro" key="error-msg" v-tippy :content="imgMsgErro">
|
|
5
|
+
<div class="alert alert-danger" role="alert">
|
|
6
|
+
<fa-icon :icon="['fas', 'file-image']" />
|
|
7
|
+
{{dictionary.img_com_erro}}
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
4
10
|
<Loader v-if="carregando" :small="true" key="anexo-loader" :slow="true" />
|
|
5
11
|
<div v-else key="anexo-mensagem" class="anexo-mensagem">
|
|
6
12
|
<img v-if="imgAnexo" @click="abrirVisualizacaoImg(imgAnexo)" :src="imgAnexo" :alt="dictionary.alt_msg_img">
|
|
@@ -69,11 +75,15 @@ export default {
|
|
|
69
75
|
nomeArquivo: "",
|
|
70
76
|
audio: false,
|
|
71
77
|
video: false,
|
|
72
|
-
icone: []
|
|
78
|
+
icone: [],
|
|
79
|
+
imgErro: false,
|
|
80
|
+
imgMsgErro: '',
|
|
73
81
|
}
|
|
74
82
|
},
|
|
75
83
|
mounted() {
|
|
76
|
-
this.
|
|
84
|
+
if(this.validarAnexo()){
|
|
85
|
+
this.setVariaveisAnexo()
|
|
86
|
+
}
|
|
77
87
|
},
|
|
78
88
|
methods: {
|
|
79
89
|
abrirVisualizacaoImg(imagem){
|
|
@@ -107,6 +117,30 @@ export default {
|
|
|
107
117
|
console.error(e)
|
|
108
118
|
}
|
|
109
119
|
},
|
|
120
|
+
validarAnexo(){
|
|
121
|
+
let status = true;
|
|
122
|
+
if(!this.anexo.name){
|
|
123
|
+
this.imgMsgErro = this.dictionary.img_com_erro_nome
|
|
124
|
+
status = false;
|
|
125
|
+
}
|
|
126
|
+
if(!this.anexo.nomeGravacao){
|
|
127
|
+
this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao
|
|
128
|
+
status = false;
|
|
129
|
+
}
|
|
130
|
+
if(!this.anexo.size || this.anexo.size == 0){
|
|
131
|
+
this.imgMsgErro = this.dictionary.img_com_erro_tamanho
|
|
132
|
+
status = false;
|
|
133
|
+
}
|
|
134
|
+
if(!this.anexo.type){
|
|
135
|
+
this.imgMsgErro = this.dictionary.img_com_erro_tipo
|
|
136
|
+
status = false;
|
|
137
|
+
}
|
|
138
|
+
if(status == false){
|
|
139
|
+
this.imgErro = true;
|
|
140
|
+
this.carregando = false;
|
|
141
|
+
}
|
|
142
|
+
return status;
|
|
143
|
+
},
|
|
110
144
|
gerarIcone() {
|
|
111
145
|
this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt']
|
|
112
146
|
}
|
|
@@ -196,4 +230,24 @@ export default {
|
|
|
196
230
|
align-items: center;
|
|
197
231
|
flex-direction: column;
|
|
198
232
|
}
|
|
233
|
+
|
|
234
|
+
.alert-danger {
|
|
235
|
+
color: #721c24;
|
|
236
|
+
background-color: #f8d7da;
|
|
237
|
+
border-color: #f5c6cb;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.alert {
|
|
241
|
+
position: relative;
|
|
242
|
+
padding: 0.65rem 1.2rem;
|
|
243
|
+
margin: 5px 0;
|
|
244
|
+
border: 1px solid transparent;
|
|
245
|
+
border-radius: 0.25rem;
|
|
246
|
+
text-align: center;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.alert svg {
|
|
250
|
+
font-size: 1.025em;
|
|
251
|
+
margin-right: 2px;
|
|
252
|
+
}
|
|
199
253
|
</style>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass"> <fa-icon :icon="['fas', 'hourglass']" /> </span> <!-- Status finalizador -->
|
|
62
62
|
</transition>
|
|
63
63
|
|
|
64
|
-
<span class="autor-mensagem" v-
|
|
64
|
+
<span class="autor-mensagem" v-html="autor"></span>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
</template>
|
|
@@ -411,9 +411,9 @@ export default {
|
|
|
411
411
|
left: -10px;
|
|
412
412
|
transform: rotate(90deg);
|
|
413
413
|
}
|
|
414
|
-
.mensagem__outros .check{
|
|
414
|
+
/* .mensagem__outros .check{
|
|
415
415
|
display: none
|
|
416
|
-
}
|
|
416
|
+
} */
|
|
417
417
|
.mensagem__outros > .autor-mensagem{
|
|
418
418
|
left: 5px;
|
|
419
419
|
color: #333;
|
|
@@ -67,9 +67,9 @@ export default {
|
|
|
67
67
|
{
|
|
68
68
|
method: 'get',
|
|
69
69
|
url: `${baseURL}/preview?url=${encodedURL}${dev}`,
|
|
70
|
-
headers: {
|
|
71
|
-
|
|
72
|
-
}
|
|
70
|
+
// headers: {
|
|
71
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
|
|
72
|
+
// }
|
|
73
73
|
})
|
|
74
74
|
if(typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto"
|
|
75
75
|
const { data } = response
|
|
@@ -78,9 +78,10 @@ export default {
|
|
|
78
78
|
if(!raspagem) throw `${st_ret} - ${msg_ret} | (Raspagem nao encontrada no retorno)`
|
|
79
79
|
const { description, og, theme_color } = raspagem
|
|
80
80
|
if(description) this.linkPreview.description = description
|
|
81
|
+
if(raspagem.author) this.linkPreview.author = raspagem.author
|
|
81
82
|
if(og) {
|
|
82
83
|
const { image, site_name, title, author } = og
|
|
83
|
-
if(image) this.linkPreview.imageSource = image
|
|
84
|
+
if(image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image
|
|
84
85
|
if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
|
|
85
86
|
if(og.description) this.linkPreview.description = og.description
|
|
86
87
|
}
|
|
@@ -107,8 +108,10 @@ export default {
|
|
|
107
108
|
background-color: #EEE;
|
|
108
109
|
color: #333;
|
|
109
110
|
cursor: pointer;
|
|
110
|
-
margin
|
|
111
|
+
margin: 5px 0;
|
|
111
112
|
border-radius: 5px;
|
|
113
|
+
opacity: .95;
|
|
114
|
+
transition: opacity 300ms ease-in-out;
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
.link-preview-image {
|
|
@@ -117,11 +120,18 @@ export default {
|
|
|
117
120
|
align-items: center;
|
|
118
121
|
padding: 10px;
|
|
119
122
|
margin-bottom: 5px;
|
|
123
|
+
border-top-left-radius: 5px;
|
|
124
|
+
border-top-right-radius: 5px;
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
.link-preview-author {
|
|
123
128
|
margin: 5px;
|
|
124
|
-
font-size: .
|
|
129
|
+
font-size: .615em
|
|
130
|
+
}
|
|
131
|
+
.link-preview-author h1 {
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
white-space: nowrap;
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
.link-preview-image img {
|
|
@@ -136,4 +146,11 @@ export default {
|
|
|
136
146
|
font-size: .8rem;
|
|
137
147
|
border-radius: 5px;
|
|
138
148
|
}
|
|
149
|
+
|
|
150
|
+
.link-preview:hover {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
}
|
|
153
|
+
.link-preview:hover .link-preview-infos p {
|
|
154
|
+
text-decoration: underline;
|
|
155
|
+
}
|
|
139
156
|
</style>
|