2021-09-08 06:10:46 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import App from './components/app.vue';
|
2021-10-19 12:12:07 +00:00
|
|
|
import { createRouter } from './router';
|
|
|
|
import { createApolloProvider } from './graphql/provider';
|
2021-09-08 06:10:46 +00:00
|
|
|
|
|
|
|
export const initWorkItemsRoot = () => {
|
|
|
|
const el = document.querySelector('#js-work-items');
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
2021-10-19 12:12:07 +00:00
|
|
|
router: createRouter(el.dataset.fullPath),
|
|
|
|
apolloProvider: createApolloProvider(),
|
2021-09-08 06:10:46 +00:00
|
|
|
render(createElement) {
|
|
|
|
return createElement(App);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|