From 7351f98f0b39c5aa2fba2e751a5e855d58a57eed Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 15 Nov 2025 13:09:19 +0000
Subject: [PATCH 2/3] Replace shields.io badge with direct GitHub star button
Co-authored-by: cute-omega <92797441+cute-omega@users.noreply.github.com>
---
packages/gui/src/view/pages/index.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/packages/gui/src/view/pages/index.vue b/packages/gui/src/view/pages/index.vue
index b1e972e..85cc8c2 100644
--- a/packages/gui/src/view/pages/index.vue
+++ b/packages/gui/src/view/pages/index.vue
@@ -352,10 +352,11 @@ export default {
如果它解决了你的问题,请不要吝啬你的star哟!点这里
-
+
+
+ Star on GitHub
+
+
From 5dda806cb84505bc9de23a8cf1a131bc9c01bcbd Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 15 Nov 2025 13:22:41 +0000
Subject: [PATCH 3/3] Add caching to GitHub star badge to reduce API calls
Co-authored-by: cute-omega <92797441+cute-omega@users.noreply.github.com>
---
packages/gui/src/view/pages/index.vue | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/packages/gui/src/view/pages/index.vue b/packages/gui/src/view/pages/index.vue
index 85cc8c2..c41ea85 100644
--- a/packages/gui/src/view/pages/index.vue
+++ b/packages/gui/src/view/pages/index.vue
@@ -50,6 +50,11 @@ export default {
}
return false
},
+ githubStarBadgeUrl () {
+ // 生成每天更新一次的缓存键,减少API调用频率
+ const today = new Date().toISOString().split('T')[0] // YYYY-MM-DD
+ return `https://img.shields.io/github/stars/docmirror/dev-sidecar?logo=github&cacheSeconds=86400&t=${today}`
+ },
},
async created () {
await this.doCheckRootCa()
@@ -352,11 +357,10 @@ export default {
如果它解决了你的问题,请不要吝啬你的star哟!点这里
-
-
- Star on GitHub
-
-
+