Skip to content

Commit

Permalink
Update MudBlazor, use readonly structs, text change
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 1, 2024
1 parent 68943ec commit 6ddea4c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion AboutMe/Wasm/AboutMe.Wasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.10" PrivateAssets="all" />
<PackageReference Include="MudBlazor" Version="7.8.0" />
<PackageReference Include="MudBlazor" Version="7.15.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion AboutMe/Wasm/Components/SocialLink.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace AboutMe.Wasm.Components;

public struct SocialLink
public readonly struct SocialLink
{
public SocialLink()
{
Expand Down
10 changes: 5 additions & 5 deletions AboutMe/Wasm/Pages/Projects.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class Projects
[
new Project
{
Name = "PKMDS Blazor",
Name = "PKMDS for Web",
Description = "A port of PKHeX for web, built wih Blazor",
Url = "https://www.pkmds.app/",
GitHubUrl = $"{Constants.MyGitHubBaseUrl}/PKMDS-Blazor",
Expand Down Expand Up @@ -64,7 +64,7 @@ public partial class Projects
}, // Minecraft Command Builder
];

private struct Project
private readonly struct Project
{
public required string Name { get; init; }

Expand All @@ -77,10 +77,10 @@ private struct Project
public List<ProductImage> Screenshots { get; init; }
}

private struct ProductImage
private readonly struct ProductImage
{
public required string Url { get; set; }
public required string Url { get; init; }

public required string Title { get; set; }
public required string Title { get; init; }
}
}
16 changes: 8 additions & 8 deletions AboutMe/Wasm/Pages/Resume.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private Color GetSkillColor(Skill skill) =>
],
};

private struct ResumeModel
private readonly struct ResumeModel
{
public required string Name { get; init; }

Expand All @@ -310,20 +310,20 @@ private struct ResumeModel
public required List<Job> Jobs { get; init; }
}

private record struct Skill
private readonly struct Skill
{
public required string Name { get; init; }

public string? Description { get; set; }
public string? Description { get; init; }
}

private struct Job
private readonly struct Job
{
public string? Email { get; set; }
public string? Email { get; init; }

public string? Phone { get; set; }
public string? Phone { get; init; }

public string? Address { get; set; }
public string? Address { get; init; }

public required string Summary { get; init; }

Expand All @@ -342,7 +342,7 @@ private struct Job
public bool PresentlyEmployed { get; init; }
}

private struct Duty
private readonly struct Duty
{
public required string Description { get; init; }
}
Expand Down

0 comments on commit 6ddea4c

Please sign in to comment.