Adding a syndicate pairing page with some notes

This commit is contained in:
2026-07-17 17:12:39 -04:00
parent 8fa0422be4
commit e64193639e
50 changed files with 1689 additions and 398 deletions
+2 -2
View File
@@ -202,7 +202,7 @@
{
allCards = CardDatabase.Cards;
factions = allCards
.Select(c => c.Faction)
.Select(c => c.Syndicate)
.Where(f => f != null)
.Distinct()
.OrderBy(f => f)
@@ -214,7 +214,7 @@
var primarySet = allCards.Where(c =>
c.MatchesSearch(search) &&
(categoryFilter == "" || c.Category == categoryFilter) &&
(factionFilter == "" || c.Faction == factionFilter) &&
(factionFilter == "" || c.Syndicate == factionFilter) &&
(costFilter == "" || c.Cost?.ToString() == costFilter)
);
@@ -279,7 +279,7 @@
private IEnumerable<CardData> BrowserCards => AllCards
.Where(c => c.Category is "Agent" or "Spell" or "Immortalized")
.Where(c => categoryFilter == "" || c.Category == categoryFilter)
.Where(c => factionFilter == "" || c.Faction == factionFilter)
.Where(c => factionFilter == "" || c.Syndicate == factionFilter)
.Where(c => search == "" || c.MatchesSearch(search));
private record DeckGroup(CardData Card, int Count);
@@ -340,8 +340,8 @@
protected override async Task OnParametersSetAsync()
{
factions = AllCards
.Where(c => c.Faction != null)
.Select(c => c.Faction!)
.Where(c => c.Syndicate != null)
.Select(c => c.Syndicate!)
.Distinct()
.OrderBy(f => f)
.ToList();
+1 -1
View File
@@ -1,3 +1,3 @@
@page "/test"
@page "/test"
<h1>Test Page</h1>
<p>This is a test page.</p>