feat: update ui.js
This commit is contained in:
@@ -11,15 +11,18 @@ import createAxios from 'dashboard/helper/APIHelper';
|
||||
import commonHelpers from 'dashboard/helper/commons';
|
||||
|
||||
import ChatButton from '../ui/ChatButton.vue';
|
||||
import WootInput from '../dashboard/components-next/input/Input.vue';
|
||||
|
||||
commonHelpers();
|
||||
window.WootConstants = constants;
|
||||
window.axios = createAxios(axios);
|
||||
|
||||
export const buttonElement = defineCustomElement(ChatButton);
|
||||
export const inputElement = defineCustomElement(WootInput);
|
||||
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
window.__CHATWOOT_STORE__ = store;
|
||||
customElements.define('chat-button', buttonElement);
|
||||
customElements.define('woot-button', buttonElement);
|
||||
customElements.define('woot-input', inputElement);
|
||||
|
||||
export { store, ChatButton };
|
||||
|
||||
Reference in New Issue
Block a user