refactor: migrate editor components and utilities to centralized uhm directory structure
This commit is contained in:
@@ -53,7 +53,7 @@ import {
|
|||||||
type MapImageOverlay,
|
type MapImageOverlay,
|
||||||
} from "@/uhm/components/map/imageOverlay";
|
} from "@/uhm/components/map/imageOverlay";
|
||||||
import { FIXED_TIMELINE_RANGE, clampYearToFixedRange, normalizeTimelineYearValue } from "@/uhm/lib/utils/timeline";
|
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 { deleteSubmission } from "@/uhm/api/projects";
|
||||||
import type { WikiSnapshot } from "@/uhm/types/wiki";
|
import type { WikiSnapshot } from "@/uhm/types/wiki";
|
||||||
import type { BattleReplay, EntityWikiLinkSnapshot } from "@/uhm/types/projects";
|
import type { BattleReplay, EntityWikiLinkSnapshot } from "@/uhm/types/projects";
|
||||||
@@ -62,8 +62,8 @@ import {
|
|||||||
useEditorStore,
|
useEditorStore,
|
||||||
useEditorStoreApi,
|
useEditorStoreApi,
|
||||||
} from "@/uhm/store/editorStore";
|
} from "@/uhm/store/editorStore";
|
||||||
import { EditorSearchResults } from "./EditorSearchResults";
|
import { EditorSearchResults } from "@/uhm/components/editor/EditorSearchResults";
|
||||||
import { ResizeHandle } from "./ResizeHandle";
|
import { ResizeHandle } from "@/uhm/components/ui/ResizeHandle";
|
||||||
import {
|
import {
|
||||||
clampNumber,
|
clampNumber,
|
||||||
formatCommitTitle,
|
formatCommitTitle,
|
||||||
@@ -74,7 +74,7 @@ import {
|
|||||||
normalizeGeoSearchGeometry,
|
normalizeGeoSearchGeometry,
|
||||||
normalizeReplaysForCompare,
|
normalizeReplaysForCompare,
|
||||||
normalizeWikisForCompare,
|
normalizeWikisForCompare,
|
||||||
} from "./editorPageUtils";
|
} from "@/uhm/lib/editor/editorPageUtils";
|
||||||
|
|
||||||
const CURRENT_YEAR = new Date().getUTCFullYear();
|
const CURRENT_YEAR = new Date().getUTCFullYear();
|
||||||
const DEFAULT_EDITOR_USER_ID = "local-editor";
|
const DEFAULT_EDITOR_USER_ID = "local-editor";
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
import type { Dispatch, SetStateAction } 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 type { Feature, FeatureProperties } from "@/uhm/types/geo";
|
||||||
import { ApiError } from "@/uhm/api/http";
|
import { ApiError } from "@/uhm/api/http";
|
||||||
import { buildFeatureEntityPatch } from "@/uhm/lib/editor/entity/entityBinding";
|
import { buildFeatureEntityPatch } from "@/uhm/lib/editor/entity/entityBinding";
|
||||||
Reference in New Issue
Block a user