2020-03-04 01:08:23 -05:00
|
|
|
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',
|
2020-06-10 14:09:15 -04:00
|
|
|
store: createStore(entryPoint.dataset),
|
2020-03-04 01:08:23 -05:00
|
|
|
render(createElement) {
|
|
|
|
return createElement(Clusters);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|