UNPKG

@kvalev/vue-calendar-heatmap

Version:

A calendar heatmap Vuejs component built on SVG, inspired by github's contribution calendar graph

37 lines (30 loc) 734 B
import CalendarHeatmap from './components/CalendarHeatmap.vue' // Install the components export function install (Vue) { Vue.component('calendarHeatmap', CalendarHeatmap) /* -- Add more components here -- */ } // Expose the components export { CalendarHeatmap /* -- Add more components here -- */ } /* -- Plugin definition & Auto-install -- */ /* You shouldn't have to modify the code below */ // Plugin const plugin = { /* eslint-disable no-undef */ version: VERSION, install } export default plugin // Auto-install let GlobalVue = null if (typeof window !== 'undefined') { GlobalVue = window.Vue } else if (typeof global !== 'undefined') { GlobalVue = global.Vue } if (GlobalVue) { GlobalVue.use(plugin) }