-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a network widget that display sent & received megabytes per sec…
…ond as well as a graph of the total throughput per second
- Loading branch information
Showing
18 changed files
with
566 additions
and
416 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
Large diffs are not rendered by default.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
23 changes: 23 additions & 0 deletions
23
ui/src/app/modules/status/widgets/network-widget/network-widget.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,23 @@ | ||
<div class="flex-column d-flex align-items-stretch h-100 w-100 pb-1"> | ||
<div style="cursor: move;" class="drag-handler pl-2 pt-1 pr-2" [translate]="'status.network.title_network'"> | ||
Network | ||
</div> | ||
<canvas class="widget-chart h-100 w-100" baseChart [datasets]="lineChartData" [labels]="lineChartLabels" | ||
[options]="lineChartOptions" [colors]="lineChartColors" [chartType]="'line'"></canvas> | ||
<div #widgetbackground class="hb-widget-chart-background"></div> | ||
<div class="d-flex flex-row flex-grow-1 align-items-center w-100 gridster-item-content text-center"> | ||
<div class="d-flex justify-content-around flex-wrap w-100"> | ||
<div class="text-center widget-value-parent-wrap"> | ||
<div class="widget-value mb-0">{{ receivedPerSec | number:'1.0-2' }} MB</div> | ||
<div class="widget-value-label grey-text" [translate]="'status.network.label_received_per_second'">Received/sec | ||
</div> | ||
</div> | ||
<div class="text-center widget-value-parent-wrap"> | ||
<div class="widget-value mb-0"> | ||
{{ sentPerSec | number:'1.0-2' }} MB | ||
</div> | ||
<div class="widget-value-label grey-text" [translate]="'status.network.label_sent_per_second'">Sent/sec</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
4 changes: 4 additions & 0 deletions
4
ui/src/app/modules/status/widgets/network-widget/network-widget.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,4 @@ | ||
.widget-chart { | ||
position: absolute; | ||
z-index: -1; | ||
} |
Oops, something went wrong.
fa7ce9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add ukraine flags ;-)
fa7ce9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Ukrainian currently supported? If so just add the flag and create a pull request.
fa7ce9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/oznu/homebridge-config-ui-x/releases/tag/4.41.3
I do not know how to do it but the language has been supported for a long time, I promto sent it to the author but did not do OL, if you do not find it difficult to insert the flag
fa7ce9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you figured it out 👏