@sme-uploader/provider-views

View library for SME Uploader remote provider plugins.

Usage no npm install needed!

<script type="module">
  import smeUploaderProviderViews from 'https://cdn.skypack.dev/@sme-uploader/provider-views';
</script>

README

@sme-uploader/provider-views

SME Uploader logo Build Status

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.