- Wrap client in @vueuse/core to abstract mobile client dimensions
This commit is contained in:
15
nginx/frontend_src/js/vueuse-setup.js
Normal file
15
nginx/frontend_src/js/vueuse-setup.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// vueuse-setup.js
|
||||
// Setup-module voor VueUse in de chat client.
|
||||
// - Importeert benodigde composables uit '@vueuse/core'
|
||||
// - Maakt ze beschikbaar via window.VueUse zodat static assets
|
||||
// onder eveai_chat_client/static ze kunnen gebruiken zonder
|
||||
// directe npm-imports.
|
||||
|
||||
import { useEventListener, useWindowSize } from '@vueuse/core';
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.VueUse = Object.assign({}, window.VueUse, {
|
||||
useEventListener,
|
||||
useWindowSize,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user