Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass at s3AssetsAPI, now to wire up * Implemented asset mode switch in createImagesContext * Implemented asset mode switch in createFilesContext * Renamed function * Fixed bugs caused by trying to send a stream to S3, now sending buffer instead * Update packages/keystone/src/lib/context/createImagesContext.ts Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com> * Tidy up * Stream file upload * Fix urls * Init s3 at startup rather than per request * Move things * Remove a duplicated thing * Tests * Update schemas * Update CI config * Change bucket name * Make test bucket publicly readable * Fix CI config * Prettier * Apply suggestions from code review Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com> * Update other postgres user and password * Get image size if it's not stored in the metadata * Add test for uploading an image directly to s3 and adding it to a field via ref * Docs and changeset * comparable functionality * small examples schema update * Add removeOnDelete option * update yarn.lock * remove fast-glob duplicate from devDependencies * bump dotenv * small updates * adding/updating tests * use return, not break, fix broken S3 file deletion * work in progress changes * Fix things * WIP path prefix * Fix a thing * continue, not break * Fix preserve * Test fixes 1 * tests updates 2 * test fixes 3 * remove problematic import * yarn updates * typescript fixes * fix ordering * Revert error message change * store test files in temp dir * Run deletions at source before operation * Fix local file serving and basic example * base documentation updates * Fix s3 proxy things * Delete CHANGELOG.md * Use my_ to disambiguate naming formality * Config updates * Use my_ for examples * Small docs fix * update changelog to be more reflective of actual changes * rename addServerRoute to serverRoute * drop superfluous .assets object * rephrase unknown storage key error * updates to storage config * Update S3 example * S3 Assets example update * remove unused ref code * Add JSDoc comments to StorageConfig types * change word * Fix URLs * Update packages/core/package.json * update images ui * add target _blank to image anchor * UI updates * internal rename for consistency * UI updates * add transformName for both files and images * docs update * rename generatedUrl to generateUrl * Shorten config example * update generateUrl * small fixes * change files on S3 to octet streams * remove redundant null check * Update default generateName for files * remove redundant error checking * Apply suggestions from code review * move endpoint string manipulation out of request * yarn format * Update local s3 serving * Remove s3 proxy * changes inline documentation copy * Await deletions * fix images to store the data * change warning copy * update yarn.lock * yarn format * does this work? * Delete utils.ts * Update .changeset/unlucky-ducks-raise.md Co-authored-by: Josh Calder <josh@opensaas.com.au> * Update .changeset/unlucky-ducks-raise.md Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com> * update changeset * Update changeset Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com> Co-authored-by: mitchellhamilton <mitchell@hamil.town> Co-authored-by: Noviny BC <noviny@thinkmill.com.au> Co-authored-by: Daniel Cousens <dcousens@users.noreply.github.com> Co-authored-by: Noviny <ben@thinkmill.com.au> Co-authored-by: Josh Calder <josh.calder@thinkmill.com.au> Co-authored-by: gwyneplaine <cc.lee@live.com.au> Co-authored-by: Josh Calder <josh@opensaas.com.au>
- Loading branch information