fix: Move S3UploadButton to plugin-aws.

This commit is contained in:
Gervwyk 2022-02-14 12:58:22 +02:00
parent 64a076cdc9
commit 540aa035d2
13 changed files with 56 additions and 9 deletions

View File

@ -18,7 +18,7 @@ _ref:
block_type: S3UploadButton
value_type: object
category: input
schema: ../blocks/blocksAntd/src/blocks/S3UploadButton/S3UploadButton.json
schema: ../plugins/plugins/plugin-aws/src/blocks/S3UploadButton/schema.json
filePath: blocks/input/S3UploadButton.yaml
description_content: |
The `S3UploadButton` block allows a user to to upload a file to AWS S3.

View File

@ -62,7 +62,6 @@ export { default as Progress } from './blocks/Progress/Progress.js';
export { default as RadioSelector } from './blocks/RadioSelector/RadioSelector.js';
export { default as RatingSlider } from './blocks/RatingSlider/RatingSlider.js';
export { default as Result } from './blocks/Result/Result.js';
export { default as S3UploadButton } from './blocks/S3UploadButton/S3UploadButton.js';
export { default as Selector } from './blocks/Selector/Selector.js';
export { default as Sider } from './blocks/Sider/Sider.js';
export { default as Statistic } from './blocks/Statistic/Statistic.js';

View File

@ -0,0 +1,17 @@
/*
Copyright 2020-2021 Lowdefy, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export { default as AwsS3Bucket } from './connections/AwsS3Bucket/AwsS3Bucket.js';

View File

@ -1,7 +0,0 @@
import AwsS3Bucket from './connections/AwsS3Bucket/AwsS3Bucket.js';
export const connections = {
AwsS3Bucket,
};
export default { connections };

View File

@ -0,0 +1,38 @@
/* eslint-disable import/namespace */
/*
Copyright 2020-2021 Lowdefy, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import * as connections from './connections.js';
export default {
connections: Object.keys(connections),
requests: Object.keys(connections)
.map((connection) => Object.keys(connections[connection].requests))
.flat(),
};
// export default {
// connections: ['GoogleSheet'],
// requests: [
// GoogleSheetAppendMany,
// GoogleSheetAppendOne,
// GoogleSheetDeleteOne,
// GoogleSheetGetMany,
// GoogleSheetGetOne,
// GoogleSheetUpdateOne,
// GoogleSheetUpdateMany,
// ],
// };