@jx3box/jx3box-vue3-ui 0.9.14 → 0.9.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "0.9.14",
3
+ "version": "0.9.16",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,6 +25,14 @@ export default {
25
25
  type: String,
26
26
  default: "",
27
27
  },
28
+ authorId: {
29
+ type: Number,
30
+ default: 0,
31
+ },
32
+ banner: {
33
+ type: String,
34
+ default: "",
35
+ },
28
36
  },
29
37
  data: function () {
30
38
  return {
@@ -47,6 +55,8 @@ export default {
47
55
  category: this.category,
48
56
  link: location.href,
49
57
  title: this.title,
58
+ author_id: this.authorId,
59
+ banner: this.banner,
50
60
  }
51
61
  }
52
62
  },
@@ -48,7 +48,7 @@ export default {
48
48
  },
49
49
  topicImage() {
50
50
  const img = this.postBanner || this.topicInfo?.img;
51
- if (img && img.indexOf(".gif") > -1) {
51
+ if (img && (img.indexOf(".gif") > -1 || img.indexOf(".webp") > -1)) {
52
52
  return img;
53
53
  }
54
54
  return getThumbnail(img, [260*2, 78*2])
@@ -31,7 +31,7 @@
31
31
  :client="finalClient"
32
32
  />
33
33
  <Share :postId="postId" :postType="postType" :client="client" />
34
- <watch-later :category="postType" :title="postTitle"></watch-later>
34
+ <watch-later :category="postType" :title="postTitle" :author-id="authorId" :banner="banner"></watch-later>
35
35
  </div>
36
36
  <div class="w-thx-records">
37
37
  <boxcoin-records :postId="postId" :postType="postType" :postClient="finalClient" :cacheRecord="cacheRecord"
@@ -119,6 +119,14 @@ export default {
119
119
  type: Boolean,
120
120
  default: false,
121
121
  },
122
+ authorId: {
123
+ type: Number,
124
+ default: 0,
125
+ },
126
+ banner: {
127
+ type: String,
128
+ default: "",
129
+ },
122
130
  },
123
131
  data: function () {
124
132
  return {