Skip to content

Commit efa92dd

Browse files
revert: restore homepage to last working Vercel deployment (37b7429)
Removes profile scanning feature and reverts all files to the state that is currently live on commitmentissues.dev. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0260bc8 commit efa92dd

10 files changed

Lines changed: 18 additions & 817 deletions

File tree

src/app/api/stats/route.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { NextRequest, NextResponse } from 'next/server'
22

3+
// Repos buried before the Vercel migration — always added on top of the Redis counter.
4+
// Redis only stores new burials since migration; the baseline is never baked in.
35
const BURIED_HISTORICAL_BASELINE = 800
46

57
function normalizeBuriedCount(rawBuried: number | null | undefined) {
@@ -20,17 +22,15 @@ export async function GET() {
2022
try {
2123
const redis = await getRedis()
2224
if (!redis) return NextResponse.json({ buried: BURIED_HISTORICAL_BASELINE, shared: 0, downloaded: 0 })
23-
const [buried, shared, downloaded, profiles] = await Promise.all([
25+
const [buried, shared, downloaded] = await Promise.all([
2426
redis.get<number>('stats:buried'),
2527
redis.get<number>('stats:shared'),
2628
redis.get<number>('stats:downloaded'),
27-
redis.get<number>('stats:profiles'),
2829
])
2930
return NextResponse.json({
3031
buried: normalizeBuriedCount(buried),
3132
shared: shared ?? 0,
3233
downloaded: downloaded ?? 0,
33-
profiles: profiles ?? 0,
3434
})
3535
} catch {
3636
return NextResponse.json({ buried: BURIED_HISTORICAL_BASELINE, shared: 0, downloaded: 0 })
@@ -39,14 +39,13 @@ export async function GET() {
3939

4040
export async function POST(req: NextRequest) {
4141
try {
42-
const { counter, by } = await req.json() as { counter: 'buried' | 'shared' | 'downloaded' | 'profiles'; by?: number }
43-
if (!['buried', 'shared', 'downloaded', 'profiles'].includes(counter)) {
42+
const { counter } = await req.json() as { counter: 'buried' | 'shared' | 'downloaded' }
43+
if (!['buried', 'shared', 'downloaded'].includes(counter)) {
4444
return NextResponse.json({ error: 'invalid counter' }, { status: 400 })
4545
}
4646
const redis = await getRedis()
4747
if (!redis) return NextResponse.json({ ok: true })
48-
const amount = typeof by === 'number' && by > 1 ? by : 1
49-
await redis.incrby(`stats:${counter}`, amount)
48+
await redis.incr(`stats:${counter}`)
5049
return NextResponse.json({ ok: true })
5150
} catch {
5251
return NextResponse.json({ ok: true })

src/app/api/user/route.ts

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/app/globals.css

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -610,126 +610,6 @@ a.subpage-inline-mail {
610610
animation: section-fade-up 420ms ease-out both;
611611
}
612612

613-
.user-page-header {
614-
width: 100%;
615-
margin-top: 2px;
616-
margin-bottom: 8px;
617-
}
618-
619-
.user-page-kicker {
620-
font-family: var(--font-courier), 'Courier New', monospace;
621-
font-size: 11px;
622-
color: #8a8a8a;
623-
letter-spacing: 0.14em;
624-
text-transform: uppercase;
625-
margin: 0 0 6px 0;
626-
}
627-
628-
.user-page-handle {
629-
font-family: var(--font-dm), -apple-system, sans-serif;
630-
font-size: 28px;
631-
font-weight: 750;
632-
color: #160A06;
633-
margin: 0;
634-
letter-spacing: -0.03em;
635-
word-break: break-word;
636-
}
637-
638-
.user-page-results {
639-
width: 100%;
640-
margin-top: 8px;
641-
}
642-
643-
.user-page-back {
644-
font-family: var(--font-courier), 'Courier New', monospace;
645-
font-size: 10px;
646-
color: #938882;
647-
background: transparent;
648-
border: none;
649-
padding: 0;
650-
margin-bottom: 20px;
651-
letter-spacing: 0.06em;
652-
display: inline-flex;
653-
align-items: center;
654-
}
655-
656-
@media (hover: hover) and (pointer: fine) {
657-
.user-page-back:hover {
658-
color: #1f1f1f;
659-
}
660-
}
661-
662-
.user-page-state {
663-
width: 100%;
664-
padding: 26px 0 12px;
665-
display: flex;
666-
justify-content: center;
667-
}
668-
669-
.user-page-state-card {
670-
width: 100%;
671-
border: 2px solid #d8cfc4;
672-
background: #faf7f3;
673-
padding: 18px 16px;
674-
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
675-
}
676-
677-
.user-page-error {
678-
font-family: var(--font-courier), 'Courier New', monospace;
679-
font-size: 12px;
680-
color: #8B0000;
681-
margin: 0 0 14px 0;
682-
letter-spacing: 0.04em;
683-
}
684-
685-
.user-page-state-actions {
686-
display: flex;
687-
flex-wrap: wrap;
688-
gap: 10px;
689-
align-items: center;
690-
}
691-
692-
.user-page-btn {
693-
font-family: var(--font-dm), -apple-system, sans-serif;
694-
font-size: 13px;
695-
font-weight: 700;
696-
letter-spacing: 0.02em;
697-
border-radius: 8px;
698-
padding: 11px 14px;
699-
min-height: 44px;
700-
border: 2px solid #0a0a0a;
701-
}
702-
703-
.user-page-btn--primary {
704-
background: #0a0a0a;
705-
color: #FAF6EF;
706-
}
707-
708-
@media (hover: hover) and (pointer: fine) {
709-
.user-page-btn--primary:hover {
710-
background: #2a2a2a;
711-
}
712-
}
713-
714-
.user-page-btn--ghost {
715-
background: transparent;
716-
color: #0a0a0a;
717-
}
718-
719-
@media (hover: hover) and (pointer: fine) {
720-
.user-page-btn--ghost:hover {
721-
background: #EDE8E1;
722-
}
723-
}
724-
725-
.user-page-state-hint {
726-
font-family: var(--font-dm), -apple-system, sans-serif;
727-
font-size: 12px;
728-
color: #7a7a7a;
729-
line-height: 1.5;
730-
margin: 14px 0 0 0;
731-
}
732-
733613
.certificate-card-shell {
734614
animation: section-fade-up 380ms ease-out both;
735615
}

0 commit comments

Comments
 (0)