diff --git a/Moonlight/App/Services/Background/CleanupService.cs b/Moonlight/App/Services/Background/CleanupService.cs index a2018739..966188b9 100644 --- a/Moonlight/App/Services/Background/CleanupService.cs +++ b/Moonlight/App/Services/Background/CleanupService.cs @@ -46,13 +46,11 @@ public class CleanupService var config = ConfigService.GetSection("Moonlight").GetSection("Cleanup"); - /* - * if (!config.GetValue("Enable") || ConfigService.DebugMode) + if (!config.GetValue("Enable") || ConfigService.DebugMode) { Logger.Info("Disabling cleanup service"); return; } - */ Timer = new(TimeSpan.FromMinutes(config.GetValue("Wait"))); diff --git a/Moonlight/Shared/Layouts/MainLayout.razor b/Moonlight/Shared/Layouts/MainLayout.razor index f9dd8de0..19b5e254 100644 --- a/Moonlight/Shared/Layouts/MainLayout.razor +++ b/Moonlight/Shared/Layouts/MainLayout.razor @@ -40,116 +40,120 @@ } } - - @(string.IsNullOrEmpty(title) ? "Dashboard - " : title)Moonlight + + + @(string.IsNullOrEmpty(title) ? "Dashboard - " : title)Moonlight -
-
- +
+
+ - @{ - //TODO: Add a way to disable the snow - } + @{ + //TODO: Add a way to disable the snow + } - -
- -
-
-
-
-
- @if (!IsIpBanned) - { - if (UserProcessed) - { - if (uri.LocalPath != "/login" && - uri.LocalPath != "/passwordreset" && - uri.LocalPath != "/register") + +
+ +
+
+
+
+
+ + @if (!IsIpBanned) { - if (User == null) + if (UserProcessed) { - - } - else - { - if (User.Status == UserStatus.Banned) + if (uri.LocalPath != "/login" && + uri.LocalPath != "/passwordreset" && + uri.LocalPath != "/register") { - - } - else if (User.Status == UserStatus.Disabled) - { - - } - else if (User.Status == UserStatus.PasswordPending) - { - - } - else if (User.Status == UserStatus.DataPending) - { - + if (User == null) + { + + } + else + { + if (User.Status == UserStatus.Banned) + { + + } + else if (User.Status == UserStatus.Disabled) + { + + } + else if (User.Status == UserStatus.PasswordPending) + { + + } + else if (User.Status == UserStatus.DataPending) + { + + } + else + { + @Body + + + } + } } else { - @Body - - + if (uri.LocalPath == "/login") + { + + } + else if (uri.LocalPath == "/register") + { + + } + else if (uri.LocalPath == "/passwordreset") + { + + } } } + else + { + + } } else { - if (uri.LocalPath == "/login") - { - - } - else if (uri.LocalPath == "/register") - { - - } - else if (uri.LocalPath == "/passwordreset") - { - - } - } - } - else - { -
+
-
-
- + + @code { diff --git a/Moonlight/wwwroot/assets/media/gif/loading.gif b/Moonlight/wwwroot/assets/media/gif/loading.gif new file mode 100644 index 00000000..a718bd89 Binary files /dev/null and b/Moonlight/wwwroot/assets/media/gif/loading.gif differ