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/svg/icon.js b/web/gui/src/main/webapp/app/fw/svg/icon.js
index 67a557b..aabbc17 100644
--- a/web/gui/src/main/webapp/app/fw/svg/icon.js
+++ b/web/gui/src/main/webapp/app/fw/svg/icon.js
@@ -20,7 +20,7 @@
(function () {
'use strict';
- var $log, fs, gs, sus;
+ var $log, gs, sus;
var vboxSize = 50,
cornerSize = vboxSize / 10,
@@ -39,7 +39,6 @@
delta: 'delta',
nonzero: 'nonzero',
-
close: 'xClose',
topo: 'topo',
@@ -79,8 +78,8 @@
nav_links: 'ports',
nav_hosts: 'endstation',
nav_intents: 'relatedIntents',
- nav_tunnels: 'ports', // TODO: use tunnel glyph, when available
- nav_yang: 'yang'
+ nav_tunnels: 'ports', // TODO: use tunnel glyph, when available
+ nav_yang: 'yang',
};
function ensureIconLibDefs() {
@@ -115,24 +114,24 @@
'class': svgCls,
width: dim,
height: dim,
- viewBox: viewBox
+ viewBox: viewBox,
});
g = svg.append('g').attr({
- 'class': 'icon'
+ 'class': 'icon',
});
g.append('rect').attr({
width: vboxSize,
height: vboxSize,
- rx: cornerSize
+ rx: cornerSize,
});
g.append('use').attr({
width: vboxSize,
height: vboxSize,
'class': 'glyph',
- 'xlink:href': '#' + gid
+ 'xlink:href': '#' + gid,
});
}
@@ -159,7 +158,7 @@
return elem.append('use').attr({
'xlink:href': '#' + gid,
width: iconDim,
- height: iconDim
+ height: iconDim,
});
}
@@ -175,7 +174,7 @@
'xlink:href': '#' + glyphId,
width: dim,
height: dim,
- transform: sus.translate(xlate,xlate)
+ transform: sus.translate(xlate, xlate),
});
return g;
}
@@ -190,7 +189,7 @@
return {
asc: function (div) { _s(div, 'upArrow'); },
desc: function (div) { _s(div, 'downArrow'); },
- none: function (div) { div.remove(); }
+ none: function (div) { div.remove(); },
};
}
@@ -218,16 +217,15 @@
div.selectAll('*').remove();
is.loadEmbeddedIcon(div, attrs.iconId, attrs.iconSize);
});
- }
+ },
};
}])
- .factory('IconService', ['$log', 'FnService', 'GlyphService',
+ .factory('IconService', ['$log', 'GlyphService',
'SvgUtilService',
- function (_$log_, _fs_, _gs_, _sus_) {
+ function (_$log_, _gs_, _sus_) {
$log = _$log_;
- fs = _fs_;
gs = _gs_;
sus = _sus_;
@@ -238,7 +236,7 @@
addDeviceIcon: addDeviceIcon,
addHostIcon: addHostIcon,
sortIcons: sortIcons,
- registerIconMapping: registerIconMapping
+ registerIconMapping: registerIconMapping,
};
}]);