From 6ecf2e62b63c37f5f8327ca521302970b38a93d2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Wieczorek Date: Mon, 17 Jan 2022 19:59:44 +0100 Subject: [PATCH] Update --- report-window/domain-summary.tsx | 61 +++++++++++++++--------------- report-window/email-template-2.tsx | 1 - 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/report-window/domain-summary.tsx b/report-window/domain-summary.tsx index 62ee570..0d0446a 100644 --- a/report-window/domain-summary.tsx +++ b/report-window/domain-summary.tsx @@ -1,41 +1,42 @@ -import React from "react"; -import { RequestCluster } from "../request-cluster"; -import { Classifications, Sources } from "../stolen-data-entry"; +import React from 'react'; +import { RequestCluster } from '../request-cluster'; +import { Classifications, Sources } from '../stolen-data-entry'; const emailClassifications: Record = { - id: "mój identyfikator internetowy", - history: "część mojej historii przeglądania", - location: "informacje na temat mojej lokalizacji geograficznej", + id: 'mój identyfikator internetowy', + history: 'część mojej historii przeglądania', + location: 'informacje na temat mojej lokalizacji geograficznej', }; const emailSources: Record = { - header: "w nagłówku HTTP", - cookie: "z pliku Cookie", - pathname: "jako części adresu URL", - queryparams: "jako część adresu URL (query-params)", - request_body: "w body zapytania POST", + header: 'w nagłówku HTTP', + cookie: 'z pliku Cookie', + pathname: 'jako części adresu URL', + queryparams: 'jako część adresu URL (query-params)', + request_body: 'w body zapytania POST', }; export default function DomainSummary({ - cluster, + cluster, }: { - cluster: RequestCluster; + cluster: RequestCluster; }) { - return ( -
  • - Właścicielowi domeny {cluster.id} zostały ujawnione:{" "} -
      -
    • Mój adres IP
    • - {cluster.representativeStolenData - .filter((entry) => entry.isMarked) - .map((entry) => ( -
    • - {emailClassifications[entry.classification]}{" "} - {emailSources[entry.source]} (nazwa: {entry.name},{" "} - wartość: {entry.getValuePreview()}) -
    • - ))} -
    -
  • - ); + return ( +
  • + Właścicielowi domeny {cluster.id} zostały + ujawnione:{' '} +
      + {cluster.representativeStolenData + .filter((entry) => entry.isMarked) + .map((entry) => ( +
    • + {emailClassifications[entry.classification]}{' '} + {emailSources[entry.source]} (nazwa:{' '} + {entry.name}, wartość:{' '} + {entry.getValuePreview()}) +
    • + ))} +
    +
  • + ); } diff --git a/report-window/email-template-2.tsx b/report-window/email-template-2.tsx index 098acea..eee511d 100644 --- a/report-window/email-template-2.tsx +++ b/report-window/email-template-2.tsx @@ -26,7 +26,6 @@ function ClusterRangeSummary({ cluster }: { cluster: RequestCluster }) { return ( <> {[ - 'Pańskiego adresu IP', range.includes('id') ? 'Pańskiego identyfikatora internetowego' + (has_cookie_ids ? ' z cookie' : '')