mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 06:59:33 +00:00
Fixes last security issues
This commit is contained in:
parent
05bd1b7a02
commit
6db98842d8
7 changed files with 5 additions and 17 deletions
8
assets/scripts/vendors/nvd3/nv.d3.js
vendored
8
assets/scripts/vendors/nvd3/nv.d3.js
vendored
|
|
@ -15195,13 +15195,6 @@ nv.models.pie = function() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
// Computes the angle of an arc, converting from radians to degrees.
|
||||
function angle(d) {
|
||||
var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90;
|
||||
return a > 90 ? a - 180 : a;
|
||||
}
|
||||
|
||||
function arcTween(a, idx) {
|
||||
a.endAngle = isNaN(a.endAngle) ? 0 : a.endAngle;
|
||||
a.startAngle = isNaN(a.startAngle) ? 0 : a.startAngle;
|
||||
|
|
@ -15358,7 +15351,6 @@ nv.models.pieChart = function() {
|
|||
var container = d3.select(this);
|
||||
nv.utils.initSVG(container);
|
||||
|
||||
var that = this;
|
||||
var availableWidth = nv.utils.availableWidth(width, container, margin),
|
||||
availableHeight = nv.utils.availableHeight(height, container, margin);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { DataTableUtils } from "../utilities/datatable/sprymedia-datatable-utils";
|
||||
import formatterUtils from "../utilities/formatter-utils.js";
|
||||
import { ntopng_utility, ntopng_url_manager } from "../services/context/ntopng_globals_services.js";
|
||||
import { ntopng_url_manager } from "../services/context/ntopng_globals_services.js";
|
||||
import NtopUtils from "../utilities/ntop-utils";
|
||||
|
||||
const bytesToSizeFormatter = formatterUtils.getFormatter(formatterUtils.types.bytes.id);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -73,10 +73,6 @@ function getSerieName(name, id, tsGroup, extendSeriesName) {
|
|||
return `${prefix} ${name_more_space}(${yaxisName})`;
|
||||
}
|
||||
|
||||
function getAddSeriesNameSource(tsGrpupsArray) {
|
||||
return tsGrpupsArray[0]?.source?.name != null;
|
||||
}
|
||||
|
||||
function getYaxisId(metric) {
|
||||
return `${metric.measure_unit}_${metric.scale}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ function get_table_columns_config() {
|
|||
columns.push({columnName: i18n("clients"), targets: 0, name: 'num_clients', data: 'num_clients', className: 'text-nowrap text-center', responsivePriority: 1});
|
||||
|
||||
if(selected_criteria.value.value != 3 && selected_criteria.value.value != 4)
|
||||
columns.push({columnName: i18n("servers"), targets: 0, name: 'num_servers', data: 'num_servers', className: 'text-nowrap text-center', responsivePriority: 1})
|
||||
columns.push({columnName: i18n("servers"), targets: 0, name: 'num_servers', data: 'num_servers', className: 'text-nowrap text-center', responsivePriority: 1});
|
||||
|
||||
columns.push({
|
||||
columnName: i18n("breakdown"), targets: 0, sorting: false, name: 'breakdown', data: 'breakdown', className: 'text-nowrap text-center', responsivePriority: 1, render: (data) => {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit b4a02bfdeca6ecee60dbbde36125659e09d17cae
|
||||
Subproject commit 1de8b7dd6f1d2f33027ecbce51ba07e4eb195a70
|
||||
|
|
@ -55,7 +55,7 @@ class LocalizationFile(object):
|
|||
else:
|
||||
self.next_skip = line.endswith("..")
|
||||
|
||||
def close(self)
|
||||
def close(self):
|
||||
self.f.close()
|
||||
|
||||
# Wrapper to provide len and indexing on the LocalizationFile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue