Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/LogsAndThreats.jsx
Browse files
frontend/src/pages/LogsAndThreats.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
|
|
| 3 |
import { useAuth } from '../components/AuthContext';
|
| 4 |
import {
|
| 5 |
ShieldAlert, Search, Download, RefreshCw, List, ArrowLeft, Filter,
|
| 6 |
-
Info, X, ExternalLink, Shield, AlertTriangle, CheckCircle, Copy, Check, Terminal, Layers
|
| 7 |
} from 'lucide-react';
|
| 8 |
|
| 9 |
const THREAT_KNOWLEDGE_BASE = {
|
|
@@ -497,7 +497,7 @@ const LogsAndThreats = () => {
|
|
| 497 |
|
| 498 |
return (
|
| 499 |
<div className="fixed inset-0 bg-slate-950/80 backdrop-blur-xl flex items-center justify-center p-4 pt-12 sm:pt-16 z-[9999] animate-fade-in overflow-y-auto">
|
| 500 |
-
<div className={`bg-surface border border-outline-variant/80 rounded-3xl max-w-3xl w-full shadow-2xl relative my-auto overflow-hidden flex flex-col max-h-[90vh] transition-all border-t-4 ${activeSev.border}`}>
|
| 501 |
|
| 502 |
{/* Header Banner with Premium Gradient Accent */}
|
| 503 |
<div className={`bg-gradient-to-r ${activeSev.banner} p-6 sm:p-7 border-b border-outline-variant/70 relative`}>
|
|
@@ -892,8 +892,13 @@ const LogsAndThreats = () => {
|
|
| 892 |
{rowIdx}
|
| 893 |
</td>
|
| 894 |
<td className="p-3.5 max-w-md">
|
| 895 |
-
<h4
|
|
|
|
|
|
|
|
|
|
|
|
|
| 896 |
{detail.title}
|
|
|
|
| 897 |
</h4>
|
| 898 |
<p className="text-[12px] text-on-surface-variant line-clamp-1 mt-0.5">
|
| 899 |
{detail.description}
|
|
@@ -924,9 +929,9 @@ const LogsAndThreats = () => {
|
|
| 924 |
e.stopPropagation();
|
| 925 |
setSelectedThreat(detail);
|
| 926 |
}}
|
| 927 |
-
className="px-3.5 py-1.5 bg-primary/10 hover:bg-primary text-primary hover:text-white rounded-
|
| 928 |
>
|
| 929 |
-
<
|
| 930 |
View Details
|
| 931 |
</button>
|
| 932 |
</td>
|
|
|
|
| 3 |
import { useAuth } from '../components/AuthContext';
|
| 4 |
import {
|
| 5 |
ShieldAlert, Search, Download, RefreshCw, List, ArrowLeft, Filter,
|
| 6 |
+
Info, X, ExternalLink, Shield, AlertTriangle, CheckCircle, Copy, Check, Terminal, Layers, Eye
|
| 7 |
} from 'lucide-react';
|
| 8 |
|
| 9 |
const THREAT_KNOWLEDGE_BASE = {
|
|
|
|
| 497 |
|
| 498 |
return (
|
| 499 |
<div className="fixed inset-0 bg-slate-950/80 backdrop-blur-xl flex items-center justify-center p-4 pt-12 sm:pt-16 z-[9999] animate-fade-in overflow-y-auto">
|
| 500 |
+
<div className={`bg-surface border border-outline-variant/80 rounded-3xl max-w-3xl w-full shadow-2xl relative my-auto overflow-hidden flex flex-col max-h-[90vh] transition-all duration-300 transform animate-in fade-in zoom-in-95 border-t-4 ${activeSev.border}`}>
|
| 501 |
|
| 502 |
{/* Header Banner with Premium Gradient Accent */}
|
| 503 |
<div className={`bg-gradient-to-r ${activeSev.banner} p-6 sm:p-7 border-b border-outline-variant/70 relative`}>
|
|
|
|
| 892 |
{rowIdx}
|
| 893 |
</td>
|
| 894 |
<td className="p-3.5 max-w-md">
|
| 895 |
+
<h4
|
| 896 |
+
onClick={() => setSelectedThreat(detail)}
|
| 897 |
+
className="font-bold text-on-surface text-[14px] hover:text-primary transition-colors leading-snug cursor-pointer flex items-center gap-1.5 group/title"
|
| 898 |
+
title="Click to inspect vulnerability diagnostic report"
|
| 899 |
+
>
|
| 900 |
{detail.title}
|
| 901 |
+
<Eye className="w-3.5 h-3.5 opacity-0 group-hover/title:opacity-100 transition-all text-primary shrink-0 transform group-hover/title:scale-110" />
|
| 902 |
</h4>
|
| 903 |
<p className="text-[12px] text-on-surface-variant line-clamp-1 mt-0.5">
|
| 904 |
{detail.description}
|
|
|
|
| 929 |
e.stopPropagation();
|
| 930 |
setSelectedThreat(detail);
|
| 931 |
}}
|
| 932 |
+
className="px-3.5 py-1.5 bg-primary/10 hover:bg-primary text-primary hover:text-white rounded-xl text-[12px] font-bold inline-flex items-center gap-1.5 transition-all cursor-pointer border border-primary/30 shadow-2xs hover:scale-105 active:scale-95 hover:shadow-md hover:shadow-primary/20"
|
| 933 |
>
|
| 934 |
+
<Eye className="w-3.5 h-3.5" />
|
| 935 |
View Details
|
| 936 |
</button>
|
| 937 |
</td>
|