Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Update string processor to use new sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Oct 13, 2021
1 parent e607a3d commit 6b077e7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions core/src/components/StringProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Rete from 'rete'

import { NodeData, ThothNode, ThothWorkerInputs } from '../../types'
import { CodeControl } from '../dataControls/CodeControl'
import { OutputGeneratorControl } from '../dataControls/OutputGenerator'
import { SocketGeneratorControl } from '../dataControls/SocketGenerator'
import { stringSocket, triggerSocket } from '../sockets'
import { ThothComponent } from '../thoth-component'
const info = `The String Processor component take s astring as an input and allows you to write a function in the text editor to parse that string in whatever way you need. You can define any number of outputs which you can pass the result of your parsing out through.
Expand Down Expand Up @@ -36,16 +36,11 @@ export class StringProcessor extends ThothComponent {
const triggerOut = new Rete.Output('trigger', 'Trigger', triggerSocket)

// Inspector controls
const outputGenerator = new OutputGeneratorControl({
const outputGenerator = new SocketGeneratorControl({
socketType: 'stringSocket',
taskType: 'output',
ignored: [
{
name: 'trigger',
socketType: 'triggerSocket',
taskType: 'option',
},
],
connectionType: 'output',
ignored: ['trigger'],
name: 'Output Sockets',
})

const codeControl = new CodeControl({
Expand Down

0 comments on commit 6b077e7

Please sign in to comment.