blob: 3be2b4a74227d7dca3bc965a5a6d06686daf7a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import Vue from 'vue';
import ProjectRunnersApp from './project_runners_app.vue';
export const initProjectRunners = (selector = '#js-project-runners') => {
const el = document.querySelector(selector);
if (!el) {
return null;
}
const { projectFullPath } = el.dataset;
return new Vue({
el,
render(h) {
return h(ProjectRunnersApp, {
props: {
projectFullPath,
},
});
},
});
};
|