refactor: split hooks types and utils by domain

This commit is contained in:
Tom Boullay
2026-04-30 11:49:18 +02:00
parent 9ac5844182
commit b1187b68ae
65 changed files with 83 additions and 84 deletions
@@ -3,7 +3,7 @@ import type {
LogEntry,
LogLevel,
LoggerConfig,
} from "@/types/logger";
} from "@/types/logger/logger";
import { isDebugEnabled } from "@/utils/debug/isDebugEnabled";
const LEVEL_PRIORITY: Record<LogLevel, number> = {
+1 -1
View File
@@ -1,5 +1,5 @@
import GUI from "lil-gui";
import type { CameraMode, SceneMode } from "@/types/debug";
import type { CameraMode, SceneMode } from "@/types/debug/debug";
import { isDebugEnabled } from "@/utils/debug/isDebugEnabled";
const DEBUG_CONTROLS_STORAGE_KEY = "la-fabrik-debug-controls";
+2 -2
View File
@@ -1,5 +1,5 @@
import type { SceneData } from "@/types/editor";
import { parseMapNodes } from "@/utils/mapNodeValidation";
import type { SceneData } from "@/types/editor/editor";
import { parseMapNodes } from "@/utils/map/mapNodeValidation";
const MAP_JSON_PATH = "/map.json";
@@ -1,5 +1,5 @@
import type { MapNode, SceneData } from "@/types/editor";
import { parseMapNodes } from "@/utils/mapNodeValidation";
import type { MapNode, SceneData } from "@/types/editor/editor";
import { parseMapNodes } from "@/utils/map/mapNodeValidation";
const MAP_JSON_PATH = "/map.json";
const MODEL_FILE_NAMES = ["model.glb", "model.gltf"];
@@ -1,4 +1,4 @@
import type { MapNode } from "../types/editor";
import type { MapNode } from "@/types/editor/editor";
function isVector3Tuple(value: unknown): value is [number, number, number] {
return (