2026-04-29-21-27-10 - 组件目录扁平化重构
This commit is contained in:
14
src/App.tsx
14
src/App.tsx
@@ -1,11 +1,11 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Sidebar } from './components/layout/Sidebar';
|
||||
import { Dashboard } from './components/dashboard/Dashboard';
|
||||
import { ProjectLibrary } from './components/projects/ProjectLibrary';
|
||||
import { VideoWorkspace } from './components/workspace/VideoWorkspace';
|
||||
import { TemplateRegistry } from './components/templates/TemplateRegistry';
|
||||
import { AISegmentation } from './components/ai/AISegmentation';
|
||||
import { Login } from './components/auth/Login';
|
||||
import { Sidebar } from './components/Sidebar';
|
||||
import { Dashboard } from './components/Dashboard';
|
||||
import { ProjectLibrary } from './components/ProjectLibrary';
|
||||
import { VideoWorkspace } from './components/VideoWorkspace';
|
||||
import { TemplateRegistry } from './components/TemplateRegistry';
|
||||
import { AISegmentation } from './components/AISegmentation';
|
||||
import { Login } from './components/Login';
|
||||
|
||||
export type ActiveModule = 'dashboard' | 'projects' | 'ai' | 'workspace' | 'templates';
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Target, PlusCircle, MinusCircle, SquareDashed, Sparkles, Settings2, Cpu, Image as ImageIcon, SendToBack, Tags, Undo, Redo } from 'lucide-react';
|
||||
import { cn } from '../../lib/utils';
|
||||
import { cn } from '../lib/utils';
|
||||
import { Stage, Layer, Image as KonvaImage, Circle, Path, Group } from 'react-konva';
|
||||
import useImage from 'use-image';
|
||||
import { OntologyInspector } from '../workspace/OntologyInspector';
|
||||
import { OntologyInspector } from './OntologyInspector';
|
||||
|
||||
interface AISegmentationProps {
|
||||
onSendToWorkspace: () => void;
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Play, Pause } from 'lucide-react';
|
||||
import { cn } from '../../lib/utils';
|
||||
import { cn } from '../lib/utils';
|
||||
|
||||
export function FrameTimeline() {
|
||||
const [currentFrame, setCurrentFrame] = useState(142);
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { BrainCircuit } from 'lucide-react';
|
||||
import { cn } from '../../lib/utils';
|
||||
import { cn } from '../lib/utils';
|
||||
|
||||
interface LoginProps {
|
||||
onLoginSuccess: (token: string) => void;
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Home, FolderOpen, Edit3, LayoutTemplate, BrainCircuit } from 'lucide-react';
|
||||
import { cn } from '../../lib/utils';
|
||||
import type { ActiveModule } from '../../App';
|
||||
import { cn } from '../lib/utils';
|
||||
import type { ActiveModule } from '../App';
|
||||
|
||||
interface SidebarProps {
|
||||
activeModule: ActiveModule;
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { MousePointer2, Hexagon, Square, Circle, Minus, Combine, Scissors, Wand2, Undo, Redo, Crosshair } from 'lucide-react';
|
||||
import { cn } from '../../lib/utils';
|
||||
import { cn } from '../lib/utils';
|
||||
|
||||
interface ToolsPaletteProps {
|
||||
activeTool: string;
|
||||
Reference in New Issue
Block a user