2017-08-17 22:00:37 +05:30
|
|
|
import Vue from 'vue';
|
2019-12-04 20:38:33 +05:30
|
|
|
import { initSidebarTracking } from 'ee_else_ce/event_tracking/issue_sidebar';
|
2017-09-10 17:25:29 +05:30
|
|
|
import issuableApp from './components/app.vue';
|
2019-07-07 11:18:12 +05:30
|
|
|
import { parseIssuableData } from './utils/parse_data';
|
2017-08-17 22:00:37 +05:30
|
|
|
import '../vue_shared/vue_resource_interceptor';
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
export default function initIssueableApp() {
|
2017-09-10 17:25:29 +05:30
|
|
|
return new Vue({
|
|
|
|
el: document.getElementById('js-issuable-app'),
|
|
|
|
components: {
|
|
|
|
issuableApp,
|
|
|
|
},
|
2019-12-04 20:38:33 +05:30
|
|
|
mounted() {
|
|
|
|
initSidebarTracking();
|
|
|
|
},
|
2017-09-10 17:25:29 +05:30
|
|
|
render(createElement) {
|
|
|
|
return createElement('issuable-app', {
|
2019-07-07 11:18:12 +05:30
|
|
|
props: parseIssuableData(),
|
2017-09-10 17:25:29 +05:30
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
2018-11-08 19:23:39 +05:30
|
|
|
}
|