uppy/packages/@uppy/provider-views
Artur Paikin d07d27422c Release
2020-10-02 05:41:02 +01:00
..
src Add support for uploading nested folders (#2557) 2020-09-26 13:28:16 +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-10-02 05:41:02 +01:00
README.md Remove the --save flag (#2503) 2020-09-04 14:32:21 +02: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

License

The MIT License.