There are no events.
- )} - {this.state.eventIds.map((e, idx) => { - const eventInfo = this.state.events[e]; - return ( -- {ProofOfInclusion.PLUGIN_DESCRIPTION} -
-- {Spammer.PLUGIN_DESCRIPTION} -
-%
-- Loading outputs... -
-There are no milestones.
- )} - - {this.state.milestones.map((ms, idx) => ( -- Warning: History of peer not sufficient to sync from. - Consider using a newer snapshot if all peers have the same status. -
- )}
- No plugins enabled which are supported by the dashboard.
- More information about managing plugins can be found on the
- {" "}
-
- Hornet Developer Documentation.
-
-
- {this.state.error} -
- )} -Please try again with your query in one of the following formats:
-The node is currently unavailable or is not synced, please try again later.
diff --git a/src/app/routes/Visualizer.tsx b/src/app/routes/Visualizer.tsx index 76396b5..84bea24 100644 --- a/src/app/routes/Visualizer.tsx +++ b/src/app/routes/Visualizer.tsx @@ -1,4 +1,3 @@ -import { TAGGED_DATA_PAYLOAD_TYPE, MILESTONE_PAYLOAD_TYPE, BASIC_OUTPUT_TYPE, TRANSACTION_PAYLOAD_TYPE } from "@iota/iota.js"; import { Converter } from "@iota/util.js"; import classNames from "classnames"; import React, { ReactNode } from "react"; @@ -8,9 +7,9 @@ import { ReactComponent as CloseIcon } from "../../assets/close.svg"; import { ReactComponent as PauseIcon } from "../../assets/pause.svg"; import { ReactComponent as PlayIcon } from "../../assets/play.svg"; import { ServiceFactory } from "../../factories/serviceFactory"; -import { IVisualizerCounts } from "../../models/visualizer/IVisualizerCounts"; -import { IVisualizerVertex } from "../../models/visualizer/IVisualizerVertex"; -import { IBpsMetrics } from "../../models/websocket/IBpsMetrics"; +import { IVertex } from "../../models/visualizer/IVertex"; +import { IVerticesCounts } from "../../models/visualizer/IVerticesCounts"; +import { IGossipMetrics } from "../../models/websocket/IGossipMetrics"; import { WebSocketTopic } from "../../models/websocket/webSocketTopic"; import { EventAggregator } from "../../services/eventAggregator"; import { MetricsService } from "../../services/metricsService"; @@ -22,6 +21,13 @@ import AsyncComponent from "../components/layout/AsyncComponent"; import "./Visualizer.scss"; import { VisualizerState } from "./VisualizerState"; +/** + * The global type for the payload. + */ +const TAGGED_DATA_PAYLOAD_TYPE = 5; +const TRANSACTION_PAYLOAD_TYPE = 6; +const MILESTONE_PAYLOAD_TYPE = 7; + /** * Visualizer panel. */ @@ -66,7 +72,7 @@ class Visualizer extends AsyncComponent{this.state.metadataStatus}
- )} - {this.state.metadata && ( -