Artur Paikin 1751241362 Release 4 years ago
..
src ceadd2e7f4 Google drive shared with me (#2758) 4 years ago
types 34d5d2c1b2 docs,website: tutorial on adding custom providers (#2310) 4 years ago
LICENSE ac07bcf0cb Move `ProviderView` to `@uppy/provider-views`. 6 years ago
README.md c7b097cd90 companion: add support to allow custom oauth credentials at request time (#2622) 4 years ago
package.json 1751241362 Release 4 years ago

README.md

@uppy/provider-views

CI status for Uppy tests CI status for Companion tests CI status for browser tests

View library for Uppy remote provider plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

const Plugin = require('@uppy/core/lib/plugin')
const { ProviderViews } = require('@uppy/provider-views')

class GoogleDrive extends Plugin {
  constructor () { /* snip */ }
  install () {
    this.view = new ProviderViews(this)
    // snip
  }

  onFirstRender () {
    return Promise.all([
      this.provider.fetchPreAuthToken(),
      this.view.getFolder('root', '/')
    ])
  }

  render (state) {
    return this.view.render(state)
  }
}

Installation

Unless you are creating a custom provider plugin, you do not need to install this.

$ npm install @uppy/provider-views

License

The MIT License.