feat(editor): Create separate components for JS and JSON editors (no-changelog) (#8156)

## Summary
This is part-1 of refactoring our code editors to extract different type
of editors into their own components.
In part-2 we'll
1. delete a of unused or duplicate code
2. switch to a `useEditor` composable to bring more UX consistency
across all the code editors.

## Review / Merge checklist
- [x] PR title and summary are descriptive
- [x] Tests included
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-12-29 10:49:27 +01:00
committed by GitHub
parent 1286d6583c
commit 216ec079c9
31 changed files with 290 additions and 91 deletions

View File

@@ -596,7 +596,7 @@ export class ItemListsV1 implements INodeType {
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
editor: 'code',
editor: 'jsEditor',
rows: 10,
},
default: `// The two items to compare are in the variables a and b

View File

@@ -598,7 +598,7 @@ export class ItemListsV2 implements INodeType {
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
editor: 'code',
editor: 'jsEditor',
rows: 10,
},
default: `// The two items to compare are in the variables a and b

View File

@@ -96,7 +96,7 @@ const properties: INodeProperties[] = [
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
editor: 'code',
editor: 'jsEditor',
rows: 10,
},
default: `// The two items to compare are in the variables a and b