-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage-browser): add storage browser (#6175)
Co-authored-by: Chris F <[email protected]> Co-authored-by: Jordan Van Ness <[email protected]> Co-authored-by: Scott Rees <[email protected]> Co-authored-by: Pranav Malewadkar <[email protected]> Co-authored-by: ManojNB <[email protected]> Co-authored-by: Jim Blanchard <[email protected]> Co-authored-by: Hui Zhao <[email protected]> Co-authored-by: Hui Zhao <[email protected]> Co-authored-by: Ashwin Kumar <[email protected]> Co-authored-by: Ashwin Kumar <[email protected]> Co-authored-by: ashika112 <[email protected]> Co-authored-by: Danny Banks <[email protected]> Co-authored-by: dindjarinjs <[email protected]> Co-authored-by: AllanZhengYP <[email protected]> Co-authored-by: Joon Choi <[email protected]> Co-authored-by: Dustin <[email protected]> Co-authored-by: Chris Fang <[email protected]>
- Loading branch information
1 parent
526b0f3
commit 70971f3
Showing
516 changed files
with
31,072 additions
and
678 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
"@aws-amplify/ui-react-storage": minor | ||
"@aws-amplify/ui-react": minor | ||
"@aws-amplify/ui-react-core": minor | ||
"@aws-amplify/ui": minor | ||
--- | ||
|
||
feat(storage-browser): add `StorageBrowser` and `createStorageBrowser` | ||
|
||
```tsx | ||
import { Amplify } from 'aws-amplify'; | ||
|
||
import { StorageBrowser } from '@aws-amplify/ui-react-storage'; | ||
import '@aws-amplify/ui-react-storage/styles.css'; | ||
|
||
import config from './aws-exports'; | ||
|
||
Amplify.configure(config); | ||
|
||
function App() { | ||
return <StorageBrowser /> | ||
} | ||
``` | ||
|
||
```tsx | ||
import { Amplify } from 'aws-amplify'; | ||
|
||
import { | ||
createAmplifyAuthAdapter, | ||
createStorageBrowser, | ||
} from '@aws-amplify/ui-react-storage/browser'; | ||
import '@aws-amplify/ui-react-storage/styles.css'; | ||
|
||
import config from './aws-exports'; | ||
|
||
Amplify.configure(config); | ||
|
||
const { StorageBrowser } = createStorageBrowser({ | ||
config: createAmplifyAuthAdapter(), | ||
}); | ||
|
||
function App() { | ||
return <StorageBrowser /> | ||
} | ||
``` |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
NEXT_PUBLIC_BACKEND_API_URL= | ||
# Set this .env to the beta/gamma endpoints to test locally | ||
NEXT_PUBLIC_STREAMING_API_URL= | ||
NEXT_PUBLIC_BACKEND_API_REGION= | ||
NEXT_PUBLIC_DEBUG= | ||
|
||
# StorageBrowser Managed Auth | ||
NEXT_PUBLIC_MANAGED_AUTH_ACCOUNT_ID= | ||
NEXT_PUBLIC_MANAGED_AUTH_ENDPOINT= | ||
NEXT_PUBLIC_MANAGED_AUTH_REGION= |
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,3 +1,3 @@ | ||
{ | ||
"extends": ["next", "next/babel", "next/core-web-vitals"] | ||
"extends": ["next", "next/core-web-vitals"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.