uppy/packages/@uppy/provider-views
Renée Kooi 16686fc0ca
Release
2020-07-15 13:59:56 +02:00
..
src provider-views: handle all plugin state in provider-views (#2318) 2020-06-15 14:39:54 +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 2020-07-15 13:59:56 +02:00
README.md docs,website: tutorial on adding custom providers (#2310) 2020-07-03 17:22:00 +01:00

@uppy/provider-views

Uppy logo: a superman puppy in a pink suit

Build Status

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 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 --save

License

The MIT License.