Skip to content

Commit 5a92e3c

Browse files
committed
更新依赖
1 parent bb15d47 commit 5a92e3c

File tree

5 files changed

+45
-21
lines changed

5 files changed

+45
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lint:fix": "eslint --cache . --fix"
1818
},
1919
"dependencies": {
20-
"@vueuse/core": "^9.4.0",
20+
"@vueuse/core": "^12.4.0",
2121
"@widget-js/core": "^24.1.1-beta.44",
2222
"@widget-js/vue3": "^24.1.1-beta.48",
2323
"axios": "^1.1.3",

public/cn.widgetjs.widgets.hotspot.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cn.widgetjs.widgets.hotspot",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"author": "Neo Fu",
55
"homepage": "https://widgetjs.cn",
66
"title": {
@@ -159,10 +159,12 @@
159159
{
160160
"name": "cn.widgetjs.widgets.hotspot.bilibili_rcmd",
161161
"title": {
162-
"zh-CN": "B站首页推荐"
162+
"zh-CN": "B站推荐",
163+
"en-US": "Bilibili Recommend"
163164
},
164165
"description": {
165-
"zh-CN": ""
166+
"zh-CN": "实时获取B站推荐视频,发现更多精彩内容",
167+
"en-US": "Discover more exciting content"
166168
},
167169
"keywords": [
168170
"recommend"
@@ -172,9 +174,9 @@
172174
"lang": "zh-CN",
173175
"width": 4,
174176
"height": 4,
175-
"maxWidth": 4,
177+
"maxWidth": 6,
176178
"webviewTag": false,
177-
"maxHeight": 4,
179+
"maxHeight": 6,
178180
"minWidth": 4,
179181
"minHeight": 4,
180182
"movable": true,
@@ -183,10 +185,18 @@
183185
"path": "/widget/bilibili_rcmd",
184186
"meta": {},
185187
"backgroundThrottling": true,
186-
"previewImage": "修改为组件预览图地址",
187-
"categories": [],
188+
"previewImage": "/images/preview_bilibili_rcmd.png",
189+
"categories": [
190+
"news"
191+
],
188192
"supportDeployMode": 17,
189-
"routes": []
193+
"routes": [],
194+
"socialLinks": [
195+
{
196+
"name": "github",
197+
"link": "https://github.com/widget-js/hotspot"
198+
}
199+
]
190200
},
191201
{
192202
"name": "cn.widgetjs.widgets.hotspot.bilibili",
@@ -280,4 +290,4 @@
280290
}
281291
],
282292
"pages": []
283-
}
293+
}

public/widget.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cn.widgetjs.widgets.hotspot",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"author": "Neo Fu",
55
"homepage": "https://widgetjs.cn",
66
"title": {
@@ -159,10 +159,12 @@
159159
{
160160
"name": "cn.widgetjs.widgets.hotspot.bilibili_rcmd",
161161
"title": {
162-
"zh-CN": "B站首页推荐"
162+
"zh-CN": "B站推荐",
163+
"en-US": "Bilibili Recommend"
163164
},
164165
"description": {
165-
"zh-CN": ""
166+
"zh-CN": "实时获取B站推荐视频,发现更多精彩内容",
167+
"en-US": "Discover more exciting content"
166168
},
167169
"keywords": [
168170
"recommend"
@@ -172,9 +174,9 @@
172174
"lang": "zh-CN",
173175
"width": 4,
174176
"height": 4,
175-
"maxWidth": 4,
177+
"maxWidth": 6,
176178
"webviewTag": false,
177-
"maxHeight": 4,
179+
"maxHeight": 6,
178180
"minWidth": 4,
179181
"minHeight": 4,
180182
"movable": true,
@@ -183,10 +185,18 @@
183185
"path": "/widget/bilibili_rcmd",
184186
"meta": {},
185187
"backgroundThrottling": true,
186-
"previewImage": "修改为组件预览图地址",
187-
"categories": [],
188+
"previewImage": "/images/preview_bilibili_rcmd.png",
189+
"categories": [
190+
"news"
191+
],
188192
"supportDeployMode": 17,
189-
"routes": []
193+
"routes": [],
194+
"socialLinks": [
195+
{
196+
"name": "github",
197+
"link": "https://github.com/widget-js/hotspot"
198+
}
199+
]
190200
},
191201
{
192202
"name": "cn.widgetjs.widgets.hotspot.bilibili",
@@ -280,4 +290,4 @@
280290
}
281291
],
282292
"pages": []
283-
}
293+
}

src/widgets/weibo/WeiBoWidget.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" setup>
22
import axios from 'axios'
3-
import { useIntervalFn } from '@vueuse/core'
43
import type { Ref } from 'vue'
54
import { nextTick, onMounted, ref } from 'vue'
5+
import { useIntervalFn } from '@vueuse/core'
66
import type { WeiBoModel } from './model/WeiBoModel'
77
import HotspotBox from '@/widgets/components/HotspotBox.vue'
88
import HotspotItem from '@/widgets/components/HotspotItem.vue'
@@ -94,7 +94,7 @@ async function getHotList() {
9494
}
9595
}
9696
.weibo-label {
97-
width: 18px;
97+
padding: 0 3px;
9898
height: 18px;
9999
font-size: 12px;
100100
text-align: center;

src/widgets/zhihu/ZhihuWidget.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ useIntervalFn(() => {
115115
}
116116
}
117117
118+
.zhihu-hot-count{
119+
color: var(--widget-color);
120+
}
121+
118122
.zhihu-hot {
119123
&-count {
120124
display: inline-block;

0 commit comments

Comments
 (0)