refactor: remove unused ThreatAlert components from frontend views

- Remove dead ThreatAlert component code from BruteForceView, HeaderFingerprintView, MLFeaturesView, and TcpSpoofingView
- Clean up unused type definitions and imports

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
SOC Analyst
2026-03-20 10:24:24 +01:00
parent bd423148e6
commit b7787f606a
4 changed files with 0 additions and 32 deletions

View File

@ -47,14 +47,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num
); );
} }
: { message: string }) {
return (
<div className="bg-threat-critical/10 border border-threat-critical/30 rounded-lg p-4 text-threat-critical">
{message}
</div>
);
}
// ─── Attackers DataTable ───────────────────────────────────────────────────── // ─── Attackers DataTable ─────────────────────────────────────────────────────
function AttackersTable({ function AttackersTable({

View File

@ -66,14 +66,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num
); );
} }
: { message: string }) {
return (
<div className="bg-threat-critical/10 border border-threat-critical/30 rounded-lg p-4 text-threat-critical">
{message}
</div>
);
}
// ─── Main Component ─────────────────────────────────────────────────────────── // ─── Main Component ───────────────────────────────────────────────────────────
export function HeaderFingerprintView() { export function HeaderFingerprintView() {

View File

@ -81,14 +81,6 @@ function fuzzingBadgeClass(value: number): string {
// ─── Sub-components ─────────────────────────────────────────────────────────── // ─── Sub-components ───────────────────────────────────────────────────────────
: { message: string }) {
return (
<div className="bg-threat-critical/10 border border-threat-critical/30 rounded-lg p-4 text-threat-critical">
{message}
</div>
);
}
// ─── Radar Chart (SVG octagonal) ───────────────────────────────────────────── // ─── Radar Chart (SVG octagonal) ─────────────────────────────────────────────
const RADAR_AXES = [ const RADAR_AXES = [

View File

@ -110,14 +110,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num
); );
} }
: { message: string }) {
return (
<div className="bg-threat-critical/10 border border-threat-critical/30 rounded-lg p-4 text-threat-critical">
{message}
</div>
);
}
// ─── Detections DataTable ───────────────────────────────────────────────────── // ─── Detections DataTable ─────────────────────────────────────────────────────
function TcpDetectionsTable({ function TcpDetectionsTable({