From 8d11d2360e26f7246863a3073d9bf081132dcc2b Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Tue, 13 Feb 2024 22:32:49 +0100 Subject: [PATCH] Redesigned network tab --- .../Servers/UI/UserViews/Network.razor | 115 ++++++++++-------- 1 file changed, 63 insertions(+), 52 deletions(-) diff --git a/Moonlight/Features/Servers/UI/UserViews/Network.razor b/Moonlight/Features/Servers/UI/UserViews/Network.razor index 261bea9..d629ead 100644 --- a/Moonlight/Features/Servers/UI/UserViews/Network.razor +++ b/Moonlight/Features/Servers/UI/UserViews/Network.razor @@ -1,61 +1,72 @@ @using Moonlight.Features.Servers.Entities @using System.Net -
- @foreach (var allocation in Server.Allocations) - { -
-
-
-
- -
- @if (allocation.IpAddress == "0.0.0.0") - { - @Server.Node.Fqdn - } - else - { - @allocation.IpAddress - } -
-
-
- - @if (allocation.IpAddress != "0.0.0.0" || IsIpAddress(Server.Node.Fqdn)) - { -
- - -
- } - else - { - //TODO: Resolve domains addresses here -
- 188.75.252.37 -
- } -
-
- -
- @allocation.Port -
-
-
- - -
-
- -
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+ +@foreach (var allocation in Server.Allocations) +{ +
+
+
+
+ @if (allocation.IpAddress == "0.0.0.0") + { + @Server.Node.Fqdn + } + else + { + @allocation.IpAddress + }
+
+ @if (allocation.IpAddress != "0.0.0.0" || IsIpAddress(Server.Node.Fqdn)) + { +
+ - +
+ } + else + { + //TODO: Resolve domains addresses here +
+ 188.75.252.37 +
+ } +
+
+
+ @allocation.Port +
+
+
+ +
+
+ +
- } -
+
+} @code {