mise à jour ansible glpi

This commit is contained in:
lucas.dubief
2022-02-11 15:48:06 +01:00
parent 3bae0bc39a
commit 9ddd78ea91
1017 changed files with 394347 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
var fifooter = "<br/> \
<a class='copyright' href='http://fusioninventory.org/'> \
FusionInventory 9.5+3.0 - Copyleft \
<span style='display:inline-block;transform: rotate(180deg);font-size: 12px;'>&copy;</span> \
2010-2019 by FusionInventory Team \
</a>";
$(window).bind("load", function() {
$('#footer').css('height', 'auto');
$("#footer td.right").append(fifooter);
});

View File

@@ -0,0 +1,68 @@
function statHalfDonut(svgname, jsondata) {
nv.addGraph(function() {
var width = 400,
height = 380;
var chart = nv.models.pieChart()
.x(function(d) { return d.key })
.showLabels(false)
// .values(function(d) { return d.value })
// .color(function(d) {return d.data.color})
.width(width)
.height(height)
.donut(true);
chart.pie
.startAngle(function(d) { return d.startAngle/2 -Math.PI/2 })
.endAngle(function(d) { return d.endAngle/2 -Math.PI/2 });
chart.legend.maxKeyLength(200);
d3.select('#' + svgname)
.datum(JSON.parse(jsondata))
.transition().duration(1200)
.attr('width', width)
.attr('height', height)
.call(chart);
return chart;
});
}
function statBar(svgname, jsondata, title) {
nv.addGraph(function() {
var width = 400,
height = 380;
var chart = nv.models.discreteBarChart()
.x(function(d) { return d.label })
.y(function(d) { return d.value })
.width(width)
.height(height)
.staggerLabels(true)
.showValues(false);
d3.select('#' + svgname)
.datum([JSON.parse(jsondata)])
.attr('width', width)
.attr('height', height)
.call(chart);
d3.select('#' + svgname)
.append('text')
.attr('x', 200)
.attr('y', 12)
.attr('text-anchor', 'middle')
.style('font-weight', 'bold')
.text(title);
nv.utils.windowResize(chart.update);
return chart;
});
}

File diff suppressed because it is too large Load Diff