configure mcp, refactors
This commit is contained in:
11
.cursor/mcp.json
Normal file
11
.cursor/mcp.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"shadcn": {
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"shadcn@latest",
|
||||||
|
"mcp"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1200
package-lock.json
generated
1200
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -15,11 +15,10 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"lucide-react": "^0.577.0",
|
"lucide-react": "^0.577.0",
|
||||||
"monaco-editor": "^0.55.1",
|
"monaco-editor": "^0.53.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"reactflow": "^11.0.0",
|
"reactflow": "^11.0.0",
|
||||||
"shadcn": "^3.8.5",
|
|
||||||
"tailwind-merge": "^3.5.0",
|
"tailwind-merge": "^3.5.0",
|
||||||
"tailwindcss-animate": "^1.0.7"
|
"tailwindcss-animate": "^1.0.7"
|
||||||
},
|
},
|
||||||
@@ -27,11 +26,12 @@
|
|||||||
"@types/node": "^25.3.3",
|
"@types/node": "^25.3.3",
|
||||||
"@types/react": "^18.0.0",
|
"@types/react": "^18.0.0",
|
||||||
"@types/react-dom": "^18.0.0",
|
"@types/react-dom": "^18.0.0",
|
||||||
"@vitejs/plugin-react": "^3.0.0",
|
"@vitejs/plugin-react": "^5.1.4",
|
||||||
"autoprefixer": "^10.4.0",
|
"autoprefixer": "^10.4.0",
|
||||||
"postcss": "^8.4.0",
|
"postcss": "^8.4.0",
|
||||||
|
"shadcn": "^4.0.0",
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"vite": "^4.0.0"
|
"vite": "^7.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import ReactFlow, {
|
|||||||
NodeChange,
|
NodeChange,
|
||||||
EdgeChange,
|
EdgeChange,
|
||||||
} from 'reactflow'
|
} from 'reactflow'
|
||||||
import ConfigNode from './components/ConfigNode'
|
import ConfigNode from './components/graph/ConfigNode'
|
||||||
import RenderingNode from './components/RenderingNode'
|
import RenderingNode from './components/graph/RenderingNode'
|
||||||
import FlowContext from './lib/flowContext'
|
import FlowContext from './lib/flowContext'
|
||||||
import {
|
import {
|
||||||
ContextMenu,
|
ContextMenu,
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import React, { memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'
|
import React, { memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { Handle, Position } from 'reactflow'
|
import { Handle, Position } from 'reactflow'
|
||||||
import Editor, { loader } from '@monaco-editor/react'
|
import Editor, { loader } from '@monaco-editor/react'
|
||||||
import FlowContext from '../lib/flowContext'
|
import FlowContext from '../../lib/flowContext'
|
||||||
import {
|
import {
|
||||||
BaseNode,
|
BaseNode,
|
||||||
BaseNodeContent,
|
BaseNodeContent,
|
||||||
BaseNodeFooter,
|
BaseNodeFooter,
|
||||||
BaseNodeHeader,
|
BaseNodeHeader,
|
||||||
BaseNodeHeaderTitle,
|
BaseNodeHeaderTitle,
|
||||||
} from './base-node'
|
} from './BaseNode'
|
||||||
import { Pencil } from 'lucide-react'
|
import { Pencil } from 'lucide-react'
|
||||||
|
|
||||||
// Ensure Monaco can load its web workers under Vite by pointing to a CDN
|
// Ensure Monaco can load its web workers under Vite by pointing to a CDN
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
import { memo, useContext, useEffect, useMemo, useState } from 'react'
|
import { memo, useContext, useEffect, useMemo, useState } from 'react'
|
||||||
import { Handle, Position } from 'reactflow'
|
import { Handle, Position } from 'reactflow'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
import FlowContext from '../lib/flowContext'
|
import FlowContext from '../../lib/flowContext'
|
||||||
import { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia } from './ui/empty'
|
import { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia } from '../ui/empty'
|
||||||
import {
|
import {
|
||||||
BaseNode,
|
BaseNode,
|
||||||
BaseNodeContent,
|
BaseNodeContent,
|
||||||
BaseNodeFooter,
|
BaseNodeFooter,
|
||||||
BaseNodeHeader,
|
BaseNodeHeader,
|
||||||
BaseNodeHeaderTitle,
|
BaseNodeHeaderTitle,
|
||||||
} from './base-node'
|
} from './BaseNode'
|
||||||
import { Rocket } from 'lucide-react'
|
import { Rocket } from 'lucide-react'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
Reference in New Issue
Block a user