diff options
Diffstat (limited to 'app/assets/javascripts/monitoring/monitoring_bundle.js')
-rw-r--r-- | app/assets/javascripts/monitoring/monitoring_bundle.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/app/assets/javascripts/monitoring/monitoring_bundle.js b/app/assets/javascripts/monitoring/monitoring_bundle.js deleted file mode 100644 index 2bbf9ef9d78..00000000000 --- a/app/assets/javascripts/monitoring/monitoring_bundle.js +++ /dev/null @@ -1,32 +0,0 @@ -import Vue from 'vue'; -import { GlToast } from '@gitlab/ui'; -import Dashboard from '~/monitoring/components/dashboard.vue'; -import { parseBoolean } from '~/lib/utils/common_utils'; -import { getParameterValues } from '~/lib/utils/url_utility'; -import store from './stores'; - -Vue.use(GlToast); - -export default (props = {}) => { - const el = document.getElementById('prometheus-graphs'); - - if (el && el.dataset) { - const [currentDashboard] = getParameterValues('dashboard'); - - // eslint-disable-next-line no-new - new Vue({ - el, - store, - render(createElement) { - return createElement(Dashboard, { - props: { - ...el.dataset, - currentDashboard, - hasMetrics: parseBoolean(el.dataset.hasMetrics), - ...props, - }, - }); - }, - }); - } -}; |