chg: [correlation graph] update node legend

This commit is contained in:
Terrtia 2023-05-26 11:44:29 +02:00
parent 5d4b718174
commit b3cafd2a1d
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
2 changed files with 23 additions and 4 deletions

View file

@ -51,9 +51,8 @@ class Title(AbstractDaterangeObject):
url = f'{baseurl}/correlation/show?type={self.type}&id={self.id}' url = f'{baseurl}/correlation/show?type={self.type}&id={self.id}'
return url return url
# TODO # CHANGE COLOR
def get_svg_icon(self): def get_svg_icon(self):
return {'style': 'fas', 'icon': '\uf1dc', 'color': '#1E88E5', 'radius': 5} return {'style': 'fas', 'icon': '\uf1dc', 'color': '#3C7CFF', 'radius': 5}
def get_misp_object(self): def get_misp_object(self):
obj_attrs = [] obj_attrs = []

View file

@ -8,7 +8,7 @@
Decoded: Decoded:
</th> </th>
<th class=""> <th class="">
Screenshot: Objects:
</th> </th>
<th class=""> <th class="">
Pgp: Pgp:
@ -20,7 +20,7 @@
Domain: Domain:
</th> </th>
<th class=""> <th class="">
Paste: Item:
</th> </th>
</tr> </tr>
</thead> </thead>
@ -111,6 +111,16 @@
</div> </div>
</td> </td>
<td> <td>
<div class="my-1">
<svg height="26" width="26">
<g class="nodes">
<circle cx="13" cy="13" r="13" fill="#1E88E5"></circle>
<text x="13" y="13" text-anchor="middle" dominant-baseline="central"
class="graph_node_icon fas" font-size="16px">&#xf188;</text>
</g>
</svg>
cve
</div>
<div class="my-1"> <div class="my-1">
<svg height="26" width="26"> <svg height="26" width="26">
<g class="nodes"> <g class="nodes">
@ -121,6 +131,16 @@
</svg> </svg>
screenshot screenshot
</div> </div>
<div class="my-1">
<svg height="26" width="26">
<g class="nodes">
<circle cx="13" cy="13" r="13" fill="#3C7CFF"></circle>
<text x="13" y="13" text-anchor="middle" dominant-baseline="central"
class="graph_node_icon fas" font-size="16px">&#xf1dc;</text>
</g>
</svg>
title
</div>
</td> </td>
<td> <td>
<div class="my-1"> <div class="my-1">