File tree Expand file tree Collapse file tree 5 files changed +45
-21
lines changed Expand file tree Collapse file tree 5 files changed +45
-21
lines changed Original file line number Diff line number Diff line change 17
17
"lint:fix" : " eslint --cache . --fix"
18
18
},
19
19
"dependencies" : {
20
- "@vueuse/core" : " ^9 .4.0" ,
20
+ "@vueuse/core" : " ^12 .4.0" ,
21
21
"@widget-js/core" : " ^24.1.1-beta.44" ,
22
22
"@widget-js/vue3" : " ^24.1.1-beta.48" ,
23
23
"axios" : " ^1.1.3" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cn.widgetjs.widgets.hotspot" ,
3
- "version" : " 1.3 .0" ,
3
+ "version" : " 1.4 .0" ,
4
4
"author" : " Neo Fu" ,
5
5
"homepage" : " https://widgetjs.cn" ,
6
6
"title" : {
159
159
{
160
160
"name" : " cn.widgetjs.widgets.hotspot.bilibili_rcmd" ,
161
161
"title" : {
162
- "zh-CN" : " B站首页推荐"
162
+ "zh-CN" : " B站推荐" ,
163
+ "en-US" : " Bilibili Recommend"
163
164
},
164
165
"description" : {
165
- "zh-CN" : " "
166
+ "zh-CN" : " 实时获取B站推荐视频,发现更多精彩内容" ,
167
+ "en-US" : " Discover more exciting content"
166
168
},
167
169
"keywords" : [
168
170
" recommend"
172
174
"lang" : " zh-CN" ,
173
175
"width" : 4 ,
174
176
"height" : 4 ,
175
- "maxWidth" : 4 ,
177
+ "maxWidth" : 6 ,
176
178
"webviewTag" : false ,
177
- "maxHeight" : 4 ,
179
+ "maxHeight" : 6 ,
178
180
"minWidth" : 4 ,
179
181
"minHeight" : 4 ,
180
182
"movable" : true ,
183
185
"path" : " /widget/bilibili_rcmd" ,
184
186
"meta" : {},
185
187
"backgroundThrottling" : true ,
186
- "previewImage" : " 修改为组件预览图地址" ,
187
- "categories" : [],
188
+ "previewImage" : " /images/preview_bilibili_rcmd.png" ,
189
+ "categories" : [
190
+ " news"
191
+ ],
188
192
"supportDeployMode" : 17 ,
189
- "routes" : []
193
+ "routes" : [],
194
+ "socialLinks" : [
195
+ {
196
+ "name" : " github" ,
197
+ "link" : " https://github.com/widget-js/hotspot"
198
+ }
199
+ ]
190
200
},
191
201
{
192
202
"name" : " cn.widgetjs.widgets.hotspot.bilibili" ,
280
290
}
281
291
],
282
292
"pages" : []
283
- }
293
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cn.widgetjs.widgets.hotspot" ,
3
- "version" : " 1.3 .0" ,
3
+ "version" : " 1.4 .0" ,
4
4
"author" : " Neo Fu" ,
5
5
"homepage" : " https://widgetjs.cn" ,
6
6
"title" : {
159
159
{
160
160
"name" : " cn.widgetjs.widgets.hotspot.bilibili_rcmd" ,
161
161
"title" : {
162
- "zh-CN" : " B站首页推荐"
162
+ "zh-CN" : " B站推荐" ,
163
+ "en-US" : " Bilibili Recommend"
163
164
},
164
165
"description" : {
165
- "zh-CN" : " "
166
+ "zh-CN" : " 实时获取B站推荐视频,发现更多精彩内容" ,
167
+ "en-US" : " Discover more exciting content"
166
168
},
167
169
"keywords" : [
168
170
" recommend"
172
174
"lang" : " zh-CN" ,
173
175
"width" : 4 ,
174
176
"height" : 4 ,
175
- "maxWidth" : 4 ,
177
+ "maxWidth" : 6 ,
176
178
"webviewTag" : false ,
177
- "maxHeight" : 4 ,
179
+ "maxHeight" : 6 ,
178
180
"minWidth" : 4 ,
179
181
"minHeight" : 4 ,
180
182
"movable" : true ,
183
185
"path" : " /widget/bilibili_rcmd" ,
184
186
"meta" : {},
185
187
"backgroundThrottling" : true ,
186
- "previewImage" : " 修改为组件预览图地址" ,
187
- "categories" : [],
188
+ "previewImage" : " /images/preview_bilibili_rcmd.png" ,
189
+ "categories" : [
190
+ " news"
191
+ ],
188
192
"supportDeployMode" : 17 ,
189
- "routes" : []
193
+ "routes" : [],
194
+ "socialLinks" : [
195
+ {
196
+ "name" : " github" ,
197
+ "link" : " https://github.com/widget-js/hotspot"
198
+ }
199
+ ]
190
200
},
191
201
{
192
202
"name" : " cn.widgetjs.widgets.hotspot.bilibili" ,
280
290
}
281
291
],
282
292
"pages" : []
283
- }
293
+ }
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
2
import axios from ' axios'
3
- import { useIntervalFn } from ' @vueuse/core'
4
3
import type { Ref } from ' vue'
5
4
import { nextTick , onMounted , ref } from ' vue'
5
+ import { useIntervalFn } from ' @vueuse/core'
6
6
import type { WeiBoModel } from ' ./model/WeiBoModel'
7
7
import HotspotBox from ' @/widgets/components/HotspotBox.vue'
8
8
import HotspotItem from ' @/widgets/components/HotspotItem.vue'
@@ -94,7 +94,7 @@ async function getHotList() {
94
94
}
95
95
}
96
96
.weibo-label {
97
- width : 18 px ;
97
+ padding : 0 3 px ;
98
98
height : 18px ;
99
99
font-size : 12px ;
100
100
text-align : center ;
Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ useIntervalFn(() => {
115
115
}
116
116
}
117
117
118
+ .zhihu-hot-count {
119
+ color : var (--widget-color );
120
+ }
121
+
118
122
.zhihu-hot {
119
123
& -count {
120
124
display : inline-block ;
You can’t perform that action at this time.
0 commit comments