Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « clusters_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51ad8769250fe9c54bb4854b8c23e802f65e9d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
    },
  });
};