mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 12:13:53 +00:00
34 lines
731 B
JavaScript
34 lines
731 B
JavaScript
import Plugin from './Plugin'
|
||
import yo from 'yo-yo'
|
||
|
||
/**
|
||
* Dummy
|
||
*
|
||
*/
|
||
export default class Dummy extends Plugin {
|
||
constructor (core, opts) {
|
||
super(core, opts)
|
||
this.type = 'acquirer'
|
||
this.name = 'Dummy'
|
||
|
||
// set default options
|
||
const defaultOptions = {}
|
||
|
||
// merge default options with the ones set by user
|
||
this.opts = Object.assign({}, defaultOptions, opts)
|
||
}
|
||
|
||
render () {
|
||
return yo`
|
||
<div class="wow-this-works">
|
||
I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.
|
||
</div>
|
||
`
|
||
}
|
||
|
||
install () {
|
||
const caller = this
|
||
this.el = this.render(this.core.state)
|
||
this.target = this.getTarget(this.opts.target, caller, this.el)
|
||
}
|
||
}
|