initial targets managed in backend
This commit is contained in:
@@ -367,6 +367,7 @@ class GraphManager {
|
||||
this.initialize();
|
||||
}
|
||||
|
||||
this.initialTargetIds = new Set(graphData.initial_targets || []);
|
||||
// Check if we have actual data to display
|
||||
const hasData = graphData.nodes.length > 0 || graphData.edges.length > 0;
|
||||
|
||||
@@ -1053,7 +1054,7 @@ class GraphManager {
|
||||
this.edges.clear();
|
||||
this.history = [];
|
||||
this.largeEntityMembers.clear(); // Clear large entity tracking
|
||||
this.clearInitialTargets();
|
||||
this.initialTargetIds.clear();
|
||||
|
||||
// Show placeholder
|
||||
const placeholder = this.container.querySelector('.graph-placeholder');
|
||||
@@ -1228,16 +1229,6 @@ class GraphManager {
|
||||
};
|
||||
}
|
||||
|
||||
addInitialTarget(targetId) {
|
||||
this.initialTargetIds.add(targetId);
|
||||
console.log("Initial targets:", this.initialTargetIds);
|
||||
}
|
||||
|
||||
clearInitialTargets() {
|
||||
this.initialTargetIds.clear();
|
||||
console.log("Initial targets cleared.");
|
||||
}
|
||||
|
||||
updateFilterControls() {
|
||||
if (!this.filterPanel) return;
|
||||
const nodeTypes = new Set(this.nodes.get().map(n => n.type));
|
||||
|
||||
@@ -301,8 +301,6 @@ class DNSReconApp {
|
||||
this.graphManager.clear();
|
||||
}
|
||||
|
||||
this.graphManager.addInitialTarget(target);
|
||||
|
||||
console.log(`Scan started for ${target} with depth ${maxDepth}`);
|
||||
|
||||
// Start polling immediately with faster interval for responsiveness
|
||||
|
||||
Reference in New Issue
Block a user