feat: add GitHub star count component to sidebar #1636
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概述 / Overview
主要变更 / Key Changes
spaceClient.get('/api/v1/dist/info/repo')
获取星标数量https://github.com/langbot-app/LangBot
githubStars: 'GitHub 星标'
SidebarChild
组件模式和样式重点审查项 / Key Review Points
🔍 需要特别注意:
as { repo: { stargazers_count: number } }
进行类型转换,如果 API 格式变更可能导致运行时错误🧪 测试建议:
📱 本地测试结果:
Link to Devin run: https://app.devin.ai/sessions/9be4e976932c4074bc03363659dc6ccb
Requested by: @RockChinQ
检查清单 / Checklist
PR 作者完成 / For PR author
请在方括号间写
x
以打勾 / Please tick the box withx
项目维护者完成 / For project maintainer