summaryrefslogtreecommitdiff
path: root/src/components/ListItem.js
diff options
context:
space:
mode:
authorErnst Widerberg <ernst@sunet.se>2022-04-11 15:36:24 +0200
committerErnst Widerberg <ernst@sunet.se>2022-04-11 15:36:24 +0200
commite81061b11637a1918a0c938022357e5858c9eed1 (patch)
treeda5e481b5188ac1edb868ca2954a8a4064d80159 /src/components/ListItem.js
parent3d24518dd254d54c7be8bb56e66ce1242630af18 (diff)
Edit JSON format
- "result" changed from array to object - optional "description" key added on result objects - "reliability" key added on result objects, mandatory on positive results
Diffstat (limited to 'src/components/ListItem.js')
-rw-r--r--src/components/ListItem.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/ListItem.js b/src/components/ListItem.js
index b289c2e..b85df4e 100644
--- a/src/components/ListItem.js
+++ b/src/components/ListItem.js
@@ -24,14 +24,20 @@ class ListItem extends React.Component {
</td>
<td>{this.props.domain}</td>
<td>{this.props.system_name}</td>
- <td>
+ <td style={{ paddingRight: 0 }}>
<Card
className={
- "cve" + (this.props.vulnerable ? " vulnerable" : "")
+ "result" +
+ (this.props.vulnerable ? " vulnerable" : "")
}
variant="outlined"
>
- {this.props.cve}
+ {this.props.display_name}
+ </Card>
+ </td>
+ <td style={{ paddingLeft: 0 }}>
+ <Card className="reliability" variant="outlined">
+ {this.props.reliability}
</Card>
</td>
<td>