vue-intergrall-plugins 0.0.197 → 0.0.200

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.
@@ -10876,7 +10876,11 @@ var script$6 = {
10876
10876
  }
10877
10877
  },
10878
10878
  validarAnexo: function validarAnexo() {
10879
- var status = true;
10879
+ var status = true; //caso for audio ou documento ignorar
10880
+
10881
+ if (this.anexo.docAnexo || this.anexo.audio) {
10882
+ return true;
10883
+ }
10880
10884
 
10881
10885
  if (!this.anexo.name) {
10882
10886
  this.imgMsgErro = this.dictionary.img_com_erro_nome;
@@ -10886,12 +10890,11 @@ var script$6 = {
10886
10890
  if (!this.anexo.nomeGravacao) {
10887
10891
  this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
10888
10892
  status = false;
10889
- }
10893
+ } // if(!this.anexo.size || this.anexo.size == 0){
10894
+ // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
10895
+ // status = false;
10896
+ // }
10890
10897
 
10891
- if (!this.anexo.size || this.anexo.size == 0) {
10892
- this.imgMsgErro = this.dictionary.img_com_erro_tamanho;
10893
- status = false;
10894
- }
10895
10898
 
10896
10899
  if (!this.anexo.type) {
10897
10900
  this.imgMsgErro = this.dictionary.img_com_erro_tipo;
@@ -11065,8 +11068,8 @@ var __vue_staticRenderFns__$6 = [];
11065
11068
 
11066
11069
  var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11067
11070
  if (!inject) return;
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}",
11071
+ inject("data-v-19808158_0", {
11072
+ 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}",
11070
11073
  map: undefined,
11071
11074
  media: undefined
11072
11075
  });
@@ -11074,10 +11077,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11074
11077
  /* scoped */
11075
11078
 
11076
11079
 
11077
- var __vue_scope_id__$6 = "data-v-2c4ac41b";
11080
+ var __vue_scope_id__$6 = "data-v-19808158";
11078
11081
  /* module identifier */
11079
11082
 
11080
- var __vue_module_identifier__$6 = "data-v-2c4ac41b";
11083
+ var __vue_module_identifier__$6 = "data-v-19808158";
11081
11084
  /* functional template */
11082
11085
 
11083
11086
  var __vue_is_functional_template__$6 = false;
@@ -11258,7 +11261,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11258
11261
  return _this2.$httpRequest({
11259
11262
  method: 'get',
11260
11263
  url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
11261
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11264
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
11262
11265
  // }
11263
11266
 
11264
11267
  });
@@ -11300,7 +11303,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11300
11303
  if (og) {
11301
11304
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
11302
11305
  if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
11303
- if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11306
+ if (author || site_name || title) _this2.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
11304
11307
  if (og.description) _this2.linkPreview.description = og.description;
11305
11308
  }
11306
11309
 
@@ -11349,7 +11352,9 @@ var __vue_render__$4 = function __vue_render__() {
11349
11352
  return _vm.openUrl();
11350
11353
  }
11351
11354
  }
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();
11355
+ }, [_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", {
11356
+ 'mb-0': _vm.linkPreview.description
11357
+ }) + " 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();
11353
11358
  };
11354
11359
 
11355
11360
  var __vue_staticRenderFns__$4 = [];
@@ -11357,8 +11362,8 @@ var __vue_staticRenderFns__$4 = [];
11357
11362
 
11358
11363
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11359
11364
  if (!inject) return;
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}",
11365
+ inject("data-v-0ab9360e_0", {
11366
+ 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}",
11362
11367
  map: undefined,
11363
11368
  media: undefined
11364
11369
  });
@@ -11366,10 +11371,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11366
11371
  /* scoped */
11367
11372
 
11368
11373
 
11369
- var __vue_scope_id__$4 = "data-v-2c2d6aa4";
11374
+ var __vue_scope_id__$4 = "data-v-0ab9360e";
11370
11375
  /* module identifier */
11371
11376
 
11372
- var __vue_module_identifier__$4 = "data-v-2c2d6aa4";
11377
+ var __vue_module_identifier__$4 = "data-v-0ab9360e";
11373
11378
  /* functional template */
11374
11379
 
11375
11380
  var __vue_is_functional_template__$4 = false;
@@ -11580,11 +11585,7 @@ var __vue_render__$3 = function __vue_render__() {
11580
11585
  mapa: _vm.mapa,
11581
11586
  'hist-msg': _vm.histMsg
11582
11587
  }
11583
- }, [_vm.link && !_vm.mapa ? _c('LinkPreview', {
11584
- attrs: {
11585
- "message": _vm.message
11586
- }
11587
- }) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11588
+ }, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11588
11589
  return _c('div', {
11589
11590
  key: index,
11590
11591
  staticClass: "mensagem-anexo"
@@ -11640,7 +11641,11 @@ var __vue_render__$3 = function __vue_render__() {
11640
11641
  "icon": ['fas', 'map-marker-alt']
11641
11642
  }
11642
11643
  })], 1)], 2);
11643
- }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
11644
+ }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
11645
+ attrs: {
11646
+ "message": _vm.message
11647
+ }
11648
+ }) : _vm._e(), _vm._v(" "), _c('p', {
11644
11649
  domProps: {
11645
11650
  "innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
11646
11651
  }
@@ -11837,7 +11842,7 @@ var __vue_staticRenderFns__$3 = [];
11837
11842
 
11838
11843
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11839
11844
  if (!inject) return;
11840
- inject("data-v-20d99c88_0", {
11845
+ inject("data-v-257d4492_0", {
11841
11846
  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}",
11842
11847
  map: undefined,
11843
11848
  media: undefined
@@ -11849,7 +11854,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11849
11854
  var __vue_scope_id__$3 = undefined;
11850
11855
  /* module identifier */
11851
11856
 
11852
- var __vue_module_identifier__$3 = "data-v-20d99c88";
11857
+ var __vue_module_identifier__$3 = "data-v-257d4492";
11853
11858
  /* functional template */
11854
11859
 
11855
11860
  var __vue_is_functional_template__$3 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.197",
3
+ "version": "0.0.200",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -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;
@@ -127,10 +131,10 @@ export default {
127
131
  this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao
128
132
  status = false;
129
133
  }
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.size || this.anexo.size == 0){
135
+ // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
136
+ // status = false;
137
+ // }
134
138
  if(!this.anexo.type){
135
139
  this.imgMsgErro = this.dictionary.img_com_erro_tipo
136
140
  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.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
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 : title
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: 10px;
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: 200px;
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: 0 5px 5px 5px;
146
- font-size: .8rem;
151
+ margin: 5px;
152
+ font-size: .83em;
147
153
  border-radius: 5px;
148
154
  }
149
155