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

index.js « grafana_integration « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ade29dae69308039d41f99e657bf68451569d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Vue from 'vue';
import GrafanaIntegration from './components/grafana_integration.vue';
import store from './store';

export default () => {
  const el = document.querySelector('.js-grafana-integration');

  if (!el) return false;

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