feat(09-01): migrate statistics.tsx and viewmap.tsx to src/ui (D-10)

- Move render/ui/statistics.tsx -> src/ui/statistics.tsx (verbatim copy)
- Move render/ui/viewmap.tsx -> src/ui/viewmap.tsx; rewrite ../use -> ../render/use, ../../shared -> ../shared; keep ./statistics
- Add export * from './statistics' and './viewmap' to src/ui/index.ts
- Delete old render/ui/statistics.tsx and render/ui/viewmap.tsx
This commit is contained in:
unanmed 2026-10-09 15:53:19 +08:00
parent 3f5c323897
commit 24ee08cc2d
3 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,4 @@
export * from './types';
export * from './save';
export * from './statistics';
export * from './viewmap';

View File

@ -27,7 +27,7 @@ import { FloorSelector } from '@user/client-base';
import { clamp, mean } from 'lodash-es';
import { StatisticsDataOneFloor } from './statistics';
import { Tip, TipExpose } from '@user/client-base';
import { useKey } from '../use';
import { useKey } from '../render/use';
import {
ENABLE_RIGHT_STATUS_BAR,
FULL_LOC,
@ -39,7 +39,7 @@ import {
RIGHT_STATUS_POS,
STATUS_BAR_HEIGHT,
STATUS_BAR_WIDTH
} from '../../shared';
} from '../shared';
export interface ViewMapProps extends IUIDefaultPropsBase, BaseProps {
loc: ElementLocator;