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/sprite.js b/web/gui/src/main/webapp/app/fw/svg/sprite.js
index 3d088e1..edf1839 100644
--- a/web/gui/src/main/webapp/app/fw/svg/sprite.js
+++ b/web/gui/src/main/webapp/app/fw/svg/sprite.js
@@ -32,30 +32,30 @@
},
addRect: {
fill: 'gray1',
- stroke: 'none'
+ stroke: 'none',
},
addPath: {
fill: 'none',
- stroke: 'gray1'
- }
+ stroke: 'gray1',
+ },
},
layout: {
builder: {
- grid: 10 // grid square size (in layout coord-space)
+ grid: 10, // grid square size (in layout coord-space)
},
addSprite: {
- anchor: 'topleft' // topleft, center
+ anchor: 'topleft', // topleft, center
},
addLabel: {
- anchor: 'center', // center, left, right
- fontStyle: 'normal' // normal, italic, bold
- }
- }
+ anchor: 'center', // center, left, right
+ fontStyle: 'normal', // normal, italic, bold
+ },
+ },
};
// internal state
- var sprites, // sprite cache
- layouts, // layout cache
+ var sprites, // sprite cache
+ layouts, // layout cache
api;
// ----------------------------------------------------------------------
@@ -81,7 +81,7 @@
var o = angular.extend({}, optDefaults.sprite.addRect, opts);
rects.push({
- x: x, y: y, w: w, h: h, o: o
+ x: x, y: y, w: w, h: h, o: o,
});
return builder;
}
@@ -90,9 +90,9 @@
var o = angular.extend({}, optDefaults.sprite.addPath, opts);
if (fs.isS(d)) {
- paths.push({d: d, o: o});
+ paths.push({ d: d, o: o });
} else if (fs.isA(d)) {
- paths.push({d: d.join(''), o: o});
+ paths.push({ d: d.join(''), o: o });
} else {
$log.warn('addPath: path not a string or array', d);
}
@@ -110,7 +110,7 @@
id: id,
w: w,
h: h,
- opts: o
+ opts: o,
},
paths: paths,
rects: rects,
@@ -118,7 +118,7 @@
// builder API
addRect: addRect,
addPath: addPath,
- register: register
+ register: register,
};
return builder;
@@ -153,7 +153,7 @@
}
sprs.push({
- sprite: s, x: x, y: y, w: w, anchor: o.anchor
+ sprite: s, x: x, y: y, w: w, anchor: o.anchor,
});
return builder;
}
@@ -162,7 +162,7 @@
var o = angular.extend({}, optDefaults.layout.addLabel, opts);
labs.push({
- text: text, x: x, y: y, anchor: o.anchor, style: o.fontStyle
+ text: text, x: x, y: y, anchor: o.anchor, style: o.fontStyle,
});
return builder;
}
@@ -178,7 +178,7 @@
id: id,
w: w,
h: h,
- opts: o
+ opts: o,
},
sprites: sprs,
labels: labs,
@@ -186,7 +186,7 @@
// builder API
addSprite: addSprite,
addLabel: addLabel,
- register: register
+ register: register,
};
return builder;
@@ -246,7 +246,7 @@
function count() {
return {
sprites: sprites.size(),
- layouts: layouts.size()
+ layouts: layouts.size(),
};
}
@@ -278,7 +278,7 @@
sprite: sprite,
layout: layout,
count: count,
- dump: dump
+ dump: dump,
};
return api;
}]