blob: 18f7cf0c3ab8d0f1e2b0427e891a51e39cba13b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import Vue from 'vue';
import DevopsScore from './components/devops_score.vue';
export default () => {
const el = document.getElementById('js-devops-score');
if (!el) return false;
const { devopsScoreMetrics, devopsReportDocsPath, noDataImagePath } = el.dataset;
return new Vue({
el,
provide: {
devopsScoreMetrics: JSON.parse(devopsScoreMetrics),
devopsReportDocsPath,
noDataImagePath,
},
render(h) {
return h(DevopsScore);
},
});
};
|