this.innerFlex = ref}
+ ref={ref => this.innerFlex = ref}
className={innerClassName}
style={innerFlexStyle} >
-
this.inner = ref} />
+
this.inner = ref} />
{this.getTerminalStatusBar()}
diff --git a/client/app/scripts/reducers/root.js b/client/app/scripts/reducers/root.js
index 071b91a45..051f7b886 100644
--- a/client/app/scripts/reducers/root.js
+++ b/client/app/scripts/reducers/root.js
@@ -95,7 +95,7 @@ function setTopology(state, topologyId) {
}
function setDefaultTopologyOptions(state, topologyList) {
- topologyList.forEach(topology => {
+ topologyList.forEach((topology) => {
let defaultOptions = makeOrderedMap();
if (topology.has('options') && topology.get('options')) {
topology.get('options').forEach((option) => {
@@ -371,13 +371,13 @@ export function rootReducer(state = initialState, action) {
case ActionTypes.ENTER_EDGE: {
// highlight adjacent nodes
- state = state.update('highlightedNodeIds', highlightedNodeIds => {
+ state = state.update('highlightedNodeIds', (highlightedNodeIds) => {
highlightedNodeIds = highlightedNodeIds.clear();
return highlightedNodeIds.union(action.edgeId.split(EDGE_ID_SEPARATOR));
});
// highlight edge
- state = state.update('highlightedEdgeIds', highlightedEdgeIds => {
+ state = state.update('highlightedEdgeIds', (highlightedEdgeIds) => {
highlightedEdgeIds = highlightedEdgeIds.clear();
return highlightedEdgeIds.add(action.edgeId);
});
@@ -392,18 +392,18 @@ export function rootReducer(state = initialState, action) {
state = state.set('mouseOverNodeId', nodeId);
// highlight adjacent nodes
- state = state.update('highlightedNodeIds', highlightedNodeIds => {
+ state = state.update('highlightedNodeIds', (highlightedNodeIds) => {
highlightedNodeIds = highlightedNodeIds.clear();
highlightedNodeIds = highlightedNodeIds.add(nodeId);
return highlightedNodeIds.union(adjacentNodes);
});
// highlight edge
- state = state.update('highlightedEdgeIds', highlightedEdgeIds => {
+ state = state.update('highlightedEdgeIds', (highlightedEdgeIds) => {
highlightedEdgeIds = highlightedEdgeIds.clear();
if (adjacentNodes.size > 0) {
// all neighbour combinations because we dont know which direction exists
- highlightedEdgeIds = highlightedEdgeIds.union(adjacentNodes.flatMap((adjacentId) => [
+ highlightedEdgeIds = highlightedEdgeIds.union(adjacentNodes.flatMap(adjacentId => [
[adjacentId, nodeId].join(EDGE_ID_SEPARATOR),
[nodeId, adjacentId].join(EDGE_ID_SEPARATOR)
]));
@@ -491,7 +491,7 @@ export function rootReducer(state = initialState, action) {
// disregard if node is not selected anymore
if (state.hasIn(['nodeDetails', action.details.id])) {
- state = state.updateIn(['nodeDetails', action.details.id], obj => {
+ state = state.updateIn(['nodeDetails', action.details.id], (obj) => {
const result = Object.assign({}, obj);
result.notFound = false;
result.details = action.details;
@@ -554,7 +554,7 @@ export function rootReducer(state = initialState, action) {
// TODO move this setting of networks as toplevel node field to backend,
// to not rely on field IDs here. should be determined by topology implementer
- state = state.update('nodes', nodes => nodes.map(node => {
+ state = state.update('nodes', nodes => nodes.map((node) => {
if (node.has('metadata')) {
const networks = node.get('metadata')
.find(field => field.get('id') === 'docker_container_networks');
@@ -605,7 +605,7 @@ export function rootReducer(state = initialState, action) {
case ActionTypes.RECEIVE_NOT_FOUND: {
if (state.hasIn(['nodeDetails', action.nodeId])) {
- state = state.updateIn(['nodeDetails', action.nodeId], obj => {
+ state = state.updateIn(['nodeDetails', action.nodeId], (obj) => {
const result = Object.assign({}, obj);
result.notFound = true;
return result;
diff --git a/client/app/scripts/selectors/chartSelectors.js b/client/app/scripts/selectors/chartSelectors.js
index 318322372..702bb3309 100644
--- a/client/app/scripts/selectors/chartSelectors.js
+++ b/client/app/scripts/selectors/chartSelectors.js
@@ -46,7 +46,7 @@ function mergeDeepKeyIntersection(mapA, mapB) {
//
const _createDeepEqualSelector = createSelectorCreator(defaultMemoize, is);
const _identity = v => v;
-const returnPreviousRefIfEqual = (selector) => _createDeepEqualSelector(selector, _identity);
+const returnPreviousRefIfEqual = selector => _createDeepEqualSelector(selector, _identity);
//
@@ -60,7 +60,7 @@ const allNodesSelector = state => state.get('nodes');
export const nodesSelector = returnPreviousRefIfEqual(
createSelector(
allNodesSelector,
- (allNodes) => allNodes.filter(node => !node.get('filtered'))
+ allNodes => allNodes.filter(node => !node.get('filtered'))
)
);
@@ -71,7 +71,7 @@ export const adjacentNodesSelector = returnPreviousRefIfEqual(getAdjacentNodes);
export const nodeAdjacenciesSelector = returnPreviousRefIfEqual(
createSelector(
nodesSelector,
- (nodes) => nodes.map(n => makeMap({
+ nodes => nodes.map(n => makeMap({
id: n.get('id'),
adjacency: n.get('adjacency'),
}))
@@ -81,7 +81,7 @@ export const nodeAdjacenciesSelector = returnPreviousRefIfEqual(
export const dataNodesSelector = createSelector(
nodesSelector,
- (nodes) => nodes.map((node, id) => makeMap({
+ nodes => nodes.map((node, id) => makeMap({
id,
label: node.get('label'),
pseudo: node.get('pseudo'),
diff --git a/client/app/scripts/utils/file-utils.js b/client/app/scripts/utils/file-utils.js
index d44203746..5a3357c52 100644
--- a/client/app/scripts/utils/file-utils.js
+++ b/client/app/scripts/utils/file-utils.js
@@ -18,7 +18,11 @@ function setInlineStyles(svg, target, emptySvgDeclarationComputed) {
function explicitlySetStyle(element, targetEl) {
const cSSStyleDeclarationComputed = getComputedStyle(element);
let computedStyleStr = '';
+<<<<<<< f5ae864fa293b70db13c64d519ec9f261bad4ddd
each(cSSStyleDeclarationComputed, key => {
+=======
+ _.each(cSSStyleDeclarationComputed, (key) => {
+>>>>>>> Applied arrow-parens linting rule
const value = cSSStyleDeclarationComputed.getPropertyValue(key);
if (value !== emptySvgDeclarationComputed.getPropertyValue(key) && !cssSkipValues[value]) {
computedStyleStr += `${key}:${value};`;
diff --git a/client/app/scripts/utils/network-view-utils.js b/client/app/scripts/utils/network-view-utils.js
index 8565fc8e6..343cc4112 100644
--- a/client/app/scripts/utils/network-view-utils.js
+++ b/client/app/scripts/utils/network-view-utils.js
@@ -2,7 +2,7 @@ import { fromJS, List as makeList } from 'immutable';
export function getNetworkNodes(nodes) {
const networks = {};
- nodes.forEach(node => (node.get('networks') || makeList()).forEach(n => {
+ nodes.forEach(node => (node.get('networks') || makeList()).forEach((n) => {
const networkId = n.get('id');
networks[networkId] = (networks[networkId] || []).concat([node.get('id')]);
}));
diff --git a/client/app/scripts/utils/search-utils.js b/client/app/scripts/utils/search-utils.js
index a4c192a90..b8f74d047 100644
--- a/client/app/scripts/utils/search-utils.js
+++ b/client/app/scripts/utils/search-utils.js
@@ -132,7 +132,7 @@ export function searchTopology(nodes, { prefix, query, metric, comp, value }) {
// metadata
if (node.get('metadata')) {
- node.get('metadata').forEach(field => {
+ node.get('metadata').forEach((field) => {
const keyPath = [nodeId, 'metadata', field.get('id')];
nodeMatches = findNodeMatch(nodeMatches, keyPath, field.get('value'),
query, prefix, field.get('label'), field.get('truncate'));
@@ -141,7 +141,7 @@ export function searchTopology(nodes, { prefix, query, metric, comp, value }) {
// parents and relatives
if (node.get('parents')) {
- node.get('parents').forEach(parent => {
+ node.get('parents').forEach((parent) => {
const keyPath = [nodeId, 'parents', parent.get('id')];
nodeMatches = findNodeMatch(nodeMatches, keyPath, parent.get('label'),
query, prefix, parent.get('topologyId'));
@@ -153,7 +153,7 @@ export function searchTopology(nodes, { prefix, query, metric, comp, value }) {
if (tables) {
tables.forEach((table) => {
if (table.get('rows')) {
- table.get('rows').forEach(field => {
+ table.get('rows').forEach((field) => {
const keyPath = [nodeId, 'tables', field.get('id')];
nodeMatches = findNodeMatch(nodeMatches, keyPath, field.get('value'),
query, prefix, field.get('label'));
@@ -164,7 +164,7 @@ export function searchTopology(nodes, { prefix, query, metric, comp, value }) {
} else if (metric) {
const metrics = node.get('metrics');
if (metrics) {
- metrics.forEach(field => {
+ metrics.forEach((field) => {
const keyPath = [nodeId, 'metrics', field.get('id')];
nodeMatches = findNodeMatchMetric(nodeMatches, keyPath, field.get('value'),
field.get('label'), metric, comp, value);
@@ -291,7 +291,7 @@ export function applyPinnedSearches(state) {
const pinnedSearches = state.get('pinnedSearches');
if (pinnedSearches.size > 0) {
- state.get('pinnedSearches').forEach(query => {
+ state.get('pinnedSearches').forEach((query) => {
const parsed = parseQuery(query);
if (parsed) {
const nodeMatches = searchTopology(state.get('nodes'), parsed);
diff --git a/client/app/scripts/utils/topology-utils.js b/client/app/scripts/utils/topology-utils.js
index 5a6709bcb..3ff56e1ee 100644
--- a/client/app/scripts/utils/topology-utils.js
+++ b/client/app/scripts/utils/topology-utils.js
@@ -19,7 +19,7 @@ export function getDefaultTopology(topologies) {
.flatMap(t => makeList([t]).concat(t.get('sub_topologies', makeList())));
return flatTopologies
- .sortBy(t => {
+ .sortBy((t) => {
const index = TOPOLOGY_DISPLAY_PRIORITY.indexOf(t.get('id'));
return index === -1 ? Infinity : index;
})
@@ -53,7 +53,7 @@ export function buildTopologyCacheId(topologyId, topologyOptions) {
export function findTopologyById(subTree, topologyId) {
let foundTopology;
- subTree.forEach(topology => {
+ subTree.forEach((topology) => {
if (endsWith(topology.get('url'), topologyId)) {
foundTopology = topology;
}
@@ -66,7 +66,7 @@ export function findTopologyById(subTree, topologyId) {
}
export function updateNodeDegrees(nodes, edges) {
- return nodes.map(node => {
+ return nodes.map((node) => {
const nodeId = node.get('id');
const degree = edges.count(edge => edge.get('source') === nodeId
|| edge.get('target') === nodeId);
@@ -76,7 +76,7 @@ export function updateNodeDegrees(nodes, edges) {
/* set topology.id and parentId for sub-topologies in place */
export function updateTopologyIds(topologies, parentId) {
- return topologies.map(topology => {
+ return topologies.map((topology) => {
const result = Object.assign({}, topology);
result.id = topology.url.split('/').pop();
if (parentId) {
@@ -90,7 +90,7 @@ export function updateTopologyIds(topologies, parentId) {
}
export function addTopologyFullname(topologies) {
- return topologies.map(t => {
+ return topologies.map((t) => {
if (!t.sub_topologies) {
return Object.assign({}, t, {fullName: t.name});
}
@@ -108,10 +108,10 @@ export function addTopologyFullname(topologies) {
export function setTopologyUrlsById(topologyUrlsById, topologies) {
let urlMap = topologyUrlsById;
if (topologies) {
- topologies.forEach(topology => {
+ topologies.forEach((topology) => {
urlMap = urlMap.set(topology.id, topology.url);
if (topology.sub_topologies) {
- topology.sub_topologies.forEach(subTopology => {
+ topology.sub_topologies.forEach((subTopology) => {
urlMap = urlMap.set(subTopology.id, subTopology.url);
});
}