mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-17 10:14:34 +00:00
refactor: port lib layer to src/lib
classic-mode.js moves byte-for-byte. champion-data.js swaps the Next.js env-var fetch prefix for asset() from $app/paths, which resolves to /champions.json in dev and /loldle/champions.json in the deployed build. getChampionImageUrl keeps returning an absolute Data Dragon URL, unwrapped. Drops three exports with no callers: getAllChampions, getChampionByName, getGuessedNames. The characterization suite passes unchanged against the new location -- only import specifiers moved, no assertions touched.
This commit is contained in:
1 parent
e2ae34a8ab
commit
078d80c962
7 files changed
+391
-4
No files matched your search
@@ -7,7 +7,7 @@ import {
|
||||
loadUnlimitedStats,
|
||||
saveUnlimitedStats,
|
||||
submitGuess,
|
||||
} from "../lib/game-engine";
|
||||
} from "$lib/game-engine";
|
||||
import { AATROX, AHRI } from "./fixtures/champions";
|
||||
|
||||
/** Minimal stand-in for compareChampions — the engine only stores what this returns. */
|
||||
|
||||
Reference in new issue
Block a user