2026-04-29-21-27-10 - 组件目录扁平化重构

This commit is contained in:
2026-04-29 21:32:15 +08:00
parent 72cf0a7094
commit c8f8686097
16 changed files with 286 additions and 14 deletions

View File

@@ -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';

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;