vue-intergrall-plugins 0.0.253 → 0.0.254
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.
|
@@ -10118,7 +10118,7 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10118
10118
|
var type = anexos.type,
|
|
10119
10119
|
mku = anexos.mku,
|
|
10120
10120
|
name = anexos.name;
|
|
10121
|
-
if (!type || !mku || !name) return anexos.tipoDoc || anexos.imgAnexo ? anexos : {
|
|
10121
|
+
if (!type || !mku || !name) return anexos.tipoDoc || anexos.imgAnexo || anexos.docAnexo ? anexos : {
|
|
10122
10122
|
anexo: false,
|
|
10123
10123
|
imgAnexo: "",
|
|
10124
10124
|
tipoDoc: "",
|
|
@@ -11807,7 +11807,9 @@ var InteratividadeBotoes = __vue_component__$b;var script$6 = {
|
|
|
11807
11807
|
return "";
|
|
11808
11808
|
}
|
|
11809
11809
|
|
|
11810
|
-
|
|
11810
|
+
var finalUrl = url[0].replace(/["'*]/g, "");
|
|
11811
|
+
if (/((https?|ftp):\/\/.)?(www\.)?(?:([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6})|(linux07|linux03))\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(finalUrl)) return finalUrl;
|
|
11812
|
+
return false;
|
|
11811
11813
|
},
|
|
11812
11814
|
gerarPreview: function gerarPreview() {
|
|
11813
11815
|
var _this2 = this;
|
|
@@ -11925,9 +11927,9 @@ var __vue_render__$6 = function __vue_render__() {
|
|
|
11925
11927
|
return _vm.openUrl();
|
|
11926
11928
|
}
|
|
11927
11929
|
}
|
|
11928
|
-
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-
|
|
11930
|
+
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-4ba7fedc><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-4ba7fedc></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div" + _vm._ssrClass("link-preview-author", {
|
|
11929
11931
|
'mb-0': _vm.linkPreview.description
|
|
11930
|
-
}) + " data-v-
|
|
11932
|
+
}) + " data-v-4ba7fedc><h1 data-v-4ba7fedc>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-4ba7fedc>" + (_vm.linkPreview.description ? "<p data-v-4ba7fedc>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
|
|
11931
11933
|
};
|
|
11932
11934
|
|
|
11933
11935
|
var __vue_staticRenderFns__$6 = [];
|
|
@@ -11935,8 +11937,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11935
11937
|
|
|
11936
11938
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11937
11939
|
if (!inject) return;
|
|
11938
|
-
inject("data-v-
|
|
11939
|
-
source: ".link-preview[data-v-
|
|
11940
|
+
inject("data-v-4ba7fedc_0", {
|
|
11941
|
+
source: ".link-preview[data-v-4ba7fedc]{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:.85rem}.link-preview-image[data-v-4ba7fedc]{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-4ba7fedc]{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0[data-v-4ba7fedc]{margin-bottom:0}.link-preview-author h1[data-v-4ba7fedc]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-4ba7fedc]{min-width:100px;max-width:200px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos[data-v-4ba7fedc]{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview[data-v-4ba7fedc]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-4ba7fedc]{text-decoration:underline}",
|
|
11940
11942
|
map: undefined,
|
|
11941
11943
|
media: undefined
|
|
11942
11944
|
});
|
|
@@ -11944,10 +11946,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11944
11946
|
/* scoped */
|
|
11945
11947
|
|
|
11946
11948
|
|
|
11947
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11949
|
+
var __vue_scope_id__$6 = "data-v-4ba7fedc";
|
|
11948
11950
|
/* module identifier */
|
|
11949
11951
|
|
|
11950
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11952
|
+
var __vue_module_identifier__$6 = "data-v-4ba7fedc";
|
|
11951
11953
|
/* functional template */
|
|
11952
11954
|
|
|
11953
11955
|
var __vue_is_functional_template__$6 = false;
|
package/package.json
CHANGED
|
@@ -56,7 +56,9 @@ export default {
|
|
|
56
56
|
console.warn("URL invalida para gerar preview")
|
|
57
57
|
return ""
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
const finalUrl = url[0].replace(/["'*]/g, "")
|
|
60
|
+
if(/((https?|ftp):\/\/.)?(www\.)?(?:([-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6})|(linux07|linux03))\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(finalUrl)) return finalUrl
|
|
61
|
+
return false
|
|
60
62
|
},
|
|
61
63
|
async gerarPreview() {
|
|
62
64
|
try {
|