From 4fe9913ec65d492a50544c94093ef1d732c878c2 Mon Sep 17 00:00:00 2001 From: Sohaibkundi2 Date: Wed, 25 Mar 2026 23:59:31 +0500 Subject: [PATCH 1/2] [examples] Remove node expand/fold example and related code #492 The node expand/fold example was broken locally with 'Uncaught ReferenceError: module is not defined' and is no longer used in OpenWISP. Removed: - example_templates/netjsongraph-nodeExpand.html - public/assets/data/netjsongraph-foldNodes.json - related import and entry in test/browser.test.utils.js - card link from index.html --- index.html | 5 - .../assets/data/netjsongraph-foldNodes.json | 67 ----------- .../netjsongraph-nodeExpand.html | 109 ------------------ test/browser.test.utils.js | 2 - 4 files changed, 183 deletions(-) delete mode 100644 public/assets/data/netjsongraph-foldNodes.json delete mode 100644 public/example_templates/netjsongraph-nodeExpand.html diff --git a/index.html b/index.html index f06ec842..91e2537f 100644 --- a/index.html +++ b/index.html @@ -242,11 +242,6 @@

NetJSONGraph.js Example Demos

> -
- Nodes expand or fold -
- - diff --git a/test/browser.test.utils.js b/test/browser.test.utils.js index 14cbb504..8f46c3c4 100644 --- a/test/browser.test.utils.js +++ b/test/browser.test.utils.js @@ -2,7 +2,6 @@ import {Builder, By, until} from "selenium-webdriver"; import chrome from "selenium-webdriver/chrome"; import netJsonMap from "../public/assets/data/netjsonmap.json"; import netJsonMultipleInterfaces from "../public/assets/data/netjson-multipleInterfaces.json"; -import netJsonGraphFoldNodes from "../public/assets/data/netjsongraph-foldNodes.json"; import netJsonMapIndoorMap from "../public/assets/data/netjsonmap-indoormap.json"; import netJsonElementsLegend from "../public/assets/data/netjson-elementsLegend.json"; import netJsonGraphMultipleLinks from "../public/assets/data/netjsongraph-multipleLinks.json"; @@ -96,7 +95,6 @@ export const getPresentNodesAndLinksCount = async (example) => { "Data parse": netJsonMap, "Switch render mode": netJsonMap, "Switch graph mode": netJsonMap, - "Nodes expand or fold": netJsonGraphFoldNodes, "Indoor map": netJsonMapIndoorMap, "Leaflet plugins": netJsonMap, "Custom attributes": netJsonElementsLegend, From 52273eee7b0bc7bc4ed11f3d758baaadda7a7e34 Mon Sep 17 00:00:00 2001 From: Sohaibkundi2 Date: Thu, 26 Mar 2026 16:03:14 +0500 Subject: [PATCH 2/2] [examples] Fix prettier formatting in index.html --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 91e2537f..feb07713 100644 --- a/index.html +++ b/index.html @@ -241,7 +241,6 @@

NetJSONGraph.js Example Demos

>Multiple links render -