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/view/topo/topoOblique.js b/web/gui/src/main/webapp/app/view/topo/topoOblique.js
index 45ad2f0..6390758 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoOblique.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoOblique.js
@@ -24,7 +24,7 @@
'use strict';
// injected refs
- var $log, fs, sus, flash;
+ var sus, flash;
// api to topoForce
var api;
@@ -43,14 +43,14 @@
*/
// configuration
- var xsky = -.7, // x skew y factor
- xsk = -35, // x skew angle
- ysc = .5, // y scale
+ var xsky = -.7, // x skew y factor
+ xsk = -35, // x skew angle
+ ysc = .5, // y scale
pad = 50,
time = 1500,
fill = {
- pkt: 'rgba(130,130,170,0.3)', // blue-ish
- opt: 'rgba(170,130,170,0.3)' // magenta-ish
+ pkt: 'rgba(130,130,170,0.3)', // blue-ish
+ opt: 'rgba(170,130,170,0.3)', // magenta-ish
};
// internal state
@@ -74,7 +74,7 @@
}
function noXform() {
- return sus.skewX(0) + sus.translate(0,0) + sus.scale(1,1);
+ return sus.skewX(0) + sus.translate(0, 0) + sus.scale(1, 1);
}
function padBox(box, p) {
@@ -105,7 +105,7 @@
ay = xy.y - oy,
x = ax + ay * xsky,
y = (ay + yt) * ysc;
- return {x: ox + x, y: oy + y};
+ return { x: ox + x, y: oy + y };
};
showPlane('pkt', box, -1);
@@ -136,7 +136,7 @@
if (xffn) {
api.nodes().forEach(function (d) {
- var oldxy = {x: d.x, y: d.y},
+ var oldxy = { x: d.x, y: d.y },
coords = xffn(oldxy, dir(d));
d.oldxy = oldxy;
d.px = d.x = coords.x;
@@ -144,7 +144,7 @@
});
} else {
api.nodes().forEach(function (d) {
- var old = d.oldxy || {x: d.x, y: d.y};
+ var old = d.oldxy || { x: d.x, y: d.y };
d.px = d.x = old.x;
d.py = d.y = old.y;
delete d.oldxy;
@@ -191,7 +191,7 @@
var id = planeId(tag),
g = api.zoomLayer().insert('g', '#topo-G')
.attr('id', id)
- .attr('transform', sus.translate(ox,oy));
+ .attr('transform', sus.translate(ox, oy));
g.append('rect')
.attr('fill', fill[tag])
.attr('opacity', 0);
@@ -220,11 +220,9 @@
angular.module('ovTopo')
.factory('TopoObliqueService',
- ['$log', 'FnService', 'SvgUtilService', 'FlashService',
+ ['SvgUtilService', 'FlashService',
- function (_$log_, _fs_, _sus_, _flash_) {
- $log = _$log_;
- fs = _fs_;
+ function (_sus_, _flash_) {
sus = _sus_;
flash = _flash_;
@@ -251,7 +249,7 @@
destroyOblique: destroyOblique,
isOblique: function () { return oblique; },
- toggleOblique: toggleOblique
+ toggleOblique: toggleOblique,
};
}]);
}());