This commit is contained in:
Iliyan Angelov
2025-11-28 20:24:58 +02:00
parent b5698b6018
commit cf97df9aeb
135 changed files with 7641 additions and 357 deletions

View File

@@ -4,16 +4,9 @@ import {
AlertTriangle,
CheckCircle,
XCircle,
Search,
Filter,
RefreshCw,
Eye,
Check,
X,
Ban,
Unlock,
Calendar,
User,
Globe,
Lock,
Activity,
@@ -425,7 +418,7 @@ const SecurityManagementPage: React.FC = () => {
// IP Whitelist Tab Component
const IPWhitelistTab: React.FC = () => {
const [ips, setIPs] = useState<any[]>([]);
const [loading, setLoading] = useState(false);
const [, setLoading] = useState(false);
const [showAddModal, setShowAddModal] = useState(false);
const [newIP, setNewIP] = useState({ ip_address: '', description: '' });
@@ -584,7 +577,7 @@ const IPWhitelistTab: React.FC = () => {
// IP Blacklist Tab Component
const IPBlacklistTab: React.FC = () => {
const [ips, setIPs] = useState<any[]>([]);
const [loading, setLoading] = useState(false);
const [, setLoading] = useState(false);
const [showAddModal, setShowAddModal] = useState(false);
const [newIP, setNewIP] = useState({ ip_address: '', reason: '' });
@@ -1390,7 +1383,7 @@ const SecurityScanTab: React.FC = () => {
const handleScheduleScan = async () => {
try {
const schedule = await securityService.scheduleSecurityScan(scheduleInterval);
await securityService.scheduleSecurityScan(scheduleInterval);
setScheduled(true);
toast.success(`Security scan scheduled to run every ${scheduleInterval} hours`);
} catch (error: any) {