|
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
types | 3 years ago | |
CHANGELOG.md | 1 year ago | |
LICENSE | 6 years ago | |
README.md | 2 years ago | |
package.json | 1 year ago |
View library for Uppy remote provider plugins.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
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)
}
}
Unless you are creating a custom provider plugin, you do not need to install this.
$ npm install @uppy/provider-views