mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 07:41:27 +00:00
fix(ui): add sleeping/waking to ServiceStatus union + sleeping badge class
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
79fb73afc8
commit
a26c103eb4
2 files changed
+9
-1
No files matched your search
@@ -398,6 +398,10 @@ textarea {
|
||||
background: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.status-sleeping {
|
||||
background: var(--info, #6366f1);
|
||||
}
|
||||
|
||||
@keyframes pulse-ring {
|
||||
0% { transform: scale(1); opacity: 0.7; }
|
||||
70% { transform: scale(2); opacity: 0; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { components, paths } from '@/generated/api-types';
|
||||
|
||||
export type ServiceStatus = 'running' | 'degraded' | 'stopped' | 'building' | 'failed' | 'unknown';
|
||||
export type ServiceStatus = 'running' | 'degraded' | 'stopped' | 'building' | 'failed' | 'sleeping' | 'waking' | 'unknown';
|
||||
|
||||
export type ProjectStats = components['schemas']['ProjectStats'];
|
||||
|
||||
@@ -1731,6 +1731,10 @@ export function serviceStatusClass(status: ServiceStatus): string {
|
||||
return 'status-building';
|
||||
case 'failed':
|
||||
return 'status-failed';
|
||||
case 'sleeping':
|
||||
return 'status-sleeping';
|
||||
case 'waking':
|
||||
return 'status-building';
|
||||
case 'stopped':
|
||||
return 'status-stopped';
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user