mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Some lint fixes; fix routesConfig unit test.
This commit is contained in:
@@ -43,6 +43,7 @@ describe('getRouteConfig', () => {
|
|||||||
'/instances',
|
'/instances',
|
||||||
'/applications',
|
'/applications',
|
||||||
'/execution_environments',
|
'/execution_environments',
|
||||||
|
'/topology_view',
|
||||||
'/settings',
|
'/settings',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
@@ -71,6 +72,7 @@ describe('getRouteConfig', () => {
|
|||||||
'/instances',
|
'/instances',
|
||||||
'/applications',
|
'/applications',
|
||||||
'/execution_environments',
|
'/execution_environments',
|
||||||
|
'/topology_view',
|
||||||
'/settings',
|
'/settings',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
@@ -98,6 +100,7 @@ describe('getRouteConfig', () => {
|
|||||||
'/instances',
|
'/instances',
|
||||||
'/applications',
|
'/applications',
|
||||||
'/execution_environments',
|
'/execution_environments',
|
||||||
|
'/topology_view',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -233,6 +236,7 @@ describe('getRouteConfig', () => {
|
|||||||
'/instances',
|
'/instances',
|
||||||
'/applications',
|
'/applications',
|
||||||
'/execution_environments',
|
'/execution_environments',
|
||||||
|
'/topology_view',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -263,6 +267,7 @@ describe('getRouteConfig', () => {
|
|||||||
'/instances',
|
'/instances',
|
||||||
'/applications',
|
'/applications',
|
||||||
'/execution_environments',
|
'/execution_environments',
|
||||||
|
'/topology_view',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { t } from '@lingui/macro';
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import {
|
import {
|
||||||
@@ -30,7 +31,7 @@ const ContentLoading = ({ className }) => (
|
|||||||
component={TextVariants.small}
|
component={TextVariants.small}
|
||||||
style={{ fontWeight: 'bold', color: 'black' }}
|
style={{ fontWeight: 'bold', color: 'black' }}
|
||||||
>
|
>
|
||||||
Please wait until the topology view is populated...
|
{t`Please wait until the topology view is populated...`}
|
||||||
</Text>
|
</Text>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
<EmptyStateIcon variant="container" component={Spinner} />
|
<EmptyStateIcon variant="container" component={Spinner} />
|
||||||
|
|||||||
@@ -111,14 +111,14 @@ function MeshGraph({ showLegend, zoom }) {
|
|||||||
const graph = data;
|
const graph = data;
|
||||||
|
|
||||||
const simulation = d3
|
const simulation = d3
|
||||||
.forceSimulation()
|
.forceSimulation(graph.nodes)
|
||||||
.force(
|
.force(
|
||||||
'charge',
|
'charge',
|
||||||
d3.forceManyBody(defaultForceBody).strength(defaultForceStrength)
|
d3.forceManyBody(defaultForceBody).strength(defaultForceStrength)
|
||||||
)
|
)
|
||||||
.force(
|
.force(
|
||||||
'link',
|
'link',
|
||||||
d3.forceLink().id((d) => d.hostname)
|
d3.forceLink(graph.links).id((d) => d.hostname)
|
||||||
)
|
)
|
||||||
.force('collide', d3.forceCollide(defaultCollisionFactor))
|
.force('collide', d3.forceCollide(defaultCollisionFactor))
|
||||||
.force('forceX', d3.forceX(defaultForceX))
|
.force('forceX', d3.forceX(defaultForceX))
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ function Tooltip({
|
|||||||
<TextContent>
|
<TextContent>
|
||||||
<Text
|
<Text
|
||||||
component={TextVariants.small}
|
component={TextVariants.small}
|
||||||
style={{ 'font-weight': 'bold', color: 'black' }}
|
style={{ 'fontWeight': 'bold', color: 'black' }}
|
||||||
>
|
>
|
||||||
Details
|
Details
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user