@lowdefy/plugin-aws
Version:
To securely upload files to S3, the `S3UploadButton` or `S3UploadPhoto` blocks can be used. S3 file downloads can be done by getting a presigned URL using a `AwsS3PresignedGetObject` request and opening the URL in a new tab which will result in the browse
33 lines (29 loc) • 1.17 kB
JavaScript
/* eslint-disable import/namespace */ /*
Copyright 2020-2024 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';
import * as blocks from './blocks.js';
const icons = {};
const styles = {};
Object.keys(blocks).forEach((block)=>{
icons[block] = blocks[block].meta.icons ?? [];
styles[block] = blocks[block].meta.styles ?? [];
});
export default {
blocks: Object.keys(blocks),
icons,
styles: {
default: [],
...styles
},
connections: Object.keys(connections),
requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)).flat()
};