Commit e38ed156 authored by nanahira's avatar nanahira

Revert "Update favicon.ico"

This reverts commit f6033695.
parent f6033695
Pipeline #22766 passed with stages
in 2 minutes and 6 seconds
nz-table::ng-deep .ant-table {
background: white;
}
<nz-table #ajaxTable [nzData]="listOfData" [nzLoading]="loading" nzSize="small" [nzShowPagination]="false">
<thead>
<tr>
<th>Rank</th>
<th>Deck</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of ajaxTable.data; let i = index">
<td>{{ i+1 }}</td>
<td>{{ data.name }}</td>
<td>{{ data.count }}</td>
</tr>
</tbody>
</nz-table>
import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { ArenaTableComponent } from './arena-table.component';
describe('ArenaTableComponent', () => {
let component: ArenaTableComponent;
let fixture: ComponentFixture<ArenaTableComponent>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
declarations: [ ArenaTableComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(ArenaTableComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should compile', () => {
expect(component).toBeTruthy();
});
});
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-arena-table',
templateUrl: './arena-table.component.html',
styleUrls: ['./arena-table.component.css']
})
export class ArenaTableComponent implements OnInit {
listOfData: ArenaDeck[] = [];
loading = true;
constructor(private http: HttpClient) {}
async ngOnInit() {
this.listOfData = await this.http
.get<ArenaDeck[]>('https://sapi.moecube.com:444/ygopro/analytics/deck/type', {
params: {
type: 'day',
source: 'mycard-athletic'
}
})
.toPromise();
this.loading = false;
}
}
interface ArenaDeck {
count: '661';
name: '转生炎兽';
recent_time: '2019-07-15T00:00:00.000Z';
source: 'mycard-athletic';
tags: ['转生炎兽-陀螺', '转生炎兽-割草'];
}
[nz-carousel-content] {
text-align: center;
height: 160px;
line-height: 160px;
background: #364d79;
color: #fff;
overflow: hidden;
}
h3 {
color: #fff;
}
\ No newline at end of file
<nz-carousel nzAutoPlay>
<div nz-carousel-content *ngFor="let index of array">
<h3>{{ index }}</h3>
</div>
</nz-carousel>
\ No newline at end of file
import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { BannerComponent } from './banner.component';
describe('BannerComponent', () => {
let component: BannerComponent;
let fixture: ComponentFixture<BannerComponent>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
declarations: [ BannerComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(BannerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should compile', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
@Component({
selector: 'app-banner',
templateUrl: './banner.component.html',
styleUrls: ['./banner.component.css']
})
export class BannerComponent {
array = [1, 2, 3, 4];
}
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-table', selector: 'app-home',
templateUrl: './table.component.html', templateUrl: './home.component.html',
styleUrls: ['./table.component.css'] styleUrls: ['./home.component.css']
}) })
export class TableComponent implements OnInit { export class HomeComponent implements OnInit {
constructor() { } constructor() { }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment