Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit ca8e85d

Browse files
committed
feat: switch to hacker terminal UI aesthetic
1 parent 4a74bdb commit ca8e85d

2 files changed

Lines changed: 156 additions & 150 deletions

File tree

‎admin/app.js‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ function renderHourlyChart(data) {
402402
data: {
403403
labels,
404404
datasets: [
405-
{label:'Requests',data:counts,backgroundColor:'rgba(124,108,240,0.5)',borderColor:'rgba(124,108,240,0.8)',borderWidth:1,borderRadius:6,borderSkipped:false},
406-
{label:'Errors',data:errors,backgroundColor:'rgba(248,113,113,0.5)',borderColor:'rgba(248,113,113,0.8)',borderWidth:1,borderRadius:6,borderSkipped:false}
405+
{label:'Requests',data:counts,backgroundColor:'rgba(0,255,0,0.5)',borderColor:'#00ff00',borderWidth:1,borderRadius:0},
406+
{label:'Errors',data:errors,backgroundColor:'rgba(255,0,60,0.5)',borderColor:'#ff003c',borderWidth:1,borderRadius:0}
407407
]
408408
},
409409
options: chartOpts('Hourly Request Volume (24h)')
@@ -423,8 +423,8 @@ function renderDailyLLMChart(data) {
423423
data: {
424424
labels,
425425
datasets: [
426-
{label:'LLM Calls',data:calls,borderColor:'#a78bfa',backgroundColor:'rgba(167,139,250,0.08)',fill:true,tension:.4,pointBackgroundColor:'#a78bfa'},
427-
{label:'Tokens (÷100)',data:tokens.map(t=>Math.round(t/100)),borderColor:'#34d399',backgroundColor:'rgba(52,211,153,0.08)',fill:true,tension:.4,pointBackgroundColor:'#34d399'}
426+
{label:'LLM Calls',data:calls,borderColor:'#00ff00',backgroundColor:'rgba(0,255,0,0.1)',fill:true,tension:0,pointBackgroundColor:'#00ff00',pointStyle:'rect'},
427+
{label:'Tokens (÷100)',data:tokens.map(t=>Math.round(t/100)),borderColor:'#00ffff',backgroundColor:'rgba(0,255,255,0.1)',fill:true,tension:0,pointBackgroundColor:'#00ffff',pointStyle:'rect'}
428428
]
429429
},
430430
options: chartOpts('Daily LLM Usage (7d)')
@@ -446,8 +446,8 @@ function renderGitHubChart(views, clones) {
446446
data: {
447447
labels,
448448
datasets: [
449-
{label:'Views',data:viewCounts,borderColor:'#60a5fa',backgroundColor:'rgba(96,165,250,0.08)',fill:true,tension:.4,pointBackgroundColor:'#60a5fa'},
450-
{label:'Clones',data:cloneCounts,borderColor:'#34d399',backgroundColor:'rgba(52,211,153,0.08)',fill:true,tension:.4,pointBackgroundColor:'#34d399'}
449+
{label:'Views',data:viewCounts,borderColor:'#00ff00',backgroundColor:'rgba(0,255,0,0.1)',fill:true,tension:0,pointBackgroundColor:'#00ff00',pointStyle:'rect'},
450+
{label:'Clones',data:cloneCounts,borderColor:'#00ffff',backgroundColor:'rgba(0,255,255,0.1)',fill:true,tension:0,pointBackgroundColor:'#00ffff',pointStyle:'rect'}
451451
]
452452
},
453453
options: chartOpts('GitHub Traffic (14d)')
@@ -458,14 +458,14 @@ function chartOpts(title) {
458458
return {
459459
responsive:true, maintainAspectRatio:false,
460460
plugins:{
461-
legend:{labels:{color:'#7878a0',font:{family:'Inter',size:11},usePointStyle:true,pointStyle:'circle',padding:16}},
461+
legend:{labels:{color:'#00aa00',font:{family:'JetBrains Mono',size:10},usePointStyle:true,pointStyle:'rect',padding:16}},
462462
title:{display:false}
463463
},
464464
scales:{
465-
x:{ticks:{color:'#50506e',font:{family:'Inter',size:10}},grid:{color:'rgba(30,30,58,0.4)',drawBorder:false}},
466-
y:{ticks:{color:'#50506e',font:{family:'Inter',size:10}},grid:{color:'rgba(30,30,58,0.4)',drawBorder:false},beginAtZero:true}
465+
x:{ticks:{color:'#006600',font:{family:'JetBrains Mono',size:10}},grid:{color:'rgba(0,51,0,0.8)',drawBorder:false}},
466+
y:{ticks:{color:'#006600',font:{family:'JetBrains Mono',size:10}},grid:{color:'rgba(0,51,0,0.8)',drawBorder:false},beginAtZero:true}
467467
},
468-
elements:{line:{borderWidth:2},point:{radius:3,hoverRadius:5}}
468+
elements:{line:{borderWidth:1},point:{radius:2,hoverRadius:4}}
469469
};
470470
}
471471

0 commit comments

Comments
 (0)