@sme-uploader/provider-views
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @sme-uploader/provider-views

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

188 kB

Total Files

46

Last publish

Collaborators

  • sme-uploader