From d1f37ed164805fa2fdeffe60292d580a24656260 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Wed, 26 Jun 2024 13:42:37 -0500 Subject: [PATCH] Refactor dashlet factory into its own index file, so it's obvious where to add them. --- .../js_build/src/dashlets/dashboard.js | 38 ++----------------- .../js_build/src/dashlets/dashlet_index.js | 32 ++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashlet_index.js diff --git a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js index 9cba6775..585c3e56 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/dashboard.js @@ -1,12 +1,7 @@ import {subscribeWS, resetWS} from "../pubsub/ws"; -import {ThroughputBpsDash} from "./throughput_bps_dash"; -import {ThroughputPpsDash} from "./throughput_pps_dash"; -import {ShapedUnshapedDash} from "./shaped_unshaped_dash"; -import {TrackedFlowsCount} from "./tracked_flow_count_dash"; -import {ThroughputRingDash} from "./throughput_ring_dash"; -import {RttHistoDash} from "./rtt_histo_dash"; import {darkBackground, modalContent} from "../helpers/our_modals"; import {heading5Icon, theading} from "../helpers/builders"; +import {DashletMenu, widgetFactory} from "./dashlet_index"; export class Dashboard { // Takes the name of the parent div to start building the dashboard @@ -50,7 +45,7 @@ export class Dashboard { #filterWidgetList() { this.dashlets = []; for (let i=0; i