vue-intergrall-plugins 0.0.194 → 0.0.195

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.
@@ -11243,6 +11243,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11243
11243
  case 16:
11244
11244
  description = raspagem.description, og = raspagem.og, theme_color = raspagem.theme_color;
11245
11245
  if (description) _this2.linkPreview.description = description;
11246
+ if (raspagem.author) _this2.linkPreview.author = raspagem.author;
11246
11247
 
11247
11248
  if (og) {
11248
11249
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
@@ -11253,20 +11254,20 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11253
11254
 
11254
11255
  if (theme_color) _this2.linkPreview.colorTheme = theme_color;
11255
11256
  if (_this2.linkPreview.description || _this2.linkPreview.imageSource) _this2.linkPreview.isValid = true;
11256
- _context.next = 26;
11257
+ _context.next = 27;
11257
11258
  break;
11258
11259
 
11259
- case 23:
11260
- _context.prev = 23;
11260
+ case 24:
11261
+ _context.prev = 24;
11261
11262
  _context.t0 = _context["catch"](0);
11262
11263
  console.error("Erro ao gerar o preview do link: ", _context.t0);
11263
11264
 
11264
- case 26:
11265
+ case 27:
11265
11266
  case "end":
11266
11267
  return _context.stop();
11267
11268
  }
11268
11269
  }
11269
- }, _callee, null, [[0, 23]]);
11270
+ }, _callee, null, [[0, 24]]);
11270
11271
  }))();
11271
11272
  },
11272
11273
  openUrl: function openUrl() {
@@ -11296,7 +11297,7 @@ var __vue_render__$4 = function __vue_render__() {
11296
11297
  return _vm.openUrl();
11297
11298
  }
11298
11299
  }
11299
- }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-0d92e314><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-0d92e314></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-0d92e314><h1 data-v-0d92e314>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-0d92e314>" + (_vm.linkPreview.description ? "<p data-v-0d92e314>" + _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-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
11301
  };
11301
11302
 
11302
11303
  var __vue_staticRenderFns__$4 = [];
@@ -11304,8 +11305,8 @@ var __vue_staticRenderFns__$4 = [];
11304
11305
 
11305
11306
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11306
11307
  if (!inject) return;
11307
- inject("data-v-0d92e314_0", {
11308
- source: ".link-preview[data-v-0d92e314]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin-bottom:5px;border-radius:5px}.link-preview-image[data-v-0d92e314]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px}.link-preview-author[data-v-0d92e314]{margin:5px;font-size:.625em}.link-preview-image img[data-v-0d92e314]{min-width:100px;max-width:200px}.link-preview-infos[data-v-0d92e314]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}",
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}",
11309
11310
  map: undefined,
11310
11311
  media: undefined
11311
11312
  });
@@ -11313,10 +11314,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11313
11314
  /* scoped */
11314
11315
 
11315
11316
 
11316
- var __vue_scope_id__$4 = "data-v-0d92e314";
11317
+ var __vue_scope_id__$4 = "data-v-1c4c4efa";
11317
11318
  /* module identifier */
11318
11319
 
11319
- var __vue_module_identifier__$4 = "data-v-0d92e314";
11320
+ var __vue_module_identifier__$4 = "data-v-1c4c4efa";
11320
11321
  /* functional template */
11321
11322
 
11322
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.194",
3
+ "version": "0.0.195",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -78,6 +78,7 @@ export default {
78
78
  if(!raspagem) throw `${st_ret} - ${msg_ret} | (Raspagem nao encontrada no retorno)`
79
79
  const { description, og, theme_color } = raspagem
80
80
  if(description) this.linkPreview.description = description
81
+ if(raspagem.author) this.linkPreview.author = raspagem.author
81
82
  if(og) {
82
83
  const { image, site_name, title, author } = og
83
84
  if(image) this.linkPreview.imageSource = image
@@ -107,7 +108,7 @@ export default {
107
108
  background-color: #EEE;
108
109
  color: #333;
109
110
  cursor: pointer;
110
- margin-bottom: 5px;
111
+ margin: 5px 0;
111
112
  border-radius: 5px;
112
113
  }
113
114
 
@@ -123,6 +124,11 @@ export default {
123
124
  margin: 5px;
124
125
  font-size: .625em
125
126
  }
127
+ .link-preview-author h1 {
128
+ overflow: hidden;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
131
+ }
126
132
 
127
133
  .link-preview-image img {
128
134
  min-width: 100px;
@@ -136,4 +142,8 @@ export default {
136
142
  font-size: .8rem;
137
143
  border-radius: 5px;
138
144
  }
145
+
146
+ .link-preview:hover .link-preview-infos p {
147
+ text-decoration: underline;
148
+ }
139
149
  </style>