Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
- Loading branch information
Showing
14 changed files
with
163 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Uppy } from '@uppy/core' | ||
import Dashboard from '@uppy/dashboard' | ||
import AwsS3 from '@uppy/aws-s3-multipart' | ||
|
||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
|
||
const uppy = new Uppy() | ||
.use(Dashboard, { target: '#app', inline: true }) | ||
.use(AwsS3, { | ||
limit: 2, | ||
companionUrl: process.env.VITE_COMPANION_URL, | ||
}) | ||
|
||
// Keep this here to access uppy in tests | ||
window.uppy = uppy |
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,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>dashboard-aws-multipart</title> | ||
<script defer type="module" src="app.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
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,16 @@ | ||
import { Uppy } from '@uppy/core' | ||
import Dashboard from '@uppy/dashboard' | ||
import AwsS3 from '@uppy/aws-s3' | ||
|
||
import '@uppy/core/dist/style.css' | ||
import '@uppy/dashboard/dist/style.css' | ||
|
||
const uppy = new Uppy() | ||
.use(Dashboard, { target: '#app', inline: true }) | ||
.use(AwsS3, { | ||
limit: 2, | ||
companionUrl: process.env.VITE_COMPANION_URL, | ||
}) | ||
|
||
// Keep this here to access uppy in tests | ||
window.uppy = uppy |
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,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>dashboard-aws</title> | ||
<script defer type="module" src="app.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe('Dashboard with @uppy/aws-s3-multipart', () => { | ||
beforeEach(() => { | ||
cy.visit('/dashboard-aws-multipart') | ||
cy.get('.uppy-Dashboard-input:first').as('file-input') | ||
}) | ||
|
||
it('should upload cat image successfully', () => { | ||
cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true }) | ||
cy.get('.uppy-StatusBar-actionBtn--upload').click() | ||
|
||
cy.get('.uppy-StatusBar-statusPrimary').should('contain', 'Complete') | ||
}) | ||
}) |
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,13 @@ | ||
describe('Dashboard with @uppy/aws-s3', () => { | ||
beforeEach(() => { | ||
cy.visit('/dashboard-aws') | ||
cy.get('.uppy-Dashboard-input:first').as('file-input') | ||
}) | ||
|
||
it('should upload cat image successfully', () => { | ||
cy.get('@file-input').selectFile(['cypress/fixtures/images/cat.jpg', 'cypress/fixtures/images/traffic.jpg'], { force:true }) | ||
cy.get('.uppy-StatusBar-actionBtn--upload').click() | ||
|
||
cy.get('.uppy-StatusBar-statusPrimary').should('contain', 'Complete') | ||
}) | ||
}) |
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