forked from DevinoSolutions/upup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merging backend logic (DevinoSolutions#252)
* feat(security): implemented pre-signed URL upload approach BREAKING CHANGE: Replaced direct cloud storage configuration with pre-signed URLs - Added pre-signed URL endpoint configuration - Removed cloud storage credentials from frontend - Deleted cloud storage config files - Updated upload logic to use pre-signed URLs - Simplified configuration interface * fix(upload): resolved CORS issues in pre-signed URL upload - Added CORS mode to uploadObject fetch request - Prettier fixes BREAKING CHANGE: Requires S3 bucket CORS configuration * fix(app): build and prettier fixes * chore(app): undoing unnecessary commit changes * feat(storage): implemented and refined cloud storage SDK integrations - Added client-side SDK approach for cloud storage providers - Implemented AWS integration with presigned URLs - Added credential refresh and SAS token management - Implemented progress tracking and retry mechanisms - Fixed type errors and improve error handling - Removed unused code and align with latest SDK versions BREAKING CHANGE: Storage configuration requires provider-specific SDK setup * feat(storage): implemented Azure SDK integrations - Added client-side SDK approach for Azure provider - Implemented Azure integration with presigned URLs - Implemented progress tracking - Removed unused code and align with latest SDK versions * chore(app): removed todo from commit * refactor(app): streamline storageConfig prop values - Storage config only requires `provider` and `tokenEndpoint` values * feat(storage): implemented DO SDK integrations - Added client-side SDK approach for DO provider - Implemented DO integration with presigned URLs * feat(app): s3 compliant support - Unified s3 client-side upload approach for S3 complaint storage providers * feat(app): merged azure and s3 SDK into one - preview url for uploaded files * fix(app): fixed console warning about ETag header - made ETag header conditional - removed `previewUrl` from object returned to FE * feat(app): backend logic - changed folder structure to accommodate BE logic * chore(app): build fixes and clean up * chore(app): better path resolutions and prettier fixes * feat(app): dual builds * feat(app): successful merged builds * fix(app): prettier fixes * fix(app): review fixes - undid setting `Content-Type ` header when sending fetch request from `uploadObject` - improved logic for `handleError` - improved validation of required configuration - Enhanced error handling by including `xhr.status` and `xhr.statusText` when reporting error from `uploadWithProgress` - fixed issue with build failing when temp dist directory exists
- Loading branch information
1 parent
6673ed3
commit b77719f
Showing
89 changed files
with
2,734 additions
and
1,815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"chrome": 100 | ||
"node": "14", | ||
"browsers": ">0.25%, not ie 11, not op_mini all" | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
["@babel/preset-react", { "runtime": "automatic" }] | ||
"@babel/preset-react", | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
["@babel/plugin-proposal-optional-chaining", { "loose": false }], | ||
[ | ||
"module-resolver", | ||
{ | ||
"extensions": [".ts", ".tsx"], | ||
"root": "./src", | ||
"alias": { | ||
"#components": "./src/components", | ||
"#types": ["./src/types"], | ||
"#hooks": ["./src/hooks"], | ||
"#lib": ["./src/lib"] | ||
} | ||
} | ||
], | ||
[ | ||
"@emotion", | ||
{ | ||
"sourceMap": true, | ||
"autoLabel": "dev-only", | ||
"labelFormat": "[local]", | ||
"cssPropOptimization": true | ||
} | ||
] | ||
] | ||
"env": { | ||
"node": { | ||
"plugins": [ | ||
[ | ||
"babel-plugin-transform-import-ignore", | ||
{ | ||
"patterns": [ | ||
"*.css", | ||
"react", | ||
"react-dom", | ||
"framer-motion" | ||
] | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,4 @@ tsconfig.json | |
postcss.config.js | ||
tailwind.config.js | ||
tsdx.config.js | ||
dist/hooks/useUpup.d.ts | ||
dist/version.ts | ||
!dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.