mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
Re-organized files for clarity
This commit is contained in:
@@ -21,10 +21,10 @@ import ReactFlow, {
|
|||||||
getSmoothStepPath,
|
getSmoothStepPath,
|
||||||
} from 'reactflow'
|
} from 'reactflow'
|
||||||
import 'reactflow/dist/style.css'
|
import 'reactflow/dist/style.css'
|
||||||
import { getBlock } from '../components/blocks/configs'
|
import { getBlock } from '../../../blocks/configs'
|
||||||
import { WorkflowBlock } from '../components/blocks/components/workflow-block/workflow-block'
|
import { WorkflowBlock } from '../components/workflow-block/workflow-block'
|
||||||
import { BlockConfig } from '../components/blocks/types/block'
|
import { BlockConfig } from '../../../blocks/types/block'
|
||||||
import { BlockType } from '../components/blocks/types/block'
|
import { BlockType } from '../../../blocks/types/block'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the data structure for a workflow node
|
* Represents the data structure for a workflow node
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { ToolbarTabs } from './toolbar-tabs'
|
import { ToolbarTabs } from './toolbar-tabs'
|
||||||
import { ToolbarBlock } from '../blocks/components/toolbar-block/toolbar-block'
|
import { ToolbarBlock } from '../toolbar-block/toolbar-block'
|
||||||
import { getBlocksByCategory, BlockCategory } from '../blocks'
|
import { getBlocksByCategory, BlockCategory } from '../../../../blocks'
|
||||||
|
|
||||||
export function Toolbar() {
|
export function Toolbar() {
|
||||||
const [activeTab, setActiveTab] = useState<BlockCategory>('basic')
|
const [activeTab, setActiveTab] = useState<BlockCategory>('basic')
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { SubBlockConfig } from '../../../../types/block'
|
import { SubBlockConfig } from '../../../../../blocks/types/block'
|
||||||
import { Label } from '@/components/ui/label'
|
import { Label } from '@/components/ui/label'
|
||||||
import { ShortInput } from './components/short-input'
|
import { ShortInput } from './components/short-input'
|
||||||
import { LongInput } from './components/long-input'
|
import { LongInput } from './components/long-input'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Card } from '@/components/ui/card'
|
import { Card } from '@/components/ui/card'
|
||||||
import { BlockConfig, SubBlockConfig } from '../../types/block'
|
import { BlockConfig, SubBlockConfig } from '../../../../blocks/types/block'
|
||||||
import { SubBlock } from './sub-block/sub-block'
|
import { SubBlock } from './sub-block/sub-block'
|
||||||
import { Handle, Position } from 'reactflow'
|
import { Handle, Position } from 'reactflow'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
Reference in New Issue
Block a user