Highlight things related to ID
This commit is contained in:
parent
0960006a5a
commit
773d14d2da
@ -26,13 +26,24 @@ function Report() {
|
||||
</thead>
|
||||
<tbody>
|
||||
{marked_entries.map((entry) => (
|
||||
<tr>
|
||||
<tr
|
||||
style={{
|
||||
backgroundColor:
|
||||
entry.classification == "id" ? "yellow" : "white",
|
||||
}}
|
||||
>
|
||||
<td>{entry.request.shorthost}</td>
|
||||
<td style={{ overflowWrap: "anywhere" }}>
|
||||
{entry.source}:{entry.name}
|
||||
{entry.markedKeys.join(",")}
|
||||
</td>
|
||||
<td style={{ width: "400px", overflowWrap: "anywhere" }}>
|
||||
<td
|
||||
style={{
|
||||
width: "400px",
|
||||
overflowWrap: "anywhere",
|
||||
backgroundColor: entry.isRelatedToID() ? "yellow" : "white",
|
||||
}}
|
||||
>
|
||||
{entry.value}
|
||||
</td>
|
||||
<td>
|
||||
|
@ -133,6 +133,12 @@ export class StolenDataEntry {
|
||||
return "id";
|
||||
}
|
||||
}
|
||||
|
||||
isRelatedToID() {
|
||||
return this.request.stolenData.some(
|
||||
(entry) => (entry.classification = "id")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export class MergedStolenDataEntry {
|
||||
|
Loading…
Reference in New Issue
Block a user