mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-10-19 14:07:16 +02:00
fix(web): functional modals for repos/domains/networks/integrations
Replace browser prompt() dialogs with proper floating modals for Add Repository, Add Domain, and Add Network buttons. Replace placeholder configureIntegration toast with real per-service config modal (GitHub, GitLab, Jira, Slack, MCP). Add overlay click and Escape key to close all modals. Fix Issues page to show real target URL from run meta.json. Hide run history sidebar on asset pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UqW6BbQgqGkEDn3RYuCVoM
This commit is contained in:
1 parent
71339a9ddb
commit
84a2cca4e8
3 files changed
+274
-23
No files matched your search
+3
-1
@@ -1967,7 +1967,9 @@ const server = http.createServer(async (req, res) => {
|
||||
try {
|
||||
const raw = await fsp.readFile(fp, 'utf8');
|
||||
const findings = JSON.parse(raw);
|
||||
for (const f of findings) all.push({ ...f, run: d, target: f.target || d });
|
||||
let runTarget = d;
|
||||
try { const meta = JSON.parse(await fsp.readFile(path.join(RUNS_DIR, d, 'meta.json'), 'utf8')); runTarget = meta.target || d; } catch {}
|
||||
for (const f of findings) all.push({ ...f, run: d, target: f.target || runTarget });
|
||||
} catch { /* skip */ }
|
||||
}
|
||||
const sRank = (s) => { s = (s || '').toLowerCase(); return s.includes('crit') ? 0 : s.includes('high') ? 1 : s.includes('med') ? 2 : s.includes('low') ? 3 : 4; };
|
||||
|
||||
Reference in new issue
Block a user