Merge pull request #174 from Moonlight-Panel/SomeHotfixes

Fixed cleanup, error handling missing and missing gif
This commit is contained in:
Marcel Baumgartner
2023-06-17 13:00:12 +02:00
committed by GitHub
3 changed files with 91 additions and 89 deletions

View File

@@ -46,13 +46,11 @@ public class CleanupService
var config = ConfigService.GetSection("Moonlight").GetSection("Cleanup");
/*
* if (!config.GetValue<bool>("Enable") || ConfigService.DebugMode)
if (!config.GetValue<bool>("Enable") || ConfigService.DebugMode)
{
Logger.Info("Disabling cleanup service");
return;
}
*/
Timer = new(TimeSpan.FromMinutes(config.GetValue<int>("Wait")));

View File

@@ -40,7 +40,8 @@
}
}
<CascadingValue Value="User">
<GlobalErrorBoundary>
<CascadingValue Value="User">
<PageTitle>@(string.IsNullOrEmpty(title) ? "Dashboard - " : title)Moonlight</PageTitle>
<div class="d-flex flex-column flex-root app-root" id="kt_app_root">
@@ -59,6 +60,7 @@
<div id="kt_app_content" class="app-content flex-column-fluid" style="background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-image: url('@(DynamicBackgroundService.BackgroundImageUrl)')">
<div id="kt_app_content_container" class="app-container container-fluid">
<div class="mt-10">
<SoftErrorBoundary>
@if (!IsIpBanned)
{
if (UserProcessed)
@@ -140,6 +142,7 @@
</div>
</div>
}
</SoftErrorBoundary>
</div>
</div>
</div>
@@ -149,7 +152,8 @@
</div>
</div>
</div>
</CascadingValue>
</CascadingValue>
</GlobalErrorBoundary>
@code
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB