mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
12 lines
510 B
JavaScript
12 lines
510 B
JavaScript
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
|
import ProtocolFileImportModal from '../../vue/protocol_import/file_import_modal.vue';
|
|
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
|
|
|
window.initProtocolFileImportModalComponent = () => {
|
|
const app = createApp({});
|
|
app.component('ProtocolFileImportModal', ProtocolFileImportModal);
|
|
app.config.globalProperties.i18n = window.I18n;
|
|
mountWithTurbolinks(app, '#protocolFileImportModal');
|
|
};
|
|
|
|
initProtocolFileImportModalComponent();
|