From adeb2fecfa78babc7320aef8bca48712fb61fa3d Mon Sep 17 00:00:00 2001 From: Ifedapo Olarewaju Date: Mon, 15 Apr 2019 14:56:37 +0100 Subject: [PATCH] update docs, tests, and examples with companionUrl rename --- README.md | 4 ++-- examples/aws-companion/main.js | 4 ++-- examples/bundled/index.js | 6 +++--- .../custom-provider/client/MyCustomProvider.js | 2 +- examples/custom-provider/client/main.js | 4 ++-- examples/dev/main.js | 8 ++++---- examples/digitalocean-spaces/main.js | 2 +- examples/react-example/App.js | 2 +- examples/uppy-with-companion/client/index.html | 4 ++-- packages/uppy/types/uppy-tests.ts | 4 ++-- test/endtoend/create-react-app/src/App.js | 2 +- test/endtoend/providers/main.js | 6 +++--- test/endtoend/typescript/main.ts | 8 ++++---- test/endtoend/url-plugin/main.js | 2 +- website/src/docs/aws-s3-multipart.md | 4 ++-- website/src/docs/aws-s3.md | 6 +++--- website/src/docs/dropbox.md | 6 +++--- website/src/docs/google-drive.md | 6 +++--- website/src/docs/instagram.md | 6 +++--- website/src/docs/providers.md | 10 +++++----- website/src/docs/robodog-picker.md | 4 ++-- website/src/docs/transloadit.md | 18 +++++++++--------- website/src/docs/url.md | 4 ++-- website/src/examples/dashboard/app.es6 | 8 ++++---- website/src/examples/dashboard/index.ejs | 6 +++--- website/src/examples/transloadit/app.es6 | 4 ++-- website/src/examples/transloadit/index.ejs | 2 +- website/src/frontpage-code-sample.ejs | 2 +- website/themes/uppy/layout/index.ejs | 6 +++--- .../layout/partials/frontpage-code-sample.html | 2 +- 30 files changed, 76 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index dd2873782..67e0ca584 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ const Tus = require('@uppy/tus') const uppy = Uppy({ autoProceed: false }) .use(Dashboard, { trigger: '#select-files' }) - .use(GoogleDrive, { target: Dashboard, serverUrl: 'https://companion.uppy.io' }) - .use(Instagram, { target: Dashboard, serverUrl: 'https://companion.uppy.io' }) + .use(GoogleDrive, { target: Dashboard, companionUrl: 'https://companion.uppy.io' }) + .use(Instagram, { target: Dashboard, companionUrl: 'https://companion.uppy.io' }) .use(Webcam, { target: Dashboard }) .use(Tus, { endpoint: 'https://master.tus.io/files/' }) .on('complete', (result) => { diff --git a/examples/aws-companion/main.js b/examples/aws-companion/main.js index 80c04e255..6a8ef6247 100644 --- a/examples/aws-companion/main.js +++ b/examples/aws-companion/main.js @@ -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' }) diff --git a/examples/bundled/index.js b/examples/bundled/index.js index e3784b640..20b2f69f7 100644 --- a/examples/bundled/index.js +++ b/examples/bundled/index.js @@ -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 }) diff --git a/examples/custom-provider/client/MyCustomProvider.js b/examples/custom-provider/client/MyCustomProvider.js index 2c900e205..4cb2f3dbf 100644 --- a/examples/custom-provider/client/MyCustomProvider.js +++ b/examples/custom-provider/client/MyCustomProvider.js @@ -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' }) diff --git a/examples/custom-provider/client/main.js b/examples/custom-provider/client/main.js index 3a887e6d0..08d01465a 100644 --- a/examples/custom-provider/client/main.js +++ b/examples/custom-provider/client/main.js @@ -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, { diff --git a/examples/dev/main.js b/examples/dev/main.js index f1e5d22b7..ec4303d0d 100644 --- a/examples/dev/main.js +++ b/examples/dev/main.js @@ -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 }) diff --git a/examples/digitalocean-spaces/main.js b/examples/digitalocean-spaces/main.js index 6b507d384..2a38693d9 100644 --- a/examples/digitalocean-spaces/main.js +++ b/examples/digitalocean-spaces/main.js @@ -12,4 +12,4 @@ uppy.use(Dashboard, { }) // No client side changes needed! -uppy.use(AwsS3, { serverUrl: '/companion' }) +uppy.use(AwsS3, { companionUrl: '/companion' }) diff --git a/examples/react-example/App.js b/examples/react-example/App.js index 50d80d8d8..4789f8bce 100644 --- a/examples/react-example/App.js +++ b/examples/react-example/App.js @@ -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/' }) diff --git a/examples/uppy-with-companion/client/index.html b/examples/uppy-with-companion/client/index.html index dc540fbeb..9daf1f8c8 100644 --- a/examples/uppy-with-companion/client/index.html +++ b/examples/uppy-with-companion/client/index.html @@ -12,8 +12,8 @@