-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: trivernis <trivernis@protonmail.com>
- Loading branch information
Showing
14 changed files
with
256 additions
and
56 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
10 changes: 4 additions & 6 deletions
10
mediarepo-ui/src/app/components/core/repositories-tab/repositories-tab.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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<div *ngIf="!this.selectedRepository"> | ||
<app-repository-overview></app-repository-overview> | ||
</div> | ||
<div *ngIf="this.selectedRepository" class="repo-details"> | ||
<app-repository-details-view [repository]="this.selectedRepository"></app-repository-details-view> | ||
</div> | ||
<app-repository-overview *ngIf="!this.selectedRepository"></app-repository-overview> | ||
<app-repository-details-view *ngIf="this.selectedRepository" | ||
[repository]="this.selectedRepository"></app-repository-details-view> | ||
|
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
2 changes: 2 additions & 0 deletions
2
mediarepo-ui/src/app/components/shared/app-common/chart/chart.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,2 @@ | ||
<h2 *ngIf="this.title" class="title">{{this.title}}</h2> | ||
<p-chart [data]="data" [options]="this.options" [type]="this.chartType ?? ''"></p-chart> |
15 changes: 15 additions & 0 deletions
15
mediarepo-ui/src/app/components/shared/app-common/chart/chart.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,15 @@ | ||
:host { | ||
height: 100%; | ||
width: 100%; | ||
display: block; | ||
} | ||
|
||
.title { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
|
||
p-chart { | ||
height: 100%; | ||
width: 100%; | ||
} |
25 changes: 25 additions & 0 deletions
25
mediarepo-ui/src/app/components/shared/app-common/chart/chart.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 {ChartComponent} from "./chart.component"; | ||
|
||
describe("ChartComponent", () => { | ||
let component: ChartComponent; | ||
let fixture: ComponentFixture<ChartComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ChartComponent] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ChartComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it("should create", () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.