1.0.2 • Published 4 years ago

@sme-uploader/provider-views v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

@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

License

The MIT License.