HASH f5d31aadaaa8
DATE 2025-08-04
SUBJECT web: astro check
FILES 3 CHANGED
HASH f5d31aadaaa8
DATE 2025-08-04
SUBJECT web: astro check
FILES 3 CHANGED
┌─ web/.astro/types.d.ts ────────────────────────────────────────────────────┐
│ diff --git a/web/.astro/types.d.ts b/web/.astro/types.d.ts │
│ index f964fe0..03d7cc4 100644 │
│ --- a/web/.astro/types.d.ts │
│ +++ b/web/.astro/types.d.ts │
│ @@ -1 +1,2 @@ │
│ /// <reference types="astro/client" /> │
│ +/// <reference path="content.d.ts" /> │
│ \ No newline at end of file │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ web/.astro/types.d.ts ──────────────┐
│ diff --git a/web/.astro/types.d.ts b/web/.as │
│ tro/types.d.ts │
│ index f964fe0..03d7cc4 100644 │
│ --- a/web/.astro/types.d.ts │
│ +++ b/web/.astro/types.d.ts │
│ @@ -1 +1,2 @@ │
│ /// <reference types="astro/client" /> │
│ +/// <reference path="content.d.ts" /> │
│ \ No newline at end of file │
└──────────────────────────────────────────────┘
┌─ web/src/components/SpecIcon.astro ────────────────────────────────────────┐
│ diff --git a/web/src/components/SpecIcon.astro b/web/src/components/SpecIcon.astro │
│ index de9cee9..96ff837 100644 │
│ --- a/web/src/components/SpecIcon.astro │
│ +++ b/web/src/components/SpecIcon.astro │
│ @@ -10,7 +10,7 @@ export interface Props { │
│ const { specId, className, specName, size = 16, class: cssClass } = Astro.props; │
│ │
│ // WoW Specialization ID to role/class mapping (if specId provided) │
│ -const specMap = { │
│ +const specMap: Record<number, { role: string; class: string; spec: string }> = { │
│ // Tank specs │
│ 73: { role: "tank", class: "Warrior", spec: "Protection" }, │
│ 104: { role: "tank", class: "Druid", spec: "Guardian" }, │
│ @@ -55,7 +55,7 @@ const specMap = { │
│ }; │
│ │
│ // Exact icon mappings from your list │
│ -const specIconMap = { │
│ +const specIconMap: Record<string, string> = { │
│ // Mage │
│ "Mage|Frost": │
│ "https://wow.zamimg.com/images/wow/icons/large/spell_frost_frostbolt02.jpg", │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...src/components/SpecIcon.astro ───┐
│ diff --git a/web/src/components/SpecIcon.ast │
│ ro b/web/src/components/SpecIcon.astro │
│ index de9cee9..96ff837 100644 │
│ --- a/web/src/components/SpecIcon.astro │
│ +++ b/web/src/components/SpecIcon.astro │
│ @@ -10,7 +10,7 @@ export interface Props { │
│ const { specId, className, specName, size = │
│ 16, class: cssClass } = Astro.props; │
│ │
│ // WoW Specialization ID to role/class mapp │
│ ing (if specId provided) │
│ -const specMap = { │
│ +const specMap: Record<number, { role: strin │
│ g; class: string; spec: string }> = { │
│ // Tank specs │
│ 73: { role: "tank", class: "Warrior", spe │
│ c: "Protection" }, │
│ 104: { role: "tank", class: "Druid", spec │
│ : "Guardian" }, │
│ @@ -55,7 +55,7 @@ const specMap = { │
│ }; │
│ │
│ // Exact icon mappings from your list │
│ -const specIconMap = { │
│ +const specIconMap: Record<string, string> = │
│ { │
│ // Mage │
│ "Mage|Frost": │
│ "https://wow.zamimg.com/images/wow/icon │
│ s/large/spell_frost_frostbolt02.jpg", │
└──────────────────────────────────────────────┘
┌─ web/src/pages/challenge-mode.astro ───────────────────────────────────────┐
│ diff --git a/web/src/pages/challenge-mode.astro b/web/src/pages/challenge-mode.ast │
│ ro │
│ index f27b84e..1e9474c 100644 │
│ --- a/web/src/pages/challenge-mode.astro │
│ +++ b/web/src/pages/challenge-mode.astro │
│ @@ -1,10 +1,8 @@ │
│ --- │
│ import PageLayout from "../components/PageLayout.astro"; │
│ -import Callout from "../components/Callout.astro"; │
│ import ControlPanel from "../components/ControlPanel.astro"; │
│ import FormSelect from "../components/FormSelect.astro"; │
│ import LoadingState from "../components/LoadingState.astro"; │
│ -import InfoGrid from "../components/InfoGrid.astro"; │
│ import WoWClassColors from "../components/WoWClassColors.astro"; │
│ --- │
│ │
│ @@ -483,7 +481,7 @@ import WoWClassColors from "../components/WoWClassColors.astro │
│ "; │
│ row.className = "leaderboard-row"; │
│ │
│ let teamHtml = ""; │
│ - group.members.forEach((member, index) => { │
│ + group.members.forEach((member) => { │
│ // Handle missing specialization data (deleted/transferred characters) │
│ const specId = member.specialization?.id; │
│ const spec = specId │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...rc/pages/challenge-mode.astro ───┐
│ diff --git a/web/src/pages/challenge-mode.as │
│ tro b/web/src/pages/challenge-mode.astro │
│ index f27b84e..1e9474c 100644 │
│ --- a/web/src/pages/challenge-mode.astro │
│ +++ b/web/src/pages/challenge-mode.astro │
│ @@ -1,10 +1,8 @@ │
│ --- │
│ import PageLayout from "../components/PageL │
│ ayout.astro"; │
│ -import Callout from "../components/Callout. │
│ astro"; │
│ import ControlPanel from "../components/Con │
│ trolPanel.astro"; │
│ import FormSelect from "../components/FormS │
│ elect.astro"; │
│ import LoadingState from "../components/Loa │
│ dingState.astro"; │
│ -import InfoGrid from "../components/InfoGri │
│ d.astro"; │
│ import WoWClassColors from "../components/W │
│ oWClassColors.astro"; │
│ --- │
│ │
│ @@ -483,7 +481,7 @@ import WoWClassColors fr │
│ om "../components/WoWClassColors.astro"; │
│ row.className = "leaderboard-row"; │
│ │
│ let teamHtml = ""; │
│ - group.members.forEach((member, index) = │
│ > { │
│ + group.members.forEach((member) => { │
│ // Handle missing specialization data │
│ (deleted/transferred characters) │
│ const specId = member.specialization? │
│ .id; │
│ const spec = specId │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET