vue-intergrall-plugins 0.0.173 → 0.0.174
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.
|
@@ -35888,13 +35888,13 @@ var script$3 = {
|
|
|
35888
35888
|
if (this.validadeIfExistsUrl()) {
|
|
35889
35889
|
var linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
|
|
35890
35890
|
var link = [];
|
|
35891
|
-
link = this.
|
|
35891
|
+
link = this.message.match(linkRegex);
|
|
35892
35892
|
|
|
35893
35893
|
if (!link || link.length == 0) {
|
|
35894
35894
|
return;
|
|
35895
35895
|
}
|
|
35896
35896
|
|
|
35897
|
-
build.getLinkPreview(
|
|
35897
|
+
build.getLinkPreview(link[0]).then(function (data) {
|
|
35898
35898
|
if (data.images && data.images.length > 0) {
|
|
35899
35899
|
_this.urlSticker = data.images[0];
|
|
35900
35900
|
}
|
|
@@ -35973,23 +35973,7 @@ var script$3 = {
|
|
|
35973
35973
|
if (regex.test(msg)) msg = msg.replace(regex, "<br>"); // if(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(msg) && this.link) this.setLinkPreview(msg)
|
|
35974
35974
|
|
|
35975
35975
|
return msg;
|
|
35976
|
-
}
|
|
35977
|
-
removeTags: function removeTags(str) {
|
|
35978
|
-
if (str === null || str === '') {
|
|
35979
|
-
return false;
|
|
35980
|
-
} else {
|
|
35981
|
-
str = str.toString();
|
|
35982
|
-
return str.replace(/(<([^>]+)>)/ig, '');
|
|
35983
|
-
}
|
|
35984
|
-
} // setLinkPreview(link) {
|
|
35985
|
-
// try {
|
|
35986
|
-
// this.linkPreview = link
|
|
35987
|
-
// }catch(e) {
|
|
35988
|
-
// console.error("Erro ao receber a previa do link")
|
|
35989
|
-
// console.error(e)
|
|
35990
|
-
// }
|
|
35991
|
-
// }
|
|
35992
|
-
|
|
35976
|
+
}
|
|
35993
35977
|
}
|
|
35994
35978
|
};/* script */
|
|
35995
35979
|
var __vue_script__$3 = script$3;
|
|
@@ -36223,7 +36207,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
36223
36207
|
|
|
36224
36208
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
36225
36209
|
if (!inject) return;
|
|
36226
|
-
inject("data-v-
|
|
36210
|
+
inject("data-v-b1323dbe_0", {
|
|
36227
36211
|
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 .check{display:none}.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}",
|
|
36228
36212
|
map: undefined,
|
|
36229
36213
|
media: undefined
|
|
@@ -36235,7 +36219,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
36235
36219
|
var __vue_scope_id__$3 = undefined;
|
|
36236
36220
|
/* module identifier */
|
|
36237
36221
|
|
|
36238
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
36222
|
+
var __vue_module_identifier__$3 = "data-v-b1323dbe";
|
|
36239
36223
|
/* functional template */
|
|
36240
36224
|
|
|
36241
36225
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -157,11 +157,11 @@ export default {
|
|
|
157
157
|
if(this.validadeIfExistsUrl()){
|
|
158
158
|
const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
|
|
159
159
|
let link = [];
|
|
160
|
-
link = this.
|
|
160
|
+
link = this.message.match(linkRegex);
|
|
161
161
|
if(!link || link.length == 0){
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
getLinkPreview(
|
|
164
|
+
getLinkPreview(link[0]).then((data) => {
|
|
165
165
|
if(data.images && data.images.length > 0){
|
|
166
166
|
this.urlSticker = data.images[0];
|
|
167
167
|
}
|
|
@@ -234,23 +234,6 @@ export default {
|
|
|
234
234
|
// if(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(msg) && this.link) this.setLinkPreview(msg)
|
|
235
235
|
return msg
|
|
236
236
|
},
|
|
237
|
-
removeTags(str) {
|
|
238
|
-
if ((str===null) || (str==='')){
|
|
239
|
-
return false;
|
|
240
|
-
}
|
|
241
|
-
else{
|
|
242
|
-
str = str.toString();
|
|
243
|
-
return str.replace( /(<([^>]+)>)/ig, '');
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
// setLinkPreview(link) {
|
|
247
|
-
// try {
|
|
248
|
-
// this.linkPreview = link
|
|
249
|
-
// }catch(e) {
|
|
250
|
-
// console.error("Erro ao receber a previa do link")
|
|
251
|
-
// console.error(e)
|
|
252
|
-
// }
|
|
253
|
-
// }
|
|
254
237
|
}
|
|
255
238
|
}
|
|
256
239
|
</script>
|