@@ -390,13 +390,15 @@ <h1>Tijdlijn & <span class="accent">Statistieken</span></h1>
390390
391391 <!-- Section 1: Highlight stats -->
392392 < section class ="section " style ="background: var(--blueprint-white); ">
393- < div class ="highlight-cards " style ="grid-template-columns: repeat(3 , 1fr); ">
393+ < div class ="highlight-cards " style ="grid-template-columns: repeat(4 , 1fr); ">
394394 < div class ="highlight-card "> < div class ="number " id ="s-repos "> —</ div > < div class ="label "> Repositories</ div > </ div >
395395 < div class ="highlight-card "> < div class ="number " id ="s-commits "> —</ div > < div class ="label "> Commits</ div > </ div >
396396 < div class ="highlight-card "> < div class ="number " id ="s-stars "> —</ div > < div class ="label "> Stars</ div > </ div >
397+ < div class ="highlight-card "> < div class ="number " id ="s-releases "> —</ div > < div class ="label "> Releases</ div > </ div >
397398 < div class ="highlight-card "> < div class ="number " id ="s-contributors "> —</ div > < div class ="label "> Contributors</ div > </ div >
398399 < div class ="highlight-card "> < div class ="number " id ="s-loc "> —</ div > < div class ="label "> Regels code (est.)</ div > </ div >
399400 < div class ="highlight-card "> < div class ="number " id ="s-languages "> —</ div > < div class ="label "> Programmeertalen</ div > </ div >
401+ < div class ="highlight-card "> < div class ="number " id ="s-issues "> —</ div > < div class ="label "> Open issues</ div > </ div >
400402 </ div >
401403 < p id ="stats-updated " style ="text-align:center;font-size:0.75rem;color:var(--scaffold-gray);margin-top:var(--sp-2); "> </ p >
402404 </ section >
@@ -408,19 +410,19 @@ <h2 style="color:white;">Groei in de <span class="accent">tijd</span></h2>
408410 < div class ="trend-grid " style ="display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-6);margin-top:var(--sp-6); ">
409411 < div style ="background:var(--deep-forge);border-radius:var(--radius-lg);padding:var(--sp-6); ">
410412 < h4 style ="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:var(--sp-4); "> Cumulatief aantal repos</ h4 >
411- < div id ="chart-cum-repos " style ="height:200px ; "> </ div >
413+ < div id ="chart-cum-repos " style ="height:250px ; "> </ div >
412414 </ div >
413415 < div style ="background:var(--deep-forge);border-radius:var(--radius-lg);padding:var(--sp-6); ">
414416 < h4 style ="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:var(--sp-4); "> Cumulatief aantal commits</ h4 >
415- < div id ="chart-cum-commits " style ="height:200px ; "> </ div >
417+ < div id ="chart-cum-commits " style ="height:250px ; "> </ div >
416418 </ div >
417419 < div style ="background:var(--deep-forge);border-radius:var(--radius-lg);padding:var(--sp-6); ">
418- < h4 style ="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:var(--sp-4); "> Cumulatief aantal stars </ h4 >
419- < div id ="chart-cum-stars " style ="height:200px ; "> </ div >
420+ < h4 style ="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:var(--sp-4); "> Open issues per maand </ h4 >
421+ < div id ="chart-cum-issues " style ="height:250px ; "> </ div >
420422 </ div >
421423 < div style ="background:var(--deep-forge);border-radius:var(--radius-lg);padding:var(--sp-6); ">
422424 < h4 style ="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:var(--sp-4); "> Regels code (geschat)</ h4 >
423- < div id ="chart-cum-loc " style ="height:200px ; "> </ div >
425+ < div id ="chart-cum-loc " style ="height:250px ; "> </ div >
424426 </ div >
425427 </ div >
426428 </ div >
@@ -429,13 +431,13 @@ <h4 style="color:var(--amber);font-family:var(--font-code);font-size:0.8rem;text
429431 < section class ="section " style ="background: white; ">
430432 < div class ="stats-section ">
431433 < h2 > Repos per < span class ="accent "> maand</ span > </ h2 >
432- < div id ="chart-monthly " style ="height: 300px ; "> </ div >
434+ < div id ="chart-monthly " style ="height: 250px ; "> </ div >
433435 </ div >
434436 </ section >
435437 < section class ="section " style ="background: var(--concrete); ">
436438 < div class ="stats-section ">
437439 < h2 > Verdeling per < span class ="accent "> programmeertaal</ span > </ h2 >
438- < div id ="chart-langs " style ="height: 300px ; "> </ div >
440+ < div id ="chart-langs " style ="height: 250px ; "> </ div >
439441 </ div >
440442 </ section >
441443
@@ -586,6 +588,8 @@ <h2>Repository overzicht</h2>
586588 document . getElementById ( 's-contributors' ) . textContent = '10+' ;
587589 document . getElementById ( 's-loc' ) . textContent = '—' ;
588590 document . getElementById ( 's-languages' ) . textContent = '7+' ;
591+ document . getElementById ( 's-releases' ) . textContent = '100+' ;
592+ document . getElementById ( 's-issues' ) . textContent = '—' ;
589593 } ) ;
590594
591595function renderStats ( data ) {
@@ -596,6 +600,8 @@ <h2>Repository overzicht</h2>
596600 document . getElementById ( 's-contributors' ) . textContent = s . uniqueContributors ;
597601 document . getElementById ( 's-loc' ) . textContent = s . estimatedLinesOfCode . toLocaleString ( 'nl-NL' ) ;
598602 document . getElementById ( 's-languages' ) . textContent = s . languages ;
603+ document . getElementById ( 's-releases' ) . textContent = data . repos . reduce ( ( s , r ) => s + r . releases , 0 ) ;
604+ document . getElementById ( 's-issues' ) . textContent = s . totalOpenIssues ;
599605 document . getElementById ( 'stats-updated' ) . textContent = 'Laatste update: ' + data . generated . substring ( 0 , 10 ) ;
600606
601607 // Table
@@ -628,7 +634,7 @@ <h2>Repository overzicht</h2>
628634 const ts = data . timeSeries ;
629635 lineChart ( 'chart-cum-repos' , ts . months , ts . cumulativeRepos , '#D97706' ) ;
630636 lineChart ( 'chart-cum-commits' , ts . months , ts . cumulativeCommits , '#16A34A' ) ;
631- lineChart ( 'chart-cum-stars ' , ts . months , ts . cumulativeStars , '#F59E0B ' ) ;
637+ lineChart ( 'chart-cum-issues ' , ts . months , ts . cumulativeIssues , '#EA580C ' ) ;
632638 lineChart ( 'chart-cum-loc' , ts . months , ts . cumulativeLinesOfCode , '#3178C6' , true ) ;
633639 }
634640}
@@ -647,7 +653,7 @@ <h2>Repository overzicht</h2>
647653 }
648654
649655 // Use HTML/CSS based chart for better text rendering
650- const chartH = 160 ;
656+ const chartH = 200 ;
651657 el . innerHTML = `
652658 <div style="position:relative;height:${ chartH + 40 } px;">
653659 <!-- Y-axis labels -->
0 commit comments