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`
I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.
` } install () { const caller = this this.el = this.render(this.core.state) this.target = this.getTarget(this.opts.target, caller, this.el) } }