Organization and blessing data

This commit is contained in:
6d486f49
2026-06-22 15:58:01 -04:00
parent 1f689230b5
commit 9a87b7afb3
115 changed files with 1160 additions and 932 deletions
+6
View File
@@ -6,6 +6,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Build", "Build\Build.csproj
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{12D2D5AE-D402-45D1-AE39-928964CADD56}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared", "Shared\Shared.csproj", "{CC6447F8-CB2B-4BD0-A38E-AA2E4048900E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -24,5 +26,9 @@ Global
{12D2D5AE-D402-45D1-AE39-928964CADD56}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12D2D5AE-D402-45D1-AE39-928964CADD56}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12D2D5AE-D402-45D1-AE39-928964CADD56}.Release|Any CPU.Build.0 = Release|Any CPU
{CC6447F8-CB2B-4BD0-A38E-AA2E4048900E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC6447F8-CB2B-4BD0-A38E-AA2E4048900E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC6447F8-CB2B-4BD0-A38E-AA2E4048900E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC6447F8-CB2B-4BD0-A38E-AA2E4048900E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -2,7 +2,7 @@ namespace Model;
public record SkillDoc : DocEntry
{
public required string Character { get; init; }
public string? Character { get; init; }
public string? Cast { get; init; }
public string? Description { get; init; }
public string? Key { get; init; }
@@ -198,10 +198,10 @@
private static string GetCharacterOrType(DocEntry doc) => doc switch
{
SkillDoc s => s.Character,
DebuffDoc d => d.Character,
BuffDoc b => b.Character,
CharacterDoc c => c.Character,
SkillDoc s => s.Character ?? "Other",
DebuffDoc d => d.Character ?? "Other",
BuffDoc b => b.Character ?? "Other",
CharacterDoc c => c.Character ?? "Other",
KeyDoc => "Keys",
_ => "Other"
};
@@ -209,8 +209,8 @@
private static string GetDisplayName(DocEntry doc) =>
Path.GetFileNameWithoutExtension(doc.FileName);
private static string GetGroupId(string group) =>
$"group-{group.GetHashCode():x}";
private static string GetGroupId(string? group) =>
$"group-{group?.GetHashCode() ?? 0:x}";
private static string GetDocId(DocEntry doc) =>
$"doc-{doc.FileName.GetHashCode():x}";
+15
View File
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.8" />
<ProjectReference Include="..\Model\Model.csproj" />
</ItemGroup>
</Project>
+11
View File
@@ -0,0 +1,11 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using Model
@using Shared
@using Shared.Pages
@using Shared.Components
+2 -3
View File
@@ -1,7 +1,6 @@
@using Web.Pages
<Router AppAssembly="@typeof(App).Assembly" NotFoundPage="typeof(NotFound)">
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new[] { typeof(Shared.Pages.Home).Assembly }" NotFoundPage="typeof(Shared.Pages.NotFound)">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Shared.Components.MainLayout)"/>
<FocusOnNavigate RouteData="@routeData" Selector="h1"/>
</Found>
</Router>
+1 -1
View File
@@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Model\Model.csproj" />
<ProjectReference Include="..\Shared\Shared.csproj" />
</ItemGroup>
<Target Name="GenerateDocs" BeforeTargets="BeforeBuild">
+4 -2
View File
@@ -7,5 +7,7 @@
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using Model
@using Web
@using Web.Layout
@using Shared
@using Shared.Pages
@using Shared.Components
@using Web