Skip to content

Commit 8fcda2a

Browse files
committed
Merge branch 'release-2.0.1' of https://github.com/docmirror/dev-sidecar into release-2.0.1
2 parents fe0755a + c2c1027 commit 8fcda2a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/gui/src/view/pages/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export default {
5050
}
5151
return false
5252
},
53+
githubStarBadgeUrl () {
54+
// 生成每天更新一次的缓存键,减少API调用频率
55+
const today = new Date().toISOString().split('T')[0] // YYYY-MM-DD
56+
return `https://img.shields.io/github/stars/docmirror/dev-sidecar?logo=github&cacheSeconds=86400&t=${today}`
57+
},
5358
},
5459
async created () {
5560
await this.doCheckRootCa()
@@ -356,7 +361,7 @@ export default {
356361
</div>
357362
<a @click="openExternal('https://github.com/docmirror/dev-sidecar')"><img
358363
alt="GitHub stars"
359-
src="https://img.shields.io/github/stars/docmirror/dev-sidecar?logo=github"
364+
:src="githubStarBadgeUrl"
360365
></a>
361366
</div>
362367
</div>

packages/gui/src/view/pages/plugin/pip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default {
100100
<a-radio-button value="http://mirrors.sohu.com/Python/" title="http://mirrors.sohu.com/Python/">
101101
搜狐镜像
102102
</a-radio-button>
103-
<a-radio-button value="https://pypi.hustunique.com/" title="https://pypi.hustunique.com/">
103+
<a-radio-button value="https://mirrors.hust.edu.cn/pypi/web/simple/" title="https://mirrors.hust.edu.cn/pypi/web/simple/">
104104
华中科大镜像
105105
</a-radio-button>
106106
<a-radio-button value="http://pypi.sdutlinux.org/" title="http://pypi.sdutlinux.org/">

0 commit comments

Comments
 (0)