From 9b1495a4906d6c4a9142a96b4628e6abf1b111a2 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 6 Mar 2026 21:25:14 +0100 Subject: [PATCH] Update notification service --- AppImage/components/latency-detail-modal.tsx | 194 ++++++++++++------- AppImage/components/security.tsx | 29 ++- 2 files changed, 150 insertions(+), 73 deletions(-) diff --git a/AppImage/components/latency-detail-modal.tsx b/AppImage/components/latency-detail-modal.tsx index 9cc5c17f..532e5de9 100644 --- a/AppImage/components/latency-detail-modal.tsx +++ b/AppImage/components/latency-detail-modal.tsx @@ -260,11 +260,67 @@ const generateLatencyReport = (report: ReportData) => { font-size: 13px; } .top-bar button { - background: #06b6d4; color: #fff; border: none; padding: 8px 20px; border-radius: 6px; - font-size: 13px; font-weight: 600; cursor: pointer; + background: #06b6d4; color: #fff; border: none; padding: 8px 20px; border-radius: 6px; + font-size: 13px; font-weight: 600; cursor: pointer; } .top-bar button:hover { background: #0891b2; } + .top-bar .close-btn { + background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); + padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px; + cursor: pointer; font-size: 13px; font-weight: 500; + } + .top-bar .close-btn:hover { background: rgba(255,255,255,0.2); } + .top-bar .close-btn .close-text { display: none; } + .hide-mobile { } @media print { .top-bar { display: none; } body { padding-top: 0; } } + @media screen and (max-width: 600px) { + .top-bar { padding: 10px 12px; } + .hide-mobile { display: none !important; } + .top-bar .close-btn { padding: 8px 16px; font-size: 14px; } + .top-bar .close-btn .close-text { display: inline; } + body { padding: 12px; padding-top: 60px; } + + /* Header responsive */ + .rpt-header { flex-direction: column; gap: 12px; text-align: center; } + .rpt-header-left { flex-direction: column; gap: 8px; } + .rpt-header-left img { width: 50px; height: 50px; } + .rpt-header-left h1 { font-size: 20px; } + .rpt-header-right { text-align: center; font-size: 11px; } + + /* Executive Summary responsive */ + .exec-box { flex-direction: column; gap: 16px; padding: 16px; } + .latency-gauge { width: 100%; } + .latency-gauge svg { width: 140px; height: 94px; } + .gauge-num { font-size: 28px; } + .exec-text h3 { font-size: 16px; text-align: center; } + .exec-text p { font-size: 13px; text-align: center; } + .latency-range { justify-content: center; flex-wrap: wrap; gap: 16px; } + .range-item { align-items: center; text-align: center; } + + /* Grids responsive */ + .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; } + .card { padding: 10px; } + .card-value { font-size: 16px; } + .card-label { font-size: 9px; } + + /* Section titles */ + .section-title { font-size: 12px; } + + /* Tables responsive */ + .chk-tbl { font-size: 11px; } + .chk-tbl th, .chk-tbl td { padding: 6px 8px; } + + /* Thresholds */ + .threshold-item p { font-size: 12px; } + + /* Info box */ + .info-box { padding: 12px; } + .info-box h4 { font-size: 12px; } + .info-box p { font-size: 12px; } + + /* Footer */ + .rpt-footer { flex-direction: column; gap: 4px; text-align: center; font-size: 9px; } + } /* Header */ .rpt-header { @@ -427,16 +483,20 @@ function pmxPrint(){ } } -
-
- ProxMenux Network Latency Report - Review the report, then print or save as PDF +
+
+ + ProxMenux Network Latency Report + Review the report, then print or save as PDF +
+
+ ⌘P / Ctrl+P + +
-
- ⌘P / Ctrl+P - -
-
@@ -813,50 +873,50 @@ export function LatencyDetailModal({ open, onOpenChange, currentLatency }: Laten -
- - - Network Latency - -
- + + + + + {TARGET_OPTIONS.map(opt => ( + + {opt.label} + + ))} + + + {!isRealtime && ( + - {!isRealtime && ( - - )} - {isRealtime && ( - <> - {realtimeTesting ? ( - + )} + {isRealtime && ( + <> + {realtimeTesting ? ( + ) : ( -
-
-
+ +
{/* Progress bar for realtime test */} {isRealtime && realtimeTesting && ( diff --git a/AppImage/components/security.tsx b/AppImage/components/security.tsx index d18a69ee..cc1c43ab 100644 --- a/AppImage/components/security.tsx +++ b/AppImage/components/security.tsx @@ -1002,7 +1002,22 @@ export function Security() { font-size: 13px; font-weight: 600; cursor: pointer; } .top-bar button:hover { background: #0891b2; } + .top-bar .close-btn { + background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); + padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px; + cursor: pointer; font-size: 13px; font-weight: 500; + } + .top-bar .close-btn:hover { background: rgba(255,255,255,0.2); } + .top-bar .close-btn .close-text { display: none; } + .hide-mobile { } @media print { .top-bar { display: none; } body { padding-top: 0; } } + @media screen and (max-width: 600px) { + .top-bar { padding: 10px 12px; } + .hide-mobile { display: none !important; } + .top-bar .close-btn { padding: 8px 16px; font-size: 14px; } + .top-bar .close-btn .close-text { display: inline; } + body { padding-top: 60px; } + } /* Header */ .rpt-header { @@ -1113,14 +1128,18 @@ function pmxPrint(){
- ProxMenux Security Audit Report - Review the report, then print or save as PDF + + ProxMenux Security Audit Report + Review the report, then print or save as PDF
- \u2318P / Ctrl+P - + \u2318P / Ctrl+P + +
-