Organization and blessing data
This commit is contained in:
@@ -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
|
||||
|
||||
+832
-752
File diff suppressed because it is too large
Load Diff
@@ -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}";
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -13,7 +13,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
<ProjectReference Include="..\Shared\Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="GenerateDocs" BeforeTargets="BeforeBuild">
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user