diff --git a/src/Infrastructure/Extensions/SerilogExtensions.cs b/src/Infrastructure/Extensions/SerilogExtensions.cs index 728bb4f2c..94a17fcee 100644 --- a/src/Infrastructure/Extensions/SerilogExtensions.cs +++ b/src/Infrastructure/Extensions/SerilogExtensions.cs @@ -31,6 +31,7 @@ public static void RegisterSerilog(this WebApplicationBuilder builder) .MinimumLevel.Override("Hangfire.Server.BackgroundServerProcess", LogEventLevel.Error) .MinimumLevel.Override("Hangfire.Server.ServerHeartbeatProcess", LogEventLevel.Error) .MinimumLevel.Override("Hangfire.Processing.BackgroundExecution", LogEventLevel.Error) + .MinimumLevel.Override("ZiggyCreatures.Caching.Fusion.FusionCache", LogEventLevel.Error) .Enrich.FromLogContext() .Enrich.WithUtcTime() .WriteTo.Async(wt => wt.File("./log/log-.txt", rollingInterval: RollingInterval.Day)) diff --git a/src/Server.UI/Components/Shared/Layout/NotificationMenu.razor b/src/Server.UI/Components/Shared/Layout/NotificationMenu.razor index ce376f3ec..ac175e124 100644 --- a/src/Server.UI/Components/Shared/Layout/NotificationMenu.razor +++ b/src/Server.UI/Components/Shared/Layout/NotificationMenu.razor @@ -1,4 +1,4 @@ -@using CleanArchitecture.Blazor.Server.UI.Services.Notifications +@using CleanArchitecture.Blazor.Server.UI.Services.Notifications @inherits MudComponentBase @inject INotificationService NotificationService @@ -15,7 +15,7 @@ { @foreach (var (message, isRead) in _messages.Take(5)) { - + @message.Title @($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate:MM/dd/yyyy}") diff --git a/src/Server.UI/Pages/Documents/Documents.razor b/src/Server.UI/Pages/Documents/Documents.razor index 560be8724..48f07d0f3 100644 --- a/src/Server.UI/Pages/Documents/Documents.razor +++ b/src/Server.UI/Pages/Documents/Documents.razor @@ -33,6 +33,7 @@ Loading="@_loading" MultiSelection="true" @bind-SelectedItems="_selectedItems" + ColumnResizeMode="ResizeMode.Column" Hover="true" @ref="_table">
diff --git a/src/Server.UI/Pages/Products/Products.razor b/src/Server.UI/Pages/Products/Products.razor index 545ba7425..4ed195d71 100644 --- a/src/Server.UI/Pages/Products/Products.razor +++ b/src/Server.UI/Pages/Products/Products.razor @@ -32,6 +32,7 @@ MultiSelection="true" @bind-SelectedItems="_selectedItems" @bind-SelectedItem="_currentDto" + ColumnResizeMode="ResizeMode.Column" Hover="true" @ref="_table">
diff --git a/src/Server.UI/Pages/Public/Index.razor b/src/Server.UI/Pages/Public/Index.razor index 3c775b29b..f1af3bf60 100644 --- a/src/Server.UI/Pages/Public/Index.razor +++ b/src/Server.UI/Pages/Public/Index.razor @@ -1,6 +1,12 @@ -@page "/public/index" -

Public Page

+@page "/public/index/{title?}" +@Title +

Clean Architecture With Blazor Server

-@code { +

+ This repository guides you through building robust and maintainable Blazor Server applications by embracing the principles of Clean Architecture. Experience a seamless development journey with the included, efficient code generator, empowering you to rapidly craft stunning web applications using the latest .NET Blazor technology. +

+@code { + [Parameter] + public string? Title { get; set; } } diff --git a/src/Server.UI/Pages/SystemManagement/Logs.razor b/src/Server.UI/Pages/SystemManagement/Logs.razor index e0e53ffc9..e52f3e77a 100644 --- a/src/Server.UI/Pages/SystemManagement/Logs.razor +++ b/src/Server.UI/Pages/SystemManagement/Logs.razor @@ -1,4 +1,4 @@ -@page "/system/logs" +@page "/system/logs" @using Severity = Severity @using CleanArchitecture.Blazor.Application.Features.Loggers.DTOs @using CleanArchitecture.Blazor.Application.Features.Loggers.Queries.PaginationQuery @@ -21,6 +21,7 @@ Height="calc(100vh - 360px)" Style="min-height:700px" Loading="@_loading" + ColumnResizeMode="ResizeMode.Column" Hover="true" @ref="_table">
diff --git a/src/Server.UI/Services/Notifications/InMemoryNotificationService.cs b/src/Server.UI/Services/Notifications/InMemoryNotificationService.cs index a3f616eeb..952a02d4c 100644 --- a/src/Server.UI/Services/Notifications/InMemoryNotificationService.cs +++ b/src/Server.UI/Services/Notifications/InMemoryNotificationService.cs @@ -1,4 +1,4 @@ -using System.Security.Cryptography; +using System.Security.Cryptography; using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage; namespace CleanArchitecture.Blazor.Server.UI.Services.Notifications; @@ -80,16 +80,16 @@ private async Task GetLastReadTimestamp() public void Preload() { _messages.Add(new NotificationMessage( - "mudblazor-here-to-stay", - "MudBlazor is here to stay", + "readme", + "Blazor Application is ready", "We are paving the way for the future of Blazor", "Announcement", new DateTime(2022, 01, 13), - "_content/MudBlazor.Docs/images/announcements/mudblazor_heretostay.png", + "https://github.com/neozhu/CleanArchitectureWithBlazorServer/actions/workflows/dotnet.yml/badge.svg", new[] { - new NotificationAuthor("Jonny Larsson", - "https://avatars.githubusercontent.com/u/10367109?v=4") + new NotificationAuthor("Hualin", + "https://avatars.githubusercontent.com/u/1549611?s=48&v=4") }, typeof(NotificationMessage))); } } \ No newline at end of file