-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from scottstraughan/integrated-scorecard
Integrated Scorecard
- Loading branch information
Showing
71 changed files
with
1,052 additions
and
587 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
32 changes: 0 additions & 32 deletions
32
...oard/repository-view/components/repository/scorecard-popup/scorecard-popup.component.html
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
...hboard/repository-view/components/repository/scorecard-popup/scorecard-popup.component.ts
This file was deleted.
Oops, something went wrong.
133 changes: 0 additions & 133 deletions
133
src/openssd-dashboard/repository-view/repository-view.component.html
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/openssd-dashboard/repository-view/repository-view.component.spec.ts
This file was deleted.
Oops, something went wrong.
92 changes: 92 additions & 0 deletions
92
src/openssf-dashboard/account-view/account-view.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,92 @@ | ||
@if (fatalError(); as fatalError) { | ||
<div class="panel error-message"> | ||
<div> | ||
<span class="material-symbols-outlined">{{ fatalError.icon }}</span> | ||
<h1 [innerHTML]="fatalError.title"></h1> | ||
<h2 [innerHTML]="fatalError.message"></h2> | ||
</div> | ||
</div> | ||
} @else { | ||
<div class="panel overview"> | ||
@if (accountLoadState() == LoadingState.LOAD_SUCCESS) { | ||
@if (selectedAccount(); as account) { | ||
<div class="header"> | ||
@if (scorecardLoadState() == LoadingState.LOAD_SUCCESS) { | ||
<osd-score-ring | ||
[score]="averageScorecardScore()" | ||
(click)="reloadScorecardResults(account)" | ||
[thickness]="'10px'" | ||
title="Click to re-check all scorecard scores" | ||
fontSize="4rem"></osd-score-ring> | ||
} @else { | ||
<osd-loading></osd-loading> | ||
} | ||
</div> | ||
<div class="details"> | ||
<h1 [innerHTML]="account.name"></h1> | ||
<p [innerHTML]="account.description"></p> | ||
|
||
<div class="stats"> | ||
<div> | ||
<div> | ||
<span class="material-symbols-outlined">public</span> | ||
</div> | ||
<div>Public Repositories</div> | ||
<div> | ||
<span class="number" [innerHTML]="totalRepositories()">-</span> | ||
</div> | ||
</div> | ||
<div> | ||
<div> | ||
<span class="material-symbols-outlined">scoreboard</span> | ||
</div> | ||
<div>Available Scorecards</div> | ||
<div> | ||
<span class="number"> | ||
@if (scorecardLoadState() == LoadingState.LOAD_SUCCESS) { | ||
{{ totalRepositoriesWithScorecards() }} | ||
} @else { | ||
<osd-loading></osd-loading> | ||
} | ||
</span> | ||
</div> | ||
</div> | ||
<div> | ||
<div> | ||
<span class="material-symbols-outlined">group</span> | ||
</div> | ||
<div>Followers</div> | ||
<div> | ||
<span class="number" [innerHTML]="account.followers">-</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<a [href]="account.url" target="_blank" rel="noopener"> | ||
<osd-button | ||
icon="alt_route" | ||
label="Visit Repository"></osd-button> | ||
</a> | ||
<div class="side-by-side"> | ||
<osd-button | ||
icon="delete" | ||
label="Remove" | ||
(clicked)="onDeleteServiceAccount(account)"></osd-button> | ||
|
||
<osd-button | ||
icon="sync" | ||
label="Fetch Repos" | ||
(clicked)="onFetchRepositories(account)"></osd-button> | ||
</div> | ||
</div> | ||
} | ||
} @else { | ||
<osd-loading></osd-loading> | ||
} | ||
</div> | ||
|
||
<div class="panel router-outlet"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
} |
Oops, something went wrong.