vue-intergrall-plugins 0.0.198 → 0.0.201
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 +29 -19
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +31 -22
- package/package.json +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +4 -0
- package/src/lib-components/Messages/ChatMessages.vue +1 -1
- package/src/lib-components/Messages/LinkPreview.vue +15 -9
|
@@ -7779,7 +7779,10 @@ var axios_1 = axios$1;
|
|
|
7779
7779
|
// Allow use of default import syntax in TypeScript
|
|
7780
7780
|
var _default = axios$1;
|
|
7781
7781
|
axios_1.default = _default;var axios = axios_1;vue__default["default"].prototype.$httpRequest = axios;
|
|
7782
|
-
var
|
|
7782
|
+
var domain = window.location.hostname == 'localhost' ? "https://linux07" : "https://".concat(window.location.hostname) + "/im";
|
|
7783
|
+
var route = "/im/smartChannel/v1/api.php/"; // const route = `atdHumano/middleware/smartchannel_api.php`
|
|
7784
|
+
|
|
7785
|
+
var baseURL = "".concat(domain).concat(route);
|
|
7783
7786
|
var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var standardMessages = {
|
|
7784
7787
|
methods: {
|
|
7785
7788
|
getStandardMessages: function getStandardMessages(type, token) {
|
|
@@ -7794,7 +7797,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
7794
7797
|
return _context.abrupt("return", _this.$httpRequest({
|
|
7795
7798
|
method: 'get',
|
|
7796
7799
|
url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
|
|
7797
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
7800
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1UzakpwZmViWkc1Y1M4dm9rRnBOdFY2WEYxaTh0ZllLWEkzV0ljRTd0M0dxeSIsIm1hbmFnZXIiOiJNS1VxQnBrRlIzQk5ING02Q2J3d2ltNGw1d3dJd3d4YjQ0YXd3aFk1VXd3aW00bDV3d2szSWZJV2RGc2dFRjhjdEhoOVB2eCIsImhhc19pbmZvcyI6dHJ1ZSwibnJvcyI6WyIyOCJdLCJhdXRoIjoiTUtVYXNtV3NNSnpZdmV2R2VQYTRubkZqdHRWR3gxODl6RnRWNDVtVUdFN1JlazAiLCJpYXQiOjE2NDg2NTkwNjQsImV4cCI6MTY0ODc0NTQ2NH0.vdwahP7qSwLJ8qYdQsG-ydL1Y-tzf6Frt0rnd9fYpIU"
|
|
7798
7801
|
// }
|
|
7799
7802
|
|
|
7800
7803
|
}).then(function (response) {
|
|
@@ -10876,7 +10879,11 @@ var script$6 = {
|
|
|
10876
10879
|
}
|
|
10877
10880
|
},
|
|
10878
10881
|
validarAnexo: function validarAnexo() {
|
|
10879
|
-
var status = true;
|
|
10882
|
+
var status = true; //caso for audio ou documento ignorar
|
|
10883
|
+
|
|
10884
|
+
if (this.anexo.docAnexo || this.anexo.audio) {
|
|
10885
|
+
return true;
|
|
10886
|
+
}
|
|
10880
10887
|
|
|
10881
10888
|
if (!this.anexo.name) {
|
|
10882
10889
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -11064,8 +11071,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11064
11071
|
|
|
11065
11072
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11066
11073
|
if (!inject) return;
|
|
11067
|
-
inject("data-v-
|
|
11068
|
-
source: ".fade-enter-active[data-v-
|
|
11074
|
+
inject("data-v-19808158_0", {
|
|
11075
|
+
source: ".fade-enter-active[data-v-19808158],.fade-leave-active[data-v-19808158]{transition:opacity .5s}.fade-enter[data-v-19808158],.fade-leave-to[data-v-19808158]{opacity:0}.mensagem-div-anexo[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-19808158]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container a[data-v-19808158]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container p[data-v-19808158]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-19808158]{font-size:2rem}.anexo-container audio[data-v-19808158]{outline:0;width:100%}.anexo-container video[data-v-19808158]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-19808158]{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-19808158]{cursor:pointer}.mensagem-div-anexo img[data-v-19808158]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-19808158]{width:100%;height:100%}.anexo-mensagem[data-v-19808158]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-19808158]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-19808158]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-19808158]{font-size:1.025em;margin-right:2px}",
|
|
11069
11076
|
map: undefined,
|
|
11070
11077
|
media: undefined
|
|
11071
11078
|
});
|
|
@@ -11073,10 +11080,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11073
11080
|
/* scoped */
|
|
11074
11081
|
|
|
11075
11082
|
|
|
11076
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11083
|
+
var __vue_scope_id__$6 = "data-v-19808158";
|
|
11077
11084
|
/* module identifier */
|
|
11078
11085
|
|
|
11079
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11086
|
+
var __vue_module_identifier__$6 = "data-v-19808158";
|
|
11080
11087
|
/* functional template */
|
|
11081
11088
|
|
|
11082
11089
|
var __vue_is_functional_template__$6 = false;
|
|
@@ -11257,7 +11264,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11257
11264
|
return _this2.$httpRequest({
|
|
11258
11265
|
method: 'get',
|
|
11259
11266
|
url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
|
|
11260
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
11267
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
11261
11268
|
// }
|
|
11262
11269
|
|
|
11263
11270
|
});
|
|
@@ -11299,7 +11306,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11299
11306
|
if (og) {
|
|
11300
11307
|
image = og.image, site_name = og.site_name, title = og.title, author = og.author;
|
|
11301
11308
|
if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
|
|
11302
|
-
if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name :
|
|
11309
|
+
if (author || site_name || title) _this2.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
|
|
11303
11310
|
if (og.description) _this2.linkPreview.description = og.description;
|
|
11304
11311
|
}
|
|
11305
11312
|
|
|
@@ -11348,7 +11355,9 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
11348
11355
|
return _vm.openUrl();
|
|
11349
11356
|
}
|
|
11350
11357
|
}
|
|
11351
|
-
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-
|
|
11358
|
+
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-0ab9360e><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-0ab9360e></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div" + _vm._ssrClass("link-preview-author", {
|
|
11359
|
+
'mb-0': _vm.linkPreview.description
|
|
11360
|
+
}) + " data-v-0ab9360e><h1 data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-0ab9360e>" + (_vm.linkPreview.description ? "<p data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
|
|
11352
11361
|
};
|
|
11353
11362
|
|
|
11354
11363
|
var __vue_staticRenderFns__$4 = [];
|
|
@@ -11356,8 +11365,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
11356
11365
|
|
|
11357
11366
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
11358
11367
|
if (!inject) return;
|
|
11359
|
-
inject("data-v-
|
|
11360
|
-
source: ".link-preview[data-v-
|
|
11368
|
+
inject("data-v-0ab9360e_0", {
|
|
11369
|
+
source: ".link-preview[data-v-0ab9360e]{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-0ab9360e]{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-0ab9360e]{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0[data-v-0ab9360e]{margin-bottom:0}.link-preview-author h1[data-v-0ab9360e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-0ab9360e]{min-width:100px;max-width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos[data-v-0ab9360e]{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview[data-v-0ab9360e]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-0ab9360e]{text-decoration:underline}",
|
|
11361
11370
|
map: undefined,
|
|
11362
11371
|
media: undefined
|
|
11363
11372
|
});
|
|
@@ -11365,10 +11374,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
11365
11374
|
/* scoped */
|
|
11366
11375
|
|
|
11367
11376
|
|
|
11368
|
-
var __vue_scope_id__$4 = "data-v-
|
|
11377
|
+
var __vue_scope_id__$4 = "data-v-0ab9360e";
|
|
11369
11378
|
/* module identifier */
|
|
11370
11379
|
|
|
11371
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
11380
|
+
var __vue_module_identifier__$4 = "data-v-0ab9360e";
|
|
11372
11381
|
/* functional template */
|
|
11373
11382
|
|
|
11374
11383
|
var __vue_is_functional_template__$4 = false;
|
|
@@ -11579,11 +11588,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11579
11588
|
mapa: _vm.mapa,
|
|
11580
11589
|
'hist-msg': _vm.histMsg
|
|
11581
11590
|
}
|
|
11582
|
-
}, [_vm.
|
|
11583
|
-
attrs: {
|
|
11584
|
-
"message": _vm.message
|
|
11585
|
-
}
|
|
11586
|
-
}) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
|
|
11591
|
+
}, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
|
|
11587
11592
|
return _c('div', {
|
|
11588
11593
|
key: index,
|
|
11589
11594
|
staticClass: "mensagem-anexo"
|
|
@@ -11639,7 +11644,11 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11639
11644
|
"icon": ['fas', 'map-marker-alt']
|
|
11640
11645
|
}
|
|
11641
11646
|
})], 1)], 2);
|
|
11642
|
-
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('
|
|
11647
|
+
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
|
|
11648
|
+
attrs: {
|
|
11649
|
+
"message": _vm.message
|
|
11650
|
+
}
|
|
11651
|
+
}) : _vm._e(), _vm._v(" "), _c('p', {
|
|
11643
11652
|
domProps: {
|
|
11644
11653
|
"innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
|
|
11645
11654
|
}
|
|
@@ -11836,7 +11845,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11836
11845
|
|
|
11837
11846
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11838
11847
|
if (!inject) return;
|
|
11839
|
-
inject("data-v-
|
|
11848
|
+
inject("data-v-257d4492_0", {
|
|
11840
11849
|
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}",
|
|
11841
11850
|
map: undefined,
|
|
11842
11851
|
media: undefined
|
|
@@ -11848,7 +11857,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11848
11857
|
var __vue_scope_id__$3 = undefined;
|
|
11849
11858
|
/* module identifier */
|
|
11850
11859
|
|
|
11851
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11860
|
+
var __vue_module_identifier__$3 = "data-v-257d4492";
|
|
11852
11861
|
/* functional template */
|
|
11853
11862
|
|
|
11854
11863
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -119,6 +119,10 @@ export default {
|
|
|
119
119
|
},
|
|
120
120
|
validarAnexo(){
|
|
121
121
|
let status = true;
|
|
122
|
+
//caso for audio ou documento ignorar
|
|
123
|
+
if(this.anexo.docAnexo || this.anexo.audio){
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
122
126
|
if(!this.anexo.name){
|
|
123
127
|
this.imgMsgErro = this.dictionary.img_com_erro_nome
|
|
124
128
|
status = false;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
:dictionary="dictionary"
|
|
7
7
|
/>
|
|
8
8
|
<div v-else class="mensagem" :class="{mapa, 'hist-msg' : histMsg}">
|
|
9
|
-
<LinkPreview v-if="link && !mapa" :message="message" />
|
|
10
9
|
<template v-if="anexos && anexos.length">
|
|
11
10
|
<div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
|
|
12
11
|
<AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem"/>
|
|
@@ -30,6 +29,7 @@
|
|
|
30
29
|
</li>
|
|
31
30
|
</ul>
|
|
32
31
|
</div>
|
|
32
|
+
<LinkPreview v-if="link && !mapa" :message="message" />
|
|
33
33
|
<p v-html="validateInterativity() ? '' : formatMsg(message)"></p>
|
|
34
34
|
<InteratividadeBotoes
|
|
35
35
|
v-if="interatividade"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
>
|
|
13
13
|
<img :src="linkPreview.imageSource" alt="Imagem referente ao link" />
|
|
14
14
|
</div>
|
|
15
|
-
<div class="link-preview-author" v-if="linkPreview.author">
|
|
15
|
+
<div class="link-preview-author" :class="{'mb-0' : linkPreview.description}" v-if="linkPreview.author">
|
|
16
16
|
<h1 v-text="linkPreview.author"></h1>
|
|
17
17
|
</div>
|
|
18
18
|
<div v-if="linkPreview.description" class="link-preview-infos">
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
method: 'get',
|
|
69
69
|
url: `${baseURL}/preview?url=${encodedURL}${dev}`,
|
|
70
70
|
// headers: {
|
|
71
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
71
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
72
72
|
// }
|
|
73
73
|
})
|
|
74
74
|
if(typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto"
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
if(og) {
|
|
83
83
|
const { image, site_name, title, author } = og
|
|
84
84
|
if(image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image
|
|
85
|
-
if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name :
|
|
85
|
+
if(author || site_name || title) this.linkPreview.author = title ? title : author ? author : site_name ? site_name : ""
|
|
86
86
|
if(og.description) this.linkPreview.description = og.description
|
|
87
87
|
}
|
|
88
88
|
if(theme_color) this.linkPreview.colorTheme = theme_color
|
|
@@ -112,21 +112,25 @@ export default {
|
|
|
112
112
|
border-radius: 5px;
|
|
113
113
|
opacity: .95;
|
|
114
114
|
transition: opacity 300ms ease-in-out;
|
|
115
|
+
font-size: .85rem;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
.link-preview-image {
|
|
118
119
|
display: flex;
|
|
119
120
|
justify-content: center;
|
|
120
121
|
align-items: center;
|
|
121
|
-
padding:
|
|
122
|
-
margin-bottom: 5px;
|
|
122
|
+
padding: 1px;
|
|
123
123
|
border-top-left-radius: 5px;
|
|
124
124
|
border-top-right-radius: 5px;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.link-preview-author {
|
|
128
128
|
margin: 5px;
|
|
129
|
-
font-size: .615em
|
|
129
|
+
font-size: .615em;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
}
|
|
132
|
+
.link-preview-author.mb-0 {
|
|
133
|
+
margin-bottom: 0;
|
|
130
134
|
}
|
|
131
135
|
.link-preview-author h1 {
|
|
132
136
|
overflow: hidden;
|
|
@@ -136,14 +140,16 @@ export default {
|
|
|
136
140
|
|
|
137
141
|
.link-preview-image img {
|
|
138
142
|
min-width: 100px;
|
|
139
|
-
max-width:
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
border-top-left-radius: 5px;
|
|
145
|
+
border-top-right-radius: 5px;
|
|
140
146
|
}
|
|
141
147
|
|
|
142
148
|
.link-preview-infos {
|
|
143
149
|
background-color: #2626261a;
|
|
144
150
|
padding: 5px;
|
|
145
|
-
margin:
|
|
146
|
-
font-size: .
|
|
151
|
+
margin: 5px;
|
|
152
|
+
font-size: .83em;
|
|
147
153
|
border-radius: 5px;
|
|
148
154
|
}
|
|
149
155
|
|