Murderlon b3b68c0777 Release 3 年之前
..
src e6b474635b Fix "attempted to use private field on non-instance" in `SearchProvider` (#3201) 3 年之前
types 5630f7dc07 tools: enable linter for TypeScript (#2997) 3 年之前
LICENSE ac07bcf0cb Move `ProviderView` to `@uppy/provider-views`. 6 年之前
README.md c48064ba56 doc: lint JS code snippets (#2954) 3 年之前
package.json b3b68c0777 Release 3 年之前

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

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.