mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
update system-logs.tsx
This commit is contained in:
@@ -794,8 +794,8 @@ export function SystemLogs() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ScrollArea className="h-[600px] w-full max-w-full rounded-md border border-border">
|
<ScrollArea className="h-[600px] w-full rounded-md border border-border [&>div]:!max-w-full [&>div>div]:!max-w-full">
|
||||||
<div className="space-y-2 p-4 w-full max-w-full">
|
<div className="space-y-2 p-4 w-full min-w-0">
|
||||||
{displayedLogs.map((log, index) => {
|
{displayedLogs.map((log, index) => {
|
||||||
// Generate a more stable unique key
|
// Generate a more stable unique key
|
||||||
const timestampMs = new Date(log.timestamp).getTime()
|
const timestampMs = new Date(log.timestamp).getTime()
|
||||||
@@ -806,7 +806,7 @@ export function SystemLogs() {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={uniqueKey}
|
key={uniqueKey}
|
||||||
className="flex flex-col md:flex-row md:items-start space-y-2 md:space-y-0 md:space-x-4 p-3 rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 transition-colors cursor-pointer overflow-hidden w-full max-w-full"
|
className="flex flex-col md:flex-row md:items-start space-y-2 md:space-y-0 md:space-x-4 p-3 rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 transition-colors cursor-pointer overflow-hidden w-full min-w-0"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (log.eventData) {
|
if (log.eventData) {
|
||||||
setSelectedEvent(log.eventData)
|
setSelectedEvent(log.eventData)
|
||||||
|
|||||||
@@ -855,7 +855,7 @@ def proxmox_webhook():
|
|||||||
resp.headers['Retry-After'] = '60'
|
resp.headers['Retry-After'] = '60'
|
||||||
return resp, 429
|
return resp, 429
|
||||||
|
|
||||||
# <EFBFBD><EFBFBD>─ 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) ────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
|
||||||
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 ───────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────────────────────────
|
||||||
|
|
||||||
# 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}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<EFBFBD><EFBFBD>━━━━━━━━━━━━━${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"
|
||||||
}
|
}
|
||||||
@@ -684,7 +684,7 @@ show_menu() {
|
|||||||
echo -ne " Select: "
|
echo -ne " Select: "
|
||||||
}
|
}
|
||||||
|
|
||||||
# ── Main ────────────────────────────────────────────────────────
|
# ── Main ────────────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────
|
||||||
main() {
|
main() {
|
||||||
local mode="${1:-menu}"
|
local mode="${1:-menu}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user