diff --git a/app/dashboard/admin/alerts/page.tsx b/app/dashboard/admin/alerts/page.tsx
deleted file mode 100644
index 6908f3b..0000000
--- a/app/dashboard/admin/alerts/page.tsx
+++ /dev/null
@@ -1,319 +0,0 @@
-import React from "react";
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
-import { Badge } from "@/components/ui/badge";
-import { Button } from "@/components/ui/button";
-import { Alert, AlertDescription } from "@/components/ui/alert";
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
-import { AlertTriangle, CheckCircle, XCircle, Clock, Bell, Shield } from "lucide-react";
-import Link from "next/link";
-
-export default function AdminAlertsPage() {
- // Mock data for system alerts
- const alerts = [
- {
- id: "1",
- type: "security",
- severity: "high",
- title: "Suspicious Login Attempts",
- description: "Multiple failed login attempts detected from IP 192.168.1.100",
- timestamp: "2024-01-20 14:30:00",
- status: "active",
- affectedUsers: 3
- },
- {
- id: "2",
- type: "system",
- severity: "medium",
- title: "High Memory Usage",
- description: "Server memory usage has exceeded 85% for the past hour",
- timestamp: "2024-01-20 13:45:00",
- status: "resolved",
- affectedUsers: 0
- },
- {
- id: "3",
- type: "payment",
- severity: "high",
- title: "Payment Processing Error",
- description: "Bitcoin payment gateway experiencing delays",
- timestamp: "2024-01-20 12:15:00",
- status: "active",
- affectedUsers: 12
- },
- {
- id: "4",
- type: "user",
- severity: "low",
- title: "New Vendor Registration",
- description: "New vendor 'tech_supplies' has registered and requires approval",
- timestamp: "2024-01-20 11:20:00",
- status: "pending",
- affectedUsers: 1
- },
- {
- id: "5",
- type: "security",
- severity: "critical",
- title: "Potential Security Breach",
- description: "Unusual API access patterns detected from multiple IPs",
- timestamp: "2024-01-20 10:30:00",
- status: "investigating",
- affectedUsers: 0
- }
- ];
-
- const getSeverityColor = (severity: string) => {
- switch (severity) {
- case "critical": return "destructive";
- case "high": return "destructive";
- case "medium": return "secondary";
- case "low": return "outline";
- default: return "outline";
- }
- };
-
- const getStatusColor = (status: string) => {
- switch (status) {
- case "active": return "destructive";
- case "resolved": return "default";
- case "pending": return "secondary";
- case "investigating": return "outline";
- default: return "outline";
- }
- };
-
- const getTypeIcon = (type: string) => {
- switch (type) {
- case "security": return ;
- case "system": return ;
- case "payment": return ;
- case "user": return ;
- default: return ;
- }
- };
-
- return (
-
-
-
-
System Alerts
-
Monitor system alerts and security notifications
-
-
-
-
- {/* Alert Summary */}
-
-
-
- Active Alerts
-
-
-
- 8
- Require attention
-
-
-
-
- Critical
-
-
-
- 2
- Immediate action needed
-
-
-
-
- Resolved Today
-
-
-
- 15
- Successfully resolved
-
-
-
-
- Avg Response
-
-
-
- 12m
- Average resolution time
-
-
-
-
- {/* Critical Alerts */}
-
-
-
- Critical Alert: Potential security breach detected. Multiple unusual API access patterns from different IP addresses. Immediate investigation required.
-
-
-
- {/* Alerts Table */}
-
-
-
-
- System Alerts
- Recent system alerts and notifications
-
-
-
-
-
-
-
-
-
-
-
- Type
- Alert
- Severity
- Status
- Affected Users
- Timestamp
- Actions
-
-
-
- {alerts.map((alert) => (
-
-
-
- {getTypeIcon(alert.type)}
- {alert.type}
-
-
-
-
-
{alert.title}
-
- {alert.description}
-
-
-
-
-
- {alert.severity}
-
-
-
-
- {alert.status}
-
-
- {alert.affectedUsers}
-
- {alert.timestamp}
-
-
-
-
- {alert.status === "active" && (
-
- )}
-
-
-
- ))}
-
-
-
-
-
- {/* Alert Categories */}
-
-
-
-
-
- Security Alerts
-
-
-
-
-
- Failed Logins
- 3
-
-
- Suspicious Activity
- 1
-
-
- API Abuse
- 0
-
-
-
-
-
-
-
-
-
- System Alerts
-
-
-
-
-
- High CPU Usage
- 1
-
-
- Memory Issues
- 0
-
-
- Database Slow
- 0
-
-
-
-
-
-
-
-
-
- Payment Alerts
-
-
-
-
-
- Gateway Issues
- 1
-
-
- Failed Transactions
- 2
-
-
- High Volume
- 0
-
-
-
-
-
-
- );
-}
diff --git a/app/dashboard/admin/settings/page.tsx b/app/dashboard/admin/settings/page.tsx
deleted file mode 100644
index aeaf984..0000000
--- a/app/dashboard/admin/settings/page.tsx
+++ /dev/null
@@ -1,339 +0,0 @@
-import React from "react";
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
-import { Label } from "@/components/ui/label";
-import { Switch } from "@/components/ui/switch";
-import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
-import { Textarea } from "@/components/ui/textarea";
-import { Separator } from "@/components/ui/separator";
-import { Settings, Shield, Bell, Database, Globe, Key, Save } from "lucide-react";
-import Link from "next/link";
-
-export default function AdminSettingsPage() {
- return (
-
-
-
-
Admin Settings
-
Configure system settings and preferences
-
-
-
-
-
- {/* General Settings */}
-
-
-
-
- General Settings
-
-
- Basic platform configuration and preferences
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Temporarily disable public access
-
-
-
-
-
-
-
- {/* Security Settings */}
-
-
-
-
- Security Settings
-
-
- Configure security policies and authentication
-
-
-
-
-
-
-
- Require 2FA for all admin accounts
-
-
-
-
-
-
-
-
-
- Auto-logout after inactivity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Restrict admin access to specific IPs
-
-
-
-
-
-
-
-
-
-
-
-
- {/* Notification Settings */}
-
-
-
-
- Notification Settings
-
-
- Configure alert and notification preferences
-
-
-
-
-
-
-
- Send alerts via email
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Notify on security events
-
-
-
-
-
-
-
-
-
- Notify on system issues
-
-
-
-
-
-
-
-
-
- Notify on high-value orders
-
-
-
-
-
-
-
- {/* Database Settings */}
-
-
-
-
- Database Settings
-
-
- Database configuration and maintenance
-
-
-
-
-
-
-
-
-
-
-
-
- Automatically backup database
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {/* API Settings */}
-
-
-
-
- API Settings
-
-
- API configuration and rate limiting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Log all API requests
-
-
-
-
-
-
-
-
-
-
-
-
- {/* System Information */}
-
-
-
-
- System Information
-
-
- Platform version and system details
-
-
-
-
- Platform Version
- v2.1.0
-
-
- Database Version
- MongoDB 6.0
-
-
- Node.js Version
- v18.17.0
-
-
- Last Updated
- 2024-01-15
-
-
- Uptime
- 15 days, 3 hours
-
-
-
-
-
- {/* Save Button */}
-
-
-
-
- );
-}
diff --git a/config/admin-sidebar.ts b/config/admin-sidebar.ts
index e453457..bdc3176 100644
--- a/config/admin-sidebar.ts
+++ b/config/admin-sidebar.ts
@@ -1,4 +1,4 @@
-import { Home, Shield, Users, Ban, UserPlus, Package, Settings, BarChart3, AlertTriangle } from "lucide-react"
+import { Home, Shield, Users, Ban, UserPlus, Package, BarChart3 } from "lucide-react"
export const adminSidebarConfig = [
{
@@ -20,8 +20,6 @@ export const adminSidebarConfig = [
title: "System",
items: [
{ name: "Recent Orders", href: "/dashboard/admin/orders", icon: Package },
- { name: "System Alerts", href: "/dashboard/admin/alerts", icon: AlertTriangle },
- { name: "Settings", href: "/dashboard/admin/settings", icon: Settings },
],
},
]