Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Infrastructure/Extensions/SerilogExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/Server.UI/Components/Shared/Layout/NotificationMenu.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using CleanArchitecture.Blazor.Server.UI.Services.Notifications
@using CleanArchitecture.Blazor.Server.UI.Services.Notifications
@inherits MudComponentBase

@inject INotificationService NotificationService
Expand All @@ -15,7 +15,7 @@
{
@foreach (var (message, isRead) in _messages.Take(5))
{
<MudMenuItem Class="px-2 py-0 rounded" Link="@($"/mud/announcements/{message.Id}")">
<MudMenuItem Class="px-2 py-0 rounded" Link="@($"/public/index/{message.Id}")">
<MudText Typo="Typo.subtitle2">@message.Title</MudText>
<MudText Typo="Typo.body2">@($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate:MM/dd/yyyy}")</MudText>
</MudMenuItem>
Expand Down
1 change: 1 addition & 0 deletions src/Server.UI/Pages/Documents/Documents.razor
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
Loading="@_loading"
MultiSelection="true"
@bind-SelectedItems="_selectedItems"
ColumnResizeMode="ResizeMode.Column"
Hover="true" @ref="_table">
<ToolBarContent>
<div class="d-flex align-start flex-grow-1">
Expand Down
1 change: 1 addition & 0 deletions src/Server.UI/Pages/Products/Products.razor
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
MultiSelection="true"
@bind-SelectedItems="_selectedItems"
@bind-SelectedItem="_currentDto"
ColumnResizeMode="ResizeMode.Column"
Hover="true" @ref="_table">
<ToolBarContent>
<div class="d-flex align-start flex-grow-1">
Expand Down
12 changes: 9 additions & 3 deletions src/Server.UI/Pages/Public/Index.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@page "/public/index"
<h3>Public Page</h3>
@page "/public/index/{title?}"
<PageTitle>@Title</PageTitle>
<h2>Clean Architecture With Blazor Server</h2>

@code {
<p>
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.
</p>

@code {
[Parameter]
public string? Title { get; set; }
}
3 changes: 2 additions & 1 deletion src/Server.UI/Pages/SystemManagement/Logs.razor
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,6 +21,7 @@
Height="calc(100vh - 360px)"
Style="min-height:700px"
Loading="@_loading"
ColumnResizeMode="ResizeMode.Column"
Hover="true" @ref="_table">
<ToolBarContent>
<div class="d-flex align-start flex-grow-1">
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -80,16 +80,16 @@ private async Task<DateTime> 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)));
}
}