diff --git a/src/Infrastructure/Services/PaddleOCR/DocumentOcrJob.cs b/src/Infrastructure/Services/PaddleOCR/DocumentOcrJob.cs
index d2a3d9b43..b96182325 100644
--- a/src/Infrastructure/Services/PaddleOCR/DocumentOcrJob.cs
+++ b/src/Infrastructure/Services/PaddleOCR/DocumentOcrJob.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
@@ -92,22 +92,6 @@ public async Task Recognition(int id, CancellationToken cancellationToken)
_logger.LogError(ex, "{Id}: recognize error {ExMessage}", id, ex.Message);
}
}
-
- private string ReadBase64String(string path)
- {
- using (var image = Image.FromFile(path))
- {
- using (var m = new MemoryStream())
- {
- image.Save(m, image.RawFormat);
- var imageBytes = m.ToArray();
-
- // Convert byte[] to Base64 String
- var base64String = Convert.ToBase64String(imageBytes);
- return base64String;
- }
- }
- }
}
#pragma warning disable CS8981
internal class OcrResult
diff --git a/src/Server.UI/Components/Shared/Layout/AppLayout.razor b/src/Server.UI/Components/Shared/Layout/AppLayout.razor
index 310c52a9e..86efaa92b 100644
--- a/src/Server.UI/Components/Shared/Layout/AppLayout.razor
+++ b/src/Server.UI/Components/Shared/Layout/AppLayout.razor
@@ -51,12 +51,9 @@
@code
{
private bool _commandPaletteOpen;
- private HotKeysContext? _hotKeysContext;
private bool _navigationMenuDrawerOpen = true;
private UserPreferences _userPreferences = new();
- private MudThemeProvider _mudThemeProvider = null!;
private bool _themingDrawerOpen;
- private bool _defaultDarkMode;
private UserProfile? _userProfile;
private ErrorBoundary? _errorBoundary { set; get; }
[CascadingParameter]
diff --git a/src/Server.UI/Components/Shared/Layout/HeaderMenu.razor b/src/Server.UI/Components/Shared/Layout/HeaderMenu.razor
index d00897917..8ae141203 100644
--- a/src/Server.UI/Components/Shared/Layout/HeaderMenu.razor
+++ b/src/Server.UI/Components/Shared/Layout/HeaderMenu.razor
@@ -1,4 +1,4 @@
-
@@ -26,7 +26,7 @@
diff --git a/src/Server.UI/Components/Shared/Layout/MainLayout.razor b/src/Server.UI/Components/Shared/Layout/MainLayout.razor
index 50d43197d..3ccbcc1b1 100644
--- a/src/Server.UI/Components/Shared/Layout/MainLayout.razor
+++ b/src/Server.UI/Components/Shared/Layout/MainLayout.razor
@@ -18,7 +18,7 @@
@code
{
- private HotKeysContext? _hotKeysContext;
+
private UserPreferences _userPreferences = new();
private MudThemeProvider _mudThemeProvider = null!;
private bool _defaultDarkMode;
@@ -28,7 +28,6 @@
public void Dispose()
{
LayoutService.MajorUpdateOccured -= LayoutServiceOnMajorUpdateOccured;
- _hotKeysContext?.Dispose();
GC.SuppressFinalize(this);
}
diff --git a/src/Server.UI/Components/Shared/Layout/PublicLayout.razor b/src/Server.UI/Components/Shared/Layout/PublicLayout.razor
index 870a88c31..6728ee2e1 100644
--- a/src/Server.UI/Components/Shared/Layout/PublicLayout.razor
+++ b/src/Server.UI/Components/Shared/Layout/PublicLayout.razor
@@ -15,30 +15,45 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
- @L["Login"]
-
-
+
+
+ @L["Login"]
+
+
+
+
+
+
+
+
+
+ @L["Login"]
+
+
+
+
diff --git a/src/Server.UI/Pages/Customers/Customers.razor b/src/Server.UI/Pages/Customers/Customers.razor
index 05ec9804d..05e84049c 100644
--- a/src/Server.UI/Pages/Customers/Customers.razor
+++ b/src/Server.UI/Pages/Customers/Customers.razor
@@ -212,7 +212,6 @@
private CustomerDto _currentDto = new();
private bool _loading;
private bool _uploading;
- private bool _downloading;
private bool _exporting;
[Inject]
private IMediator Mediator { get; set; } = default!;
diff --git a/src/Server.UI/Pages/Dashboard/Dashboard.razor b/src/Server.UI/Pages/Dashboard/Dashboard.razor
index 76c983801..dd7024f1f 100644
--- a/src/Server.UI/Pages/Dashboard/Dashboard.razor
+++ b/src/Server.UI/Pages/Dashboard/Dashboard.razor
@@ -1,4 +1,5 @@
-@page "/"
+@page "/"
+@using CleanArchitecture.Blazor.Server.UI.Pages.Dashboard.Components
@using MudBlazor.Utilities
@Title
diff --git a/src/Server.UI/Pages/Documents/Components/UploadFilesFormDialog.razor b/src/Server.UI/Pages/Documents/Components/UploadFilesFormDialog.razor
index d5a3a2b6e..047f3c0ce 100644
--- a/src/Server.UI/Pages/Documents/Components/UploadFilesFormDialog.razor
+++ b/src/Server.UI/Pages/Documents/Components/UploadFilesFormDialog.razor
@@ -1,4 +1,4 @@
-@using Color = Color
+@using Color = Color
@using Severity = Severity
@using SixLabors.ImageSharp.Processing
@using SixLabors.ImageSharp
@@ -46,11 +46,11 @@
@ConstantString.Clear
-
@L["Choose files"]
-
+