GUI: Added ESLint to gulp tasks. ONOS-6521
Commented out gulp tasks making this change uneffective
Fixed an error in the build script
Change-Id: I4f4f9762aa1a66304aa74b3ab208095b9c1d4515
diff --git a/web/gui/src/main/webapp/app/fw/widget/button.js b/web/gui/src/main/webapp/app/fw/widget/button.js
index 85202c6..a72732f 100644
--- a/web/gui/src/main/webapp/app/fw/widget/button.js
+++ b/web/gui/src/main/webapp/app/fw/widget/button.js
@@ -69,8 +69,8 @@
return {
id: id,
- width: buttonWidth
- }
+ width: buttonWidth,
+ };
}
@@ -111,8 +111,8 @@
width: buttonWidth,
selected: function () { return sel; },
toggle: _toggle,
- toggleNoCb: toggleNoCb
- }
+ toggleNoCb: toggleNoCb,
+ };
}
@@ -186,7 +186,7 @@
el: rbdiv,
id: rid,
cb: fs.isF(btn.cb) || noop,
- index: index
+ index: index,
});
if (btn.key) {
@@ -241,8 +241,8 @@
width: rsetWidth,
selected: selected,
selectedIndex: selectedIndex,
- size: function () { return rads.length; }
- }
+ size: function () { return rads.length; },
+ };
}
@@ -259,7 +259,7 @@
return {
button: button,
toggle: toggle,
- radioSet: radioSet
+ radioSet: radioSet,
};
}]);
diff --git a/web/gui/src/main/webapp/app/fw/widget/chartBuilder.js b/web/gui/src/main/webapp/app/fw/widget/chartBuilder.js
index af5a028..dc8e2ba 100644
--- a/web/gui/src/main/webapp/app/fw/widget/chartBuilder.js
+++ b/web/gui/src/main/webapp/app/fw/widget/chartBuilder.js
@@ -24,7 +24,7 @@
// fs -> FnService
// wss -> WebSocketService
// ls -> LoadingService
- var $log, $interval, $timeout, fs, wss, ls;
+ var $log, $interval, fs, wss, ls;
// constants
var refreshInterval = 2000;
@@ -129,19 +129,18 @@
angular.module('onosWidget')
.factory('ChartBuilderService',
- ['$log', '$interval', '$timeout', 'FnService', 'WebSocketService',
+ ['$log', '$interval', 'FnService', 'WebSocketService',
'LoadingService',
- function (_$log_, _$interval_, _$timeout_, _fs_, _wss_, _ls_) {
+ function (_$log_, _$interval_, _fs_, _wss_, _ls_) {
$log = _$log_;
$interval = _$interval_;
- $timeout = _$timeout_;
fs = _fs_;
wss = _wss_;
ls = _ls_;
return {
- buildChart: buildChart
+ buildChart: buildChart,
};
}]);
}());
diff --git a/web/gui/src/main/webapp/app/fw/widget/listBuilder.js b/web/gui/src/main/webapp/app/fw/widget/listBuilder.js
index 8c1c17e..8dc5053 100644
--- a/web/gui/src/main/webapp/app/fw/widget/listBuilder.js
+++ b/web/gui/src/main/webapp/app/fw/widget/listBuilder.js
@@ -56,7 +56,7 @@
.factory('ListService', [
function () {
return {
- listProps: listProps
+ listProps: listProps,
};
}]);
}());
diff --git a/web/gui/src/main/webapp/app/fw/widget/table.js b/web/gui/src/main/webapp/app/fw/widget/table.js
index 91dbe89..1e52017 100644
--- a/web/gui/src/main/webapp/app/fw/widget/table.js
+++ b/web/gui/src/main/webapp/app/fw/widget/table.js
@@ -94,7 +94,7 @@
s: {
first: null,
second: null,
- touched: null
+ touched: null,
},
reset: function () {
@@ -132,7 +132,7 @@
s2 = s.second;
api[s1.dir](s1.adiv);
s2 && api.none(s2.adiv);
- }
+ },
};
// Functions for sorting table rows by header
@@ -157,12 +157,12 @@
firstCol: s1.id,
firstDir: s1.dir,
secondCol: id2,
- secondDir: dir2
+ secondDir: dir2,
};
}
angular.module('onosWidget')
- .directive('onosTableResize', ['$log','$window', 'FnService', 'MastService',
+ .directive('onosTableResize', ['$log', '$window', 'FnService', 'MastService',
function (_$log_, _$window_, _fs_, _mast_) {
return function (scope, element) {
@@ -175,7 +175,7 @@
tableElems = {
table: table,
thead: table.select('.table-header').select('table'),
- tbody: table.select('.table-body').select('table')
+ tbody: table.select('.table-body').select('table'),
},
wsz;
@@ -185,7 +185,7 @@
scope.$watchCollection(function () {
return {
h: $window.innerHeight,
- w: $window.innerWidth
+ w: $window.innerWidth,
};
}, function () {
wsz = fs.windowSize(0, 30);
diff --git a/web/gui/src/main/webapp/app/fw/widget/tableBuilder.js b/web/gui/src/main/webapp/app/fw/widget/tableBuilder.js
index fa4300a..62faa89 100644
--- a/web/gui/src/main/webapp/app/fw/widget/tableBuilder.js
+++ b/web/gui/src/main/webapp/app/fw/widget/tableBuilder.js
@@ -21,7 +21,7 @@
'use strict';
// injected refs
- var $log, $interval, $timeout, fs, wss, ls;
+ var $log, $interval, fs, wss, ls;
// constants
var refreshInterval = 2000;
@@ -154,25 +154,24 @@
startRefresh();
return {
- forceRefesh : requestTableData
+ forceRefesh: requestTableData,
};
}
angular.module('onosWidget')
.factory('TableBuilderService',
- ['$log', '$interval', '$timeout', 'FnService', 'WebSocketService',
+ ['$log', '$interval', 'FnService', 'WebSocketService',
'LoadingService',
- function (_$log_, _$interval_, _$timeout_, _fs_, _wss_, _ls_) {
+ function (_$log_, _$interval_, _fs_, _wss_, _ls_) {
$log = _$log_;
$interval = _$interval_;
- $timeout = _$timeout_;
fs = _fs_;
wss = _wss_;
ls = _ls_;
return {
- buildTable: buildTable
+ buildTable: buildTable,
};
}]);
diff --git a/web/gui/src/main/webapp/app/fw/widget/tableDetail.js b/web/gui/src/main/webapp/app/fw/widget/tableDetail.js
index dad053b..466b08c 100644
--- a/web/gui/src/main/webapp/app/fw/widget/tableDetail.js
+++ b/web/gui/src/main/webapp/app/fw/widget/tableDetail.js
@@ -21,7 +21,7 @@
'use strict';
// injected refs
- var $log, $interval, $timeout, fs, wss;
+ var $log, fs;
// constants
// var refreshInterval = 2000;
@@ -50,17 +50,14 @@
// TODO: add ref to PanelService
angular.module('onosWidget')
.factory('TableDetailService',
- ['$log', '$interval', '$timeout', 'FnService', 'WebSocketService',
+ ['$log', 'FnService',
- function (_$log_, _$interval_, _$timeout_, _fs_, _wss_) {
+ function (_$log_, _fs_) {
$log = _$log_;
- $interval = _$interval_;
- $timeout = _$timeout_;
fs = _fs_;
- wss = _wss_;
return {
- buildBasePanel: buildBasePanel
+ buildBasePanel: buildBasePanel,
};
}]);
}());
diff --git a/web/gui/src/main/webapp/app/fw/widget/toolbar.js b/web/gui/src/main/webapp/app/fw/widget/toolbar.js
index 42d865d..d199797 100644
--- a/web/gui/src/main/webapp/app/fw/widget/toolbar.js
+++ b/web/gui/src/main/webapp/app/fw/widget/toolbar.js
@@ -38,7 +38,7 @@
top: 'auto',
bottom: '10px',
fade: false,
- shown: false
+ shown: false,
};
// internal state
@@ -81,8 +81,8 @@
panel = ps.createPanel(tbid, settings),
arrowDiv = createArrow(panel),
currentRow = panel.append('div').classed('tbar-row', true),
- rowButtonIds = [], // for removable buttons
- tbWidth = arrowSize + 2, // empty toolbar width
+ rowButtonIds = [], // for removable buttons
+ tbWidth = arrowSize + 2, // empty toolbar width
maxWidth = panel.width();
arrowDiv.on('click', toggle);
@@ -92,7 +92,7 @@
settings: settings,
items: items,
panel: panel,
- panelId: tbid
+ panelId: tbid,
};
panel.classed('toolbar', true)
@@ -171,7 +171,7 @@
clear: rowClear,
setText: rowSetText,
addButton: rowAddButton,
- classed: rowClassed
+ classed: rowClassed,
};
}
}
@@ -234,7 +234,7 @@
show: show,
hide: hide,
toggle: toggle,
- isVisible: isVisible
+ isVisible: isVisible,
};
}
@@ -268,7 +268,7 @@
return {
init: init,
createToolbar: createToolbar,
- destroyToolbar: destroyToolbar
+ destroyToolbar: destroyToolbar,
};
}]);
}());
diff --git a/web/gui/src/main/webapp/app/fw/widget/tooltip.js b/web/gui/src/main/webapp/app/fw/widget/tooltip.js
index b337476..54e40c7 100644
--- a/web/gui/src/main/webapp/app/fw/widget/tooltip.js
+++ b/web/gui/src/main/webapp/app/fw/widget/tooltip.js
@@ -22,7 +22,7 @@
'use strict';
// injected references
- var $log, $rootScope, fs;
+ var $rootScope, fs;
// constants
var hoverHeight = 35,
@@ -45,7 +45,7 @@
style = {
display: 'inline-block',
left: 'auto',
- right: 'auto'
+ right: 'auto',
};
if (mouseX <= (winWidth / 2)) {
@@ -108,7 +108,7 @@
tooltip.transition()
.delay(exitDelay)
.style({
- display: 'none'
+ display: 'none',
})
.text('');
}
@@ -127,13 +127,12 @@
restrict: 'A',
link: function (scope, elem, attrs) {
addTooltip(d3.select(elem[0]), scope[attrs.ttMsg]);
- }
+ },
};
}])
- .factory('TooltipService', ['$log', '$rootScope', 'FnService',
- function (_$log_, _$rootScope_, _fs_) {
- $log = _$log_;
+ .factory('TooltipService', ['$rootScope', 'FnService',
+ function (_$rootScope_, _fs_) {
$rootScope = _$rootScope_;
fs = _fs_;
@@ -142,7 +141,7 @@
return {
addTooltip: addTooltip,
showTooltip: showTooltip,
- cancelTooltip: cancelTooltip
+ cancelTooltip: cancelTooltip,
};
}]);
}());