diff --git a/AppImage/components/system-logs.tsx b/AppImage/components/system-logs.tsx
index 0f6b576..8bd9989 100644
--- a/AppImage/components/system-logs.tsx
+++ b/AppImage/components/system-logs.tsx
@@ -8,6 +8,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from ".
import { ScrollArea } from "./ui/scroll-area"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs"
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./ui/dialog"
+import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "./ui/sheet"
import {
FileText,
Search,
@@ -23,6 +24,9 @@ import {
RefreshCw,
Bell,
Mail,
+ Menu,
+ Terminal,
+ CalendarDays,
} from "lucide-react"
import { useState, useEffect } from "react"
@@ -100,6 +104,8 @@ export function SystemLogs() {
const [isBackupModalOpen, setIsBackupModalOpen] = useState(false)
const [isNotificationModalOpen, setIsNotificationModalOpen] = useState(false) // Added
+ const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false)
+
const getApiUrl = (endpoint: string) => {
if (typeof window !== "undefined") {
return `${window.location.protocol}//${window.location.hostname}:8008${endpoint}`
@@ -358,6 +364,36 @@ export function SystemLogs() {
return `${(bytes / Math.pow(k, i)).toFixed(2)} ${sizes[i]}`
}
+ const getSectionIcon = (section: string) => {
+ switch (section) {
+ case "logs":
+ return
+ case "events":
+ return
+ case "backups":
+ return
+ case "notifications":
+ return
+ default:
+ return
+ }
+ }
+
+ const getSectionLabel = (section: string) => {
+ switch (section) {
+ case "logs":
+ return "System Logs"
+ case "events":
+ return "Recent Events"
+ case "backups":
+ return "Backups"
+ case "notifications":
+ return "Notifications"
+ default:
+ return section
+ }
+ }
+
if (loading && logs.length === 0) {
return (
@@ -431,13 +467,76 @@ export function SystemLogs() {
-
+
System Logs
Recent Events
Backups
Notifications
+
+
+
+
+
+
+
+ Sections
+
+
+
+
+
+
+
+
+
+
+
{/* System Logs Tab */}
@@ -710,7 +809,7 @@ export function SystemLogs() {
{selectedLog && (
-
+
Level
@@ -720,15 +819,15 @@ export function SystemLogs() {
Service
-
{selectedLog.service}
+
{selectedLog.service}
-
+
Timestamp
-
{selectedLog.timestamp}
+
{selectedLog.timestamp}
Source
-
{selectedLog.source}
+
{selectedLog.source}
{selectedLog.pid && (
@@ -737,9 +836,9 @@ export function SystemLogs() {
)}
{selectedLog.hostname && (
-
+
Hostname
-
{selectedLog.hostname}
+
{selectedLog.hostname}
)}
@@ -765,7 +864,7 @@ export function SystemLogs() {
{selectedEvent && (
-
+
Status
@@ -775,7 +874,7 @@ export function SystemLogs() {
Type
-
{selectedEvent.type}
+
{selectedEvent.type}
Node
@@ -783,7 +882,7 @@ export function SystemLogs() {
User
-
{selectedEvent.user}
+
{selectedEvent.user}
{selectedEvent.vmid && (
@@ -795,13 +894,13 @@ export function SystemLogs() {
Duration
{selectedEvent.duration}
-
+
Start Time
-
{selectedEvent.starttime}
+
{selectedEvent.starttime}
-
+
End Time
-
{selectedEvent.endtime}
+
{selectedEvent.endtime}
@@ -828,7 +927,7 @@ export function SystemLogs() {
{selectedBackup && (
-
+
Type
@@ -843,7 +942,7 @@ export function SystemLogs() {
Storage
-
{selectedBackup.storage}
+
{selectedBackup.storage}
Size
@@ -857,9 +956,9 @@ export function SystemLogs() {
{selectedBackup.vmid}
)}
-
+
Created
-
{selectedBackup.created}
+
{selectedBackup.created}
@@ -886,7 +985,7 @@ export function SystemLogs() {
{selectedNotification && (
-
+
Type
@@ -894,17 +993,17 @@ export function SystemLogs() {
{selectedNotification.type}
-
+
Timestamp
-
{selectedNotification.timestamp}
+
{selectedNotification.timestamp}
Service
-
{selectedNotification.service}
+
{selectedNotification.service}
Source
-
{selectedNotification.source}
+
{selectedNotification.source}
@@ -919,7 +1018,7 @@ export function SystemLogs() {