chore: remove unused imports, vars, and params — 84 imports, 7 vars, 16 params across 45+ files
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m25s

This commit is contained in:
2026-05-25 20:18:39 +02:00
parent 4aa12a10f0
commit 25ba565467
60 changed files with 78 additions and 115 deletions
@@ -1,19 +1,16 @@
'use client';
import { useState } from 'react';
import { ActionButton } from '@/components/ui/action-button';
import { GameCard } from '@/components/ui/game-card';
import { SectionHeader } from '@/components/ui/section-header';
import { StatRow } from '@/components/ui/stat-row';
import { Badge } from '@/components/ui/badge';
import { ScrollArea } from '@/components/ui/scroll-area';
import { Separator } from '@/components/ui/separator';
import { ENCHANTMENT_EFFECTS } from '@/lib/game/data/enchantment-effects';
import type { EquipmentInstance, EnchantmentDesign, AppliedEnchantment, LootInventory, EquipmentCraftingProgress } from '@/lib/game/types';
import type { EquipmentSlot } from '@/lib/game/data/equipment';
import { fmt } from '@/lib/game/stores';
import { CheckCircle, Sparkles } from 'lucide-react';
import { useGameStore, useCraftingStore, useManaStore } from '@/lib/game/stores';
import { useCraftingStore, useManaStore } from '@/lib/game/stores';
export interface EnchantmentApplierProps {
selectedEquipmentInstance: string | null;
@@ -36,7 +33,7 @@ export function EnchantmentApplier({
const equipmentInstances = useCraftingStore((s) => s.equipmentInstances);
const enchantmentDesigns = useCraftingStore((s) => s.enchantmentDesigns);
const applicationProgress = useCraftingStore((s) => s.applicationProgress);
const rawMana = useManaStore((s) => s.rawMana);
const _rawMana = useManaStore((s) => s.rawMana);
const startApplying = useCraftingStore((s) => s.startApplying);
const pauseApplication = useCraftingStore((s) => s.pauseApplication);
const resumeApplication = useCraftingStore((s) => s.resumeApplication);
@@ -1,10 +1,7 @@
'use client';
import { useState, useMemo } from 'react';
import { GameCard } from '@/components/ui/game-card';
import { Separator } from '@/components/ui/separator';
import { EQUIPMENT_TYPES } from '@/lib/game/data/equipment';
import { ENCHANTMENT_EFFECTS } from '@/lib/game/data/enchantment-effects';
import type { EquipmentInstance, EnchantmentDesign, DesignEffect, EquipmentCraftingProgress, EquipmentCategory } from '@/lib/game/types';
import type { EnchantmentDesignerProps } from './EnchantmentDesigner/types';
import { EquipmentTypeSelector } from './EnchantmentDesigner/EquipmentTypeSelector';
@@ -1,7 +1,5 @@
'use client';
import { GameCard } from '@/components/ui/game-card';
import { SectionHeader } from '@/components/ui/section-header';
import { ActionButton } from '@/components/ui/action-button';
import { Badge } from '@/components/ui/badge';
import { ScrollArea } from '@/components/ui/scroll-area';
@@ -10,11 +10,9 @@ import { ScrollArea } from '@/components/ui/scroll-area';
import { Separator } from '@/components/ui/separator';
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '@/components/ui/alert-dialog';
import { Trash2, CheckCircle, AlertTriangle } from 'lucide-react';
import { EQUIPMENT_TYPES } from '@/lib/game/data/equipment';
import type { EquipmentInstance, AppliedEnchantment, LootInventory, EquipmentCraftingProgress } from '@/lib/game/types';
import type { EquipmentSlot } from '@/lib/game/types';
import { fmt } from '@/lib/game/stores';
import { useGameStore, useCraftingStore, useManaStore } from '@/lib/game/stores';
import { useCraftingStore, useManaStore } from '@/lib/game/stores';
import { useGameToast } from '@/components/game/GameToast';
export interface EnchantmentPreparerProps {
@@ -36,18 +36,17 @@ function CraftingProgress({ progress }: { progress: { blueprintId: string; progr
// ─── Blueprint Card ───────────────────────────────────────────────────────────
function BlueprintCard({ bpId, lootInventory, rawMana, isCrafting, startCraftingEquipment, currentAction }: {
function BlueprintCard({ bpId, lootInventory, rawMana, isCrafting, startCraftingEquipment }: {
bpId: string;
lootInventory: LootInventory;
rawMana: number;
isCrafting: boolean;
startCraftingEquipment: (id: string) => void;
currentAction: string | null;
}) {
const recipe = CRAFTING_RECIPES[bpId];
if (!recipe) return null;
const { canCraft, missingMaterials } = canCraftRecipe(recipe, lootInventory.materials, rawMana);
const { canCraft } = canCraftRecipe(recipe, lootInventory.materials, rawMana);
const rarityStyle = LOOT_RARITY_COLORS[recipe.rarity];
return (
@@ -137,7 +136,6 @@ function BlueprintList({ lootInventory, rawMana, startCraftingEquipment, current
rawMana={rawMana}
isCrafting={currentAction === 'craft'}
startCraftingEquipment={startCraftingEquipment}
currentAction={currentAction}
/>
))}
</div>