-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
189 additions
and
226 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
i18n_title: network.report | ||
table: | ||
- column: machine.computer_name | ||
i18n_header: listing.computername | ||
formatter: clientDetail | ||
tab_link: network-tab | ||
- column: reportdata.serial_number | ||
i18n_header: serial | ||
- {i18n_header: username, column: reportdata.long_username} | ||
- {i18n_header: network.service, column: network.service} | ||
- {i18n_header: network.status, column: network.status, formatter: binaryEnabledDisabled} | ||
- {i18n_header: network.ethernet, column: network.ethernet} | ||
- {i18n_header: network.ip_address, column: network.ipv4ip} | ||
- {i18n_header: network.dns, column: network.ipv4dns} | ||
- {i18n_header: network.router, column: network.ipv4router} | ||
- {i18n_header: network.externalip, column: network.externalip} | ||
- {i18n_header: network.mask, column: network.ipv4mask} | ||
- {i18n_header: network.activemedia, column: network.activemedia} |
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,78 +1,64 @@ | ||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><i class="fa fa-globe"></i> | ||
<span data-i18n="network.widget.network_location"></span> | ||
<list-link data-url="/show/listing/network/network"></list-link> | ||
</h3> | ||
</div> | ||
<div id="ip-panel" class="panel-body text-center"> | ||
<svg id="network-plot" style="width:100%; height: 300px"></svg> | ||
</div> | ||
</div><!-- /panel --> | ||
</div><!-- /col --> | ||
|
||
<script> | ||
$(document).on('appReady', function() { | ||
function isnotzero(point) | ||
{ | ||
return point.cnt > 0; | ||
} | ||
var url = appUrl + '/module/reportdata/ip' | ||
var chart; | ||
d3.json(url, function(err, data){ | ||
var height = 300; | ||
var width = 350; | ||
// Filter data | ||
data = data.filter(isnotzero); | ||
nv.addGraph(function() { | ||
var chart = nv.models.pieChart() | ||
.x(function(d) { return d.key }) | ||
.y(function(d) { return d.cnt }) | ||
.showLabels(false); | ||
chart.title("" + d3.sum(data, function(d){ | ||
return d.cnt; | ||
})); | ||
chart.pie.donut(true); | ||
d3.select("#network-plot") | ||
.datum(data) | ||
.transition().duration(1200) | ||
.style('height', height) | ||
.call(chart); | ||
// Adjust title (count) depending on active slices | ||
chart.dispatch.on('stateChange.legend', function (newState) { | ||
var disabled = newState.disabled; | ||
chart.title("" + d3.sum(data, function(d, i){ | ||
return d.cnt * !disabled[i]; | ||
})); | ||
}); | ||
return chart; | ||
}); | ||
}); | ||
}); | ||
</script> | ||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"><i class="fa fa-globe"></i> | ||
<span data-i18n="network.widget.network_location"></span> | ||
<list-link data-url="/show/listing/network/network"></list-link> | ||
</h3> | ||
</div> | ||
<div id="ip-panel" class="panel-body text-center"> | ||
<svg id="network-plot" style="width:100%; height: 300px"></svg> | ||
</div> | ||
</div><!-- /panel --> | ||
</div><!-- /col --> | ||
|
||
<script> | ||
$(document).on('appReady', function() { | ||
function isnotzero(point) | ||
{ | ||
return point.cnt > 0; | ||
} | ||
var url = appUrl + '/module/reportdata/ip' | ||
var chart; | ||
d3.json(url, function(err, data){ | ||
var height = 300; | ||
var width = 350; | ||
// Filter data | ||
data = data.filter(isnotzero); | ||
nv.addGraph(function() { | ||
var chart = nv.models.pieChart() | ||
.x(function(d) { return d.key }) | ||
.y(function(d) { return d.cnt }) | ||
.showLabels(false); | ||
chart.title("" + d3.sum(data, function(d){ | ||
return d.cnt; | ||
})); | ||
chart.pie.donut(true); | ||
d3.select("#network-plot") | ||
.datum(data) | ||
.transition().duration(1200) | ||
.style('height', height) | ||
.call(chart); | ||
// Adjust title (count) depending on active slices | ||
chart.dispatch.on('stateChange.legend', function (newState) { | ||
var disabled = newState.disabled; | ||
chart.title("" + d3.sum(data, function(d, i){ | ||
return d.cnt * !disabled[i]; | ||
})); | ||
}); | ||
return chart; | ||
}); | ||
}); | ||
}); | ||
</script> |
Oops, something went wrong.