-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
2293224
commit f0f77c0
Showing
7 changed files
with
188 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
84 changes: 53 additions & 31 deletions
84
src/app/system-apps/taskmanager/taskmanager.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,35 +1,57 @@ | ||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name" (click)="setTaskMangrWindowToFocus(this.processId)"> | ||
<div class='card'> | ||
<div class='card-body'> | ||
<div class='table-responsive'> | ||
<table class='table' *ngIf = 'processes.length > 0' > | ||
<thead> | ||
<tr> | ||
<th *ngFor="let column of columns" | ||
(click)="sortTable(column)"> | ||
{{ column }} | ||
<span *ngIf="isDescSorting(column)">▼</span> | ||
<span *ngIf="isAscSorting(column)">▲</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor='let process of processes'> | ||
<td> | ||
<figure> | ||
<img [src]="process.getIcon"> | ||
<figcaption>{{ process.getProcessName}}</figcaption> | ||
</figure> | ||
</td> | ||
<td>{{ process.getType}}</td> | ||
<td>{{ process.getProcessId}}</td> | ||
<td>{{ process.getHasWindow}}</td> | ||
<td>{{ process.getCpuUsage}}%</td> | ||
<td>{{ process.getMemoryUsage}}MB</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<div class="tabbed-window"> | ||
<div class="tabs"> | ||
<div class="tab active">Processes</div> | ||
<div class="tab">Performance</div> | ||
<div class="tab">App history</div> | ||
</div> | ||
<div class="tab-content"> | ||
<div class="tab-pane active"> | ||
<div class='card'> | ||
<div class='card-body'> | ||
<div class='table-responsive'> | ||
<table class='table' *ngIf = 'processes.length > 0' > | ||
<thead> | ||
<tr> | ||
<th *ngFor="let column of columns" | ||
(click)="sortTable(column)"> | ||
{{ column }} | ||
<span *ngIf="isDescSorting(column)">▼</span> | ||
<span *ngIf="isAscSorting(column)">▲</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor='let process of processes'> | ||
<td> | ||
<figure> | ||
<img [src]="process.getIcon"> | ||
<figcaption>{{ process.getProcessName}}</figcaption> | ||
</figure> | ||
</td> | ||
<td>{{ process.getStatus}}</td> | ||
<td>{{ process.getCpuUsage}}%</td> | ||
<td>{{ process.getMemoryUsage}} MB</td> | ||
<td>{{ process.getDiskUsage}} MB/s</td> | ||
<td>{{ process.getNetworkUsage}} Mbps</td> | ||
<td>{{ process.getProcessId}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tab-pane"> | ||
<!-- Content for Tab 2 --> | ||
<p> Somethings is coming</p> | ||
</div> | ||
<div class="tab-pane"> | ||
<!-- Content for Tab 3 --> | ||
<p> Somethings is coming</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</cos-window> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
export interface UserInterface { | ||
name: string; | ||
type: string; | ||
process_id: number; | ||
Name: string; | ||
Status: string; | ||
CPU:number; | ||
Memory:number; | ||
Disk:number; | ||
Network:number; | ||
Power_usage:string; | ||
PID: number; | ||
has_window:boolean; | ||
cpu:number; | ||
memory:number; | ||
Type: string; | ||
Process_name:string; | ||
|
||
} |
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