fix: SLOT_NAMES export and refactor: split crafting-slice.ts into modules
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m51s

This commit is contained in:
Refactoring Agent
2026-05-02 10:59:36 +02:00
parent dc38445225
commit c9ae2576f4
14 changed files with 2213 additions and 942 deletions
@@ -1,7 +1,7 @@
'use client';
import { EquipmentSlot } from '@/lib/game/data/equipment';
import { SLOT_NAMES } from './EquipmentTab';
import { SLOT_NAMES } from '@/lib/game/data/equipment';
import type { GameStore, EquipmentInstance } from '@/lib/game/types';
import { GameCard } from '@/components/ui/game-card';
import { Badge } from '@/components/ui/badge';
+1 -12
View File
@@ -4,6 +4,7 @@ import { useState, useMemo } from 'react';
import {
EQUIPMENT_TYPES,
EQUIPMENT_SLOTS,
SLOT_NAMES,
getEquipmentBySlot,
type EquipmentSlot,
type EquipmentType,
@@ -23,18 +24,6 @@ import { EnchantmentsPanel } from './EnchantmentsPanel';
import { useGameToast } from '@/components/game/GameToast';
import { ConfirmDialog } from '@/components/game/ConfirmDialog';
// Slot display names
const SLOT_NAMES: Record<EquipmentSlot, string> = {
mainHand: 'Main Hand',
offHand: 'Off Hand',
head: 'Head',
body: 'Body',
hands: 'Hands',
feet: 'Feet',
accessory1: 'Accessory 1',
accessory2: 'Accessory 2',
};
// Rarity color mappings using design system tokens
export const RARITY_BORDER_COLORS: Record<string, string> = {
common: 'border-[var(--text-muted)]',