Fix build errors: update imports and re-exports
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m45s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m45s
- Fixed equipment/index.ts imports (use correct export names: ACCESSORIES_EQUIPMENT, CASTER_EQUIPMENT, etc.) - Fixed page.tsx: added lazy, Suspense imports from react - Fixed page.tsx: updated getUnifiedEffects import from @/lib/game/effects - Fixed ManaTypeBreakdown.tsx: updated computeEffectiveRegenForDisplay import - Fixed SpireTab.tsx: updated getEnemyName import from enemy-utils - Fixed LeftPanel.tsx: updated getUnifiedEffects import from @/lib/game/effects - Build now succeeds with all tabs working
This commit is contained in:
@@ -8,7 +8,8 @@ import { ActionButtons } from '@/components/game';
|
|||||||
import { CalendarDisplay } from '@/components/game';
|
import { CalendarDisplay } from '@/components/game';
|
||||||
import { DebugName } from '@/lib/game/debug-context';
|
import { DebugName } from '@/lib/game/debug-context';
|
||||||
import type { GameStore } from '@/lib/game/store';
|
import type { GameStore } from '@/lib/game/store';
|
||||||
import { computeMaxMana, computeClickMana, getMeditationBonus, getUnifiedEffects } from '@/lib/game/store';
|
import { computeMaxMana, computeClickMana, getMeditationBonus } from '@/lib/game/store';
|
||||||
|
import { getUnifiedEffects } from '@/lib/game/effects';
|
||||||
import { useGameLoop } from '@/lib/game/stores/gameHooks';
|
import { useGameLoop } from '@/lib/game/stores/gameHooks';
|
||||||
|
|
||||||
interface LeftPanelProps {
|
interface LeftPanelProps {
|
||||||
|
|||||||
+3
-2
@@ -1,8 +1,9 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState, lazy, Suspense } from 'react';
|
||||||
import type { JSX } from 'react';
|
import type { JSX } from 'react';
|
||||||
import { useGameStore, fmt, computeMaxMana, computeRegen, computeClickMana, getMeditationBonus, getIncursionStrength, canAffordSpellCost, getUnifiedEffects } from '@/lib/game/store';
|
import { useGameStore, fmt, computeMaxMana, computeRegen, computeClickMana, getMeditationBonus, getIncursionStrength, canAffordSpellCost } from '@/lib/game/store';
|
||||||
|
import { getUnifiedEffects } from '@/lib/game/effects';
|
||||||
import { useGameLoop } from '@/lib/game/stores/gameHooks';
|
import { useGameLoop } from '@/lib/game/stores/gameHooks';
|
||||||
import { ELEMENTS, GUARDIANS, SPELLS_DEF, PRESTIGE_DEF, getStudySpeedMultiplier, getStudyCostMultiplier } from '@/lib/game/constants';
|
import { ELEMENTS, GUARDIANS, SPELLS_DEF, PRESTIGE_DEF, getStudySpeedMultiplier, getStudyCostMultiplier } from '@/lib/game/constants';
|
||||||
import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
|
import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import { fmt, fmtDec } from '@/lib/game/store';
|
|||||||
import type { GameStore } from '@/lib/game/types';
|
import type { GameStore } from '@/lib/game/types';
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
import { ATTUNEMENTS_DEF, getAttunementConversionRate } from '@/lib/game/data/attunements';
|
import { ATTUNEMENTS_DEF, getAttunementConversionRate } from '@/lib/game/data/attunements';
|
||||||
import { computeEffectiveRegenForDisplay, computeMaxMana, computeElementMax } from '@/lib/game/store';
|
import { computeMaxMana, computeElementMax } from '@/lib/game/store';
|
||||||
|
import { computeEffectiveRegenForDisplay } from '@/lib/game/store-modules/computed-stats';
|
||||||
import { getUnifiedEffects } from '@/lib/game/effects';
|
import { getUnifiedEffects } from '@/lib/game/effects';
|
||||||
import { Droplet } from 'lucide-react';
|
import { Droplet } from 'lucide-react';
|
||||||
import { Separator } from '@/components/ui/separator';
|
import { Separator } from '@/components/ui/separator';
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import { Mountain } from 'lucide-react';
|
|||||||
import type { ActivityLogEntry } from '@/lib/game/types';
|
import type { ActivityLogEntry } from '@/lib/game/types';
|
||||||
import type { GameStore } from '@/lib/game/store';
|
import type { GameStore } from '@/lib/game/store';
|
||||||
import { ELEMENTS, GUARDIANS, SPELLS_DEF } from '@/lib/game/constants';
|
import { ELEMENTS, GUARDIANS, SPELLS_DEF } from '@/lib/game/constants';
|
||||||
import { getEnemyName, calcDamage } from '@/lib/game/store';
|
import { calcDamage } from '@/lib/game/store';
|
||||||
|
import { getEnemyName } from '@/lib/game/store-modules/enemy-utils';
|
||||||
import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
|
import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
|
||||||
import { getUnifiedEffects } from '@/lib/game/effects';
|
import { getUnifiedEffects } from '@/lib/game/effects';
|
||||||
import { formatSpellCost, getSpellCostColor } from '@/lib/game/formatting';
|
import { formatSpellCost, getSpellCostColor } from '@/lib/game/formatting';
|
||||||
|
|||||||
@@ -1,8 +1,23 @@
|
|||||||
// ─── Spell Enchantment Effects Index ───────────────────────────────
|
// ─── Spell Enchantment Effects Index ───────────────────────
|
||||||
// Re-exports all spell effects from modular files
|
// Re-exports all spell effects from modular files
|
||||||
|
|
||||||
// Re-export types
|
// Re-export types
|
||||||
export type { EnchantmentEffectDef, ALL_CASTER } from './types';
|
export type { EnchantmentEffectDef, ALL_CASTER } from './types';
|
||||||
|
|
||||||
// Re-export data
|
// Import all spell effect groups
|
||||||
export { SPELL_EFFECTS } from './data';
|
import { BASIC_SPELL_EFFECTS } from './basic-spells';
|
||||||
|
import { LIGHTNING_SPELL_EFFECTS } from './lightning-spells';
|
||||||
|
import { METAL_SPELL_EFFECTS } from './metal-spells';
|
||||||
|
import { SAND_SPELL_EFFECTS } from './sand-spells';
|
||||||
|
import { TIER2_SPELL_EFFECTS } from './tier2-spells';
|
||||||
|
import { TIER3_SPELL_EFFECTS } from './tier3-spells';
|
||||||
|
|
||||||
|
// Combine all spell effects into SPELL_EFFECTS
|
||||||
|
export const SPELL_EFFECTS = {
|
||||||
|
...BASIC_SPELL_EFFECTS,
|
||||||
|
...LIGHTNING_SPELL_EFFECTS,
|
||||||
|
...METAL_SPELL_EFFECTS,
|
||||||
|
...SAND_SPELL_EFFECTS,
|
||||||
|
...TIER2_SPELL_EFFECTS,
|
||||||
|
...TIER3_SPELL_EFFECTS,
|
||||||
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// ─── Equipment Types Index ───────────────────────────────
|
// ─── Equipment Types Index ───────────────────────
|
||||||
// Re-exports from all equipment type modules
|
// Re-exports from all equipment type modules
|
||||||
|
|
||||||
// Re-export types
|
// Re-export types
|
||||||
@@ -13,8 +13,29 @@ export {
|
|||||||
SLOT_NAMES
|
SLOT_NAMES
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
// Re-export data
|
// Import all equipment type groups
|
||||||
export { EQUIPMENT_TYPES } from './data';
|
import { ACCESSORIES_EQUIPMENT } from './accessories';
|
||||||
|
import { BODY_EQUIPMENT } from './body';
|
||||||
|
import { CASTER_EQUIPMENT } from './casters';
|
||||||
|
import { CATALYST_EQUIPMENT } from './catalysts';
|
||||||
|
import { FEET_EQUIPMENT } from './feet';
|
||||||
|
import { HANDS_EQUIPMENT } from './hands';
|
||||||
|
import { HEAD_EQUIPMENT } from './head';
|
||||||
|
import { SHIELD_EQUIPMENT } from './shields';
|
||||||
|
import { SWORD_EQUIPMENT } from './swords';
|
||||||
|
|
||||||
|
// Combine all equipment types into EQUIPMENT_TYPES
|
||||||
|
export const EQUIPMENT_TYPES = {
|
||||||
|
...ACCESSORIES_EQUIPMENT,
|
||||||
|
...BODY_EQUIPMENT,
|
||||||
|
...CASTER_EQUIPMENT,
|
||||||
|
...CATALYST_EQUIPMENT,
|
||||||
|
...FEET_EQUIPMENT,
|
||||||
|
...HANDS_EQUIPMENT,
|
||||||
|
...HEAD_EQUIPMENT,
|
||||||
|
...SHIELD_EQUIPMENT,
|
||||||
|
...SWORD_EQUIPMENT,
|
||||||
|
};
|
||||||
|
|
||||||
// Re-export utility functions
|
// Re-export utility functions
|
||||||
export {
|
export {
|
||||||
|
|||||||
@@ -1,11 +1,20 @@
|
|||||||
// ─── Golem Definitions Index ─────────────────────────────────
|
// ─── Golem Definitions Index ───────────────────────
|
||||||
// Re-exports from all golem modules
|
// Re-exports from all golem modules
|
||||||
|
|
||||||
// Re-export types
|
// Re-export types
|
||||||
export type { GolemDef, GolemManaCost } from './types';
|
export type { GolemDef, GolemManaCost } from './types';
|
||||||
|
|
||||||
// Re-export data
|
// Import all golem groups
|
||||||
export { GOLEMS_DEF } from './data';
|
import { BASE_GOLEMS } from './base-golems';
|
||||||
|
import { ELEMENTAL_GOLEMS } from './elemental-golems';
|
||||||
|
import { HYBRID_GOLEMS } from './hybrid-golems';
|
||||||
|
|
||||||
|
// Combine all golems into GOLEMS_DEF
|
||||||
|
export const GOLEMS_DEF = {
|
||||||
|
...BASE_GOLEMS,
|
||||||
|
...ELEMENTAL_GOLEMS,
|
||||||
|
...HYBRID_GOLEMS,
|
||||||
|
};
|
||||||
|
|
||||||
// Re-export utility functions
|
// Re-export utility functions
|
||||||
export {
|
export {
|
||||||
|
|||||||
Reference in New Issue
Block a user