move composables to their own folder

This commit is contained in:
Henry Jameson 2026-09-09 09:49:36 +03:00
commit e34f4814c8
3 changed files with 2 additions and 13 deletions

View file

@ -1,18 +0,0 @@
import { onMounted, onUnmounted, ref } from 'vue'
export function useWindowSize() {
const height = ref(0)
const width = ref(0)
const update = () => {
height.value = window.innerHeight
width.value = window.innerWidth
}
onMounted(() => window.addEventListener('resize', update))
onUnmounted(() => window.removeEventListener('resize', update))
update()
return { height, width }
}