summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/grafana_integration/index.js
blob: a93edab4388c3cb3d78b1cc8451e4582951b1cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Vue from 'vue';
import store from './store';
import GrafanaIntegration from './components/grafana_integration.vue';

export default () => {
  const el = document.querySelector('.js-grafana-integration');
  return new Vue({
    el,
    store: store(el.dataset),
    render(createElement) {
      return createElement(GrafanaIntegration);
    },
  });
};