import React from "react"; import ReactDOM from "react-dom"; import { getMemory } from "../memory"; import EmailTemplate from "./email-template"; import HARConverter from "./har-converter"; function Report() { const origin = new URL(document.location.toString()).searchParams.get( "origin" ); const clusters = getMemory().getClustersForOrigin(origin); const marked_entries = Object.values(clusters) .map((cluster) => cluster.getMarkedRequests()) .reduce((a, b) => a.concat(b), []) .map((request) => request.getMarkedEntries()) .reduce((a, b) => a.concat(b), []); return (

Generuj treść maila dla {origin}

{marked_entries.map((entry) => ( ))}
Adres docelowy Źródło danych Treść danych Klasyfikacja
{entry.request.shorthost} {entry.source}:{entry.name} {entry.markedKeys.join(",")} {entry.value}
); } ReactDOM.render(, document.getElementById("app"));