25 lines
576 B
JavaScript
25 lines
576 B
JavaScript
|
import Vue from 'vue';
|
||
|
import App from './components/app.vue';
|
||
|
import createStore from './store';
|
||
|
|
||
|
export default () => {
|
||
|
const element = document.getElementById('js-releases-page');
|
||
|
|
||
|
return new Vue({
|
||
|
el: element,
|
||
|
store: createStore(),
|
||
|
components: {
|
||
|
App,
|
||
|
},
|
||
|
render(createElement) {
|
||
|
return createElement('app', {
|
||
|
props: {
|
||
|
projectId: element.dataset.projectId,
|
||
|
documentationLink: element.dataset.documentationPath,
|
||
|
illustrationPath: element.dataset.illustrationPath,
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
});
|
||
|
};
|