-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
297 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/workbench/browser/src/app/pages/api/overview/api-overview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="overview_container"> | ||
<h1 class="fs20 fwb">概况</h1> | ||
<nz-divider></nz-divider> | ||
<div class="r_row f_js"> | ||
<div class="f_row_ac"> | ||
<div> | ||
<nz-card [nzActions]="[exportButton]"> | ||
<nz-card-meta nzTitle="导出" nzDescription="导出 API 数据"></nz-card-meta> | ||
</nz-card> | ||
<ng-template #exportButton> | ||
<i (click)="export()" nz-icon nzType="export"></i> | ||
</ng-template> | ||
</div> | ||
<div class="ml15"> | ||
<nz-card [nzActions]="[syncButton]"> | ||
<nz-card-meta nzTitle="推送" nzDescription="将 API 推送/同步到其他平台"></nz-card-meta> | ||
</nz-card> | ||
<ng-template #syncButton> | ||
<i (click)="sync()" nz-icon nzType="sync"></i> | ||
</ng-template> | ||
</div> | ||
</div> | ||
<!-- <div> | ||
<h2>统计</h2> | ||
</div> --> | ||
</div> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
src/workbench/browser/src/app/pages/api/overview/api-overview.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.overview_container{ | ||
width: 50%; | ||
margin: 0 auto; | ||
padding: 20px 0; | ||
} | ||
nz-card{ | ||
min-width: 220px; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/workbench/browser/src/app/pages/api/overview/api-overview.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ApiOverviewComponent } from './api-overview.component'; | ||
|
||
describe('ApiOverviewComponent', () => { | ||
let component: ApiOverviewComponent; | ||
let fixture: ComponentFixture<ApiOverviewComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ApiOverviewComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ApiOverviewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.