Adding Core Contributors on the About page
This commit is contained in:
		
							parent
							
								
									53b0bc0e48
								
							
						
					
					
						commit
						1594fed853
					
				@ -160,19 +160,31 @@
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  
 | 
			
		||||
  <ng-container *ngIf="allContributors$ | async as contributors else loadingSponsors">
 | 
			
		||||
    <div class="contributors">
 | 
			
		||||
      <h3 i18n="about.contributors">Project Contributors</h3>
 | 
			
		||||
      <div class="wrapper">
 | 
			
		||||
      <ng-container *ngIf="contributors$ | async as contributors; else loadingSponsors">
 | 
			
		||||
        <ng-template ngFor let-contributor [ngForOf]="contributors">
 | 
			
		||||
        <ng-template ngFor let-contributor [ngForOf]="contributors.regular">
 | 
			
		||||
          <a [href]="'https://github.com/' + contributor.name" target="_blank" [title]="contributor.name">
 | 
			
		||||
            <img class="image" [src]="'/api/v1/contributors/images/' + contributor.id" />
 | 
			
		||||
            <span>{{ contributor.name }}</span>
 | 
			
		||||
          </a>
 | 
			
		||||
        </ng-template>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="maintainers" *ngIf="contributors.core.length">
 | 
			
		||||
      <h3 i18n="about.core_contributors">Core Contributors</h3>
 | 
			
		||||
      <div class="wrapper">
 | 
			
		||||
        <ng-template ngFor let-contributor [ngForOf]="contributors.core">
 | 
			
		||||
          <a [href]="'https://github.com/' + contributor.name" target="_blank" [title]="contributor.name">
 | 
			
		||||
            <img class="image" [src]="'/api/v1/contributors/images/' + contributor.id" />
 | 
			
		||||
            <span>{{ contributor.name }}</span>
 | 
			
		||||
          </a>
 | 
			
		||||
        </ng-template>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
  <div class="maintainers">
 | 
			
		||||
    <h3 i18n="about.maintainers">Project Maintainers</h3>
 | 
			
		||||
 | 
			
		||||
@ -6,6 +6,7 @@ import { Observable } from 'rxjs';
 | 
			
		||||
import { ApiService } from 'src/app/services/api.service';
 | 
			
		||||
import { IBackendInfo } from 'src/app/interfaces/websocket.interface';
 | 
			
		||||
import { Router } from '@angular/router';
 | 
			
		||||
import { map } from 'rxjs/operators';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-about',
 | 
			
		||||
@ -16,7 +17,7 @@ import { Router } from '@angular/router';
 | 
			
		||||
export class AboutComponent implements OnInit {
 | 
			
		||||
  backendInfo$: Observable<IBackendInfo>;
 | 
			
		||||
  sponsors$: Observable<any>;
 | 
			
		||||
  contributors$: Observable<any>;
 | 
			
		||||
  allContributors$: Observable<any>;
 | 
			
		||||
  frontendGitCommitHash = this.stateService.env.GIT_COMMIT_HASH;
 | 
			
		||||
  packetJsonVersion = this.stateService.env.PACKAGE_JSON_VERSION;
 | 
			
		||||
  officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
 | 
			
		||||
@ -37,7 +38,14 @@ export class AboutComponent implements OnInit {
 | 
			
		||||
    this.websocketService.want(['blocks']);
 | 
			
		||||
 | 
			
		||||
    this.sponsors$ = this.apiService.getDonation$();
 | 
			
		||||
    this.contributors$ = this.apiService.getContributor$();
 | 
			
		||||
    this.allContributors$ = this.apiService.getContributor$().pipe(
 | 
			
		||||
      map((contributors) => {
 | 
			
		||||
        return {
 | 
			
		||||
          regular: contributors.filter((user) => !user.core_constributor),
 | 
			
		||||
          core: contributors.filter((user) => user.core_constributor),
 | 
			
		||||
        };
 | 
			
		||||
      })
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  sponsor() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user