-
Notifications
You must be signed in to change notification settings - Fork 31
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 #30 from nokia/tasks-runtimes
Tasks runtimes
- Loading branch information
Showing
20 changed files
with
722 additions
and
446 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.iml | ||
node_modules | ||
npm-debug.log | ||
.npmrc | ||
dist/ | ||
coverage | ||
src/assets/auth.json |
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
33 changes: 33 additions & 0 deletions
33
src/app/executions/tasks-runtime/tasks-runtime.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,33 @@ | ||
<div class="p-2 mb-1"> | ||
|
||
<div class="d-flex justify-content-center align-items-baseline info-panel-header"> | ||
<span>Task Runtimes</span> | ||
</div> | ||
|
||
<table class="table table-sm table-striped table-hover table-bordered"> | ||
<thead> | ||
<tr> | ||
<th>Task</th> | ||
<th>Relative Runtime</th> | ||
<th>Runtime</th> | ||
</tr> | ||
</thead> | ||
<tr *ngFor="let task of graphModel; trackBy: trackByTaskId"> | ||
<td class="task-name"> | ||
<a [routerLink]="['tasks', task.id]" class="text-ellipsis" [title]="task.name + ' (' + task.id + ')'">{{task.name}}</a> | ||
</td> | ||
<td> | ||
<div class="stackedBarChart"> | ||
<div class="inner"> | ||
<div class="prehighlight" [style.width.%]="task.preBarWidth"></div> | ||
<div class="highlight" [style.width.%]="task.barWidth" | ||
[style.backgroundColor]="task.backgroundColor"></div> | ||
</div> | ||
</div> | ||
</td> | ||
<td class="text-muted" [title]="task.created_at + ' - ' + task.updated_at"> | ||
{{task.duration}} | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |
40 changes: 40 additions & 0 deletions
40
src/app/executions/tasks-runtime/tasks-runtime.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,40 @@ | ||
// Copyright (C) 2018 Nokia | ||
|
||
.stackedBarChart { | ||
width: 100%; | ||
height: 10px; | ||
font-size: 0; | ||
|
||
.inner { | ||
width: 100%; | ||
height: 100%; | ||
font-size: 0; | ||
|
||
.highlight { | ||
border-radius: 2px; | ||
transition: filter .3s ease-in-out; | ||
|
||
&:hover { | ||
filter: brightness(1.1); | ||
} | ||
} | ||
|
||
div { | ||
height: 100%; | ||
display: inline-block; | ||
font-size: 0; | ||
} | ||
} | ||
} | ||
|
||
table { | ||
line-height: 1.3; | ||
td { | ||
padding: 1px; | ||
vertical-align: middle; | ||
} | ||
td.task-name a { | ||
width: 150px; | ||
display: block; | ||
} | ||
} |
Oops, something went wrong.