vue-intergrall-plugins 0.0.190 → 0.0.191
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.
|
@@ -11198,7 +11198,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11198
11198
|
regex = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/g;
|
|
11199
11199
|
url = regex.exec(_this2.message);
|
|
11200
11200
|
|
|
11201
|
-
if (url[0]) {
|
|
11201
|
+
if (!(!url || !url[0])) {
|
|
11202
11202
|
_context.next = 10;
|
|
11203
11203
|
break;
|
|
11204
11204
|
}
|
|
@@ -11281,7 +11281,7 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
11281
11281
|
|
|
11282
11282
|
return _vm.linkPreview.isValid ? _c('div', {
|
|
11283
11283
|
staticClass: "link-preview"
|
|
11284
|
-
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-
|
|
11284
|
+
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-718e1ebf><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-718e1ebf></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-718e1ebf>" + (_vm.linkPreview.description ? "<p data-v-718e1ebf>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
|
|
11285
11285
|
};
|
|
11286
11286
|
|
|
11287
11287
|
var __vue_staticRenderFns__$4 = [];
|
|
@@ -11289,8 +11289,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
11289
11289
|
|
|
11290
11290
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
11291
11291
|
if (!inject) return;
|
|
11292
|
-
inject("data-v-
|
|
11293
|
-
source: ".link-preview[data-v-
|
|
11292
|
+
inject("data-v-718e1ebf_0", {
|
|
11293
|
+
source: ".link-preview[data-v-718e1ebf]{display:flex;flex-direction:column}.link-preview-image[data-v-718e1ebf]{display:flex;justify-content:center;align-items:center;padding:10px}.link-preview-image img[data-v-718e1ebf]{max-width:250px}.link-preview-infos[data-v-718e1ebf]{background-color:rgba(0,0,0,.1);padding:10px;font-size:.8rem}",
|
|
11294
11294
|
map: undefined,
|
|
11295
11295
|
media: undefined
|
|
11296
11296
|
});
|
|
@@ -11298,10 +11298,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
11298
11298
|
/* scoped */
|
|
11299
11299
|
|
|
11300
11300
|
|
|
11301
|
-
var __vue_scope_id__$4 = "data-v-
|
|
11301
|
+
var __vue_scope_id__$4 = "data-v-718e1ebf";
|
|
11302
11302
|
/* module identifier */
|
|
11303
11303
|
|
|
11304
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
11304
|
+
var __vue_module_identifier__$4 = "data-v-718e1ebf";
|
|
11305
11305
|
/* functional template */
|
|
11306
11306
|
|
|
11307
11307
|
var __vue_is_functional_template__$4 = false;
|
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@ export default {
|
|
|
44
44
|
if(isSticker) return
|
|
45
45
|
const regex = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/g
|
|
46
46
|
const url = regex.exec(this.message)
|
|
47
|
-
if(!url[0]) return console.warn("URL invalida para gerar preview")
|
|
47
|
+
if(!url || !url[0]) return console.warn("URL invalida para gerar preview")
|
|
48
48
|
const encodedURL = Buffer(url[0]).toString("base64")
|
|
49
49
|
const response = await this.$httpRequest(
|
|
50
50
|
{
|