CHORE - remove trailing spaces
Nick committed
Apr 2, 2016 at 10:45 UTC
38b4179dac24905ad3fcaa7395ec0e93dd97a1b8
4 files changed
+31
-32
web/dashboard.html
+1
-2
@@ -177,7 +177,7 @@ Sparklines using dygraphs
177
data-height="20"
178
data-after="-300"
179
></div>
180
- are also possible! This
180
+ are also possible! This
181
<div data-netdata="system.ipv4"
182
data-chart-library="dygraph"
183
data-dygraph-theme="sparkline"
@@ -647,4 +647,3 @@ So, to avoid flashing the charts, we destroy and re-create the charts on each up
647
648
<!-- load the dashboard manager - it will do the rest -->
649
<script type="text/javascript" src="dashboard.js"></script>
650
-
web/dashboard.js
+16
-16
@@ -560,7 +560,7 @@
560
master: null, // the master chart (state), to which all others
561
// are synchronized
562
563
- force_before_ms: null, // the timespan to sync all other charts
563
+ force_before_ms: null, // the timespan to sync all other charts
564
force_after_ms: null,
565
566
// set a new master
@@ -1228,7 +1228,7 @@
1228
that.tm.last_hidden = new Date().getTime();
1229
}
1230
}
1231
-
1231
+
1232
that.___chartIsHidden___ = true;
1233
}
1234
@@ -1434,8 +1434,8 @@
1434
};
1435
1436
// process end event
1437
- document.onmouseup =
1438
- document.ontouchend =
1437
+ document.onmouseup =
1438
+ document.ontouchend =
1439
this.element_legend_childs.resize_handler.onmouseup =
1440
this.element_legend_childs.resize_handler.ontouchend =
1441
function(e) {
@@ -1773,7 +1773,7 @@
1773
1774
if(typeof this.fixed_min_duration === 'undefined')
1775
this.fixed_min_duration = Math.round((this.chartWidth() / 30) * this.chart.update_every * 1000);
1776
-
1776
+
1777
var min_duration = this.fixed_min_duration;
1778
var current_duration = Math.round(this.view_before - this.view_after);
1779
@@ -1788,7 +1788,7 @@
1788
1789
// the final wanted duration
1790
var wanted_duration = before - after;
1791
-
1791
+
1792
// to allow panning, accept just a point below our minimum
1793
if((current_duration - this.data_update_every) < min_duration)
1794
min_duration = current_duration - this.data_update_every;
@@ -2385,7 +2385,7 @@
2385
// console.log('adusting view_after from ' + this.view_after + ' to ' + this.data_after);
2386
this.view_after = this.data_after;
2387
}
2388
-
2388
+
2389
if(this.view_before > this.data_before) {
2390
// console.log('adusting view_before from ' + this.view_before + ' to ' + this.data_before);
2391
this.view_before = this.data_before;
@@ -3108,7 +3108,7 @@
3108
// bootstrap modal switching
3109
$('.modal').on('hidden.bs.modal', NETDATA.onscroll);
3110
$('.modal').on('shown.bs.modal', NETDATA.onscroll);
3111
-
3111
+
3112
NETDATA.parseDom(NETDATA.chartRefresher);
3113
}
3114
@@ -3197,7 +3197,7 @@
3197
}
3198
else {
3199
NETDATA.chartLibraries.sparkline.enabled = false;
3200
- if(typeof callback === "function")
3200
+ if(typeof callback === "function")
3201
callback();
3202
}
3203
};
@@ -3732,7 +3732,7 @@
3732
state.log('interactionModel.mousewheel()');
3733
3734
// Take the offset of a mouse event on the dygraph canvas and
3735
- // convert it to a pair of percentages from the bottom left.
3735
+ // convert it to a pair of percentages from the bottom left.
3736
// (Not top left, bottom is where the lower value is.)
3737
function offsetToPercentage(g, offsetX, offsetY) {
3738
// This is calculating the pixel offset of the leftmost date.
@@ -4003,7 +4003,7 @@
4003
}
4004
else // stacked
4005
state.morris_instance = new Morris.Area(state.morris_options);
4006
-
4006
+
4007
return true;
4008
};
4009
@@ -4340,7 +4340,7 @@
4340
NETDATA.percentFromValueMax = function(value, max) {
4341
if(value === null) value = 0;
4342
if(max < value) max = value;
4343
-
4343
+
4344
var pcent = 0;
4345
if(max !== 0) {
4346
pcent = Math.round(value * 100 / max);
@@ -4461,7 +4461,7 @@
4461
var value = data.result[0];
4462
var max = self.data('easypiechart-max-value') || null;
4463
var adjust = self.data('easypiechart-adjust') || null;
4464
-
4464
+
4465
if(max === null) {
4466
max = data.max;
4467
state.easyPieChartMax = null;
@@ -4528,7 +4528,7 @@
4528
animate: self.data('easypiechart-rotate') || {duration: 500, enabled: true},
4529
easing: self.data('easypiechart-easing') || undefined
4530
});
4531
-
4531
+
4532
// when we just re-create the chart
4533
// do not animate the first update
4534
var animate = true;
@@ -4578,7 +4578,7 @@
4578
speed = 1000000000;
4579
else if(typeof status === 'number')
4580
speed = status;
4581
-
4581
+
4582
state.gauge_instance.animationSpeed = speed;
4583
state.___gaugeOld__.speed = speed;
4584
}
@@ -4834,7 +4834,7 @@
4834
minLabel: null,
4835
maxLabel: null
4836
};
4837
-
4837
+
4838
// we will always feed a percentage
4839
state.gauge_instance.minValue = 0;
4840
state.gauge_instance.maxValue = 100;
web/index.html
+13
-13
@@ -12,7 +12,7 @@
12
<meta name="author" content="costa@tsaousis.gr">
13
14
<link rel="shortcut icon" href="images/seo-performance-multi-size.ico">
15
-
15
+
16
<link rel="apple-touch-icon" href="images/seo-performance-72.png">
17
<link rel="apple-touch-icon" sizes="72x72" href="images/seo-performance-72.png">
18
<link rel="apple-touch-icon" sizes="114x114" href="images/seo-performance-114.png">
@@ -48,12 +48,12 @@
48
position: relative;
49
z-index: -2;
50
}
51
- h1:before, h2:before {
52
- display: block;
53
- content: " ";
51
+ h1:before, h2:before {
52
+ display: block;
53
+ content: " ";
54
margin-top: -70px;
55
height: 70px;
56
- visibility: hidden;
56
+ visibility: hidden;
57
}
58
59
.p {
@@ -74,7 +74,7 @@
74
}
75
76
.chart-message {
77
- display: block;
77
+ display: block;
78
margin-top: 10px;
79
}
80
@@ -766,10 +766,10 @@ function sortObjectByPriority(object) {
766
function gaugeChart(title, width, dimensions, colors) {
767
if(typeof colors === 'undefined')
768
colors = '';
769
-
769
+
770
if(typeof dimensions === 'undefined')
771
dimensions = '';
772
-
772
+
773
return '<div data-netdata="CHART_UNIQUE_ID"'
774
+ ' data-dimensions="' + dimensions + '"'
775
+ ' data-chart-library="gauge"'
@@ -1431,7 +1431,7 @@ function renderChartsAndMenu(data) {
1431
height: menuHeight(charts[c].menu, options.chartsHeight)
1432
};
1433
}
1434
-
1434
+
1435
if(charts[c].priority < menus[charts[c].menu].priority)
1436
menus[charts[c].menu].priority = charts[c].priority;
1437
@@ -1445,7 +1445,7 @@ function renderChartsAndMenu(data) {
1445
height: submenuHeight(charts[c].menu, charts[c].submenu, menus[charts[c].menu].height)
1446
};
1447
}
1448
-
1448
+
1449
if(charts[c].priority < menus[charts[c].menu].submenus[charts[c].submenu].priority)
1450
menus[charts[c].menu].submenus[charts[c].submenu].priority = charts[c].priority;
1451
@@ -1482,7 +1482,7 @@ function downloadAllCharts(netdata_url) {
1482
document.getElementById('hostname').innerHTML = options.hostname;
1483
document.getElementById('hostname').href = NETDATA.serverDefault;
1484
document.title = options.hostname + ' dashboard';
1485
-
1485
+
1486
renderChartsAndMenu(data);
1487
1488
// prepare our DOM
@@ -1530,7 +1530,7 @@ function finalizePage() {
1530
$('#sidebar').on('affixed.bs.affix', function() {
1531
$(this).removeAttr('style');
1532
});
1533
-
1533
+
1534
/* activate bootstrap scrollspy (needed for sidebar) */
1535
$(document.body).scrollspy({
1536
target: '#sidebar',
@@ -1581,7 +1581,7 @@ function finalizePage() {
1581
$('#stop_updates_when_focus_is_lost').change(function() { NETDATA.setOption('stop_updates_when_focus_is_lost', $(this).prop('checked')); });
1582
$('#smooth_plot').change(function() { NETDATA.setOption('smooth_plot', $(this).prop('checked')); });
1583
$('#pan_and_zoom_data_padding').change(function() { NETDATA.setOption('pan_and_zoom_data_padding', $(this).prop('checked')); });
1584
-
1584
+
1585
if(document.location.hostname === demo_hostname)
1586
setTimeout(function() {
1587
$('#welcomeModal').modal();
web/netdata-swagger.yaml
+1
-1
@@ -218,7 +218,7 @@ definitions:
218
name:
219
type: string
220
description: 'The name of the dimension'
221
-
221
+
222
json_wrap:
223
type: object
224
properties: