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

load_clusters.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: 98bc588089898fc71f780cf8c2ca0942495618f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Clusters from './components/clusters.vue';
import { createStore } from './store';

export default Vue => {
  const el = document.querySelector('#js-clusters-list-app');

  if (!el) {
    return null;
  }

  return new Vue({
    el,
    store: createStore(el.dataset),
    render(createElement) {
      return createElement(Clusters);
    },
  });
};