fix: broken import paths, illegal import in function body, local fonts for Docker
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m23s

This commit is contained in:
Refactoring Agent
2026-05-05 20:23:47 +02:00
parent ed69a8f2b4
commit b0cc848909
6 changed files with 13 additions and 10 deletions
+3
View File
@@ -25,6 +25,9 @@ Mana-Loop/
├── prisma/ ├── prisma/
│ └── schema.prisma │ └── schema.prisma
├── public/ ├── public/
│ ├── fonts/
│ │ ├── GeistMonoVF.woff
│ │ └── GeistVF.woff
│ ├── logo.svg │ ├── logo.svg
│ └── robots.txt │ └── robots.txt
├── src/ ├── src/
Binary file not shown.
Binary file not shown.
+7 -7
View File
@@ -1,18 +1,18 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google"; import localFont from "next/font/local";
import "./globals.css"; import "./globals.css";
import { Toaster } from "@/components/ui/toaster"; import { Toaster } from "@/components/ui/toaster";
import { GameToaster } from "@/components/game/GameToast"; import { GameToaster } from "@/components/game/GameToast";
import { DebugProvider } from "@/lib/game/debug-context"; import { DebugProvider } from "@/lib/game/debug-context";
const geistSans = Geist({ const geistSans = localFont({
variable: "--font-geist-sans", src: '../../public/fonts/GeistVF.woff',
subsets: ["latin"], variable: '--font-geist-sans',
}); });
const geistMono = Geist_Mono({ const geistMono = localFont({
variable: "--font-geist-mono", src: '../../public/fonts/GeistMonoVF.woff',
subsets: ["latin"], variable: '--font-geist-mono',
}); });
export const metadata: Metadata = { export const metadata: Metadata = {
@@ -5,7 +5,8 @@
import { useState } from 'react'; import { useState } from 'react';
import type { SkillUpgradeChoice } from '@/lib/game/types'; import type { SkillUpgradeChoice } from '@/lib/game/types';
import { SKILLS_DEF, getTierMultiplier } from '@/lib/game/constants'; import { SKILLS_DEF } from '@/lib/game/constants';
import { getTierMultiplier } from '@/lib/game/skill-evolution';
import { getUnifiedEffects } from '@/lib/game/effects'; import { getUnifiedEffects } from '@/lib/game/effects';
import { useSkillStore, useGameStore, usePrestigeStore } from '@/lib/game/stores'; import { useSkillStore, useGameStore, usePrestigeStore } from '@/lib/game/stores';
import { SkillRow } from './SkillRow'; import { SkillRow } from './SkillRow';
+1 -2
View File
@@ -6,7 +6,7 @@ import { calculateApplicationTime, calculateApplicationManaPerHour } from './cra
import { hasSpecial, SPECIAL_EFFECTS } from './special-effects'; import { hasSpecial, SPECIAL_EFFECTS } from './special-effects';
import { computeEffects } from './upgrade-effects'; import { computeEffects } from './upgrade-effects';
import type { AttunementState } from './types'; import type { AttunementState } from './types';
import { calculateEnchantingXP } from './data/attunements'; import { calculateEnchantingXP, getAttunementXPForLevel, MAX_ATTUNEMENT_LEVEL } from './data/attunements';
import { ENCHANTMENT_EFFECTS } from './data/enchantment-effects'; import { ENCHANTMENT_EFFECTS } from './data/enchantment-effects';
// ─── Application Validation ───────────────────────────────────────────────── // ─── Application Validation ─────────────────────────────────────────────────
@@ -184,7 +184,6 @@ export function updateEnchanterAttunement(
let newXP = enchanterState.experience + xpGained; let newXP = enchanterState.experience + xpGained;
let newLevel = enchanterState.level; let newLevel = enchanterState.level;
import { getAttunementXPForLevel, MAX_ATTUNEMENT_LEVEL } from './data/attunements.js';
while (newLevel < MAX_ATTUNEMENT_LEVEL) { while (newLevel < MAX_ATTUNEMENT_LEVEL) {
const xpNeeded = getAttunementXPForLevel(newLevel + 1); const xpNeeded = getAttunementXPForLevel(newLevel + 1);