mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
fix: Move S3UploadButton to plugin-aws.
This commit is contained in:
parent
64a076cdc9
commit
540aa035d2
@ -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.
|
||||
|
@ -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';
|
||||
|
17
packages/plugins/plugins/plugin-aws/src/connections.js
Normal file
17
packages/plugins/plugins/plugin-aws/src/connections.js
Normal 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';
|
@ -1,7 +0,0 @@
|
||||
import AwsS3Bucket from './connections/AwsS3Bucket/AwsS3Bucket.js';
|
||||
|
||||
export const connections = {
|
||||
AwsS3Bucket,
|
||||
};
|
||||
|
||||
export default { connections };
|
38
packages/plugins/plugins/plugin-aws/src/types.js
Normal file
38
packages/plugins/plugins/plugin-aws/src/types.js
Normal 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,
|
||||
// ],
|
||||
// };
|
Loading…
x
Reference in New Issue
Block a user