Fix jwt-token
This commit is contained in:
@@ -103,10 +103,30 @@ const System = () => {
|
||||
<h4 className="font-medium text-gray-900 mb-3 truncate" title={name}>
|
||||
{name.replace('drone-detection-', '').replace('uamils-', '')}
|
||||
</h4>
|
||||
{metrics.error ? (
|
||||
{metrics.error || metrics.status === 'health_check_failed' ? (
|
||||
<div className="text-sm text-red-600">
|
||||
<div className="font-medium">Not Available</div>
|
||||
<div className="text-xs mt-1">{metrics.message}</div>
|
||||
<div className="font-medium">
|
||||
{metrics.status === 'health_check_failed' ? 'Health Check Failed' : 'Not Available'}
|
||||
</div>
|
||||
<div className="text-xs mt-1">{metrics.error || metrics.message}</div>
|
||||
</div>
|
||||
) : metrics.source === 'docker_compose' ? (
|
||||
<div className="space-y-2 text-sm">
|
||||
<div className="flex justify-between">
|
||||
<span className="text-gray-500">Status</span>
|
||||
<span className={`font-medium ${metrics.status === 'running' ? 'text-green-600' : 'text-red-600'}`}>
|
||||
{metrics.status}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span className="text-gray-500">Health</span>
|
||||
<span className="font-medium">{metrics.health}</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span className="text-gray-500">Ports</span>
|
||||
<span className="font-medium text-xs">{metrics.ports || 'N/A'}</span>
|
||||
</div>
|
||||
<div className="text-xs text-blue-600 mt-2">Source: Docker Compose</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="space-y-2 text-sm">
|
||||
@@ -116,7 +136,7 @@ const System = () => {
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span className="text-gray-500">Memory</span>
|
||||
<span className="font-medium">{metrics.memory.percentage}</span>
|
||||
<span className="font-medium">{metrics.memory?.percentage || metrics.memory}</span>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<span className="text-gray-500">Network I/O</span>
|
||||
@@ -126,6 +146,11 @@ const System = () => {
|
||||
<span className="text-gray-500">Disk I/O</span>
|
||||
<span className="font-medium text-xs">{metrics.disk}</span>
|
||||
</div>
|
||||
{metrics.source && (
|
||||
<div className="text-xs text-blue-600 mt-2">
|
||||
Source: {metrics.source.replace('_', ' ').toUpperCase()}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user