-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/posts
- Loading branch information
Showing
51 changed files
with
472 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
src/shared/Jordnaer.Shared.Infrastructure/AzureAppConfigurationExtensions.cs
This file was deleted.
Oops, something went wrong.
11 changes: 5 additions & 6 deletions
11
src/shared/Jordnaer.Shared.Infrastructure/Jordnaer.Shared.Infrastructure.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<TargetFramework>net9.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" /> | ||
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" /> | ||
<PackageReference Include="Serilog.Exceptions" Version="8.4.0" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" /> | ||
<PackageReference Include="Serilog.Sinks.ElmahIo" Version="5.1.43" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" /> | ||
<PackageReference Include="Serilog.Sinks.ElmahIo" Version="5.2.50" /> | ||
<PackageReference Include="Serilog.Sinks.Grafana.Loki" Version="8.3.0" /> | ||
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="3.5.0" /> | ||
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="7.3.0" /> | ||
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="4.0.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using MudBlazor; | ||
|
||
namespace Jordnaer.Components; | ||
|
||
public class ScrollToTopComponentBase : ComponentBase, IDisposable, IAsyncDisposable | ||
{ | ||
[Inject] | ||
private IScrollManager ScrollManager { get; set; } = null!; | ||
|
||
private CancellationTokenSource? _cancellationTokenSource; | ||
|
||
protected CancellationToken CancellationToken => (_cancellationTokenSource ??= new CancellationTokenSource()).Token; | ||
|
||
protected override async Task OnAfterRenderAsync(bool firstRender) | ||
{ | ||
await ScrollManager.ScrollToTopAsync("html"); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
GC.SuppressFinalize(this); | ||
|
||
if (_cancellationTokenSource is null) | ||
{ | ||
return; | ||
} | ||
|
||
_cancellationTokenSource.Cancel(); | ||
_cancellationTokenSource.Dispose(); | ||
_cancellationTokenSource = null; | ||
} | ||
|
||
public async ValueTask DisposeAsync() | ||
{ | ||
GC.SuppressFinalize(this); | ||
|
||
if (_cancellationTokenSource is null) | ||
{ | ||
return; | ||
} | ||
|
||
await _cancellationTokenSource.CancelAsync(); | ||
_cancellationTokenSource.Dispose(); | ||
_cancellationTokenSource = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using MudBlazor.Utilities; | ||
|
||
namespace Jordnaer.Extensions; | ||
|
||
public static class MudColorExtensions | ||
{ | ||
public static string ToBackgroundColor(this MudColor color) => $"background-color: {color}"; | ||
|
||
public static string ToTextColor(this MudColor color) => $"color: {color}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.