diff --git a/.gitignore b/.gitignore index 4f55ca1..b183cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -434,4 +434,5 @@ nupkgs/ **/data/volumes/** # Local plugin build -tmp/ \ No newline at end of file +tmp/ +style.min.css \ No newline at end of file diff --git a/MoonlightServers.Frontend/UI/Components/Nodes/UpdateNodePartials/AllocationsNodeUpdate.razor b/MoonlightServers.Frontend/UI/Components/Nodes/UpdateNodePartials/AllocationsNodeUpdate.razor index 138ca35..8cf138e 100644 --- a/MoonlightServers.Frontend/UI/Components/Nodes/UpdateNodePartials/AllocationsNodeUpdate.razor +++ b/MoonlightServers.Frontend/UI/Components/Nodes/UpdateNodePartials/AllocationsNodeUpdate.razor @@ -41,11 +41,11 @@
+ class="text-primary mr-2 sm:mr-3"> + class="text-danger">
diff --git a/MoonlightServers.Frontend/UI/Components/Servers/ServerCard.razor b/MoonlightServers.Frontend/UI/Components/Servers/ServerCard.razor index 842706b..8104cb2 100644 --- a/MoonlightServers.Frontend/UI/Components/Servers/ServerCard.razor +++ b/MoonlightServers.Frontend/UI/Components/Servers/ServerCard.razor @@ -13,21 +13,21 @@ { gradient = Status.State switch { - ServerState.Installing => "from-primary-600/20", - ServerState.Offline => "from-danger-600/20", - ServerState.Starting => "from-warning-600/20", - ServerState.Stopping => "from-warning-600/20", - ServerState.Online => "from-success-600/20", + ServerState.Installing => "from-primary/20", + ServerState.Offline => "from-danger/20", + ServerState.Starting => "from-warning/20", + ServerState.Stopping => "from-warning/20", + ServerState.Online => "from-success/20", _ => "from-gray-600/20" }; border = Status.State switch { - ServerState.Installing => "border-primary-600", - ServerState.Offline => "border-danger-600", - ServerState.Starting => "border-warning-600", - ServerState.Stopping => "border-warning-600", - ServerState.Online => "border-success-600", + ServerState.Installing => "border-primary", + ServerState.Offline => "border-danger", + ServerState.Starting => "border-warning", + ServerState.Stopping => "border-warning", + ServerState.Online => "border-success", _ => "border-gray-600" }; } @@ -90,7 +90,7 @@ } else if (IsFailed) { -
+
@@ -100,7 +100,7 @@ } else if (IsLoaded && !IsFailed && Status.State is ServerState.Offline) { -
+
@@ -110,7 +110,7 @@ } else if (IsLoaded && !IsFailed && Status.State is ServerState.Installing) { -
+
diff --git a/MoonlightServers.Frontend/UI/Components/Servers/TestServerCrd.razor b/MoonlightServers.Frontend/UI/Components/Servers/TestServerCrd.razor index 0a503a4..f0abeca 100644 --- a/MoonlightServers.Frontend/UI/Components/Servers/TestServerCrd.razor +++ b/MoonlightServers.Frontend/UI/Components/Servers/TestServerCrd.razor @@ -2,19 +2,19 @@ @{ var gradient = Status switch { - 4 => "from-primary-600/20", - 3 => "from-danger-600/20", - 2 => "from-warning-600/20", - 1 => "from-success-600/20", + 4 => "from-primary/20", + 3 => "from-danger/20", + 2 => "from-warning/20", + 1 => "from-success/20", _ => "from-gray-600/20" }; var border = Status switch { - 4 => "border-primary-600", - 3 => "border-danger-600", - 2 => "border-warning-600", - 1 => "border-success-600", + 4 => "border-primary", + 3 => "border-danger", + 2 => "border-warning", + 1 => "border-success", _ => "border-gray-600" }; } @@ -71,7 +71,7 @@ } else if (Status == 3) { -
+
@@ -81,7 +81,7 @@ } else if (Status == 4) { -
+
diff --git a/MoonlightServers.Frontend/UI/Views/Admin/All/Index.razor b/MoonlightServers.Frontend/UI/Views/Admin/All/Index.razor index 2e472cf..c368b87 100644 --- a/MoonlightServers.Frontend/UI/Views/Admin/All/Index.razor +++ b/MoonlightServers.Frontend/UI/Views/Admin/All/Index.razor @@ -57,12 +57,12 @@ diff --git a/MoonlightServers.Frontend/UI/Views/Admin/Nodes/Index.razor b/MoonlightServers.Frontend/UI/Views/Admin/Nodes/Index.razor index 71991ad..acf55d5 100644 --- a/MoonlightServers.Frontend/UI/Views/Admin/Nodes/Index.razor +++ b/MoonlightServers.Frontend/UI/Views/Admin/Nodes/Index.razor @@ -34,7 +34,7 @@ - + @context.Name @@ -55,7 +55,7 @@ { if (data == null) { - + API Error @@ -66,14 +66,14 @@ { if (data.RoundtripSuccess) { - + Online (@(data.Version)) } else { - + Error @@ -99,7 +99,7 @@ ColumnCss="p-2 text-left font-normal hidden xl:table-cell">
- + 33% of 6 Cores
@@ -109,7 +109,7 @@ ColumnCss="p-2 text-left font-normal hidden xl:table-cell">
- + 1.56GB / 64GB
@@ -119,7 +119,7 @@ ColumnCss="p-2 text-left font-normal hidden xl:table-cell">
- + 78.68GB / 1TB
@@ -127,12 +127,12 @@ diff --git a/MoonlightServers.Frontend/UI/Views/Admin/Stars/Index.razor b/MoonlightServers.Frontend/UI/Views/Admin/Stars/Index.razor index cad0d02..b1d5c1e 100644 --- a/MoonlightServers.Frontend/UI/Views/Admin/Stars/Index.razor +++ b/MoonlightServers.Frontend/UI/Views/Admin/Stars/Index.razor @@ -40,7 +40,7 @@ - + @context.Name @@ -60,23 +60,23 @@ @if (!string.IsNullOrEmpty(context.UpdateUrl)) { - + Update } - + Export - + + class="text-danger">
diff --git a/MoonlightServers.Frontend/UI/Views/Client/Manage.razor b/MoonlightServers.Frontend/UI/Views/Client/Manage.razor index db5c20c..ada2611 100644 --- a/MoonlightServers.Frontend/UI/Views/Client/Manage.razor +++ b/MoonlightServers.Frontend/UI/Views/Client/Manage.razor @@ -38,11 +38,11 @@ @{ var bgColor = State switch { - ServerState.Installing => "bg-primary-500", - ServerState.Offline => "bg-danger-500", - ServerState.Starting => "bg-warning-500", - ServerState.Stopping => "bg-warning-500", - ServerState.Online => "bg-success-500", + ServerState.Installing => "bg-primary", + ServerState.Offline => "bg-danger", + ServerState.Starting => "bg-warning", + ServerState.Stopping => "bg-warning", + ServerState.Online => "bg-success", _ => "bg-gray-500" }; } diff --git a/plugin.json b/plugin.json index d450b19..80695ef 100644 --- a/plugin.json +++ b/plugin.json @@ -13,8 +13,7 @@ "MoonlightServers.Shared.dll" ] }, - "bundledStyles": [ - "css/MoonlightServers.min.css", + "styles": [ "css/XtermBlazor.min.css" ], "scripts": [