diff --git a/public/topologies/example.json b/public/topologies/example.json new file mode 100644 index 0000000..e3722bc --- /dev/null +++ b/public/topologies/example.json @@ -0,0 +1,21 @@ +{ + "name": "example", + "nodes": [ + { + "id": 1, + "type": 2, + "pos": [ + 0, + 0 + ] + }, + { + "id": 1, + "type": 2, + "pos": [ + 0, + 0 + ] + } + ] +} \ No newline at end of file diff --git a/src/components/NodeStats.vue b/src/components/NodeStats.vue index 0a3c36d..88feeb6 100644 --- a/src/components/NodeStats.vue +++ b/src/components/NodeStats.vue @@ -2,7 +2,7 @@ import rpi4 from '@/assets/rpi4.png' import sensortag from '@/assets/sensortag.png' import { Network, SelectedNode } from '@/hooks/useStates' -import { NODE_TYPE } from '@/core/typedefs' +import { NODE_TYPE, NODE_TYPE_DISPLAY_NAME } from '@/core/typedefs'