123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- export const tasks = {
- trigger: {
- name: 'Trigger',
- icon: 'riFlashlightLine',
- component: 'BlockBasic',
- editComponent: 'EditTrigger',
- category: 'general',
- inputs: 0,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- type: 'manual',
- },
- },
- 'event-click': {
- name: 'Click element',
- icon: 'riCursorLine',
- component: 'BlockBasic',
- editComponent: 'EditInteractionBase',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- },
- },
- delay: {
- name: 'Delay',
- icon: 'riTimerLine',
- component: 'BlockDelay',
- editComponent: 'EditTrigger',
- category: 'general',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- time: 500,
- },
- },
- 'get-text': {
- name: 'Get text',
- icon: 'riParagraph',
- component: 'BlockBasic',
- editComponent: 'EditGetText',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- regex: '',
- dataColumn: '',
- },
- },
- 'export-data': {
- name: 'Export data',
- icon: 'riDownloadLine',
- component: 'BlockExportData',
- editComponent: 'EditTrigger',
- category: 'general',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- type: 'JSON',
- },
- },
- 'element-scroll': {
- name: 'Scroll element',
- icon: 'riMouseLine',
- component: 'BlockBasic',
- editComponent: 'EditScrollElement',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- scrollY: 0,
- scrollX: 0,
- },
- },
- 'get-attribute': {
- name: 'Get attribute',
- icon: 'riBracketsLine',
- component: 'BlockBasic',
- editComponent: 'EditTrigger',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- },
- },
- 'open-website': {
- name: 'Open website',
- icon: 'riGlobalLine',
- component: 'BlockOpenWebsite',
- editComponent: 'EditTrigger',
- category: 'general',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- url: '',
- },
- },
- 'text-input': {
- name: 'Text input',
- icon: 'riInputCursorMove',
- component: 'BlockBasic',
- editComponent: 'EditTrigger',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- text: '',
- },
- },
- 'repeat-task': {
- name: 'Repeat task',
- icon: 'riRepeat2Line',
- component: 'BlockRepeatTask',
- editComponent: 'EditTrigger',
- category: 'general',
- inputs: 1,
- outputs: 2,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- repeatFor: 1,
- },
- },
- 'reload-page': {
- name: 'Reload page',
- icon: 'riRestartLine',
- component: 'BlockBasic',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- disableEdit: true,
- data: {},
- },
- 'trigger-element-events': {
- name: 'Trigger element events',
- icon: 'riLightbulbFlashLine',
- component: 'BlockBasic',
- editComponent: 'EditTrigger',
- category: 'interaction',
- inputs: 1,
- outputs: 1,
- allowedInputs: [],
- maxConnection: 1,
- data: {
- description: '',
- selector: '',
- multiple: false,
- events: [],
- },
- },
- comparison: {
- name: 'Comparison',
- icon: 'riAB',
- component: 'BlockComparison',
- category: 'conditions',
- inputs: 1,
- outputs: 0,
- allowedInputs: [],
- maxConnection: false,
- data: {
- comparison: [],
- },
- },
- 'contains-text': {
- name: 'Contains text',
- icon: 'riTBoxLine',
- component: 'BlockComparison',
- category: 'conditions',
- inputs: 1,
- outputs: 0,
- allowedInputs: [],
- maxConnection: false,
- data: {
- contains: [],
- },
- },
- 'element-exists': {
- name: 'Element exists',
- icon: 'riFocus3Line',
- component: 'BlockElementExists',
- category: 'conditions',
- inputs: 1,
- outputs: 0,
- allowedInputs: [],
- maxConnection: false,
- data: {
- selector: '',
- },
- },
- };
- export const categories = {
- interaction: {
- name: 'Web interaction',
- color: 'bg-green-200',
- },
- general: {
- name: 'General',
- color: 'bg-yellow-200',
- },
- conditions: {
- name: 'Conditions',
- color: 'bg-blue-200',
- },
- };
|