update docs, tests, and examples with companionUrl rename

This commit is contained in:
Ifedapo Olarewaju 2019-04-15 14:56:37 +01:00
parent f4e558bf94
commit adeb2fecfa
30 changed files with 76 additions and 76 deletions

View file

@ -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'
})

View file

@ -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 })

View file

@ -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'
})

View file

@ -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, {

View file

@ -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 })

View file

@ -12,4 +12,4 @@ uppy.use(Dashboard, {
})
// No client side changes needed!
uppy.use(AwsS3, { serverUrl: '/companion' })
uppy.use(AwsS3, { companionUrl: '/companion' })

View file

@ -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/' })

View file

@ -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) => {