mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
🔨 Add snippets for UI components
This commit is contained in:
parent
9496505232
commit
1e75766797
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,6 +10,5 @@ yarn.lock
|
|||
google-generated-credentials.json
|
||||
_START_PACKAGE
|
||||
.env
|
||||
.vscode
|
||||
.idea
|
||||
.prettierrc.js
|
||||
|
|
48
.vscode/n8n.code-snippets
vendored
Normal file
48
.vscode/n8n.code-snippets
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"Add a field with string datatype": {
|
||||
"prefix": "component-string",
|
||||
"body": [
|
||||
"{",
|
||||
" displayName: 'Field Name',",
|
||||
" name: 'fieldName',",
|
||||
" type: 'string',",
|
||||
" default: '',",
|
||||
" required: true,",
|
||||
" displayOptions: {",
|
||||
" show: {",
|
||||
" resource: [",
|
||||
" 'resource',",
|
||||
" ],",
|
||||
" operation: [",
|
||||
" 'operation',",
|
||||
" ],",
|
||||
" },",
|
||||
" },",
|
||||
"},"
|
||||
],
|
||||
"description": "Add a UI component with the string datatype"
|
||||
},
|
||||
"Add a field with boolean datatype": {
|
||||
"prefix": "component-boolean",
|
||||
"body": [
|
||||
"{",
|
||||
" displayName: 'Field Name',",
|
||||
" name: 'fieldName',",
|
||||
" type: 'boolean',",
|
||||
" displayOptions: {",
|
||||
" show: {",
|
||||
" resource: [",
|
||||
" 'resource',",
|
||||
" ],",
|
||||
" operation: [",
|
||||
" 'operation',",
|
||||
" ],",
|
||||
" },",
|
||||
" },",
|
||||
" default: false,",
|
||||
" description: '',",
|
||||
"},"
|
||||
],
|
||||
"description": "Add a UI component with the boolean datatype"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue