uppy/packages/@uppy/provider-views
2021-08-24 16:13:19 +02:00
..
src build: add stylelint (#3124) 2021-08-24 01:37:57 +01:00
types tools: enable linter for TypeScript (#2997) 2021-07-13 14:28:14 +02:00
LICENSE Move ProviderView to @uppy/provider-views. 2018-06-14 16:31:19 +02:00
package.json Release 2021-08-24 16:13:19 +02:00
README.md doc: lint JS code snippets (#2954) 2021-07-04 19:32:50 +02: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

import Plugin from '@uppy/core/lib/plugin'
import { ProviderViews } from '@uppy/provider-views'

class GoogleDrive extends UIPlugin {
  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.