mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
23 lines
593 B
JavaScript
23 lines
593 B
JavaScript
|
|
import { createApp } from 'vue';
|
|
import Answer from 'ChillCalendarAssets/vuejs/Invite/Answer';
|
|
import { _createI18n } from 'ChillMainAssets/vuejs/_js/i18n';
|
|
|
|
const i18n = _createI18n({});
|
|
|
|
document.addEventListener('DOMContentLoaded', function (e) {
|
|
console.log('dom loaded answer');
|
|
document.querySelectorAll('div[invite-answer]').forEach(function (el) {
|
|
console.log('element found', el);
|
|
|
|
const app = createApp({
|
|
components: {
|
|
Answer,
|
|
},
|
|
template: '<answer :calendarId="14" :status="defined"></answer>',
|
|
});
|
|
|
|
app.use(i18n).mount(el);
|
|
});
|
|
});
|