diff --git a/.editorconfig b/.editorconfig index c8d56ad..e516843 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,6 +23,7 @@ dotnet_sort_system_directives_first = false file_header_template = # this. and Me. preferences + dotnet_style_qualification_for_event = false:suggestion dotnet_style_qualification_for_field = false:suggestion dotnet_style_qualification_for_method = false:suggestion diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index 6c2243a..5d9d9f6 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -28,7 +28,7 @@ jobs: # sets up .NET SDK - name: Setup .NET - uses: actions/setup-dotnet@v5.0.1 + uses: actions/setup-dotnet@v5.1.0 with: global-json-file: ./global.json diff --git a/.github/workflows/main_aboutcodemonkey85.yml b/.github/workflows/main_aboutcodemonkey85.yml index 73109db..cf653d9 100644 --- a/.github/workflows/main_aboutcodemonkey85.yml +++ b/.github/workflows/main_aboutcodemonkey85.yml @@ -25,7 +25,7 @@ jobs: # sets up .NET SDK - name: Setup .NET - uses: actions/setup-dotnet@v5.0.1 + uses: actions/setup-dotnet@v5.1.0 with: global-json-file: ./global.json diff --git a/AboutMe/Wasm/AboutMe.Wasm.csproj b/AboutMe/Wasm/AboutMe.Wasm.csproj index bf51843..57dc922 100644 --- a/AboutMe/Wasm/AboutMe.Wasm.csproj +++ b/AboutMe/Wasm/AboutMe.Wasm.csproj @@ -12,10 +12,10 @@ - - - - + + + + diff --git a/AboutMe/Wasm/Pages/Blog.razor b/AboutMe/Wasm/Pages/Blog.razor index c0017c1..933c730 100644 --- a/AboutMe/Wasm/Pages/Blog.razor +++ b/AboutMe/Wasm/Pages/Blog.razor @@ -1,5 +1,6 @@ @page "/Blog" + @Constants.SiteName - Blog diff --git a/AboutMe/Wasm/Pages/Blog.razor.cs b/AboutMe/Wasm/Pages/Blog.razor.cs index 6d949ae..d590a43 100644 --- a/AboutMe/Wasm/Pages/Blog.razor.cs +++ b/AboutMe/Wasm/Pages/Blog.razor.cs @@ -44,10 +44,10 @@ protected override async Task OnInitializedAsync() protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); - + if (!IsLoading && Posts.Count > 0) { - await jsRuntime.InvokeVoidAsync("eval", + await jsRuntime.InvokeVoidAsync("eval", "document.querySelectorAll('.content-wrapper a').forEach(a => { a.target = '_blank'; a.rel = 'noopener noreferrer'; });"); } } diff --git a/AboutMe/Wasm/Pages/Projects.razor b/AboutMe/Wasm/Pages/Projects.razor index f442733..281b40b 100644 --- a/AboutMe/Wasm/Pages/Projects.razor +++ b/AboutMe/Wasm/Pages/Projects.razor @@ -38,10 +38,10 @@ } - @if (project.Screenshots is { Count: > 0 }) + @if (project.Thumbnails is { Count: > 0 }) { + ItemsSource="@project.Thumbnails"> diff --git a/AboutMe/Wasm/Pages/Projects.razor.cs b/AboutMe/Wasm/Pages/Projects.razor.cs index 457f36d..0701a00 100644 --- a/AboutMe/Wasm/Pages/Projects.razor.cs +++ b/AboutMe/Wasm/Pages/Projects.razor.cs @@ -14,7 +14,7 @@ public partial class Projects Description = "A port of PKHeX for web, built wih Blazor", Url = "https://www.pkmds.app/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/PKMDS-Blazor", - Screenshots = [] + Thumbnails = [] }, // PKMDS for Web new() { @@ -22,7 +22,7 @@ public partial class Projects Description = "Messing around with the JavaScript tone APIs in Blazor", Url = $"{GitHubPagesBaseUrl}/SoundTest/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/SoundTest", - Screenshots = [] + Thumbnails = [] }, // Sound Test new() { @@ -30,7 +30,7 @@ public partial class Projects Description = "A Tic Tac Toe game for web, built with Blazor", Url = $"{GitHubPagesBaseUrl}/TicTacToeBlazor/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/TicTacToeBlazor", - Screenshots = [] + Thumbnails = [] }, // Tic Tac Toe Blazor new() { @@ -38,7 +38,7 @@ public partial class Projects Description = "A neat party trick, built with Blazor", Url = $"{GitHubPagesBaseUrl}/FourMagicNumberGame/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/FourMagicNumberGame", - Screenshots = [] + Thumbnails = [] }, // Four Is The Magic Number! new() { @@ -46,7 +46,7 @@ public partial class Projects Description = "Solve the missing digit in a UPC-12, built with Blazor", Url = $"{GitHubPagesBaseUrl}/BarcodeHelper/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/BarcodeHelper", - Screenshots = [] + Thumbnails = [] }, // Barcode Helper new() { @@ -54,7 +54,7 @@ public partial class Projects Description = "Doctor Manhattan is tired of stuff, built with Blazor", Url = $"{GitHubPagesBaseUrl}/TiredDoctorManhattan/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/TiredDoctorManhattan", - Screenshots = [] + Thumbnails = [] }, // Tired Doctor Manhattan new() { @@ -62,7 +62,7 @@ public partial class Projects Description = "A tool to help build Minecraft commands, built with Blazor", Url = $"{GitHubPagesBaseUrl}/MinecraftCommandBuilder/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/MinecraftCommandBuilder", - Screenshots = [] + Thumbnails = [] }, // Minecraft Command Builder new() { @@ -70,7 +70,7 @@ public partial class Projects Description = "Honestly, this is just for me and my D&D friends.", Url = $"{GitHubPagesBaseUrl}/DnDCritCalculator/", GitHubUrl = $"{Constants.MyGitHubBaseUrl}/DnDCritCalculator", - Screenshots = [] + Thumbnails = [] } // D&D Critical Hit Calculator ]; @@ -85,11 +85,11 @@ private readonly record struct Project public string? GitHubUrl { get; init; } // ReSharper disable once CollectionNeverUpdated.Local - public List Screenshots { get; init; } + public List Thumbnails { get; init; } } [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")] - private readonly record struct ProductImage + private readonly record struct ProjectThumbnails { public required string Url { get; init; } diff --git a/aboutme.slnx b/aboutme.slnx index 1d3f22c..aa50684 100644 --- a/aboutme.slnx +++ b/aboutme.slnx @@ -1,7 +1,7 @@ - - - - - + + + + +