gitlab-org--gitlab-foss/app/assets/javascripts/blob/notebook/index.js

20 lines
428 B
JavaScript

import Vue from 'vue';
import NotebookViewer from './notebook_viewer.vue';
export default () => {
const el = document.getElementById('js-notebook-viewer');
return new Vue({
el,
provide: {
relativeRawPath: el.dataset.relativeRawPath,
},
render(createElement) {
return createElement(NotebookViewer, {
props: {
endpoint: el.dataset.endpoint,
},
});
},
});
};