summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/grafana_integration/index.js
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);
    },
  });
};