debian-mirror-gitlab/app/assets/javascripts/ci_lint/index.js
2020-11-24 15:15:51 +05:30

18 lines
404 B
JavaScript

import Vue from 'vue';
import CILint from './components/ci_lint.vue';
export default (containerId = '#js-ci-lint') => {
const containerEl = document.querySelector(containerId);
const { endpoint } = containerEl.dataset;
return new Vue({
el: containerEl,
render(createElement) {
return createElement(CILint, {
props: {
endpoint,
},
});
},
});
};