vue-intergrall-plugins 0.0.193 → 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.
|
@@ -11185,7 +11185,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11185
11185
|
var _this2 = this;
|
|
11186
11186
|
|
|
11187
11187
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
11188
|
-
var url, encodedURL, response, data, st_ret, msg_ret, raspagem, description, og, theme_color, author;
|
|
11188
|
+
var url, encodedURL, response, data, st_ret, msg_ret, raspagem, description, og, theme_color, image, site_name, title, author;
|
|
11189
11189
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11190
11190
|
while (1) {
|
|
11191
11191
|
switch (_context.prev = _context.next) {
|
|
@@ -11241,10 +11241,17 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
|
|
|
11241
11241
|
throw "".concat(st_ret, " - ").concat(msg_ret, " | (Raspagem nao encontrada no retorno)");
|
|
11242
11242
|
|
|
11243
11243
|
case 16:
|
|
11244
|
-
description = raspagem.description, og = raspagem.og, theme_color = raspagem.theme_color
|
|
11245
|
-
if (author) _this2.linkPreview.author = author;
|
|
11244
|
+
description = raspagem.description, og = raspagem.og, theme_color = raspagem.theme_color;
|
|
11246
11245
|
if (description) _this2.linkPreview.description = description;
|
|
11247
|
-
if (
|
|
11246
|
+
if (raspagem.author) _this2.linkPreview.author = raspagem.author;
|
|
11247
|
+
|
|
11248
|
+
if (og) {
|
|
11249
|
+
image = og.image, site_name = og.site_name, title = og.title, author = og.author;
|
|
11250
|
+
if (image) _this2.linkPreview.imageSource = image.url ? image.url : image;
|
|
11251
|
+
if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
|
|
11252
|
+
if (og.description) _this2.linkPreview.description = og.description;
|
|
11253
|
+
}
|
|
11254
|
+
|
|
11248
11255
|
if (theme_color) _this2.linkPreview.colorTheme = theme_color;
|
|
11249
11256
|
if (_this2.linkPreview.description || _this2.linkPreview.imageSource) _this2.linkPreview.isValid = true;
|
|
11250
11257
|
_context.next = 27;
|
|
@@ -11290,7 +11297,7 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
11290
11297
|
return _vm.openUrl();
|
|
11291
11298
|
}
|
|
11292
11299
|
}
|
|
11293
|
-
}, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-
|
|
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();
|
|
11294
11301
|
};
|
|
11295
11302
|
|
|
11296
11303
|
var __vue_staticRenderFns__$4 = [];
|
|
@@ -11298,8 +11305,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
11298
11305
|
|
|
11299
11306
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
11300
11307
|
if (!inject) return;
|
|
11301
|
-
inject("data-v-
|
|
11302
|
-
source: ".link-preview[data-v-
|
|
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}",
|
|
11303
11310
|
map: undefined,
|
|
11304
11311
|
media: undefined
|
|
11305
11312
|
});
|
|
@@ -11307,10 +11314,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
11307
11314
|
/* scoped */
|
|
11308
11315
|
|
|
11309
11316
|
|
|
11310
|
-
var __vue_scope_id__$4 = "data-v-
|
|
11317
|
+
var __vue_scope_id__$4 = "data-v-cefa4cea";
|
|
11311
11318
|
/* module identifier */
|
|
11312
11319
|
|
|
11313
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
11320
|
+
var __vue_module_identifier__$4 = "data-v-cefa4cea";
|
|
11314
11321
|
/* functional template */
|
|
11315
11322
|
|
|
11316
11323
|
var __vue_is_functional_template__$4 = false;
|
package/package.json
CHANGED
|
@@ -76,10 +76,15 @@ export default {
|
|
|
76
76
|
const { st_ret, msg_ret, raspagem } = data
|
|
77
77
|
if(st_ret != "OK") throw `${st_ret} - ${msg_ret}`
|
|
78
78
|
if(!raspagem) throw `${st_ret} - ${msg_ret} | (Raspagem nao encontrada no retorno)`
|
|
79
|
-
const { description, og, theme_color
|
|
80
|
-
if(author) this.linkPreview.author = author
|
|
79
|
+
const { description, og, theme_color } = raspagem
|
|
81
80
|
if(description) this.linkPreview.description = description
|
|
82
|
-
if(
|
|
81
|
+
if(raspagem.author) this.linkPreview.author = raspagem.author
|
|
82
|
+
if(og) {
|
|
83
|
+
const { image, site_name, title, author } = og
|
|
84
|
+
if(image) this.linkPreview.imageSource = image.url ? image.url : image
|
|
85
|
+
if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
|
|
86
|
+
if(og.description) this.linkPreview.description = og.description
|
|
87
|
+
}
|
|
83
88
|
if(theme_color) this.linkPreview.colorTheme = theme_color
|
|
84
89
|
|
|
85
90
|
if(this.linkPreview.description || this.linkPreview.imageSource) this.linkPreview.isValid = true
|
|
@@ -103,7 +108,7 @@ export default {
|
|
|
103
108
|
background-color: #EEE;
|
|
104
109
|
color: #333;
|
|
105
110
|
cursor: pointer;
|
|
106
|
-
margin
|
|
111
|
+
margin: 5px 0;
|
|
107
112
|
border-radius: 5px;
|
|
108
113
|
}
|
|
109
114
|
|
|
@@ -113,11 +118,18 @@ export default {
|
|
|
113
118
|
align-items: center;
|
|
114
119
|
padding: 10px;
|
|
115
120
|
margin-bottom: 5px;
|
|
121
|
+
border-top-left-radius: 5px;
|
|
122
|
+
border-top-right-radius: 5px;
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
.link-preview-author {
|
|
119
126
|
margin: 5px;
|
|
120
|
-
font-size: .
|
|
127
|
+
font-size: .615em
|
|
128
|
+
}
|
|
129
|
+
.link-preview-author h1 {
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
white-space: nowrap;
|
|
121
133
|
}
|
|
122
134
|
|
|
123
135
|
.link-preview-image img {
|
|
@@ -126,10 +138,14 @@ export default {
|
|
|
126
138
|
}
|
|
127
139
|
|
|
128
140
|
.link-preview-infos {
|
|
129
|
-
background-color:
|
|
141
|
+
background-color: #2626261a;
|
|
130
142
|
padding: 5px;
|
|
131
143
|
margin: 0 5px 5px 5px;
|
|
132
144
|
font-size: .8rem;
|
|
133
145
|
border-radius: 5px;
|
|
134
146
|
}
|
|
147
|
+
|
|
148
|
+
.link-preview:hover .link-preview-infos p {
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
}
|
|
135
151
|
</style>
|