Update
This commit is contained in:
		
							parent
							
								
									02ef1fe3d4
								
							
						
					
					
						commit
						6ecf2e62b6
					
				@ -1,19 +1,19 @@
 | 
			
		||||
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<keyof typeof Classifications, string> = {
 | 
			
		||||
  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<Sources, string> = {
 | 
			
		||||
  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({
 | 
			
		||||
@ -23,16 +23,17 @@ export default function DomainSummary({
 | 
			
		||||
}) {
 | 
			
		||||
    return (
 | 
			
		||||
        <li>
 | 
			
		||||
      Właścicielowi domeny <strong>{cluster.id}</strong> zostały ujawnione:{" "}
 | 
			
		||||
            Właścicielowi domeny <strong>{cluster.id}</strong> zostały
 | 
			
		||||
            ujawnione:{' '}
 | 
			
		||||
            <ul>
 | 
			
		||||
        <li>Mój adres IP</li>
 | 
			
		||||
                {cluster.representativeStolenData
 | 
			
		||||
                    .filter((entry) => entry.isMarked)
 | 
			
		||||
                    .map((entry) => (
 | 
			
		||||
                        <li key={entry.id}>
 | 
			
		||||
              {emailClassifications[entry.classification]}{" "}
 | 
			
		||||
              {emailSources[entry.source]} (nazwa: <code>{entry.name}</code>,{" "}
 | 
			
		||||
              wartość: <code>{entry.getValuePreview()}</code>)
 | 
			
		||||
                            {emailClassifications[entry.classification]}{' '}
 | 
			
		||||
                            {emailSources[entry.source]} (nazwa:{' '}
 | 
			
		||||
                            <code>{entry.name}</code>, wartość:{' '}
 | 
			
		||||
                            <code>{entry.getValuePreview()}</code>)
 | 
			
		||||
                        </li>
 | 
			
		||||
                    ))}
 | 
			
		||||
            </ul>
 | 
			
		||||
 | 
			
		||||
@ -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' : '')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user