Skip to content

Commit 7e3826f

Browse files
committed
增加socialLinks
1 parent a910e1e commit 7e3826f

File tree

11 files changed

+174
-9
lines changed

11 files changed

+174
-9
lines changed

dist/cn.widgetjs.widgets.hotspot.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,21 @@
4949
"meta": {},
5050
"backgroundThrottling": true,
5151
"previewImage": "/images/preview_zhihu.png",
52+
"categories": [
53+
"news"
54+
],
5255
"supportDeployMode": 17,
5356
"routes": [
5457
{
5558
"url": "/widget/zhihu",
5659
"name": "index"
5760
}
61+
],
62+
"socialLinks": [
63+
{
64+
"name": "github",
65+
"link": "https://github.com/widget-js/hotspot"
66+
}
5867
]
5968
},
6069
{
@@ -85,12 +94,21 @@
8594
"meta": {},
8695
"backgroundThrottling": true,
8796
"previewImage": "/images/weibo_hot_search.png",
97+
"categories": [
98+
"news"
99+
],
88100
"supportDeployMode": 17,
89101
"routes": [
90102
{
91103
"url": "/widget/weibo",
92104
"name": "index"
93105
}
106+
],
107+
"socialLinks": [
108+
{
109+
"name": "github",
110+
"link": "https://github.com/widget-js/hotspot"
111+
}
94112
]
95113
},
96114
{
@@ -121,12 +139,21 @@
121139
"meta": {},
122140
"backgroundThrottling": true,
123141
"previewImage": "/images/preview_douyin.png",
142+
"categories": [
143+
"news"
144+
],
124145
"supportDeployMode": 17,
125146
"routes": [
126147
{
127148
"url": "/widget/douyin",
128149
"name": "index"
129150
}
151+
],
152+
"socialLinks": [
153+
{
154+
"name": "github",
155+
"link": "https://github.com/widget-js/hotspot"
156+
}
130157
]
131158
},
132159
{
@@ -157,12 +184,21 @@
157184
"meta": {},
158185
"backgroundThrottling": true,
159186
"previewImage": "/images/bilibili_hot_search.png",
187+
"categories": [
188+
"news"
189+
],
160190
"supportDeployMode": 17,
161191
"routes": [
162192
{
163193
"url": "/widget/bilibili",
164194
"name": "index"
165195
}
196+
],
197+
"socialLinks": [
198+
{
199+
"name": "github",
200+
"link": "https://github.com/widget-js/hotspot"
201+
}
166202
]
167203
},
168204
{
@@ -193,12 +229,21 @@
193229
"meta": {},
194230
"backgroundThrottling": true,
195231
"previewImage": "/images/preview_bangumi.png",
232+
"categories": [
233+
"news"
234+
],
196235
"supportDeployMode": 17,
197236
"routes": [
198237
{
199238
"url": "/widget/bangumi",
200239
"name": "index"
201240
}
241+
],
242+
"socialLinks": [
243+
{
244+
"name": "github",
245+
"link": "https://github.com/widget-js/hotspot"
246+
}
202247
]
203248
}
204249
],

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
s.parentNode.insertBefore(hm, s);
1616
})();
1717
</script>
18-
<script type="module" crossorigin src="/hotspot/assets/index-Butdw7yT.js"></script>
19-
<link rel="stylesheet" crossorigin href="/hotspot/assets/index-U0okHmVW.css">
18+
<script type="module" crossorigin src="/hotspot/assets/index-D4Ctq-pu.js"></script>
19+
<link rel="stylesheet" crossorigin href="/hotspot/assets/index-D1p7E-yB.css">
2020
</head>
2121
<body>
2222
<div id="app"></div>

dist/widget.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,21 @@
4949
"meta": {},
5050
"backgroundThrottling": true,
5151
"previewImage": "/images/preview_zhihu.png",
52+
"categories": [
53+
"news"
54+
],
5255
"supportDeployMode": 17,
5356
"routes": [
5457
{
5558
"url": "/widget/zhihu",
5659
"name": "index"
5760
}
61+
],
62+
"socialLinks": [
63+
{
64+
"name": "github",
65+
"link": "https://github.com/widget-js/hotspot"
66+
}
5867
]
5968
},
6069
{
@@ -85,12 +94,21 @@
8594
"meta": {},
8695
"backgroundThrottling": true,
8796
"previewImage": "/images/weibo_hot_search.png",
97+
"categories": [
98+
"news"
99+
],
88100
"supportDeployMode": 17,
89101
"routes": [
90102
{
91103
"url": "/widget/weibo",
92104
"name": "index"
93105
}
106+
],
107+
"socialLinks": [
108+
{
109+
"name": "github",
110+
"link": "https://github.com/widget-js/hotspot"
111+
}
94112
]
95113
},
96114
{
@@ -121,12 +139,21 @@
121139
"meta": {},
122140
"backgroundThrottling": true,
123141
"previewImage": "/images/preview_douyin.png",
142+
"categories": [
143+
"news"
144+
],
124145
"supportDeployMode": 17,
125146
"routes": [
126147
{
127148
"url": "/widget/douyin",
128149
"name": "index"
129150
}
151+
],
152+
"socialLinks": [
153+
{
154+
"name": "github",
155+
"link": "https://github.com/widget-js/hotspot"
156+
}
130157
]
131158
},
132159
{
@@ -157,12 +184,21 @@
157184
"meta": {},
158185
"backgroundThrottling": true,
159186
"previewImage": "/images/bilibili_hot_search.png",
187+
"categories": [
188+
"news"
189+
],
160190
"supportDeployMode": 17,
161191
"routes": [
162192
{
163193
"url": "/widget/bilibili",
164194
"name": "index"
165195
}
196+
],
197+
"socialLinks": [
198+
{
199+
"name": "github",
200+
"link": "https://github.com/widget-js/hotspot"
201+
}
166202
]
167203
},
168204
{
@@ -193,12 +229,21 @@
193229
"meta": {},
194230
"backgroundThrottling": true,
195231
"previewImage": "/images/preview_bangumi.png",
232+
"categories": [
233+
"news"
234+
],
196235
"supportDeployMode": 17,
197236
"routes": [
198237
{
199238
"url": "/widget/bangumi",
200239
"name": "index"
201240
}
241+
],
242+
"socialLinks": [
243+
{
244+
"name": "github",
245+
"link": "https://github.com/widget-js/hotspot"
246+
}
202247
]
203248
}
204249
],

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
},
1919
"dependencies": {
2020
"@vueuse/core": "^9.4.0",
21-
"@widget-js/core": "^24.1.1-beta.30",
22-
"@widget-js/vue3": "^24.1.1-beta.31",
21+
"@widget-js/core": "^24.1.1-beta.44",
22+
"@widget-js/vue3": "^24.1.1-beta.48",
2323
"axios": "^1.1.3",
2424
"color": "^4.2.3",
2525
"colorthief": "^2.4.0",
@@ -44,8 +44,8 @@
4444
"@vue/compiler-sfc": "^3.2.45",
4545
"@vue/eslint-config-typescript": "^9.1.0",
4646
"@vueuse/shared": "^10.1.2",
47-
"@widget-js/cli": "^24.1.1-beta.30",
48-
"@widget-js/vite-plugin-widget": "^24.1.1-beta.30",
47+
"@widget-js/cli": "^24.1.1-beta.40",
48+
"@widget-js/vite-plugin-widget": "^24.1.1-beta.41",
4949
"css-loader": "^6.7.2",
5050
"eslint": "8.48.0",
5151
"eslint-plugin-vue": "^9.15.1",
@@ -82,4 +82,4 @@
8282
"eslint --cache --fix"
8383
]
8484
}
85-
}
85+
}

public/cn.widgetjs.widgets.hotspot.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cn.widgetjs.widgets.hotspot",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"author": "Neo Fu",
55
"homepage": "https://widgetjs.cn",
66
"title": {
@@ -58,6 +58,12 @@
5858
"url": "/widget/zhihu",
5959
"name": "index"
6060
}
61+
],
62+
"socialLinks": [
63+
{
64+
"name": "github",
65+
"link": "https://github.com/widget-js/hotspot"
66+
}
6167
]
6268
},
6369
{
@@ -97,6 +103,12 @@
97103
"url": "/widget/weibo",
98104
"name": "index"
99105
}
106+
],
107+
"socialLinks": [
108+
{
109+
"name": "github",
110+
"link": "https://github.com/widget-js/hotspot"
111+
}
100112
]
101113
},
102114
{
@@ -136,6 +148,12 @@
136148
"url": "/widget/douyin",
137149
"name": "index"
138150
}
151+
],
152+
"socialLinks": [
153+
{
154+
"name": "github",
155+
"link": "https://github.com/widget-js/hotspot"
156+
}
139157
]
140158
},
141159
{
@@ -175,6 +193,12 @@
175193
"url": "/widget/bilibili",
176194
"name": "index"
177195
}
196+
],
197+
"socialLinks": [
198+
{
199+
"name": "github",
200+
"link": "https://github.com/widget-js/hotspot"
201+
}
178202
]
179203
},
180204
{
@@ -214,6 +238,12 @@
214238
"url": "/widget/bangumi",
215239
"name": "index"
216240
}
241+
],
242+
"socialLinks": [
243+
{
244+
"name": "github",
245+
"link": "https://github.com/widget-js/hotspot"
246+
}
217247
]
218248
}
219249
],

0 commit comments

Comments
 (0)