
import DoBar from '../packages/DoBar/index.js'
import DoLine from '../packages/DoLine/index.js'
import DoLineAndBar from '../packages/DoLineAndBar/index.js'
import DoMap from '../packages/DoMap/index.js'
import DoPie from '../packages/DoPie/index.js'

const components = [
    DoLine,
    DoBar,
    DoPie,
    DoLineAndBar,
    DoMap
]

const install = function (Vue) {
    components.forEach(component => {
        Vue.component(component.name, component)
    })
}

if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    version: "0.2.5",
    install,
    DoLine,
    DoBar,
    DoPie,
    DoLineAndBar,
    DoMap
}