uppy/packages/@uppy/provider-views
Artur Paikin 4b782ffbbb Release
2021-06-30 23:07:21 +01:00
..
src Google drive shared with me (#2758) 2021-03-31 10:12:24 +01:00
types docs,website: tutorial on adding custom providers (#2310) 2020-07-03 17:22:00 +01:00
LICENSE Move ProviderView to @uppy/provider-views. 2018-06-14 16:31:19 +02:00
package.json Release 2021-06-30 23:07:21 +01:00
README.md companion: add support to allow custom oauth credentials at request time (#2622) 2021-01-15 10:50:12 +01:00

@uppy/provider-views

Uppy logo: a superman puppy in a pink suit

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.