From f4040183927fdf49c3ddc7d1d4dc98bb5bb8e7ac Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 20 Apr 2024 11:17:49 +0200 Subject: [PATCH] Networks management --- .../src/widgets/tokens/TokenRightsEditor.tsx | 196 ++++++++++++++++-- 1 file changed, 176 insertions(+), 20 deletions(-) diff --git a/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx b/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx index 8031421..5db5115 100644 --- a/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx +++ b/virtweb_frontend/src/widgets/tokens/TokenRightsEditor.tsx @@ -51,12 +51,12 @@ export function TokenRightsEditor(p: { VM name - Get definition - Update - Delete - Get XML definition - Get autostart - Set autostart + Get definition + Update + Delete + Get XML definition + Get autostart + Set autostart @@ -127,15 +127,15 @@ export function TokenRightsEditor(p: { VM name - Get state - Start - Shutdown - Kill - Reset - Suspend - Resume - Screenshot - VNC token + Get state + Start + Shutdown + Kill + Reset + Suspend + Resume + Screenshot + VNC token @@ -236,6 +236,152 @@ export function TokenRightsEditor(p: { + + {/* Networks */} + + + + + + {/* Networks management */} + + + + + Network name + Get definition + Update + Delete + Get XML definition + Get autostart + Set autostart + Get status + Start + Stop + + + + {/* All networks operations */} + + + All + + + + + + + + + + + + + {/* Per network operations */} + {p.networks.map((v, n) => ( + + {v.name} + + + + + + + + + + + ))} + +
+
+ {/* ISO files */} - toggle(a)} + /> + } + label={p.label} + /> + ) : ( + toggle(a)} /> - } - label={p.label} - /> + + )} );