2017-04-05 21:13:06 -04:00
|
|
|
import Vue from 'vue';
|
2017-05-10 07:29:33 -04:00
|
|
|
import issuableApp from './components/app.vue';
|
2019-04-04 20:15:56 -04:00
|
|
|
import { parseIssuableData } from './utils/parse_data';
|
2017-04-05 21:13:06 -04:00
|
|
|
|
2018-08-23 16:53:35 -04:00
|
|
|
export default function initIssueableApp() {
|
2017-05-12 05:11:15 -04:00
|
|
|
return new Vue({
|
|
|
|
el: document.getElementById('js-issuable-app'),
|
|
|
|
components: {
|
|
|
|
issuableApp,
|
|
|
|
},
|
|
|
|
render(createElement) {
|
|
|
|
return createElement('issuable-app', {
|
2019-04-04 20:15:56 -04:00
|
|
|
props: parseIssuableData(),
|
2017-05-12 05:11:15 -04:00
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
2018-08-23 16:53:35 -04:00
|
|
|
}
|