🔨 Add snippets for UI components

This commit is contained in:
Tanay Pant 2021-01-15 17:35:56 +01:00
parent 9496505232
commit 1e75766797
2 changed files with 48 additions and 1 deletions

1
.gitignore vendored
View file

@ -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
View 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"
}
}