debian-mirror-gitlab/app/assets/javascripts/clusters_list/index.js

21 lines
453 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
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-23 00:09:42 +05:30
store: createStore(entryPoint.dataset),
2020-04-08 14:13:33 +05:30
render(createElement) {
return createElement(Clusters);
},
});
};