vue-intergrall-plugins 0.0.193 → 0.0.194

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.
@@ -12284,12 +12284,22 @@ var script$4 = {
12284
12284
  const {
12285
12285
  description,
12286
12286
  og,
12287
- theme_color,
12288
- author
12287
+ theme_color
12289
12288
  } = raspagem;
12290
- if (author) this.linkPreview.author = author;
12291
12289
  if (description) this.linkPreview.description = description;
12292
- if (og && og.image) this.linkPreview.imageSource = og.image;
12290
+
12291
+ if (og) {
12292
+ const {
12293
+ image,
12294
+ site_name,
12295
+ title,
12296
+ author
12297
+ } = og;
12298
+ if (image) this.linkPreview.imageSource = image;
12299
+ if (author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title;
12300
+ if (og.description) this.linkPreview.description = og.description;
12301
+ }
12302
+
12293
12303
  if (theme_color) this.linkPreview.colorTheme = theme_color;
12294
12304
  if (this.linkPreview.description || this.linkPreview.imageSource) this.linkPreview.isValid = true;
12295
12305
  } catch (e) {
@@ -12355,8 +12365,8 @@ var __vue_staticRenderFns__$4 = [];
12355
12365
 
12356
12366
  const __vue_inject_styles__$4 = function (inject) {
12357
12367
  if (!inject) return;
12358
- inject("data-v-87545f64_0", {
12359
- source: ".link-preview[data-v-87545f64]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin-bottom:5px;border-radius:5px}.link-preview-image[data-v-87545f64]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px}.link-preview-author[data-v-87545f64]{margin:5px;font-size:.625em}.link-preview-image img[data-v-87545f64]{min-width:100px;max-width:200px}.link-preview-infos[data-v-87545f64]{background-color:rgba(38,38%,38%,10%);padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}",
12368
+ inject("data-v-0d92e314_0", {
12369
+ 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}",
12360
12370
  map: undefined,
12361
12371
  media: undefined
12362
12372
  });
@@ -12364,7 +12374,7 @@ const __vue_inject_styles__$4 = function (inject) {
12364
12374
  /* scoped */
12365
12375
 
12366
12376
 
12367
- const __vue_scope_id__$4 = "data-v-87545f64";
12377
+ const __vue_scope_id__$4 = "data-v-0d92e314";
12368
12378
  /* module identifier */
12369
12379
 
12370
12380
  const __vue_module_identifier__$4 = undefined;