|
@@ -1,4 +1,4 @@
|
|
|
-/* to-do screenshot, assets, tab loaded, opened tab, and close tab block? */
|
|
|
+/* to-do screenshot, cookies, assets, tab loaded, opened tab, and close tab block? */
|
|
|
/* prev and next page block? */
|
|
|
|
|
|
export const tasks = {
|
|
@@ -24,6 +24,61 @@ export const tasks = {
|
|
|
isUrlRegex: false,
|
|
|
},
|
|
|
},
|
|
|
+ 'active-tab': {
|
|
|
+ name: 'Active tab',
|
|
|
+ description: 'Execute the next block on the current active tab',
|
|
|
+ icon: 'riWindowLine',
|
|
|
+ component: 'BlockBasic',
|
|
|
+ category: 'browser',
|
|
|
+ disableEdit: true,
|
|
|
+ inputs: 1,
|
|
|
+ outputs: 1,
|
|
|
+ allowedInputs: true,
|
|
|
+ maxConnection: 1,
|
|
|
+ data: {},
|
|
|
+ },
|
|
|
+ 'new-tab': {
|
|
|
+ name: 'New tab',
|
|
|
+ description: 'Create a new tab',
|
|
|
+ icon: 'riGlobalLine',
|
|
|
+ component: 'BlockNewTab',
|
|
|
+ editComponent: 'EditTrigger',
|
|
|
+ category: 'browser',
|
|
|
+ inputs: 1,
|
|
|
+ outputs: 1,
|
|
|
+ allowedInputs: true,
|
|
|
+ maxConnection: 1,
|
|
|
+ data: {
|
|
|
+ url: '',
|
|
|
+ active: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ 'go-back': {
|
|
|
+ name: 'Go back',
|
|
|
+ description: 'Go back to the previous page',
|
|
|
+ icon: 'riArrowGoBackLine',
|
|
|
+ component: 'BlockBasic',
|
|
|
+ category: 'browser',
|
|
|
+ inputs: 1,
|
|
|
+ outputs: 1,
|
|
|
+ maxConnection: 1,
|
|
|
+ disableEdit: true,
|
|
|
+ allowedInputs: true,
|
|
|
+ data: {},
|
|
|
+ },
|
|
|
+ 'forward-page': {
|
|
|
+ name: 'Go forward',
|
|
|
+ description: 'Go forward to the next page',
|
|
|
+ icon: 'riArrowGoForwardLine',
|
|
|
+ component: 'BlockBasic',
|
|
|
+ category: 'browser',
|
|
|
+ inputs: 1,
|
|
|
+ outputs: 1,
|
|
|
+ maxConnection: 1,
|
|
|
+ disableEdit: true,
|
|
|
+ allowedInputs: true,
|
|
|
+ data: {},
|
|
|
+ },
|
|
|
'event-click': {
|
|
|
name: 'Click element',
|
|
|
icon: 'riCursorLine',
|
|
@@ -77,35 +132,6 @@ export const tasks = {
|
|
|
dataColumn: '',
|
|
|
},
|
|
|
},
|
|
|
- 'active-tab': {
|
|
|
- name: 'Active tab',
|
|
|
- description: 'Execute the next block on the current active tab',
|
|
|
- icon: 'riWindowLine',
|
|
|
- component: 'BlockBasic',
|
|
|
- category: 'general',
|
|
|
- disableEdit: true,
|
|
|
- inputs: 1,
|
|
|
- outputs: 1,
|
|
|
- allowedInputs: true,
|
|
|
- maxConnection: 1,
|
|
|
- data: {},
|
|
|
- },
|
|
|
- 'new-tab': {
|
|
|
- name: 'New tab',
|
|
|
- description: 'Create a new tab',
|
|
|
- icon: 'riGlobalLine',
|
|
|
- component: 'BlockNewTab',
|
|
|
- editComponent: 'EditTrigger',
|
|
|
- category: 'general',
|
|
|
- inputs: 1,
|
|
|
- outputs: 1,
|
|
|
- allowedInputs: true,
|
|
|
- maxConnection: 1,
|
|
|
- data: {
|
|
|
- url: '',
|
|
|
- active: true,
|
|
|
- },
|
|
|
- },
|
|
|
'export-data': {
|
|
|
name: 'Export data',
|
|
|
icon: 'riDownloadLine',
|
|
@@ -291,6 +317,10 @@ export const categories = {
|
|
|
name: 'Web interaction',
|
|
|
color: 'bg-green-200',
|
|
|
},
|
|
|
+ browser: {
|
|
|
+ name: 'Browser',
|
|
|
+ color: 'bg-orange-200',
|
|
|
+ },
|
|
|
general: {
|
|
|
name: 'General',
|
|
|
color: 'bg-yellow-200',
|