vue-intergrall-plugins 0.0.195 → 0.0.196

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.
@@ -11247,7 +11247,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11247
11247
 
11248
11248
  if (og) {
11249
11249
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
11250
- if (image) _this2.linkPreview.imageSource = image;
11250
+ if (image) _this2.linkPreview.imageSource = image.url ? image.url : image;
11251
11251
  if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11252
11252
  if (og.description) _this2.linkPreview.description = og.description;
11253
11253
  }
@@ -11297,7 +11297,7 @@ var __vue_render__$4 = function __vue_render__() {
11297
11297
  return _vm.openUrl();
11298
11298
  }
11299
11299
  }
11300
- }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-1c4c4efa><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-1c4c4efa></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-1c4c4efa><h1 data-v-1c4c4efa>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-1c4c4efa>" + (_vm.linkPreview.description ? "<p data-v-1c4c4efa>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11300
+ }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-cefa4cea><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-cefa4cea></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-cefa4cea><h1 data-v-cefa4cea>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-cefa4cea>" + (_vm.linkPreview.description ? "<p data-v-cefa4cea>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11301
11301
  };
11302
11302
 
11303
11303
  var __vue_staticRenderFns__$4 = [];
@@ -11305,8 +11305,8 @@ var __vue_staticRenderFns__$4 = [];
11305
11305
 
11306
11306
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11307
11307
  if (!inject) return;
11308
- inject("data-v-1c4c4efa_0", {
11309
- source: ".link-preview[data-v-1c4c4efa]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px}.link-preview-image[data-v-1c4c4efa]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px}.link-preview-author[data-v-1c4c4efa]{margin:5px;font-size:.625em}.link-preview-author h1[data-v-1c4c4efa]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-1c4c4efa]{min-width:100px;max-width:200px}.link-preview-infos[data-v-1c4c4efa]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview:hover .link-preview-infos p[data-v-1c4c4efa]{text-decoration:underline}",
11308
+ inject("data-v-cefa4cea_0", {
11309
+ source: ".link-preview[data-v-cefa4cea]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px}.link-preview-image[data-v-cefa4cea]{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-cefa4cea]{margin:5px;font-size:.615em}.link-preview-author h1[data-v-cefa4cea]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-cefa4cea]{min-width:100px;max-width:200px}.link-preview-infos[data-v-cefa4cea]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview:hover .link-preview-infos p[data-v-cefa4cea]{text-decoration:underline}",
11310
11310
  map: undefined,
11311
11311
  media: undefined
11312
11312
  });
@@ -11314,10 +11314,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11314
11314
  /* scoped */
11315
11315
 
11316
11316
 
11317
- var __vue_scope_id__$4 = "data-v-1c4c4efa";
11317
+ var __vue_scope_id__$4 = "data-v-cefa4cea";
11318
11318
  /* module identifier */
11319
11319
 
11320
- var __vue_module_identifier__$4 = "data-v-1c4c4efa";
11320
+ var __vue_module_identifier__$4 = "data-v-cefa4cea";
11321
11321
  /* functional template */
11322
11322
 
11323
11323
  var __vue_is_functional_template__$4 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.195",
3
+ "version": "0.0.196",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -81,7 +81,7 @@ export default {
81
81
  if(raspagem.author) this.linkPreview.author = raspagem.author
82
82
  if(og) {
83
83
  const { image, site_name, title, author } = og
84
- if(image) this.linkPreview.imageSource = image
84
+ if(image) this.linkPreview.imageSource = image.url ? image.url : image
85
85
  if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
86
86
  if(og.description) this.linkPreview.description = og.description
87
87
  }
@@ -118,11 +118,13 @@ export default {
118
118
  align-items: center;
119
119
  padding: 10px;
120
120
  margin-bottom: 5px;
121
+ border-top-left-radius: 5px;
122
+ border-top-right-radius: 5px;
121
123
  }
122
124
 
123
125
  .link-preview-author {
124
126
  margin: 5px;
125
- font-size: .625em
127
+ font-size: .615em
126
128
  }
127
129
  .link-preview-author h1 {
128
130
  overflow: hidden;