mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 03:08:34 +00:00
update docs, tests, and examples with companionUrl rename
This commit is contained in:
parent
f4e558bf94
commit
adeb2fecfa
30 changed files with 76 additions and 76 deletions
|
|
@ -10,7 +10,7 @@ const uppy = Uppy({
|
|||
})
|
||||
|
||||
uppy.use(GoogleDrive, {
|
||||
serverUrl: 'http://localhost:3020'
|
||||
companionUrl: 'http://localhost:3020'
|
||||
})
|
||||
uppy.use(Webcam)
|
||||
uppy.use(Dashboard, {
|
||||
|
|
@ -19,5 +19,5 @@ uppy.use(Dashboard, {
|
|||
plugins: ['GoogleDrive', 'Webcam']
|
||||
})
|
||||
uppy.use(AwsS3, {
|
||||
serverUrl: 'http://localhost:3020'
|
||||
companionUrl: 'http://localhost:3020'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ const uppy = Uppy({
|
|||
proudlyDisplayPoweredByUppy: true,
|
||||
note: '2 files, images and video only'
|
||||
})
|
||||
.use(GoogleDrive, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Instagram, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Url, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(GoogleDrive, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Instagram, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Url, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Webcam, { target: Dashboard })
|
||||
.use(Tus, { endpoint: TUS_ENDPOINT })
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = class MyCustomProvider extends Plugin {
|
|||
// writing out the key explicitly for readability the key used to store
|
||||
// the provider instance must be equal to this.id.
|
||||
this[this.id] = new Provider(uppy, {
|
||||
serverUrl: this.opts.serverUrl,
|
||||
companionUrl: this.opts.companionUrl,
|
||||
provider: 'mycustomprovider'
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ const uppy = Uppy({
|
|||
})
|
||||
|
||||
uppy.use(GoogleDrive, {
|
||||
serverUrl: 'http://localhost:3020'
|
||||
companionUrl: 'http://localhost:3020'
|
||||
})
|
||||
|
||||
uppy.use(MyCustomProvider, {
|
||||
serverUrl: 'http://localhost:3020'
|
||||
companionUrl: 'http://localhost:3020'
|
||||
})
|
||||
|
||||
uppy.use(Dashboard, {
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ const uppy = Uppy({
|
|||
proudlyDisplayPoweredByUppy: true,
|
||||
note: '2 files, images and video only'
|
||||
})
|
||||
.use(GoogleDrive, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Instagram, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Dropbox, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Url, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(GoogleDrive, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Instagram, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Dropbox, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Url, { target: Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Webcam, { target: Dashboard })
|
||||
.use(Tus, { endpoint: TUS_ENDPOINT })
|
||||
// .use(XHRUpload, { endpoint: XHR_ENDPOINT })
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ uppy.use(Dashboard, {
|
|||
})
|
||||
|
||||
// No client side changes needed!
|
||||
uppy.use(AwsS3, { serverUrl: '/companion' })
|
||||
uppy.use(AwsS3, { companionUrl: '/companion' })
|
||||
|
|
|
|||
2
examples/react-example/App.js
vendored
2
examples/react-example/App.js
vendored
|
|
@ -16,7 +16,7 @@ module.exports = class App extends React.Component {
|
|||
|
||||
this.uppy = new Uppy({ id: 'uppy1', autoProceed: true, debug: true })
|
||||
.use(Tus, { endpoint: 'https://master.tus.io/files/' })
|
||||
.use(GoogleDrive, { serverUrl: 'https://companion.uppy.io' })
|
||||
.use(GoogleDrive, { companionUrl: 'https://companion.uppy.io' })
|
||||
|
||||
this.uppy2 = new Uppy({ id: 'uppy2', autoProceed: false, debug: true })
|
||||
.use(Tus, { endpoint: 'https://master.tus.io/files/' })
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
<script>
|
||||
const uppy = Uppy.Core({debug: true, autoProceed: false})
|
||||
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
||||
.use(Uppy.Instagram, { target: Uppy.Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Uppy.GoogleDrive, { target: Uppy.Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Uppy.Instagram, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Uppy.GoogleDrive, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
|
||||
.use(Uppy.Tus, { endpoint: 'https://master.tus.io/files/' })
|
||||
|
||||
uppy.on('success', (fileCount) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue