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:
@ -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({
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
@ -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 = [
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user