Skip to content

Commit e0ffdcc

Browse files
authored
Merge pull request #2933 from ClickHouse/fixstars
fix stars?
2 parents bf59451 + be35e4b commit e0ffdcc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

plugins/header.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ async function chHeader(context, opts) {
99

1010
async loadContent() {
1111
let github_stars = 38100;
12-
try {
13-
const githubData = await fetch(
14-
'https://api.github.com/repos/ClickHouse/ClickHouse'
15-
)
16-
const data = await githubData.json()
17-
github_stars = data?.stargazers_count ?? github_stars
18-
} catch (error) {
19-
console.warn('Failed to fetch GitHub stars:', error)
20-
}
12+
// try {
13+
// const githubData = await fetch(
14+
// 'https://api.github.com/repos/ClickHouse/ClickHouse'
15+
// )
16+
// const data = await githubData.json()
17+
// github_stars = data?.stargazers_count ?? github_stars
18+
// } catch (error) {
19+
// console.warn('Failed to fetch GitHub stars:', error)
20+
// }
2121
return {
2222
github_stars,
2323
menuItems

src/theme/Navbar/Content/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export default function NavbarContent() {
355355
minimumFractionDigits: 1,
356356
maximumFractionDigits: 1,
357357
})
358-
.format(github_stars)
358+
.format(38100)
359359
.toLowerCase()}
360360
</span>
361361
</div>

0 commit comments

Comments
 (0)