debian-mirror-gitlab/app/assets/javascripts/blob/notebook/index.js
2020-04-08 14:13:33 +05:30

17 lines
355 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,
render(createElement) {
return createElement(NotebookViewer, {
props: {
endpoint: el.dataset.endpoint,
},
});
},
});
};