🔀 Merge branch 'arpadgabor-feat/monaco'

This commit is contained in:
Jan Oberhauser
2021-12-23 21:00:54 +01:00
10 changed files with 328 additions and 48 deletions

View File

@@ -631,10 +631,13 @@ export type NodePropertyTypes =
| 'options'
| 'string';
export type EditorTypes = 'code';
export type CodeAutocompleteTypes = 'function' | 'functionItem';
export type EditorTypes = 'code' | 'json';
export interface INodePropertyTypeOptions {
alwaysOpenEditWindow?: boolean; // Supported by: string
codeAutocomplete?: CodeAutocompleteTypes; // Supported by: string
editor?: EditorTypes; // Supported by: string
loadOptionsDependsOn?: string[]; // Supported by: options
loadOptionsMethod?: string; // Supported by: options
@@ -849,6 +852,7 @@ export interface IWebhookDescription {
}
export interface IWorkflowDataProxyData {
[key: string]: any;
$binary: any;
$data: any;
$env: any;

View File

@@ -92,6 +92,12 @@ export class WorkflowDataProxy {
return Reflect.ownKeys(target);
},
getOwnPropertyDescriptor(k) {
return {
enumerable: true,
configurable: true,
};
},
get(target, name, receiver) {
// eslint-disable-next-line no-param-reassign
name = name.toString();
@@ -142,6 +148,12 @@ export class WorkflowDataProxy {
ownKeys(target) {
return Reflect.ownKeys(target);
},
getOwnPropertyDescriptor(k) {
return {
enumerable: true,
configurable: true,
};
},
get(target, name, receiver) {
name = name.toString();
@@ -385,6 +397,15 @@ export class WorkflowDataProxy {
return new Proxy(
{},
{
ownKeys(target) {
return allowedValues;
},
getOwnPropertyDescriptor(k) {
return {
enumerable: true,
configurable: true,
};
},
get(target, name, receiver) {
if (!allowedValues.includes(name.toString())) {
throw new Error(`The key "${name.toString()}" is not supported!`);