feat: add delete menu to graph node #918 (#1133)

### What problem does this PR solve?
feat: add delete menu to graph node #918

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-12 17:38:41 +08:00
committed by GitHub
parent e05395d2a7
commit 3b7b6240c3
10 changed files with 149 additions and 97 deletions

View File

@@ -5,7 +5,7 @@ export const initialNodes = [
sourcePosition: Position.Left,
targetPosition: Position.Right,
id: 'node-1',
type: 'textUpdater',
type: 'ragNode',
position: { x: 0, y: 0 },
// position: { x: 400, y: 100 },
data: { label: 123 },
@@ -38,7 +38,7 @@ export const dsl = {
nodes: [
{
id: 'begin',
type: 'textUpdater',
type: 'ragNode',
position: {
x: 50,
y: 200,
@@ -51,7 +51,7 @@ export const dsl = {
},
// {
// id: 'Answer:China',
// type: 'textUpdater',
// type: 'ragNode',
// position: {
// x: 150,
// y: 200,
@@ -64,7 +64,7 @@ export const dsl = {
// },
// {
// id: 'Retrieval:China',
// type: 'textUpdater',
// type: 'ragNode',
// position: {
// x: 250,
// y: 200,
@@ -77,7 +77,7 @@ export const dsl = {
// },
// {
// id: 'Generate:China',
// type: 'textUpdater',
// type: 'ragNode',
// position: {
// x: 100,
// y: 100,