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 .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_aboutcodemonkey85.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions AboutMe/Wasm/AboutMe.Wasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Humanizer" Version="3.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.2" PrivateAssets="all" />
<PackageReference Include="MudBlazor" Version="8.15.0" />
<PackageReference Include="Humanizer" Version="3.0.1"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.2"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.2" PrivateAssets="all"/>
<PackageReference Include="MudBlazor" Version="8.15.0"/>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions AboutMe/Wasm/Pages/Blog.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@page "/Blog"

<!--suppress CssUnresolvedCustomProperty -->
<PageTitle>
@Constants.SiteName - Blog
</PageTitle>
Expand Down
4 changes: 2 additions & 2 deletions AboutMe/Wasm/Pages/Blog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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'; });");
}
}
Expand Down
4 changes: 2 additions & 2 deletions AboutMe/Wasm/Pages/Projects.razor
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
}
</MudStack>
</MudCardHeader>
@if (project.Screenshots is { Count: > 0 })
@if (project.Thumbnails is { Count: > 0 })
{
<MudCarousel Context="productImage"
ItemsSource="@project.Screenshots">
ItemsSource="@project.Thumbnails">
<ItemTemplate>
<MudCardMedia Image="@productImage.Url"
Title="@productImage.Title"/>
Expand Down
20 changes: 10 additions & 10 deletions AboutMe/Wasm/Pages/Projects.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,63 +14,63 @@ 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()
{
Name = "Sound Test",
Description = "Messing around with the JavaScript tone APIs in Blazor",
Url = $"{GitHubPagesBaseUrl}/SoundTest/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/SoundTest",
Screenshots = []
Thumbnails = []
}, // Sound Test
new()
{
Name = "Tic Tac Toe Blazor",
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()
{
Name = "Four Is The Magic Number!",
Description = "A neat party trick, built with Blazor",
Url = $"{GitHubPagesBaseUrl}/FourMagicNumberGame/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/FourMagicNumberGame",
Screenshots = []
Thumbnails = []
}, // Four Is The Magic Number!
new()
{
Name = "Barcode Helper",
Description = "Solve the missing digit in a UPC-12, built with Blazor",
Url = $"{GitHubPagesBaseUrl}/BarcodeHelper/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/BarcodeHelper",
Screenshots = []
Thumbnails = []
}, // Barcode Helper
new()
{
Name = "Tired Doctor Manhattan",
Description = "Doctor Manhattan is tired of stuff, built with Blazor",
Url = $"{GitHubPagesBaseUrl}/TiredDoctorManhattan/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/TiredDoctorManhattan",
Screenshots = []
Thumbnails = []
}, // Tired Doctor Manhattan
new()
{
Name = "Minecraft Command Builder",
Description = "A tool to help build Minecraft commands, built with Blazor",
Url = $"{GitHubPagesBaseUrl}/MinecraftCommandBuilder/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/MinecraftCommandBuilder",
Screenshots = []
Thumbnails = []
}, // Minecraft Command Builder
new()
{
Name = "D&D Critical Hit Calculator",
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
];

Expand All @@ -85,11 +85,11 @@ private readonly record struct Project
public string? GitHubUrl { get; init; }

// ReSharper disable once CollectionNeverUpdated.Local
public List<ProductImage> Screenshots { get; init; }
public List<ProjectThumbnails> Thumbnails { get; init; }
}

[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")]
private readonly record struct ProductImage
private readonly record struct ProjectThumbnails
{
public required string Url { get; init; }

Expand Down
10 changes: 5 additions & 5 deletions aboutme.slnx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path=".editorconfig" />
<File Path="global.json" />
</Folder>
<Project Path="AboutMe/Wasm/AboutMe.Wasm.csproj" />
<Folder Name="/Solution Items/">
<File Path=".editorconfig"/>
<File Path="global.json"/>
</Folder>
<Project Path="AboutMe/Wasm/AboutMe.Wasm.csproj"/>
</Solution>