mirror of
https://github.com/openziti/zrok.git
synced 2025-02-16 18:20:51 +01:00
lint
This commit is contained in:
parent
53b69807bc
commit
d9be87b702
@ -1,6 +1,6 @@
|
||||
import ReactFlow, {applyNodeChanges, useNodesState} from "react-flow-renderer";
|
||||
import ReactFlow, {useNodesState} from "react-flow-renderer";
|
||||
import * as metadata from './api/metadata';
|
||||
import {useCallback, useEffect, useState} from "react";
|
||||
import {useEffect, useState} from "react";
|
||||
|
||||
const Network = (props) => {
|
||||
const [nodes, setNodes, onNodesChange] = useNodesState([])
|
||||
@ -28,7 +28,6 @@ const Network = (props) => {
|
||||
onNodesChange={onNodesChange}
|
||||
/>
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
@ -42,16 +41,16 @@ function buildGraph(overview) {
|
||||
let envId = id
|
||||
out.nodes.push({
|
||||
id: '' + envId,
|
||||
data: { label: 'Environment: ' + item.environment.zitiIdentityId },
|
||||
position: { x: (id * 25), y: 0 },
|
||||
data: {label: 'Environment: ' + item.environment.zitiIdentityId},
|
||||
position: {x: (id * 25), y: 0},
|
||||
draggable: true
|
||||
});
|
||||
id++
|
||||
item.services.forEach((item) => {
|
||||
out.nodes.push({
|
||||
id: '' + id,
|
||||
data: { label: 'Service: ' + item.zitiServiceId },
|
||||
position: { x: (id * 25), y: 0 },
|
||||
data: {label: 'Service: ' + item.zitiServiceId},
|
||||
position: {x: (id * 25), y: 0},
|
||||
draggable: true
|
||||
})
|
||||
out.edges.push({
|
||||
|
Loading…
Reference in New Issue
Block a user