From b86e867cff6285285d5f3b5cf987b7fb5fbc8f52 Mon Sep 17 00:00:00 2001 From: Masu-Baumgartner <68913099+Masu-Baumgartner@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:54:33 +0200 Subject: [PATCH 1/2] Added some node ui --- .../Components/Forms/AllocationEditor.razor | 22 +++++++++---------- .../UI/Components/Partials/NodeLogs.razor | 14 ++++++++++++ .../UI/Components/Partials/NodeOverview.razor | 15 +++++++++++++ .../UI/Views/Admin/Nodes.razor | 3 ++- 4 files changed, 41 insertions(+), 13 deletions(-) create mode 100644 MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor create mode 100644 MoonlightServers.Client/UI/Components/Partials/NodeOverview.razor diff --git a/MoonlightServers.Client/UI/Components/Forms/AllocationEditor.razor b/MoonlightServers.Client/UI/Components/Forms/AllocationEditor.razor index 82aa6a1..b478f64 100644 --- a/MoonlightServers.Client/UI/Components/Forms/AllocationEditor.razor +++ b/MoonlightServers.Client/UI/Components/Forms/AllocationEditor.razor @@ -5,18 +5,16 @@ @inject HttpApiClient HttpApiClient -
- - - - - - - -
+ + + + + + + @code { diff --git a/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor b/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor new file mode 100644 index 0000000..4fa0b99 --- /dev/null +++ b/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor @@ -0,0 +1,14 @@ +
+
+ +
+ +
+ +
+
+ +@code +{ + [Parameter] public int NodeId { get; set; } +} \ No newline at end of file diff --git a/MoonlightServers.Client/UI/Components/Partials/NodeOverview.razor b/MoonlightServers.Client/UI/Components/Partials/NodeOverview.razor new file mode 100644 index 0000000..4656be1 --- /dev/null +++ b/MoonlightServers.Client/UI/Components/Partials/NodeOverview.razor @@ -0,0 +1,15 @@ +
+ + + + + + + + +
+ +@code +{ + [Parameter] public int NodeId { get; set; } +} \ No newline at end of file diff --git a/MoonlightServers.Client/UI/Views/Admin/Nodes.razor b/MoonlightServers.Client/UI/Views/Admin/Nodes.razor index b401824..643a999 100644 --- a/MoonlightServers.Client/UI/Views/Admin/Nodes.razor +++ b/MoonlightServers.Client/UI/Views/Admin/Nodes.razor @@ -5,6 +5,7 @@ @using MoonlightServers.Client.UI.Components.Forms @using MoonlightServers.Shared.Http.Requests.Admin.Nodes @using MoonlightServers.Shared.Http.Responses.Admin.Nodes +@using MoonlightServers.Client.UI.Components.Partials @inject HttpApiClient HttpApiClient @@ -29,7 +30,7 @@ -

Overview owo

+
From 077ac06dbbc3519e4c24865c2fcf6944a8b5c52d Mon Sep 17 00:00:00 2001 From: Masu-Baumgartner <68913099+Masu-Baumgartner@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:15:28 +0200 Subject: [PATCH 2/2] Added node logs ui --- .../UI/Components/Partials/NodeLogs.razor | 41 +++++++++++++++++-- .../UI/Views/Admin/Nodes.razor | 3 ++ 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor b/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor index 4fa0b99..6b090f1 100644 --- a/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor +++ b/MoonlightServers.Client/UI/Components/Partials/NodeLogs.razor @@ -1,10 +1,43 @@
-
- +
+
+
+
+ +
+ +
+
-
- +
+ 10:43:29 [INF] ExecutionContext Loaded server 44 [23/25]
+ 10:43:29 [INF] ExecutionContext Loaded server 45 [24/25]
+ 10:43:29 [INF] ExecutionContext Loaded server 50 [25/25]
+ 10:43:29 [INF] ExecutionContext Fetched servers. Closing websocket connection
+ 10:43:29 [INF] AsyncTaskMethodBuilder Finishing boot
+ 10:43:29 [INF] AsyncTaskMethodBuilder Restoring docker containers
+ 10:43:29 [INF] ExecutionContext Restored server 35 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 19 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 2 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 9 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 44 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 45 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 42 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 39 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 17 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 15 and reattached stream
+ 10:43:29 [INF] ExecutionContext Restored server 12 and reattached stream
+ 10:50:08 [FTL] ConnectionManager Connection id "0HN65LD3UMODC" application never completed.
+ 11:20:29 [FTL] ConnectionManager Connection id "0HN65LD3UMOE9" application never completed.
+ 15:53:04 [FTL] ConnectionManager Connection id "0HN65LD3UMPS5" application never completed.
+ 15:53:04 [FTL] ConnectionManager Connection id "0HN65LD3UMPN2" application never completed.
+ 15:53:04 [FTL] ConnectionManager Connection id "0HN65LD3UMPN9" application never completed.
+ 15:53:04 [FTL] ConnectionManager Connection id "0HN65LD3UMPRK" application never completed.
+ 20:11:22 [WRN] AsyncTaskMethodBuilder`1 Invalid username format received. Username: 'anonymous', Password: 'IEUser
diff --git a/MoonlightServers.Client/UI/Views/Admin/Nodes.razor b/MoonlightServers.Client/UI/Views/Admin/Nodes.razor index 643a999..6e7e5c9 100644 --- a/MoonlightServers.Client/UI/Views/Admin/Nodes.razor +++ b/MoonlightServers.Client/UI/Views/Admin/Nodes.razor @@ -35,6 +35,9 @@ + + +