Minor improvements to Strapi-Node

This commit is contained in:
Jan Oberhauser
2020-11-11 09:45:50 +01:00
parent a5ecf3d58d
commit 73e1399c42
4 changed files with 18 additions and 10 deletions

View File

@@ -17,6 +17,9 @@ export class StrapiApi implements ICredentialType {
displayName: 'Password', displayName: 'Password',
name: 'password', name: 'password',
type: 'string' as NodePropertyTypes, type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '', default: '',
}, },
{ {
@@ -24,6 +27,7 @@ export class StrapiApi implements ICredentialType {
name: 'url', name: 'url',
type: 'string' as NodePropertyTypes, type: 'string' as NodePropertyTypes,
default: '', default: '',
placeholder: 'https://api.example.com',
}, },
]; ];
} }

View File

@@ -66,7 +66,7 @@ export const entryFields = [
], ],
}, },
}, },
description: 'Name of the content type', description: 'Name of the content type.',
}, },
{ {
displayName: 'Columns', displayName: 'Columns',
@@ -86,6 +86,7 @@ export const entryFields = [
placeholder: 'id,name,description', placeholder: 'id,name,description',
description: 'Comma separated list of the properties which should used as columns for the new rows.', description: 'Comma separated list of the properties which should used as columns for the new rows.',
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* entry:delete */ /* entry:delete */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@@ -105,7 +106,7 @@ export const entryFields = [
], ],
}, },
}, },
description: 'Name of the content type', description: 'Name of the content type.',
}, },
{ {
displayName: 'Entry ID', displayName: 'Entry ID',
@@ -123,8 +124,9 @@ export const entryFields = [
], ],
}, },
}, },
description: 'The ID of the entry to get.', description: 'The ID of the entry to delete.',
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* entry:get */ /* entry:get */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@@ -144,7 +146,7 @@ export const entryFields = [
], ],
}, },
}, },
description: 'Name of the content type', description: 'Name of the content type.',
}, },
{ {
displayName: 'Entry ID', displayName: 'Entry ID',
@@ -164,6 +166,7 @@ export const entryFields = [
}, },
description: 'The ID of the entry to get.', description: 'The ID of the entry to get.',
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* entry:getAll */ /* entry:getAll */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@@ -286,6 +289,7 @@ export const entryFields = [
}, },
], ],
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* entry:update */ /* entry:update */
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@@ -305,7 +309,7 @@ export const entryFields = [
], ],
}, },
}, },
description: 'Name of the content type', description: 'Name of the content type.',
}, },
{ {
displayName: 'Update Key', displayName: 'Update Key',