@sme-uploader/provider-views
v1.0.2
Published
View library for SME Uploader remote provider plugins.
Downloads
2
Readme
@sme-uploader/provider-views
View library for SME Uploader remote provider plugins.
Example
const Plugin = require('@sme-uploader/core/lib/plugin')
const ProviderViews = require('@sme-uploader/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 @sme-uploader/provider-views