gitlab-org--gitlab-foss/app/assets/javascripts/releases/index.js

25 lines
576 B
JavaScript
Raw Normal View History

2018-12-20 04:31:32 -05:00
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,
2018-12-20 04:31:32 -05:00
documentationLink: element.dataset.documentationPath,
illustrationPath: element.dataset.illustrationPath,
},
});
},
});
};