@@ -530,14 +530,54 @@ const emeriti = [
530
530
} ,
531
531
] ;
532
532
533
+ // https://api.github.com/repos/nostalgic-css/NES.css/contributors?per_page=100 | jq . '.[].login'
534
+ const contributors = [
535
+ '4k1k0' ,
536
+ 'sombreroEnPuntas' ,
537
+ 'Divoolej' ,
538
+ 'soph-iest' ,
539
+ 'KeevanDance' ,
540
+ 'montezume' ,
541
+ 'sazzadsazib' ,
542
+ 'jjspace' ,
543
+ 'ohlookitsderpy' ,
544
+ 'jdvivar' ,
545
+ 'Ilyeo' ,
546
+ 'youngkaneda' ,
547
+ 'kenshinji' ,
548
+ 'Kartones' ,
549
+ 'IngwiePhoenix' ,
550
+ 'Takumi0901' ,
551
+ 'Baldomo' ,
552
+ 'ernestomancebo' ,
553
+ 'stewartrule' ,
554
+ 'DanSnow' ,
555
+ 'rrj-dev' ,
556
+ 'vicainelli' ,
557
+ 'sinofp' ,
558
+ 'tnantoka' ,
559
+ 'LukBukkit' ,
560
+ 'd0p1s4m4' ,
561
+ 'musavvirahmed' ,
562
+ 'KOREAN139' ,
563
+ 'loo41' ,
564
+ 'otaviopace' ,
565
+ 'alexgleason' ,
566
+ 'fleeting' ,
567
+ 'scottaohara' ,
568
+ 'JamesIves' ,
569
+ 'agarzola' ,
570
+ 'jsoref' ,
571
+ ] ;
572
+
533
573
new Vue ( {
534
574
el : '#nescss' ,
535
575
data ( ) {
536
576
return {
537
577
collection : sampleCollection ,
538
578
coreteam,
539
579
emeriti,
540
- contributors : [ ] ,
580
+ contributors,
541
581
animateOctocat : false ,
542
582
copiedBalloon : {
543
583
display : 'none' ,
@@ -554,9 +594,6 @@ new Vue({
554
594
return val . charAt ( 0 ) . toUpperCase ( ) + val . slice ( 1 ) ;
555
595
} ,
556
596
} ,
557
- created ( ) {
558
- this . fetchContributors ( ) ;
559
- } ,
560
597
mounted ( ) {
561
598
document . addEventListener ( 'scroll' , ( ) => {
562
599
this . scrollPos = document . documentElement . scrollTop || document . body . scrollTop ;
@@ -565,6 +602,7 @@ new Vue({
565
602
[ ] . forEach . call ( document . querySelectorAll ( 'dialog' ) , ( a ) => {
566
603
dialogPolyfill . registerDialog ( a ) ;
567
604
} ) ;
605
+ this . replaceImages ( ) ;
568
606
} ,
569
607
methods : {
570
608
share ( media ) {
@@ -614,21 +652,6 @@ new Vue({
614
652
this . copiedBalloon . display = 'none' ;
615
653
} , 1000 ) ;
616
654
} ,
617
- async fetchContributors ( ) {
618
- try {
619
- const res = await fetch ( 'https://api.github.com/repos/nostalgic-css/NES.css/contributors' ) ;
620
- const json = await res . json ( ) ;
621
-
622
- const coreMembers = [ ...this . coreteam , ...this . emeriti ] . map ( a => a . github ) ;
623
- this . contributors = json . filter ( a => ! coreMembers . includes ( a . login ) ) . map ( a => a . login ) ;
624
- } catch ( e ) {
625
- console . error ( e ) ;
626
- return ;
627
- }
628
-
629
- await this . $nextTick ( ) ;
630
- this . replaceImages ( ) ;
631
- } ,
632
655
replaceImages ( ) {
633
656
Array . from ( document . querySelectorAll ( 'img.lazy' ) ) . forEach ( ( img ) => {
634
657
img . onload = ( ) => img . classList . remove ( 'lazy' ) ;
0 commit comments