2018-12-13 13:39:08 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import JobApp from './components/job_app.vue';
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const element = document.getElementById('js-job-vue-app');
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el: element,
|
|
|
|
components: {
|
|
|
|
JobApp,
|
|
|
|
},
|
|
|
|
render(createElement) {
|
|
|
|
return createElement('job-app', {
|
|
|
|
props: {
|
2019-07-07 11:18:12 +05:30
|
|
|
deploymentHelpUrl: element.dataset.deploymentHelpUrl,
|
2018-12-13 13:39:08 +05:30
|
|
|
runnerHelpUrl: element.dataset.runnerHelpUrl,
|
|
|
|
runnerSettingsUrl: element.dataset.runnerSettingsUrl,
|
|
|
|
endpoint: element.dataset.endpoint,
|
|
|
|
pagePath: element.dataset.buildOptionsPagePath,
|
|
|
|
logState: element.dataset.buildOptionsLogState,
|
|
|
|
buildStatus: element.dataset.buildOptionsBuildStatus,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|