mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-29 14:35:58 +00:00
update system-logs.tsx
This commit is contained in:
@@ -553,7 +553,7 @@ export function SystemLogs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6 w-full max-w-full overflow-hidden">
|
||||||
{loading && (logs.length > 0 || events.length > 0) && (
|
{loading && (logs.length > 0 || events.length > 0) && (
|
||||||
<div className="fixed inset-0 bg-background/60 backdrop-blur-sm z-50 flex items-center justify-center">
|
<div className="fixed inset-0 bg-background/60 backdrop-blur-sm z-50 flex items-center justify-center">
|
||||||
<div className="flex flex-col items-center gap-3 p-6 rounded-xl bg-card border border-border shadow-xl">
|
<div className="flex flex-col items-center gap-3 p-6 rounded-xl bg-card border border-border shadow-xl">
|
||||||
@@ -616,7 +616,7 @@ export function SystemLogs() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Main Content with Tabs */}
|
{/* Main Content with Tabs */}
|
||||||
<Card className="bg-card border-border">
|
<Card className="bg-card border-border w-full max-w-full overflow-hidden">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<CardTitle className="text-foreground flex items-center">
|
<CardTitle className="text-foreground flex items-center">
|
||||||
@@ -630,7 +630,7 @@ export function SystemLogs() {
|
|||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="max-w-full overflow-hidden">
|
<CardContent className="max-w-full overflow-hidden">
|
||||||
<Tabs value={activeTab} onValueChange={setActiveTab}>
|
<Tabs value={activeTab} onValueChange={setActiveTab} className="w-full max-w-full">
|
||||||
<TabsList className="hidden md:grid w-full grid-cols-3">
|
<TabsList className="hidden md:grid w-full grid-cols-3">
|
||||||
<TabsTrigger value="logs" className="data-[state=active]:bg-blue-500 data-[state=active]:text-white">
|
<TabsTrigger value="logs" className="data-[state=active]:bg-blue-500 data-[state=active]:text-white">
|
||||||
<Terminal className="h-4 w-4 mr-2" />
|
<Terminal className="h-4 w-4 mr-2" />
|
||||||
|
|||||||
@@ -855,7 +855,7 @@ def proxmox_webhook():
|
|||||||
resp.headers['Retry-After'] = '60'
|
resp.headers['Retry-After'] = '60'
|
||||||
return resp, 429
|
return resp, 429
|
||||||
|
|
||||||
# ── Layers 2-5: Remote-only checks ──
|
# ��─ Layers 2-5: Remote-only checks ──
|
||||||
if not is_localhost:
|
if not is_localhost:
|
||||||
# Layer 2: Shared secret
|
# Layer 2: Shared secret
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -1858,7 +1858,7 @@ class NotificationManager:
|
|||||||
return {'checked': False, 'migrated': False, 'message': str(e)}
|
return {'checked': False, 'migrated': False, 'message': str(e)}
|
||||||
|
|
||||||
|
|
||||||
# ─── Singleton (for server mode) ─────────────────────────────��───
|
# ─── Singleton (for server mode) ─────────────────────────────────
|
||||||
|
|
||||||
notification_manager = NotificationManager()
|
notification_manager = NotificationManager()
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import time
|
|||||||
import threading
|
import threading
|
||||||
from typing import Set, List, Tuple, Optional
|
from typing import Set, List, Tuple, Optional
|
||||||
|
|
||||||
# ─── Configuration ───────────────────────���───────────────────────────────────
|
# ─── Configuration ───────────────────────────────────────────────────────────
|
||||||
|
|
||||||
# Grace period durations (seconds)
|
# Grace period durations (seconds)
|
||||||
STARTUP_VM_GRACE_SECONDS = 180 # 3 minutes for VM/CT start aggregation
|
STARTUP_VM_GRACE_SECONDS = 180 # 3 minutes for VM/CT start aggregation
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ LOG_FILE="/tmp/proxmenux_real_test_$(date +%Y%m%d_%H%M%S).log"
|
|||||||
log() { echo -e "$1" | tee -a "$LOG_FILE"; }
|
log() { echo -e "$1" | tee -a "$LOG_FILE"; }
|
||||||
header() {
|
header() {
|
||||||
echo "" | tee -a "$LOG_FILE"
|
echo "" | tee -a "$LOG_FILE"
|
||||||
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━��━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
|
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
|
||||||
echo -e "${BOLD} $1${NC}" | tee -a "$LOG_FILE"
|
echo -e "${BOLD} $1${NC}" | tee -a "$LOG_FILE"
|
||||||
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
|
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user