From 0e83fdc121c95d532000824a08ed785242af6932 Mon Sep 17 00:00:00 2001 From: s0lray Date: Mon, 23 Mar 2026 18:21:53 -0400 Subject: [PATCH 1/2] Fix D3 tree not rendering: remove null entry in arf.json d3.hierarchy() in D3 v7 does not tolerate null entries in children arrays (v3 was lenient). A null element at Username.children[1] caused the entire tree to fail silently. - Remove the null entry from arf.json - Add a defensive children filter in d3.hierarchy() call so future null entries degrade gracefully instead of breaking the tree Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- public/arf.json | 1 - public/js/arf.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/arf.json b/public/arf.json index d976462..7fc678a 100644 --- a/public/arf.json +++ b/public/arf.json @@ -57,7 +57,6 @@ } ] }, - null, { "name": "Specific Sites", "type": "folder", diff --git a/public/js/arf.js b/public/js/arf.js index 3fe7a43..7b31315 100644 --- a/public/js/arf.js +++ b/public/js/arf.js @@ -19,7 +19,9 @@ var vis = d3.select("#body").append("svg") .attr("transform", "translate(" + margin[3] + "," + margin[0] + ")"); d3.json("arf.json").then(function(json) { - root = d3.hierarchy(json); + root = d3.hierarchy(json, function(d) { + return d && d.children ? d.children.filter(function(c) { return c != null; }) : null; + }); root.x0 = height / 2; root.y0 = 0; From a4c4a7478e798659f6511a32514c2d0901341403 Mon Sep 17 00:00:00 2001 From: s0lray Date: Mon, 23 Mar 2026 18:37:28 -0400 Subject: [PATCH 2/2] Add wrangler.jsonc for Cloudflare static asset deployment Cloudflare deploy fails with "Missing entry-point to Worker script or to assets directory" because there is no wrangler config telling it where the static files live. This points it at ./public. Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- wrangler.jsonc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 wrangler.jsonc diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..7425281 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,7 @@ +{ + "name": "osint-framework", + "compatibility_date": "2026-03-23", + "assets": { + "directory": "./public" + } +}