Move components inside folders

Signed-off-by: Andrea Pavone <info@andreapavone.com>
This commit is contained in:
2024-11-10 19:06:42 +01:00
parent 0e18b53f91
commit eb0b894e1c
28 changed files with 1383 additions and 273 deletions

View File

@ -27,9 +27,7 @@ export default function SecurityScoresOverviewBarChart({ reportData }: { reportD
{ metric: 'Spoofing', score: reportData.spoofing_score },
{ metric: 'Open Port', score: reportData.open_ports_score },
{ metric: 'Blacklist', score: reportData.blacklist_score },
{ metric: 'Certificate', score: reportData.certificate_score },
{ metric: 'Active Vulnerability', score: reportData.vulnerability_score_active },
{ metric: 'Passive Vulnerability', score: reportData.vulnerability_score_passive },
{ metric: 'Certificate', score: reportData.certificate_score }
], [reportData]);
@ -43,7 +41,6 @@ export default function SecurityScoresOverviewBarChart({ reportData }: { reportD
},
} satisfies ChartConfig;
// Calculate average score and trend
const averageScore = useMemo(() => {
const sum = chartData.reduce((acc, curr) => acc + curr.score, 0);
return Math.round(sum / chartData.length);