debian-mirror-gitlab/app/assets/javascripts/grafana_integration/index.js
2023-07-09 08:55:56 +05:30

17 lines
387 B
JavaScript

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);
},
});
};