refactor: migrate editor components and utilities to centralized uhm directory structure

This commit is contained in:
taDuc
2026-05-24 10:51:45 +07:00
parent c8d2415e50
commit 23b2c6f534
5 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -53,7 +53,7 @@ import {
type MapImageOverlay,
} from "@/uhm/components/map/imageOverlay";
import { FIXED_TIMELINE_RANGE, clampYearToFixedRange, normalizeTimelineYearValue } from "@/uhm/lib/utils/timeline";
import { useFeatureCommands } from "./featureCommands";
import { useFeatureCommands } from "@/uhm/lib/editor/geometry/useFeatureCommands";
import { deleteSubmission } from "@/uhm/api/projects";
import type { WikiSnapshot } from "@/uhm/types/wiki";
import type { BattleReplay, EntityWikiLinkSnapshot } from "@/uhm/types/projects";
@@ -62,8 +62,8 @@ import {
useEditorStore,
useEditorStoreApi,
} from "@/uhm/store/editorStore";
import { EditorSearchResults } from "./EditorSearchResults";
import { ResizeHandle } from "./ResizeHandle";
import { EditorSearchResults } from "@/uhm/components/editor/EditorSearchResults";
import { ResizeHandle } from "@/uhm/components/ui/ResizeHandle";
import {
clampNumber,
formatCommitTitle,
@@ -74,7 +74,7 @@ import {
normalizeGeoSearchGeometry,
normalizeReplaysForCompare,
normalizeWikisForCompare,
} from "./editorPageUtils";
} from "@/uhm/lib/editor/editorPageUtils";
const CURRENT_YEAR = new Date().getUTCFullYear();
const DEFAULT_EDITOR_USER_ID = "local-editor";
@@ -2,7 +2,7 @@
import { useCallback } from "react";
import type { Dispatch, SetStateAction } from "react";
import type { Entity } from "@/uhm/types/entities";
import type { Entity } from "@/uhm/api/entities";
import type { Feature, FeatureProperties } from "@/uhm/types/geo";
import { ApiError } from "@/uhm/api/http";
import { buildFeatureEntityPatch } from "@/uhm/lib/editor/entity/entityBinding";