mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Apply JS formatting from npm prettier
This commit is contained in:
parent
fa0e0b2576
commit
0a87bf1b5e
@ -154,7 +154,8 @@ function InstanceForm({
|
||||
onSubmit={(values) => {
|
||||
handleSubmit({
|
||||
...values,
|
||||
listener_port: values.listener_port === '' ? null : values.listener_port,
|
||||
listener_port:
|
||||
values.listener_port === '' ? null : values.listener_port,
|
||||
peers: values.peers.map((peer) => peer.hostname || peer),
|
||||
});
|
||||
}}
|
||||
|
||||
@ -178,12 +178,7 @@ function MeshGraph({
|
||||
mesh
|
||||
.append('defs')
|
||||
.selectAll('marker')
|
||||
.data([
|
||||
'end',
|
||||
'end-active',
|
||||
'end-adding',
|
||||
'end-removing',
|
||||
])
|
||||
.data(['end', 'end-active', 'end-adding', 'end-removing'])
|
||||
.join('marker')
|
||||
.attr('id', String)
|
||||
.attr('viewBox', '0 -5 10 10')
|
||||
|
||||
@ -110,9 +110,7 @@ export function getRandomInt(min, max) {
|
||||
const generateRandomLinks = (n, r) => {
|
||||
const links = [];
|
||||
function getRandomLinkState() {
|
||||
return ['established', 'adding', 'removing'][
|
||||
getRandomInt(0, 3)
|
||||
];
|
||||
return ['established', 'adding', 'removing'][getRandomInt(0, 3)];
|
||||
}
|
||||
for (let i = 0; i < r; i++) {
|
||||
const link = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user