chg: [correlation graph] update node legend

pull/594/head
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}'
return url
# TODO # CHANGE COLOR
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):
obj_attrs = []

View File

@ -8,7 +8,7 @@
Decoded:
</th>
<th class="">
Screenshot:
Objects:
</th>
<th class="">
Pgp:
@ -20,7 +20,7 @@
Domain:
</th>
<th class="">
Paste:
Item:
</th>
</tr>
</thead>
@ -111,6 +111,16 @@
</div>
</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">
<svg height="26" width="26">
<g class="nodes">
@ -121,6 +131,16 @@
</svg>
screenshot
</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>
<div class="my-1">