feat(console): Update /black plan selection, light rays effect. mobile styles (#8731)

Co-authored-by: Github Action <action@github.com>
This commit is contained in:
Aaron Iker
2026-01-15 21:31:50 +01:00
committed by GitHub
parent af2a09940c
commit fe58c649cb
11 changed files with 1698 additions and 400 deletions

View File

@@ -14,13 +14,14 @@ export const github = query(async () => {
fetch(`${apiBaseUrl}/releases`, { headers }).then((res) => res.json()),
fetch(`${apiBaseUrl}/contributors?per_page=1`, { headers }),
])
if (!Array.isArray(releases) || releases.length === 0) {
return undefined
}
const [release] = releases
const contributorCount = Number.parseInt(
contributors.headers
.get("Link")!
.match(/&page=(\d+)>; rel="last"/)!
.at(1)!,
)
const linkHeader = contributors.headers.get("Link")
const contributorCount = linkHeader
? Number.parseInt(linkHeader.match(/&page=(\d+)>; rel="last"/)?.at(1) ?? "0")
: 0
return {
stars: meta.stargazers_count,
release: {