20 lines
453 B
JavaScript
20 lines
453 B
JavaScript
import Vue from 'vue';
|
|
import Clusters from './components/clusters.vue';
|
|
import { createStore } from './store';
|
|
|
|
export default () => {
|
|
const entryPoint = document.querySelector('#js-clusters-list-app');
|
|
|
|
if (!entryPoint) {
|
|
return;
|
|
}
|
|
|
|
// eslint-disable-next-line no-new
|
|
new Vue({
|
|
el: '#js-clusters-list-app',
|
|
store: createStore(entryPoint.dataset),
|
|
render(createElement) {
|
|
return createElement(Clusters);
|
|
},
|
|
});
|
|
};
|