Update
This commit is contained in:
		
							parent
							
								
									02ef1fe3d4
								
							
						
					
					
						commit
						6ecf2e62b6
					
				| @ -1,41 +1,42 @@ | |||||||
| import React from "react"; | import React from 'react'; | ||||||
| import { RequestCluster } from "../request-cluster"; | import { RequestCluster } from '../request-cluster'; | ||||||
| import { Classifications, Sources } from "../stolen-data-entry"; | import { Classifications, Sources } from '../stolen-data-entry'; | ||||||
| 
 | 
 | ||||||
| const emailClassifications: Record<keyof typeof Classifications, string> = { | const emailClassifications: Record<keyof typeof Classifications, string> = { | ||||||
|   id: "mój identyfikator internetowy", |     id: 'mój identyfikator internetowy', | ||||||
|   history: "część mojej historii przeglądania", |     history: 'część mojej historii przeglądania', | ||||||
|   location: "informacje na temat mojej lokalizacji geograficznej", |     location: 'informacje na temat mojej lokalizacji geograficznej', | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const emailSources: Record<Sources, string> = { | const emailSources: Record<Sources, string> = { | ||||||
|   header: "w nagłówku HTTP", |     header: 'w nagłówku HTTP', | ||||||
|   cookie: "z pliku Cookie", |     cookie: 'z pliku Cookie', | ||||||
|   pathname: "jako części adresu URL", |     pathname: 'jako części adresu URL', | ||||||
|   queryparams: "jako część adresu URL (query-params)", |     queryparams: 'jako część adresu URL (query-params)', | ||||||
|   request_body: "w body zapytania POST", |     request_body: 'w body zapytania POST', | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export default function DomainSummary({ | export default function DomainSummary({ | ||||||
|   cluster, |     cluster, | ||||||
| }: { | }: { | ||||||
|   cluster: RequestCluster; |     cluster: RequestCluster; | ||||||
| }) { | }) { | ||||||
|   return ( |     return ( | ||||||
|     <li> |         <li> | ||||||
|       Właścicielowi domeny <strong>{cluster.id}</strong> zostały ujawnione:{" "} |             Właścicielowi domeny <strong>{cluster.id}</strong> zostały | ||||||
|       <ul> |             ujawnione:{' '} | ||||||
|         <li>Mój adres IP</li> |             <ul> | ||||||
|         {cluster.representativeStolenData |                 {cluster.representativeStolenData | ||||||
|           .filter((entry) => entry.isMarked) |                     .filter((entry) => entry.isMarked) | ||||||
|           .map((entry) => ( |                     .map((entry) => ( | ||||||
|             <li key={entry.id}> |                         <li key={entry.id}> | ||||||
|               {emailClassifications[entry.classification]}{" "} |                             {emailClassifications[entry.classification]}{' '} | ||||||
|               {emailSources[entry.source]} (nazwa: <code>{entry.name}</code>,{" "} |                             {emailSources[entry.source]} (nazwa:{' '} | ||||||
|               wartość: <code>{entry.getValuePreview()}</code>) |                             <code>{entry.name}</code>, wartość:{' '} | ||||||
|             </li> |                             <code>{entry.getValuePreview()}</code>) | ||||||
|           ))} |                         </li> | ||||||
|       </ul> |                     ))} | ||||||
|     </li> |             </ul> | ||||||
|   ); |         </li> | ||||||
|  |     ); | ||||||
| } | } | ||||||
|  | |||||||
| @ -26,7 +26,6 @@ function ClusterRangeSummary({ cluster }: { cluster: RequestCluster }) { | |||||||
|     return ( |     return ( | ||||||
|         <> |         <> | ||||||
|             {[ |             {[ | ||||||
|                 'Pańskiego adresu IP', |  | ||||||
|                 range.includes('id') |                 range.includes('id') | ||||||
|                     ? 'Pańskiego identyfikatora internetowego' + |                     ? 'Pańskiego identyfikatora internetowego' + | ||||||
|                       (has_cookie_ids ? ' z cookie' : '') |                       (has_cookie_ids ? ' z cookie' : '') | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user