Skip to content

Commit

Permalink
MudBlazor 8.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Feb 27, 2025
1 parent fe3d71a commit 322c0c7
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 25 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ This repository hosts a Blazor Server application designed using Clean Architect
## Explore the Live Demo

Experience the application in action in Blazor Server mode by visiting:
- Home Server: [cleanserver.blazors.app:8443](https://cleanserver.blazors.app:8443/)
- Home Server: [architecture.blazors.app:8443](https://architecture.blazors.app:8443/)
- MS SQL Database: [architecture.blazorserver.com](https://architecture.blazorserver.com/)

- PostgreSQL Database: [architecture.blazors.app](https://architecture.blazors.app/)

### Additional Note:
Expand Down
6 changes: 3 additions & 3 deletions src/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<PackageReference Include="Riok.Mapperly" Version="4.2.0-next.0" />
<PackageReference Include="Hangfire.Core" Version="1.8.18" />
<PackageReference Include="ZiggyCreatures.FusionCache" Version="2.1.0" />
<PackageReference Include="ActualLab.Fusion" Version="9.8.37" />
<PackageReference Include="ActualLab.Fusion.Blazor" Version="9.8.37" />
<PackageReference Include="ActualLab.Generators" Version="9.8.37">
<PackageReference Include="ActualLab.Fusion" Version="9.8.46" />
<PackageReference Include="ActualLab.Fusion.Blazor" Version="9.8.46" />
<PackageReference Include="ActualLab.Generators" Version="9.8.46">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Infrastructure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="9.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="9.0.2" />
<PackageReference Include="Minio" Version="6.0.4" />
<PackageReference Include="QuestPDF" Version="2025.1.2" />
<PackageReference Include="QuestPDF" Version="2025.1.3" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="8.1.1-dev-00120" />
<PackageReference Include="Serilog.Sinks.Postgresql.Alternative" Version="4.1.3" />
Expand Down
15 changes: 1 addition & 14 deletions src/Infrastructure/Services/PaddleOCR/DocumentOcrJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,7 @@ public async Task Recognition(int id, CancellationToken cancellationToken)
return;
}

var imgFile = Path.Combine(Directory.GetCurrentDirectory(), doc.URL);
if (!File.Exists(imgFile))
{
_logger.LogWarning("Image file not found for Document Id {Id}, URL: {URL}", id, doc.URL);
return;
}

using var form = new MultipartFormDataContent();
using var fileStream = new FileStream(imgFile, FileMode.Open);
using var fileContent = new StreamContent(fileStream);
fileContent.Headers.ContentType = MediaTypeHeaderValue.Parse("image/png");
form.Add(fileContent, "file", Uri.EscapeDataString(Path.GetFileName(imgFile)));

var response = await client.PostAsync("", form);
var response = await client.GetAsync($"?imageUrl={doc.URL}");

if (response.IsSuccessStatusCode)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static IServiceCollection AddServerUI(this IServiceCollection services, I

services.AddHttpClient("ocr", c =>
{
c.BaseAddress = new Uri("https://paddleocr.blazors.app:8443/ocr/predict-by-file");
c.BaseAddress = new Uri("https://paddleocr.blazorserver.com/ocr/predict-by-url");
c.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
});
services.AddScoped<LocalTimeOffset>();
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Server.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="Hangfire.InMemory" Version="1.0.0" />
<PackageReference Include="BlazorDownloadFile" Version="2.4.0.2" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.2" />
<PackageReference Include="MudBlazor" Version="8.2.0" />
<PackageReference Include="MudBlazor" Version="8.3.0" />
<PackageReference Include="Toolbelt.Blazor.HotKeys2" Version="6.0.0" />
<PackageReference Include="Blazor-ApexCharts" Version="5.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="8.0.1" />
<PackageReference Include="FluentAssertions" Version="8.1.1" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="Respawn" Version="6.2.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Application.UnitTests/Application.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="8.0.1" />
<PackageReference Include="FluentAssertions" Version="8.1.1" />
<PackageReference Include="Moq" Version="4.20.72" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Domain.UnitTests/Domain.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="8.0.1" />
<PackageReference Include="FluentAssertions" Version="8.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 322c0c7

Please sign in to comment.