mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 04:06:53 +08:00
27 lines
672 B
JavaScript
27 lines
672 B
JavaScript
/* global I18n */
|
|
|
|
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import ProtocolContainer from '../../vue/protocol/container.vue';
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.prototype.i18n = window.I18n;
|
|
Vue.prototype.ActiveStoragePreviews = window.ActiveStoragePreviews;
|
|
|
|
window.initProtocolComponent = () => {
|
|
Vue.prototype.dateFormat = $('#protocolContainer').data('date-format');
|
|
|
|
new Vue({
|
|
el: '#protocolContainer',
|
|
components: {
|
|
'protocol-container': ProtocolContainer
|
|
},
|
|
data() {
|
|
return {
|
|
protocolUrl: $('#protocolContainer').data('protocol-url')
|
|
};
|
|
}
|
|
});
|
|
};
|
|
|
|
initProtocolComponent();
|