Skip to content
Snippets Groups Projects
Commit 61389610 authored by Mark Florian's avatar Mark Florian
Browse files

Add client-side entry points

parent 4eb4ff3e
No related merge requests found
import Vue from 'vue';
import DependenciesApp from './components/app.vue';
import createStore from './store';
export default () => {
const el = document.querySelector('#js-dependencies-app');
const { endpoint, emptyStateSvgPath, documentationPath } = el.dataset;
const store = createStore();
return new Vue({
el,
store,
components: {
DependenciesApp,
},
render(createElement) {
return createElement(DependenciesApp, {
props: {
endpoint,
emptyStateSvgPath,
documentationPath,
},
});
},
});
};
import initDependenciesApp from 'ee/dependencies';
document.addEventListener('DOMContentLoaded', () => {
if (!gon.features.billOfMaterials) {
return;
}
initDependenciesApp();
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment