2021-11-08 20:14:28 +01:00
|
|
|
import React from "react";
|
|
|
|
import { RequestCluster } from "../request-cluster";
|
2021-11-26 20:58:31 +01:00
|
|
|
import { Classifications, Sources } from "../stolen-data-entry";
|
2021-11-08 20:14:28 +01:00
|
|
|
|
|
|
|
const emailClassifications: Record<keyof typeof Classifications, string> = {
|
2021-12-18 16:47:00 +01:00
|
|
|
id: "mój identyfikator internetowy",
|
2021-11-08 20:14:28 +01:00
|
|
|
history: "część mojej historii przeglądania",
|
2021-11-11 20:25:06 +01:00
|
|
|
location: "informacje na temat mojej lokalizacji geograficznej",
|
2021-11-08 20:14:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
const emailSources: Record<Sources, string> = {
|
|
|
|
header: "w nagłówku HTTP",
|
|
|
|
cookie: "z pliku Cookie",
|
|
|
|
pathname: "jako części adresu URL",
|
|
|
|
queryparams: "jako część adresu URL (query-params)",
|
2021-11-26 20:58:31 +01:00
|
|
|
request_body: "w body zapytania POST",
|
2021-11-08 20:14:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function DomainSummary({
|
|
|
|
cluster,
|
|
|
|
}: {
|
|
|
|
cluster: RequestCluster;
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<li>
|
2021-11-24 22:03:23 +01:00
|
|
|
Właścicielowi domeny <strong>{cluster.id}</strong> zostały ujawnione:{" "}
|
2021-11-08 20:14:28 +01:00
|
|
|
<ul>
|
2021-11-09 17:47:42 +01:00
|
|
|
<li>Mój adres IP</li>
|
2021-11-25 21:14:40 +01:00
|
|
|
{cluster.representativeStolenData
|
2021-11-22 18:56:36 +01:00
|
|
|
.filter((entry) => entry.isMarked)
|
|
|
|
.map((entry) => (
|
2021-11-25 21:14:40 +01:00
|
|
|
<li key={entry.id}>
|
2021-11-22 18:56:36 +01:00
|
|
|
{emailClassifications[entry.classification]}{" "}
|
|
|
|
{emailSources[entry.source]} (nazwa: <code>{entry.name}</code>,{" "}
|
|
|
|
wartość: <code>{entry.getValuePreview()}</code>)
|
|
|
|
</li>
|
|
|
|
))}
|
2021-11-08 20:14:28 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|