mirror of
https://github.com/RGJorge/ContainerFlow.git
synced 2026-08-03 07:21:42 +02:00
v0.0.2
This commit is contained in:
+21
-1
@@ -40,6 +40,23 @@ export interface LogLine {
|
||||
stream: "stdout" | "stderr";
|
||||
}
|
||||
|
||||
export interface Flow {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
color: string;
|
||||
speed: number;
|
||||
path: string[];
|
||||
}
|
||||
|
||||
export interface FlowSettings {
|
||||
particle_size: number;
|
||||
trail: boolean;
|
||||
trail_opacity: number;
|
||||
glow: boolean;
|
||||
max_particles: number;
|
||||
}
|
||||
|
||||
export type WSMessage =
|
||||
| { type: "services"; data: Service[] }
|
||||
| { type: "connections"; data: Connection[] }
|
||||
@@ -47,4 +64,7 @@ export type WSMessage =
|
||||
| { type: "docker_event"; data: DockerEvent }
|
||||
| { type: "subscribe_logs"; container: string }
|
||||
| { type: "unsubscribe_logs" }
|
||||
| { type: "log_line"; data: LogLine };
|
||||
| { type: "log_line"; data: LogLine }
|
||||
| { type: "flows"; data: { flows: Flow[]; settings: FlowSettings } }
|
||||
| { type: "simulate_flow"; flowId: string }
|
||||
| { type: "particle_spawn"; data: { flowId: string; color: string; speed: number; path: string[] } };
|
||||
|
||||
Reference in New Issue
Block a user