mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
feat: Vite + vue 3 💚 (#10047)
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
18
app/javascript/entrypoints/survey.js
Normal file
18
app/javascript/entrypoints/survey.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { createApp } from 'vue';
|
||||
import { createI18n } from 'vue-i18n';
|
||||
import store from '../survey/store';
|
||||
import i18nMessages from '../survey/i18n';
|
||||
import App from '../survey/App.vue';
|
||||
|
||||
const app = createApp(App);
|
||||
const i18n = createI18n({
|
||||
locale: 'en',
|
||||
messages: i18nMessages,
|
||||
});
|
||||
|
||||
app.use(i18n);
|
||||
app.use(store);
|
||||
|
||||
window.onload = () => {
|
||||
window.WOOT_SURVEY = app.mount('#app');
|
||||
};
|
||||
Reference in New Issue
Block a user